configure 468 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829
  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. GCC_FOR_TARGET
  539. CXX_FOR_TARGET
  540. CC_FOR_TARGET
  541. READELF
  542. OBJDUMP
  543. OBJCOPY
  544. WINDMC
  545. WINDRES
  546. STRIP
  547. RANLIB
  548. NM
  549. LIPO
  550. LD
  551. DLLTOOL
  552. AS
  553. AR
  554. RUNTEST
  555. EXPECT
  556. MAKEINFO
  557. FLEX
  558. LEX
  559. M4
  560. BISON
  561. YACC
  562. WINDRES_FOR_BUILD
  563. WINDMC_FOR_BUILD
  564. RANLIB_FOR_BUILD
  565. NM_FOR_BUILD
  566. LD_FOR_BUILD
  567. LDFLAGS_FOR_BUILD
  568. GOC_FOR_BUILD
  569. GFORTRAN_FOR_BUILD
  570. DLLTOOL_FOR_BUILD
  571. CXX_FOR_BUILD
  572. CXXFLAGS_FOR_BUILD
  573. CFLAGS_FOR_BUILD
  574. CC_FOR_BUILD
  575. AS_FOR_BUILD
  576. AR_FOR_BUILD
  577. target_configdirs
  578. configdirs
  579. build_configdirs
  580. INSTALL_GDB_TK
  581. GDB_TK
  582. CONFIGURE_GDB_TK
  583. build_tooldir
  584. tooldir
  585. GCC_SHLIB_SUBDIR
  586. RPATH_ENVVAR
  587. target_configargs
  588. host_configargs
  589. build_configargs
  590. BUILD_CONFIG
  591. LDFLAGS_FOR_TARGET
  592. CXXFLAGS_FOR_TARGET
  593. CFLAGS_FOR_TARGET
  594. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  595. SYSROOT_CFLAGS_FOR_TARGET
  596. extra_host_zlib_configure_flags
  597. extra_host_libiberty_configure_flags
  598. stage1_languages
  599. extra_linker_plugin_flags
  600. extra_linker_plugin_configure_flags
  601. islinc
  602. isllibs
  603. islver
  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_liboffloadmic_configure_flags
  628. target_subdir
  629. host_subdir
  630. build_subdir
  631. build_libsubdir
  632. AWK
  633. SED
  634. LN_S
  635. LN
  636. INSTALL_DATA
  637. INSTALL_SCRIPT
  638. INSTALL_PROGRAM
  639. target_os
  640. target_vendor
  641. target_cpu
  642. target
  643. host_os
  644. host_vendor
  645. host_cpu
  646. host
  647. target_noncanonical
  648. host_noncanonical
  649. build_noncanonical
  650. build_os
  651. build_vendor
  652. build_cpu
  653. build
  654. TOPLEVEL_CONFIGURE_ARGUMENTS
  655. target_alias
  656. host_alias
  657. build_alias
  658. LIBS
  659. ECHO_T
  660. ECHO_N
  661. ECHO_C
  662. DEFS
  663. mandir
  664. localedir
  665. libdir
  666. psdir
  667. pdfdir
  668. dvidir
  669. htmldir
  670. infodir
  671. docdir
  672. oldincludedir
  673. includedir
  674. localstatedir
  675. sharedstatedir
  676. sysconfdir
  677. datadir
  678. datarootdir
  679. libexecdir
  680. sbindir
  681. bindir
  682. program_transform_name
  683. prefix
  684. exec_prefix
  685. PACKAGE_URL
  686. PACKAGE_BUGREPORT
  687. PACKAGE_STRING
  688. PACKAGE_VERSION
  689. PACKAGE_TARNAME
  690. PACKAGE_NAME
  691. PATH_SEPARATOR
  692. SHELL'
  693. ac_subst_files='serialization_dependencies
  694. host_makefile_frag
  695. target_makefile_frag
  696. alphaieee_frag
  697. ospace_frag'
  698. ac_user_opts='
  699. enable_option_checking
  700. with_build_libsubdir
  701. with_system_zlib
  702. enable_as_accelerator_for
  703. enable_offload_targets
  704. enable_gold
  705. enable_ld
  706. enable_compressed_debug_sections
  707. enable_libquadmath
  708. enable_libquadmath_support
  709. enable_libada
  710. enable_libssp
  711. enable_libstdcxx
  712. enable_liboffloadmic
  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_stage1_libs
  726. with_stage1_ldflags
  727. with_boot_libs
  728. with_boot_ldflags
  729. with_isl
  730. with_isl_include
  731. with_isl_lib
  732. enable_isl_version_check
  733. enable_lto
  734. enable_linker_plugin_configure_flags
  735. enable_linker_plugin_flags
  736. enable_stage1_languages
  737. enable_objc_gc
  738. with_target_bdw_gc
  739. with_target_bdw_gc_include
  740. with_target_bdw_gc_lib
  741. with_build_sysroot
  742. with_debug_prefix_map
  743. with_build_config
  744. enable_vtable_verify
  745. enable_serial_configure
  746. with_build_time_tools
  747. enable_maintainer_mode
  748. enable_stage1_checking
  749. enable_werror
  750. enable_host_shared
  751. '
  752. ac_precious_vars='build_alias
  753. host_alias
  754. target_alias
  755. CC
  756. CFLAGS
  757. LDFLAGS
  758. LIBS
  759. CPPFLAGS
  760. CXX
  761. CXXFLAGS
  762. CCC
  763. build_configargs
  764. host_configargs
  765. target_configargs
  766. AR
  767. AS
  768. DLLTOOL
  769. LD
  770. LIPO
  771. NM
  772. RANLIB
  773. STRIP
  774. WINDRES
  775. WINDMC
  776. OBJCOPY
  777. OBJDUMP
  778. READELF
  779. CC_FOR_TARGET
  780. CXX_FOR_TARGET
  781. GCC_FOR_TARGET
  782. GFORTRAN_FOR_TARGET
  783. GOC_FOR_TARGET
  784. AR_FOR_TARGET
  785. AS_FOR_TARGET
  786. DLLTOOL_FOR_TARGET
  787. LD_FOR_TARGET
  788. LIPO_FOR_TARGET
  789. NM_FOR_TARGET
  790. OBJCOPY_FOR_TARGET
  791. OBJDUMP_FOR_TARGET
  792. RANLIB_FOR_TARGET
  793. READELF_FOR_TARGET
  794. STRIP_FOR_TARGET
  795. WINDRES_FOR_TARGET
  796. WINDMC_FOR_TARGET'
  797. # Initialize some variables set by options.
  798. ac_init_help=
  799. ac_init_version=false
  800. ac_unrecognized_opts=
  801. ac_unrecognized_sep=
  802. # The variables have the same names as the options, with
  803. # dashes changed to underlines.
  804. cache_file=/dev/null
  805. exec_prefix=NONE
  806. no_create=
  807. no_recursion=
  808. prefix=NONE
  809. program_prefix=NONE
  810. program_suffix=NONE
  811. program_transform_name=s,x,x,
  812. silent=
  813. site=
  814. srcdir=
  815. verbose=
  816. x_includes=NONE
  817. x_libraries=NONE
  818. # Installation directory options.
  819. # These are left unexpanded so users can "make install exec_prefix=/foo"
  820. # and all the variables that are supposed to be based on exec_prefix
  821. # by default will actually change.
  822. # Use braces instead of parens because sh, perl, etc. also accept them.
  823. # (The list follows the same order as the GNU Coding Standards.)
  824. bindir='${exec_prefix}/bin'
  825. sbindir='${exec_prefix}/sbin'
  826. libexecdir='${exec_prefix}/libexec'
  827. datarootdir='${prefix}/share'
  828. datadir='${datarootdir}'
  829. sysconfdir='${prefix}/etc'
  830. sharedstatedir='${prefix}/com'
  831. localstatedir='${prefix}/var'
  832. includedir='${prefix}/include'
  833. oldincludedir='/usr/include'
  834. docdir='${datarootdir}/doc/${PACKAGE}'
  835. infodir='${datarootdir}/info'
  836. htmldir='${docdir}'
  837. dvidir='${docdir}'
  838. pdfdir='${docdir}'
  839. psdir='${docdir}'
  840. libdir='${exec_prefix}/lib'
  841. localedir='${datarootdir}/locale'
  842. mandir='${datarootdir}/man'
  843. ac_prev=
  844. ac_dashdash=
  845. for ac_option
  846. do
  847. # If the previous option needs an argument, assign it.
  848. if test -n "$ac_prev"; then
  849. eval $ac_prev=\$ac_option
  850. ac_prev=
  851. continue
  852. fi
  853. case $ac_option in
  854. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  855. *) ac_optarg=yes ;;
  856. esac
  857. # Accept the important Cygnus configure options, so we can diagnose typos.
  858. case $ac_dashdash$ac_option in
  859. --)
  860. ac_dashdash=yes ;;
  861. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  862. ac_prev=bindir ;;
  863. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  864. bindir=$ac_optarg ;;
  865. -build | --build | --buil | --bui | --bu)
  866. ac_prev=build_alias ;;
  867. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  868. build_alias=$ac_optarg ;;
  869. -cache-file | --cache-file | --cache-fil | --cache-fi \
  870. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  871. ac_prev=cache_file ;;
  872. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  873. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  874. cache_file=$ac_optarg ;;
  875. --config-cache | -C)
  876. cache_file=config.cache ;;
  877. -datadir | --datadir | --datadi | --datad)
  878. ac_prev=datadir ;;
  879. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  880. datadir=$ac_optarg ;;
  881. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  882. | --dataroo | --dataro | --datar)
  883. ac_prev=datarootdir ;;
  884. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  885. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  886. datarootdir=$ac_optarg ;;
  887. -disable-* | --disable-*)
  888. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  889. # Reject names that are not valid shell variable names.
  890. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  891. as_fn_error "invalid feature name: $ac_useropt"
  892. ac_useropt_orig=$ac_useropt
  893. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  894. case $ac_user_opts in
  895. *"
  896. "enable_$ac_useropt"
  897. "*) ;;
  898. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  899. ac_unrecognized_sep=', ';;
  900. esac
  901. eval enable_$ac_useropt=no ;;
  902. -docdir | --docdir | --docdi | --doc | --do)
  903. ac_prev=docdir ;;
  904. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  905. docdir=$ac_optarg ;;
  906. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  907. ac_prev=dvidir ;;
  908. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  909. dvidir=$ac_optarg ;;
  910. -enable-* | --enable-*)
  911. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  912. # Reject names that are not valid shell variable names.
  913. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  914. as_fn_error "invalid feature name: $ac_useropt"
  915. ac_useropt_orig=$ac_useropt
  916. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  917. case $ac_user_opts in
  918. *"
  919. "enable_$ac_useropt"
  920. "*) ;;
  921. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  922. ac_unrecognized_sep=', ';;
  923. esac
  924. eval enable_$ac_useropt=\$ac_optarg ;;
  925. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  926. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  927. | --exec | --exe | --ex)
  928. ac_prev=exec_prefix ;;
  929. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  930. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  931. | --exec=* | --exe=* | --ex=*)
  932. exec_prefix=$ac_optarg ;;
  933. -gas | --gas | --ga | --g)
  934. # Obsolete; use --with-gas.
  935. with_gas=yes ;;
  936. -help | --help | --hel | --he | -h)
  937. ac_init_help=long ;;
  938. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  939. ac_init_help=recursive ;;
  940. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  941. ac_init_help=short ;;
  942. -host | --host | --hos | --ho)
  943. ac_prev=host_alias ;;
  944. -host=* | --host=* | --hos=* | --ho=*)
  945. host_alias=$ac_optarg ;;
  946. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  947. ac_prev=htmldir ;;
  948. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  949. | --ht=*)
  950. htmldir=$ac_optarg ;;
  951. -includedir | --includedir | --includedi | --included | --include \
  952. | --includ | --inclu | --incl | --inc)
  953. ac_prev=includedir ;;
  954. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  955. | --includ=* | --inclu=* | --incl=* | --inc=*)
  956. includedir=$ac_optarg ;;
  957. -infodir | --infodir | --infodi | --infod | --info | --inf)
  958. ac_prev=infodir ;;
  959. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  960. infodir=$ac_optarg ;;
  961. -libdir | --libdir | --libdi | --libd)
  962. ac_prev=libdir ;;
  963. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  964. libdir=$ac_optarg ;;
  965. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  966. | --libexe | --libex | --libe)
  967. ac_prev=libexecdir ;;
  968. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  969. | --libexe=* | --libex=* | --libe=*)
  970. libexecdir=$ac_optarg ;;
  971. -localedir | --localedir | --localedi | --localed | --locale)
  972. ac_prev=localedir ;;
  973. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  974. localedir=$ac_optarg ;;
  975. -localstatedir | --localstatedir | --localstatedi | --localstated \
  976. | --localstate | --localstat | --localsta | --localst | --locals)
  977. ac_prev=localstatedir ;;
  978. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  979. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  980. localstatedir=$ac_optarg ;;
  981. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  982. ac_prev=mandir ;;
  983. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  984. mandir=$ac_optarg ;;
  985. -nfp | --nfp | --nf)
  986. # Obsolete; use --without-fp.
  987. with_fp=no ;;
  988. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  989. | --no-cr | --no-c | -n)
  990. no_create=yes ;;
  991. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  992. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  993. no_recursion=yes ;;
  994. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  995. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  996. | --oldin | --oldi | --old | --ol | --o)
  997. ac_prev=oldincludedir ;;
  998. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  999. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1000. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1001. oldincludedir=$ac_optarg ;;
  1002. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1003. ac_prev=prefix ;;
  1004. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1005. prefix=$ac_optarg ;;
  1006. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1007. | --program-pre | --program-pr | --program-p)
  1008. ac_prev=program_prefix ;;
  1009. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1010. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1011. program_prefix=$ac_optarg ;;
  1012. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1013. | --program-suf | --program-su | --program-s)
  1014. ac_prev=program_suffix ;;
  1015. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1016. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1017. program_suffix=$ac_optarg ;;
  1018. -program-transform-name | --program-transform-name \
  1019. | --program-transform-nam | --program-transform-na \
  1020. | --program-transform-n | --program-transform- \
  1021. | --program-transform | --program-transfor \
  1022. | --program-transfo | --program-transf \
  1023. | --program-trans | --program-tran \
  1024. | --progr-tra | --program-tr | --program-t)
  1025. ac_prev=program_transform_name ;;
  1026. -program-transform-name=* | --program-transform-name=* \
  1027. | --program-transform-nam=* | --program-transform-na=* \
  1028. | --program-transform-n=* | --program-transform-=* \
  1029. | --program-transform=* | --program-transfor=* \
  1030. | --program-transfo=* | --program-transf=* \
  1031. | --program-trans=* | --program-tran=* \
  1032. | --progr-tra=* | --program-tr=* | --program-t=*)
  1033. program_transform_name=$ac_optarg ;;
  1034. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1035. ac_prev=pdfdir ;;
  1036. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1037. pdfdir=$ac_optarg ;;
  1038. -psdir | --psdir | --psdi | --psd | --ps)
  1039. ac_prev=psdir ;;
  1040. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1041. psdir=$ac_optarg ;;
  1042. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1043. | -silent | --silent | --silen | --sile | --sil)
  1044. silent=yes ;;
  1045. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1046. ac_prev=sbindir ;;
  1047. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1048. | --sbi=* | --sb=*)
  1049. sbindir=$ac_optarg ;;
  1050. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1051. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1052. | --sharedst | --shareds | --shared | --share | --shar \
  1053. | --sha | --sh)
  1054. ac_prev=sharedstatedir ;;
  1055. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1056. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1057. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1058. | --sha=* | --sh=*)
  1059. sharedstatedir=$ac_optarg ;;
  1060. -site | --site | --sit)
  1061. ac_prev=site ;;
  1062. -site=* | --site=* | --sit=*)
  1063. site=$ac_optarg ;;
  1064. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1065. ac_prev=srcdir ;;
  1066. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1067. srcdir=$ac_optarg ;;
  1068. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1069. | --syscon | --sysco | --sysc | --sys | --sy)
  1070. ac_prev=sysconfdir ;;
  1071. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1072. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1073. sysconfdir=$ac_optarg ;;
  1074. -target | --target | --targe | --targ | --tar | --ta | --t)
  1075. ac_prev=target_alias ;;
  1076. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1077. target_alias=$ac_optarg ;;
  1078. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1079. verbose=yes ;;
  1080. -version | --version | --versio | --versi | --vers | -V)
  1081. ac_init_version=: ;;
  1082. -with-* | --with-*)
  1083. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1084. # Reject names that are not valid shell variable names.
  1085. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1086. as_fn_error "invalid package name: $ac_useropt"
  1087. ac_useropt_orig=$ac_useropt
  1088. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1089. case $ac_user_opts in
  1090. *"
  1091. "with_$ac_useropt"
  1092. "*) ;;
  1093. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1094. ac_unrecognized_sep=', ';;
  1095. esac
  1096. eval with_$ac_useropt=\$ac_optarg ;;
  1097. -without-* | --without-*)
  1098. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1099. # Reject names that are not valid shell variable names.
  1100. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1101. as_fn_error "invalid package name: $ac_useropt"
  1102. ac_useropt_orig=$ac_useropt
  1103. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1104. case $ac_user_opts in
  1105. *"
  1106. "with_$ac_useropt"
  1107. "*) ;;
  1108. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1109. ac_unrecognized_sep=', ';;
  1110. esac
  1111. eval with_$ac_useropt=no ;;
  1112. --x)
  1113. # Obsolete; use --with-x.
  1114. with_x=yes ;;
  1115. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1116. | --x-incl | --x-inc | --x-in | --x-i)
  1117. ac_prev=x_includes ;;
  1118. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1119. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1120. x_includes=$ac_optarg ;;
  1121. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1122. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1123. ac_prev=x_libraries ;;
  1124. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1125. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1126. x_libraries=$ac_optarg ;;
  1127. -*) as_fn_error "unrecognized option: \`$ac_option'
  1128. Try \`$0 --help' for more information."
  1129. ;;
  1130. *=*)
  1131. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1132. # Reject names that are not valid shell variable names.
  1133. case $ac_envvar in #(
  1134. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1135. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1136. esac
  1137. eval $ac_envvar=\$ac_optarg
  1138. export $ac_envvar ;;
  1139. *)
  1140. # FIXME: should be removed in autoconf 3.0.
  1141. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1142. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1143. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1144. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1145. ;;
  1146. esac
  1147. done
  1148. if test -n "$ac_prev"; then
  1149. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1150. as_fn_error "missing argument to $ac_option"
  1151. fi
  1152. if test -n "$ac_unrecognized_opts"; then
  1153. case $enable_option_checking in
  1154. no) ;;
  1155. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1156. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1157. esac
  1158. fi
  1159. # Check all directory arguments for consistency.
  1160. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1161. datadir sysconfdir sharedstatedir localstatedir includedir \
  1162. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1163. libdir localedir mandir
  1164. do
  1165. eval ac_val=\$$ac_var
  1166. # Remove trailing slashes.
  1167. case $ac_val in
  1168. */ )
  1169. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1170. eval $ac_var=\$ac_val;;
  1171. esac
  1172. # Be sure to have absolute directory names.
  1173. case $ac_val in
  1174. [\\/$]* | ?:[\\/]* ) continue;;
  1175. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1176. esac
  1177. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1178. done
  1179. # There might be people who depend on the old broken behavior: `$host'
  1180. # used to hold the argument of --host etc.
  1181. # FIXME: To remove some day.
  1182. build=$build_alias
  1183. host=$host_alias
  1184. target=$target_alias
  1185. # FIXME: To remove some day.
  1186. if test "x$host_alias" != x; then
  1187. if test "x$build_alias" = x; then
  1188. cross_compiling=maybe
  1189. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1190. If a cross compiler is detected then cross compile mode will be used." >&2
  1191. elif test "x$build_alias" != "x$host_alias"; then
  1192. cross_compiling=yes
  1193. fi
  1194. fi
  1195. ac_tool_prefix=
  1196. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1197. test "$silent" = yes && exec 6>/dev/null
  1198. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1199. ac_ls_di=`ls -di .` &&
  1200. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1201. as_fn_error "working directory cannot be determined"
  1202. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1203. as_fn_error "pwd does not report name of working directory"
  1204. # Find the source files, if location was not specified.
  1205. if test -z "$srcdir"; then
  1206. ac_srcdir_defaulted=yes
  1207. # Try the directory containing this script, then the parent directory.
  1208. ac_confdir=`$as_dirname -- "$as_myself" ||
  1209. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1210. X"$as_myself" : 'X\(//\)[^/]' \| \
  1211. X"$as_myself" : 'X\(//\)$' \| \
  1212. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1213. $as_echo X"$as_myself" |
  1214. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1215. s//\1/
  1216. q
  1217. }
  1218. /^X\(\/\/\)[^/].*/{
  1219. s//\1/
  1220. q
  1221. }
  1222. /^X\(\/\/\)$/{
  1223. s//\1/
  1224. q
  1225. }
  1226. /^X\(\/\).*/{
  1227. s//\1/
  1228. q
  1229. }
  1230. s/.*/./; q'`
  1231. srcdir=$ac_confdir
  1232. if test ! -r "$srcdir/$ac_unique_file"; then
  1233. srcdir=..
  1234. fi
  1235. else
  1236. ac_srcdir_defaulted=no
  1237. fi
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1240. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1241. fi
  1242. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1243. ac_abs_confdir=`(
  1244. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1245. pwd)`
  1246. # When building in place, set srcdir=.
  1247. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1248. srcdir=.
  1249. fi
  1250. # Remove unnecessary trailing slashes from srcdir.
  1251. # Double slashes in file names in object file debugging info
  1252. # mess up M-x gdb in Emacs.
  1253. case $srcdir in
  1254. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1255. esac
  1256. case $srcdir in
  1257. *" "*)
  1258. as_fn_error "path to source, $srcdir, contains spaces"
  1259. ;;
  1260. esac
  1261. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1262. for ac_var in $ac_precious_vars; do
  1263. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1264. eval ac_env_${ac_var}_value=\$${ac_var}
  1265. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1267. done
  1268. #
  1269. # Report the --help message.
  1270. #
  1271. if test "$ac_init_help" = "long"; then
  1272. # Omit some internal or obsolete options to make the list less imposing.
  1273. # This message is too long to be a string in the A/UX 3.1 sh.
  1274. cat <<_ACEOF
  1275. \`configure' configures this package to adapt to many kinds of systems.
  1276. Usage: $0 [OPTION]... [VAR=VALUE]...
  1277. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1278. VAR=VALUE. See below for descriptions of some of the useful variables.
  1279. Defaults for the options are specified in brackets.
  1280. Configuration:
  1281. -h, --help display this help and exit
  1282. --help=short display options specific to this package
  1283. --help=recursive display the short help of all the included packages
  1284. -V, --version display version information and exit
  1285. -q, --quiet, --silent do not print \`checking...' messages
  1286. --cache-file=FILE cache test results in FILE [disabled]
  1287. -C, --config-cache alias for \`--cache-file=config.cache'
  1288. -n, --no-create do not create output files
  1289. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1290. Installation directories:
  1291. --prefix=PREFIX install architecture-independent files in PREFIX
  1292. [$ac_default_prefix]
  1293. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1294. [PREFIX]
  1295. By default, \`make install' will install all the files in
  1296. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1297. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1298. for instance \`--prefix=\$HOME'.
  1299. For better control, use the options below.
  1300. Fine tuning of the installation directories:
  1301. --bindir=DIR user executables [EPREFIX/bin]
  1302. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1303. --libexecdir=DIR program executables [EPREFIX/libexec]
  1304. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1305. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1306. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1307. --libdir=DIR object code libraries [EPREFIX/lib]
  1308. --includedir=DIR C header files [PREFIX/include]
  1309. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1310. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1311. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1312. --infodir=DIR info documentation [DATAROOTDIR/info]
  1313. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1314. --mandir=DIR man documentation [DATAROOTDIR/man]
  1315. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1316. --htmldir=DIR html documentation [DOCDIR]
  1317. --dvidir=DIR dvi documentation [DOCDIR]
  1318. --pdfdir=DIR pdf documentation [DOCDIR]
  1319. --psdir=DIR ps documentation [DOCDIR]
  1320. _ACEOF
  1321. cat <<\_ACEOF
  1322. Program names:
  1323. --program-prefix=PREFIX prepend PREFIX to installed program names
  1324. --program-suffix=SUFFIX append SUFFIX to installed program names
  1325. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1326. System types:
  1327. --build=BUILD configure for building on BUILD [guessed]
  1328. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1329. --target=TARGET configure for building compilers for TARGET [HOST]
  1330. _ACEOF
  1331. fi
  1332. if test -n "$ac_init_help"; then
  1333. cat <<\_ACEOF
  1334. Optional Features:
  1335. --disable-option-checking ignore unrecognized --enable/--with options
  1336. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1337. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1338. --enable-as-accelerator-for=ARG
  1339. build as offload target compiler. Specify offload
  1340. host triple by ARG
  1341. --enable-offload-targets=LIST
  1342. enable offloading to devices from comma-separated
  1343. LIST of TARGET[=DIR]. Use optional path to find
  1344. offload target compiler during the build
  1345. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1346. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1347. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1348. Enable compressed debug sections for gas, gold or ld
  1349. by default
  1350. --disable-libquadmath do not build libquadmath directory
  1351. --disable-libquadmath-support
  1352. disable libquadmath support for Fortran
  1353. --enable-libada build libada directory
  1354. --enable-libssp build libssp directory
  1355. --disable-libstdcxx do not build libstdc++-v3 directory
  1356. --enable-liboffloadmic=ARG
  1357. build liboffloadmic [ARG={no,host,target}]
  1358. --enable-bootstrap enable bootstrapping [yes if native build]
  1359. --disable-isl-version-check
  1360. disable check for isl version
  1361. --enable-lto enable link time optimization support
  1362. --enable-linker-plugin-configure-flags=FLAGS
  1363. additional flags for configuring linker plugins
  1364. [none]
  1365. --enable-linker-plugin-flags=FLAGS
  1366. additional flags for configuring and building linker
  1367. plugins [none]
  1368. --enable-stage1-languages[=all]
  1369. choose additional languages to build during stage1.
  1370. Mostly useful for compiler development
  1371. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1372. Objective-C runtime
  1373. --enable-vtable-verify Enable vtable verification feature
  1374. --enable-serial-[{host,target,build}-]configure
  1375. force sequential configuration of sub-packages for
  1376. the host, target or build machine, or all
  1377. sub-packages
  1378. --enable-maintainer-mode
  1379. enable make rules and dependencies not useful (and
  1380. sometimes confusing) to the casual installer
  1381. --enable-stage1-checking[=all]
  1382. choose additional checking for stage1 of the
  1383. compiler
  1384. --enable-werror enable -Werror in bootstrap stage2 and later
  1385. --enable-host-shared build host code as shared libraries
  1386. Optional Packages:
  1387. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1388. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1389. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1390. --with-system-zlib use installed libz
  1391. --with-mpc=PATH specify prefix directory for installed MPC package.
  1392. Equivalent to --with-mpc-include=PATH/include plus
  1393. --with-mpc-lib=PATH/lib
  1394. --with-mpc-include=PATH specify directory for installed MPC include files
  1395. --with-mpc-lib=PATH specify directory for the installed MPC library
  1396. --with-mpfr-dir=PATH this option has been REMOVED
  1397. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1398. Equivalent to --with-mpfr-include=PATH/include plus
  1399. --with-mpfr-lib=PATH/lib
  1400. --with-mpfr-include=PATH
  1401. specify directory for installed MPFR include files
  1402. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1403. --with-gmp-dir=PATH this option has been REMOVED
  1404. --with-gmp=PATH specify prefix directory for the installed GMP
  1405. package. Equivalent to
  1406. --with-gmp-include=PATH/include plus
  1407. --with-gmp-lib=PATH/lib
  1408. --with-gmp-include=PATH specify directory for installed GMP include files
  1409. --with-gmp-lib=PATH specify directory for the installed GMP library
  1410. --with-stage1-libs=LIBS libraries for stage1
  1411. --with-stage1-ldflags=FLAGS
  1412. linker flags for stage1
  1413. --with-boot-libs=LIBS libraries for stage2 and later
  1414. --with-boot-ldflags=FLAGS
  1415. linker flags for stage2 and later
  1416. --with-isl=PATH Specify prefix directory for the installed isl
  1417. package. Equivalent to
  1418. --with-isl-include=PATH/include plus
  1419. --with-isl-lib=PATH/lib
  1420. --with-isl-include=PATH Specify directory for installed isl include files
  1421. --with-isl-lib=PATH Specify the directory for the installed isl library
  1422. --with-target-bdw-gc=PATHLIST
  1423. specify prefix directory for installed bdw-gc
  1424. package. Equivalent to
  1425. --with-target-bdw-gc-include=PATH/include plus
  1426. --with-target-bdw-gc-lib=PATH/lib
  1427. --with-target-bdw-gc-include=PATHLIST
  1428. specify directories for installed bdw-gc include
  1429. files
  1430. --with-target-bdw-gc-lib=PATHLIST
  1431. specify directories for installed bdw-gc library
  1432. --with-build-sysroot=SYSROOT
  1433. use sysroot as the system root during the build
  1434. --with-debug-prefix-map='A=B C=D ...'
  1435. map A to B, C to D ... in debug information
  1436. --with-build-config='NAME NAME2...'
  1437. use config/NAME.mk build configuration
  1438. --with-build-time-tools=PATH
  1439. use given path to find target tools during the build
  1440. Some influential environment variables:
  1441. CC C compiler command
  1442. CFLAGS C compiler flags
  1443. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1444. nonstandard directory <lib dir>
  1445. LIBS libraries to pass to the linker, e.g. -l<library>
  1446. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1447. you have headers in a nonstandard directory <include dir>
  1448. CXX C++ compiler command
  1449. CXXFLAGS C++ compiler flags
  1450. build_configargs
  1451. additional configure arguments for build directories
  1452. host_configargs
  1453. additional configure arguments for host directories
  1454. target_configargs
  1455. additional configure arguments for target directories
  1456. AR AR for the host
  1457. AS AS for the host
  1458. DLLTOOL DLLTOOL for the host
  1459. LD LD for the host
  1460. LIPO LIPO for the host
  1461. NM NM for the host
  1462. RANLIB RANLIB for the host
  1463. STRIP STRIP for the host
  1464. WINDRES WINDRES for the host
  1465. WINDMC WINDMC for the host
  1466. OBJCOPY OBJCOPY for the host
  1467. OBJDUMP OBJDUMP for the host
  1468. READELF READELF for the host
  1469. CC_FOR_TARGET
  1470. CC for the target
  1471. CXX_FOR_TARGET
  1472. CXX for the target
  1473. GCC_FOR_TARGET
  1474. GCC for the target
  1475. GFORTRAN_FOR_TARGET
  1476. GFORTRAN for the target
  1477. GOC_FOR_TARGET
  1478. GOC for the target
  1479. AR_FOR_TARGET
  1480. AR for the target
  1481. AS_FOR_TARGET
  1482. AS for the target
  1483. DLLTOOL_FOR_TARGET
  1484. DLLTOOL for the target
  1485. LD_FOR_TARGET
  1486. LD for the target
  1487. LIPO_FOR_TARGET
  1488. LIPO for the target
  1489. NM_FOR_TARGET
  1490. NM for the target
  1491. OBJCOPY_FOR_TARGET
  1492. OBJCOPY for the target
  1493. OBJDUMP_FOR_TARGET
  1494. OBJDUMP for the target
  1495. RANLIB_FOR_TARGET
  1496. RANLIB for the target
  1497. READELF_FOR_TARGET
  1498. READELF for the target
  1499. STRIP_FOR_TARGET
  1500. STRIP for the target
  1501. WINDRES_FOR_TARGET
  1502. WINDRES for the target
  1503. WINDMC_FOR_TARGET
  1504. WINDMC for the target
  1505. Use these variables to override the choices made by `configure' or to help
  1506. it to find libraries and programs with nonstandard names/locations.
  1507. Report bugs to the package provider.
  1508. _ACEOF
  1509. ac_status=$?
  1510. fi
  1511. if test "$ac_init_help" = "recursive"; then
  1512. # If there are subdirs, report their specific --help.
  1513. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1514. test -d "$ac_dir" ||
  1515. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1516. continue
  1517. ac_builddir=.
  1518. case "$ac_dir" in
  1519. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1520. *)
  1521. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1522. # A ".." for each directory in $ac_dir_suffix.
  1523. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1524. case $ac_top_builddir_sub in
  1525. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1526. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1527. esac ;;
  1528. esac
  1529. ac_abs_top_builddir=$ac_pwd
  1530. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1531. # for backward compatibility:
  1532. ac_top_builddir=$ac_top_build_prefix
  1533. case $srcdir in
  1534. .) # We are building in place.
  1535. ac_srcdir=.
  1536. ac_top_srcdir=$ac_top_builddir_sub
  1537. ac_abs_top_srcdir=$ac_pwd ;;
  1538. [\\/]* | ?:[\\/]* ) # Absolute name.
  1539. ac_srcdir=$srcdir$ac_dir_suffix;
  1540. ac_top_srcdir=$srcdir
  1541. ac_abs_top_srcdir=$srcdir ;;
  1542. *) # Relative name.
  1543. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1544. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1545. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1546. esac
  1547. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1548. cd "$ac_dir" || { ac_status=$?; continue; }
  1549. # Check for guested configure.
  1550. if test -f "$ac_srcdir/configure.gnu"; then
  1551. echo &&
  1552. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1553. elif test -f "$ac_srcdir/configure"; then
  1554. echo &&
  1555. $SHELL "$ac_srcdir/configure" --help=recursive
  1556. else
  1557. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1558. fi || ac_status=$?
  1559. cd "$ac_pwd" || { ac_status=$?; break; }
  1560. done
  1561. fi
  1562. test -n "$ac_init_help" && exit $ac_status
  1563. if $ac_init_version; then
  1564. cat <<\_ACEOF
  1565. configure
  1566. generated by GNU Autoconf 2.64
  1567. Copyright (C) 2009 Free Software Foundation, Inc.
  1568. This configure script is free software; the Free Software Foundation
  1569. gives unlimited permission to copy, distribute and modify it.
  1570. _ACEOF
  1571. exit
  1572. fi
  1573. ## ------------------------ ##
  1574. ## Autoconf initialization. ##
  1575. ## ------------------------ ##
  1576. # ac_fn_c_try_compile LINENO
  1577. # --------------------------
  1578. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1579. ac_fn_c_try_compile ()
  1580. {
  1581. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1582. rm -f conftest.$ac_objext
  1583. if { { ac_try="$ac_compile"
  1584. case "(($ac_try" in
  1585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1586. *) ac_try_echo=$ac_try;;
  1587. esac
  1588. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1589. $as_echo "$ac_try_echo"; } >&5
  1590. (eval "$ac_compile") 2>conftest.err
  1591. ac_status=$?
  1592. if test -s conftest.err; then
  1593. grep -v '^ *+' conftest.err >conftest.er1
  1594. cat conftest.er1 >&5
  1595. mv -f conftest.er1 conftest.err
  1596. fi
  1597. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1598. test $ac_status = 0; } && {
  1599. test -z "$ac_c_werror_flag" ||
  1600. test ! -s conftest.err
  1601. } && test -s conftest.$ac_objext; then :
  1602. ac_retval=0
  1603. else
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=1
  1607. fi
  1608. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1609. return $ac_retval
  1610. } # ac_fn_c_try_compile
  1611. # ac_fn_cxx_try_compile LINENO
  1612. # ----------------------------
  1613. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1614. ac_fn_cxx_try_compile ()
  1615. {
  1616. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1617. rm -f conftest.$ac_objext
  1618. if { { ac_try="$ac_compile"
  1619. case "(($ac_try" in
  1620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1621. *) ac_try_echo=$ac_try;;
  1622. esac
  1623. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1624. $as_echo "$ac_try_echo"; } >&5
  1625. (eval "$ac_compile") 2>conftest.err
  1626. ac_status=$?
  1627. if test -s conftest.err; then
  1628. grep -v '^ *+' conftest.err >conftest.er1
  1629. cat conftest.er1 >&5
  1630. mv -f conftest.er1 conftest.err
  1631. fi
  1632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1633. test $ac_status = 0; } && {
  1634. test -z "$ac_cxx_werror_flag" ||
  1635. test ! -s conftest.err
  1636. } && test -s conftest.$ac_objext; then :
  1637. ac_retval=0
  1638. else
  1639. $as_echo "$as_me: failed program was:" >&5
  1640. sed 's/^/| /' conftest.$ac_ext >&5
  1641. ac_retval=1
  1642. fi
  1643. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1644. return $ac_retval
  1645. } # ac_fn_cxx_try_compile
  1646. # ac_fn_cxx_try_link LINENO
  1647. # -------------------------
  1648. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1649. ac_fn_cxx_try_link ()
  1650. {
  1651. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1652. rm -f conftest.$ac_objext conftest$ac_exeext
  1653. if { { ac_try="$ac_link"
  1654. case "(($ac_try" in
  1655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1656. *) ac_try_echo=$ac_try;;
  1657. esac
  1658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1659. $as_echo "$ac_try_echo"; } >&5
  1660. (eval "$ac_link") 2>conftest.err
  1661. ac_status=$?
  1662. if test -s conftest.err; then
  1663. grep -v '^ *+' conftest.err >conftest.er1
  1664. cat conftest.er1 >&5
  1665. mv -f conftest.er1 conftest.err
  1666. fi
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; } && {
  1669. test -z "$ac_cxx_werror_flag" ||
  1670. test ! -s conftest.err
  1671. } && test -s conftest$ac_exeext && {
  1672. test "$cross_compiling" = yes ||
  1673. $as_test_x conftest$ac_exeext
  1674. }; then :
  1675. ac_retval=0
  1676. else
  1677. $as_echo "$as_me: failed program was:" >&5
  1678. sed 's/^/| /' conftest.$ac_ext >&5
  1679. ac_retval=1
  1680. fi
  1681. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1682. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1683. # interfere with the next link command; also delete a directory that is
  1684. # left behind by Apple's compiler. We do this before executing the actions.
  1685. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1686. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1687. return $ac_retval
  1688. } # ac_fn_cxx_try_link
  1689. # ac_fn_c_try_link LINENO
  1690. # -----------------------
  1691. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1692. ac_fn_c_try_link ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. rm -f conftest.$ac_objext conftest$ac_exeext
  1696. if { { ac_try="$ac_link"
  1697. case "(($ac_try" in
  1698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1699. *) ac_try_echo=$ac_try;;
  1700. esac
  1701. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1702. $as_echo "$ac_try_echo"; } >&5
  1703. (eval "$ac_link") 2>conftest.err
  1704. ac_status=$?
  1705. if test -s conftest.err; then
  1706. grep -v '^ *+' conftest.err >conftest.er1
  1707. cat conftest.er1 >&5
  1708. mv -f conftest.er1 conftest.err
  1709. fi
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; } && {
  1712. test -z "$ac_c_werror_flag" ||
  1713. test ! -s conftest.err
  1714. } && test -s conftest$ac_exeext && {
  1715. test "$cross_compiling" = yes ||
  1716. $as_test_x conftest$ac_exeext
  1717. }; then :
  1718. ac_retval=0
  1719. else
  1720. $as_echo "$as_me: failed program was:" >&5
  1721. sed 's/^/| /' conftest.$ac_ext >&5
  1722. ac_retval=1
  1723. fi
  1724. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1725. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1726. # interfere with the next link command; also delete a directory that is
  1727. # left behind by Apple's compiler. We do this before executing the actions.
  1728. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1729. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1730. return $ac_retval
  1731. } # ac_fn_c_try_link
  1732. cat >config.log <<_ACEOF
  1733. This file contains any messages produced by compilers while
  1734. running configure, to aid debugging if configure makes a mistake.
  1735. It was created by $as_me, which was
  1736. generated by GNU Autoconf 2.64. Invocation command line was
  1737. $ $0 $@
  1738. _ACEOF
  1739. exec 5>>config.log
  1740. {
  1741. cat <<_ASUNAME
  1742. ## --------- ##
  1743. ## Platform. ##
  1744. ## --------- ##
  1745. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1746. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1747. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1748. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1749. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1750. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1751. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1752. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1753. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1754. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1755. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1756. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1757. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1758. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1759. _ASUNAME
  1760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1761. for as_dir in $PATH
  1762. do
  1763. IFS=$as_save_IFS
  1764. test -z "$as_dir" && as_dir=.
  1765. $as_echo "PATH: $as_dir"
  1766. done
  1767. IFS=$as_save_IFS
  1768. } >&5
  1769. cat >&5 <<_ACEOF
  1770. ## ----------- ##
  1771. ## Core tests. ##
  1772. ## ----------- ##
  1773. _ACEOF
  1774. # Keep a trace of the command line.
  1775. # Strip out --no-create and --no-recursion so they do not pile up.
  1776. # Strip out --silent because we don't want to record it for future runs.
  1777. # Also quote any args containing shell meta-characters.
  1778. # Make two passes to allow for proper duplicate-argument suppression.
  1779. ac_configure_args=
  1780. ac_configure_args0=
  1781. ac_configure_args1=
  1782. ac_must_keep_next=false
  1783. for ac_pass in 1 2
  1784. do
  1785. for ac_arg
  1786. do
  1787. case $ac_arg in
  1788. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1789. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1790. | -silent | --silent | --silen | --sile | --sil)
  1791. continue ;;
  1792. *\'*)
  1793. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1794. esac
  1795. case $ac_pass in
  1796. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1797. 2)
  1798. as_fn_append ac_configure_args1 " '$ac_arg'"
  1799. if test $ac_must_keep_next = true; then
  1800. ac_must_keep_next=false # Got value, back to normal.
  1801. else
  1802. case $ac_arg in
  1803. *=* | --config-cache | -C | -disable-* | --disable-* \
  1804. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1805. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1806. | -with-* | --with-* | -without-* | --without-* | --x)
  1807. case "$ac_configure_args0 " in
  1808. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1809. esac
  1810. ;;
  1811. -* ) ac_must_keep_next=true ;;
  1812. esac
  1813. fi
  1814. as_fn_append ac_configure_args " '$ac_arg'"
  1815. ;;
  1816. esac
  1817. done
  1818. done
  1819. { ac_configure_args0=; unset ac_configure_args0;}
  1820. { ac_configure_args1=; unset ac_configure_args1;}
  1821. # When interrupted or exit'd, cleanup temporary files, and complete
  1822. # config.log. We remove comments because anyway the quotes in there
  1823. # would cause problems or look ugly.
  1824. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1825. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1826. trap 'exit_status=$?
  1827. # Save into config.log some information that might help in debugging.
  1828. {
  1829. echo
  1830. cat <<\_ASBOX
  1831. ## ---------------- ##
  1832. ## Cache variables. ##
  1833. ## ---------------- ##
  1834. _ASBOX
  1835. echo
  1836. # The following way of writing the cache mishandles newlines in values,
  1837. (
  1838. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1839. eval ac_val=\$$ac_var
  1840. case $ac_val in #(
  1841. *${as_nl}*)
  1842. case $ac_var in #(
  1843. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1844. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1845. esac
  1846. case $ac_var in #(
  1847. _ | IFS | as_nl) ;; #(
  1848. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1849. *) { eval $ac_var=; unset $ac_var;} ;;
  1850. esac ;;
  1851. esac
  1852. done
  1853. (set) 2>&1 |
  1854. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1855. *${as_nl}ac_space=\ *)
  1856. sed -n \
  1857. "s/'\''/'\''\\\\'\'''\''/g;
  1858. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1859. ;; #(
  1860. *)
  1861. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1862. ;;
  1863. esac |
  1864. sort
  1865. )
  1866. echo
  1867. cat <<\_ASBOX
  1868. ## ----------------- ##
  1869. ## Output variables. ##
  1870. ## ----------------- ##
  1871. _ASBOX
  1872. echo
  1873. for ac_var in $ac_subst_vars
  1874. do
  1875. eval ac_val=\$$ac_var
  1876. case $ac_val in
  1877. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1878. esac
  1879. $as_echo "$ac_var='\''$ac_val'\''"
  1880. done | sort
  1881. echo
  1882. if test -n "$ac_subst_files"; then
  1883. cat <<\_ASBOX
  1884. ## ------------------- ##
  1885. ## File substitutions. ##
  1886. ## ------------------- ##
  1887. _ASBOX
  1888. echo
  1889. for ac_var in $ac_subst_files
  1890. do
  1891. eval ac_val=\$$ac_var
  1892. case $ac_val in
  1893. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1894. esac
  1895. $as_echo "$ac_var='\''$ac_val'\''"
  1896. done | sort
  1897. echo
  1898. fi
  1899. if test -s confdefs.h; then
  1900. cat <<\_ASBOX
  1901. ## ----------- ##
  1902. ## confdefs.h. ##
  1903. ## ----------- ##
  1904. _ASBOX
  1905. echo
  1906. cat confdefs.h
  1907. echo
  1908. fi
  1909. test "$ac_signal" != 0 &&
  1910. $as_echo "$as_me: caught signal $ac_signal"
  1911. $as_echo "$as_me: exit $exit_status"
  1912. } >&5
  1913. rm -f core *.core core.conftest.* &&
  1914. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1915. exit $exit_status
  1916. ' 0
  1917. for ac_signal in 1 2 13 15; do
  1918. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1919. done
  1920. ac_signal=0
  1921. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1922. rm -f -r conftest* confdefs.h
  1923. $as_echo "/* confdefs.h */" > confdefs.h
  1924. # Predefined preprocessor variables.
  1925. cat >>confdefs.h <<_ACEOF
  1926. #define PACKAGE_NAME "$PACKAGE_NAME"
  1927. _ACEOF
  1928. cat >>confdefs.h <<_ACEOF
  1929. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1930. _ACEOF
  1931. cat >>confdefs.h <<_ACEOF
  1932. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1933. _ACEOF
  1934. cat >>confdefs.h <<_ACEOF
  1935. #define PACKAGE_STRING "$PACKAGE_STRING"
  1936. _ACEOF
  1937. cat >>confdefs.h <<_ACEOF
  1938. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1939. _ACEOF
  1940. cat >>confdefs.h <<_ACEOF
  1941. #define PACKAGE_URL "$PACKAGE_URL"
  1942. _ACEOF
  1943. # Let the site file select an alternate cache file if it wants to.
  1944. # Prefer an explicitly selected file to automatically selected ones.
  1945. ac_site_file1=NONE
  1946. ac_site_file2=NONE
  1947. if test -n "$CONFIG_SITE"; then
  1948. ac_site_file1=$CONFIG_SITE
  1949. elif test "x$prefix" != xNONE; then
  1950. ac_site_file1=$prefix/share/config.site
  1951. ac_site_file2=$prefix/etc/config.site
  1952. else
  1953. ac_site_file1=$ac_default_prefix/share/config.site
  1954. ac_site_file2=$ac_default_prefix/etc/config.site
  1955. fi
  1956. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1957. do
  1958. test "x$ac_site_file" = xNONE && continue
  1959. if test -r "$ac_site_file"; then
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1961. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1962. sed 's/^/| /' "$ac_site_file" >&5
  1963. . "$ac_site_file"
  1964. fi
  1965. done
  1966. if test -r "$cache_file"; then
  1967. # Some versions of bash will fail to source /dev/null (special
  1968. # files actually), so we avoid doing that.
  1969. if test -f "$cache_file"; then
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1971. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1972. case $cache_file in
  1973. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1974. *) . "./$cache_file";;
  1975. esac
  1976. fi
  1977. else
  1978. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1979. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1980. >$cache_file
  1981. fi
  1982. # Check that the precious variables saved in the cache have kept the same
  1983. # value.
  1984. ac_cache_corrupted=false
  1985. for ac_var in $ac_precious_vars; do
  1986. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1987. eval ac_new_set=\$ac_env_${ac_var}_set
  1988. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1989. eval ac_new_val=\$ac_env_${ac_var}_value
  1990. case $ac_old_set,$ac_new_set in
  1991. set,)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,set)
  1996. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1997. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1998. ac_cache_corrupted=: ;;
  1999. ,);;
  2000. *)
  2001. if test "x$ac_old_val" != "x$ac_new_val"; then
  2002. # differences in whitespace do not lead to failure.
  2003. ac_old_val_w=`echo x $ac_old_val`
  2004. ac_new_val_w=`echo x $ac_new_val`
  2005. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2007. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2008. ac_cache_corrupted=:
  2009. else
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2011. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2012. eval $ac_var=\$ac_old_val
  2013. fi
  2014. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2015. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2017. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2018. fi;;
  2019. esac
  2020. # Pass precious variables to config.status.
  2021. if test "$ac_new_set" = set; then
  2022. case $ac_new_val in
  2023. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2024. *) ac_arg=$ac_var=$ac_new_val ;;
  2025. esac
  2026. case " $ac_configure_args " in
  2027. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2028. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2029. esac
  2030. fi
  2031. done
  2032. if $ac_cache_corrupted; then
  2033. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2034. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2035. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2036. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2037. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2038. fi
  2039. ## -------------------- ##
  2040. ## Main body of script. ##
  2041. ## -------------------- ##
  2042. ac_ext=c
  2043. ac_cpp='$CPP $CPPFLAGS'
  2044. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2045. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2046. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2047. progname=$0
  2048. # if PWD already has a value, it is probably wrong.
  2049. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2050. # Export original configure arguments for use by sub-configures.
  2051. # Quote arguments with shell meta charatcers.
  2052. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2053. set -- "$progname" "$@"
  2054. for ac_arg
  2055. do
  2056. case "$ac_arg" in
  2057. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2058. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2059. # if the argument is of the form -foo=baz, quote the baz part only
  2060. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2061. *) ;;
  2062. esac
  2063. # Add the quoted argument to the list.
  2064. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2065. done
  2066. if test "$silent" = yes; then
  2067. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2068. fi
  2069. # Remove the initial space we just introduced and, as these will be
  2070. # expanded by make, quote '$'.
  2071. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2072. # Find the build, host, and target systems.
  2073. ac_aux_dir=
  2074. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2075. for ac_t in install-sh install.sh shtool; do
  2076. if test -f "$ac_dir/$ac_t"; then
  2077. ac_aux_dir=$ac_dir
  2078. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2079. break 2
  2080. fi
  2081. done
  2082. done
  2083. if test -z "$ac_aux_dir"; then
  2084. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2085. fi
  2086. # These three variables are undocumented and unsupported,
  2087. # and are intended to be withdrawn in a future Autoconf release.
  2088. # They can cause serious problems if a builder's source tree is in a directory
  2089. # whose full name contains unusual characters.
  2090. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2091. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2092. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2093. # Make sure we can run config.sub.
  2094. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2095. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2097. $as_echo_n "checking build system type... " >&6; }
  2098. if test "${ac_cv_build+set}" = set; then :
  2099. $as_echo_n "(cached) " >&6
  2100. else
  2101. ac_build_alias=$build_alias
  2102. test "x$ac_build_alias" = x &&
  2103. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2104. test "x$ac_build_alias" = x &&
  2105. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2106. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2107. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2108. fi
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2110. $as_echo "$ac_cv_build" >&6; }
  2111. case $ac_cv_build in
  2112. *-*-*) ;;
  2113. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2114. esac
  2115. build=$ac_cv_build
  2116. ac_save_IFS=$IFS; IFS='-'
  2117. set x $ac_cv_build
  2118. shift
  2119. build_cpu=$1
  2120. build_vendor=$2
  2121. shift; shift
  2122. # Remember, the first character of IFS is used to create $*,
  2123. # except with old shells:
  2124. build_os=$*
  2125. IFS=$ac_save_IFS
  2126. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2127. case ${build_alias} in
  2128. "") build_noncanonical=${build} ;;
  2129. *) build_noncanonical=${build_alias} ;;
  2130. esac
  2131. case ${host_alias} in
  2132. "") host_noncanonical=${build_noncanonical} ;;
  2133. *) host_noncanonical=${host_alias} ;;
  2134. esac
  2135. case ${target_alias} in
  2136. "") target_noncanonical=${host_noncanonical} ;;
  2137. *) target_noncanonical=${target_alias} ;;
  2138. esac
  2139. test "$host_noncanonical" = "$target_noncanonical" &&
  2140. test "$program_prefix$program_suffix$program_transform_name" = \
  2141. NONENONEs,x,x, &&
  2142. program_transform_name=s,y,y,
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2144. $as_echo_n "checking host system type... " >&6; }
  2145. if test "${ac_cv_host+set}" = set; then :
  2146. $as_echo_n "(cached) " >&6
  2147. else
  2148. if test "x$host_alias" = x; then
  2149. ac_cv_host=$ac_cv_build
  2150. else
  2151. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2152. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2153. fi
  2154. fi
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2156. $as_echo "$ac_cv_host" >&6; }
  2157. case $ac_cv_host in
  2158. *-*-*) ;;
  2159. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2160. esac
  2161. host=$ac_cv_host
  2162. ac_save_IFS=$IFS; IFS='-'
  2163. set x $ac_cv_host
  2164. shift
  2165. host_cpu=$1
  2166. host_vendor=$2
  2167. shift; shift
  2168. # Remember, the first character of IFS is used to create $*,
  2169. # except with old shells:
  2170. host_os=$*
  2171. IFS=$ac_save_IFS
  2172. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2174. $as_echo_n "checking target system type... " >&6; }
  2175. if test "${ac_cv_target+set}" = set; then :
  2176. $as_echo_n "(cached) " >&6
  2177. else
  2178. if test "x$target_alias" = x; then
  2179. ac_cv_target=$ac_cv_host
  2180. else
  2181. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2182. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2183. fi
  2184. fi
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2186. $as_echo "$ac_cv_target" >&6; }
  2187. case $ac_cv_target in
  2188. *-*-*) ;;
  2189. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  2190. esac
  2191. target=$ac_cv_target
  2192. ac_save_IFS=$IFS; IFS='-'
  2193. set x $ac_cv_target
  2194. shift
  2195. target_cpu=$1
  2196. target_vendor=$2
  2197. shift; shift
  2198. # Remember, the first character of IFS is used to create $*,
  2199. # except with old shells:
  2200. target_os=$*
  2201. IFS=$ac_save_IFS
  2202. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2203. # The aliases save the names the user supplied, while $host etc.
  2204. # will get canonicalized.
  2205. test -n "$target_alias" &&
  2206. test "$program_prefix$program_suffix$program_transform_name" = \
  2207. NONENONEs,x,x, &&
  2208. program_prefix=${target_alias}-
  2209. test "$program_prefix" != NONE &&
  2210. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2211. # Use a double $ so make ignores it.
  2212. test "$program_suffix" != NONE &&
  2213. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2214. # Double any \ or $.
  2215. # By default was `s,x,x', remove it if useless.
  2216. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2217. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2218. # Get 'install' or 'install-sh' and its variants.
  2219. # Find a good install program. We prefer a C program (faster),
  2220. # so one script is as good as another. But avoid the broken or
  2221. # incompatible versions:
  2222. # SysV /etc/install, /usr/sbin/install
  2223. # SunOS /usr/etc/install
  2224. # IRIX /sbin/install
  2225. # AIX /bin/install
  2226. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2227. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2228. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2229. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2230. # OS/2's system install, which has a completely different semantic
  2231. # ./install, which can be erroneously created by make from ./install.sh.
  2232. # Reject install programs that cannot install multiple files.
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2234. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2235. if test -z "$INSTALL"; then
  2236. if test "${ac_cv_path_install+set}" = set; then :
  2237. $as_echo_n "(cached) " >&6
  2238. else
  2239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2240. for as_dir in $PATH
  2241. do
  2242. IFS=$as_save_IFS
  2243. test -z "$as_dir" && as_dir=.
  2244. # Account for people who put trailing slashes in PATH elements.
  2245. case $as_dir/ in #((
  2246. ./ | .// | /[cC]/* | \
  2247. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2248. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2249. /usr/ucb/* ) ;;
  2250. *)
  2251. # OSF1 and SCO ODT 3.0 have their own names for install.
  2252. # Don't use installbsd from OSF since it installs stuff as root
  2253. # by default.
  2254. for ac_prog in ginstall scoinst install; do
  2255. for ac_exec_ext in '' $ac_executable_extensions; do
  2256. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2257. if test $ac_prog = install &&
  2258. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2259. # AIX install. It has an incompatible calling convention.
  2260. :
  2261. elif test $ac_prog = install &&
  2262. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2263. # program-specific install script used by HP pwplus--don't use.
  2264. :
  2265. else
  2266. rm -rf conftest.one conftest.two conftest.dir
  2267. echo one > conftest.one
  2268. echo two > conftest.two
  2269. mkdir conftest.dir
  2270. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2271. test -s conftest.one && test -s conftest.two &&
  2272. test -s conftest.dir/conftest.one &&
  2273. test -s conftest.dir/conftest.two
  2274. then
  2275. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2276. break 3
  2277. fi
  2278. fi
  2279. fi
  2280. done
  2281. done
  2282. ;;
  2283. esac
  2284. done
  2285. IFS=$as_save_IFS
  2286. rm -rf conftest.one conftest.two conftest.dir
  2287. fi
  2288. if test "${ac_cv_path_install+set}" = set; then
  2289. INSTALL=$ac_cv_path_install
  2290. else
  2291. # As a last resort, use the slow shell script. Don't cache a
  2292. # value for INSTALL within a source directory, because that will
  2293. # break other packages using the cache if that directory is
  2294. # removed, or if the value is a relative name.
  2295. INSTALL=$ac_install_sh
  2296. fi
  2297. fi
  2298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2299. $as_echo "$INSTALL" >&6; }
  2300. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2301. # It thinks the first close brace ends the variable substitution.
  2302. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2303. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2304. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2306. $as_echo_n "checking whether ln works... " >&6; }
  2307. if test "${acx_cv_prog_LN+set}" = set; then :
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. rm -f conftestdata_t
  2311. echo >conftestdata_f
  2312. if ln conftestdata_f conftestdata_t 2>/dev/null
  2313. then
  2314. acx_cv_prog_LN=ln
  2315. else
  2316. acx_cv_prog_LN=no
  2317. fi
  2318. rm -f conftestdata_f conftestdata_t
  2319. fi
  2320. if test $acx_cv_prog_LN = no; then
  2321. LN="cp"
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2323. $as_echo "no, using $LN" >&6; }
  2324. else
  2325. LN="$acx_cv_prog_LN"
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2327. $as_echo "yes" >&6; }
  2328. fi
  2329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2330. $as_echo_n "checking whether ln -s works... " >&6; }
  2331. LN_S=$as_ln_s
  2332. if test "$LN_S" = "ln -s"; then
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2334. $as_echo "yes" >&6; }
  2335. else
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2337. $as_echo "no, using $LN_S" >&6; }
  2338. fi
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2340. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2341. if test "${ac_cv_path_SED+set}" = set; then :
  2342. $as_echo_n "(cached) " >&6
  2343. else
  2344. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2345. for ac_i in 1 2 3 4 5 6 7; do
  2346. ac_script="$ac_script$as_nl$ac_script"
  2347. done
  2348. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2349. { ac_script=; unset ac_script;}
  2350. if test -z "$SED"; then
  2351. ac_path_SED_found=false
  2352. # Loop through the user's path and test for each of PROGNAME-LIST
  2353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2354. for as_dir in $PATH
  2355. do
  2356. IFS=$as_save_IFS
  2357. test -z "$as_dir" && as_dir=.
  2358. for ac_prog in sed gsed; do
  2359. for ac_exec_ext in '' $ac_executable_extensions; do
  2360. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2361. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  2362. # Check for GNU ac_path_SED and select it if it is found.
  2363. # Check for GNU $ac_path_SED
  2364. case `"$ac_path_SED" --version 2>&1` in
  2365. *GNU*)
  2366. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2367. *)
  2368. ac_count=0
  2369. $as_echo_n 0123456789 >"conftest.in"
  2370. while :
  2371. do
  2372. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2373. mv "conftest.tmp" "conftest.in"
  2374. cp "conftest.in" "conftest.nl"
  2375. $as_echo '' >> "conftest.nl"
  2376. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2377. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2378. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2379. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2380. # Best one so far, save it but keep looking for a better one
  2381. ac_cv_path_SED="$ac_path_SED"
  2382. ac_path_SED_max=$ac_count
  2383. fi
  2384. # 10*(2^10) chars as input seems more than enough
  2385. test $ac_count -gt 10 && break
  2386. done
  2387. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2388. esac
  2389. $ac_path_SED_found && break 3
  2390. done
  2391. done
  2392. done
  2393. IFS=$as_save_IFS
  2394. if test -z "$ac_cv_path_SED"; then
  2395. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2396. fi
  2397. else
  2398. ac_cv_path_SED=$SED
  2399. fi
  2400. fi
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2402. $as_echo "$ac_cv_path_SED" >&6; }
  2403. SED="$ac_cv_path_SED"
  2404. rm -f conftest.sed
  2405. for ac_prog in gawk mawk nawk awk
  2406. do
  2407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2408. set dummy $ac_prog; ac_word=$2
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2410. $as_echo_n "checking for $ac_word... " >&6; }
  2411. if test "${ac_cv_prog_AWK+set}" = set; then :
  2412. $as_echo_n "(cached) " >&6
  2413. else
  2414. if test -n "$AWK"; then
  2415. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2416. else
  2417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2418. for as_dir in $PATH
  2419. do
  2420. IFS=$as_save_IFS
  2421. test -z "$as_dir" && as_dir=.
  2422. for ac_exec_ext in '' $ac_executable_extensions; do
  2423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2424. ac_cv_prog_AWK="$ac_prog"
  2425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2426. break 2
  2427. fi
  2428. done
  2429. done
  2430. IFS=$as_save_IFS
  2431. fi
  2432. fi
  2433. AWK=$ac_cv_prog_AWK
  2434. if test -n "$AWK"; then
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2436. $as_echo "$AWK" >&6; }
  2437. else
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2439. $as_echo "no" >&6; }
  2440. fi
  2441. test -n "$AWK" && break
  2442. done
  2443. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2444. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2445. # a relative path.
  2446. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2447. INSTALL="${srcpwd}/install-sh -c"
  2448. fi
  2449. # Set srcdir to "." if that's what it is.
  2450. # This is important for multilib support.
  2451. pwd=`${PWDCMD-pwd}`
  2452. if test "${pwd}" = "${srcpwd}" ; then
  2453. srcdir=.
  2454. fi
  2455. topsrcdir=$srcpwd
  2456. extra_host_args=
  2457. ### To add a new directory to the tree, first choose whether it is a target
  2458. ### or a host dependent tool. Then put it into the appropriate list
  2459. ### (library or tools, host or target), doing a dependency sort.
  2460. # Subdirs will be configured in the order listed in build_configdirs,
  2461. # configdirs, or target_configdirs; see the serialization section below.
  2462. # Dependency sorting is only needed when *configuration* must be done in
  2463. # a particular order. In all cases a dependency should be specified in
  2464. # the Makefile, whether or not it's implicitly specified here.
  2465. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2466. # cause circular dependencies and break everything horribly.
  2467. # these library is used by various programs built for the build
  2468. # environment
  2469. #
  2470. build_libs="build-libiberty build-libcpp"
  2471. # these tools are built for the build environment
  2472. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2473. # these libraries are used by various programs built for the host environment
  2474. #f
  2475. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
  2476. # these tools are built for the host environment
  2477. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2478. # know that we are building the simulator.
  2479. # binutils, gas and ld appear in that order because it makes sense to run
  2480. # "make check" in that particular order.
  2481. # If --enable-gold is used, "gold" may replace "ld".
  2482. 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"
  2483. # these libraries are built for the target environment, and are built after
  2484. # the host libraries and the host tools (which may be a cross compiler)
  2485. # Note that libiberty is not a target library.
  2486. target_libraries="target-libgcc \
  2487. target-libbacktrace \
  2488. target-libgloss \
  2489. target-newlib \
  2490. target-libgomp \
  2491. target-libcilkrts \
  2492. target-liboffloadmic \
  2493. target-libatomic \
  2494. target-libitm \
  2495. target-libstdc++-v3 \
  2496. target-libsanitizer \
  2497. target-libvtv \
  2498. target-libmpx \
  2499. target-libssp \
  2500. target-libquadmath \
  2501. target-libgfortran \
  2502. target-libffi \
  2503. target-libobjc \
  2504. target-libada \
  2505. target-libgo"
  2506. # these tools are built using the target libraries, and are intended to
  2507. # run only in the target environment
  2508. #
  2509. # note: any program that *uses* libraries that are in the "target_libraries"
  2510. # list belongs in this list.
  2511. #
  2512. target_tools="target-rda"
  2513. ################################################################################
  2514. ## All tools belong in one of the four categories, and are assigned above
  2515. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2516. ## is important because configure will choke if they ever get through.
  2517. ## ${configdirs} is directories we build using the host tools.
  2518. ## ${target_configdirs} is directories we build using the target tools.
  2519. configdirs=`echo ${host_libs} ${host_tools}`
  2520. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2521. build_configdirs=`echo ${build_libs} ${build_tools}`
  2522. ################################################################################
  2523. srcname="gnu development package"
  2524. # This gets set non-empty for some net releases of packages.
  2525. appdirs=""
  2526. # Define is_cross_compiler to save on calls to 'test'.
  2527. is_cross_compiler=
  2528. if test x"${host}" = x"${target}" ; then
  2529. is_cross_compiler=no
  2530. else
  2531. is_cross_compiler=yes
  2532. fi
  2533. # Find the build and target subdir names.
  2534. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2535. # have matching libraries, they should use host libraries: Makefile.tpl
  2536. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2537. # However, they still use the build modules, because the corresponding
  2538. # host modules (e.g. bison) are only built for the host when bootstrap
  2539. # finishes. So:
  2540. # - build_subdir is where we find build modules, and never changes.
  2541. # - build_libsubdir is where we find build libraries, and can be overridden.
  2542. # Prefix 'build-' so this never conflicts with target_subdir.
  2543. build_subdir="build-${build_noncanonical}"
  2544. # Check whether --with-build-libsubdir was given.
  2545. if test "${with_build_libsubdir+set}" = set; then :
  2546. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2547. else
  2548. build_libsubdir="$build_subdir"
  2549. fi
  2550. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2551. if ( test $srcdir = . && test -d gcc ) \
  2552. || test -d $srcdir/../host-${host_noncanonical}; then
  2553. host_subdir="host-${host_noncanonical}"
  2554. else
  2555. host_subdir=.
  2556. fi
  2557. # No prefix.
  2558. target_subdir=${target_noncanonical}
  2559. # Be sure to cover against remnants of an in-tree build.
  2560. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2561. as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
  2562. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2563. fi
  2564. # Skipdirs are removed silently.
  2565. skipdirs=
  2566. # Noconfigdirs are removed loudly.
  2567. noconfigdirs=""
  2568. use_gnu_ld=
  2569. # Make sure we don't let GNU ld be added if we didn't want it.
  2570. if test x$with_gnu_ld = xno ; then
  2571. use_gnu_ld=no
  2572. noconfigdirs="$noconfigdirs ld gold"
  2573. fi
  2574. use_gnu_as=
  2575. # Make sure we don't let GNU as be added if we didn't want it.
  2576. if test x$with_gnu_as = xno ; then
  2577. use_gnu_as=no
  2578. noconfigdirs="$noconfigdirs gas"
  2579. fi
  2580. use_included_zlib=
  2581. # Check whether --with-system-zlib was given.
  2582. if test "${with_system_zlib+set}" = set; then :
  2583. withval=$with_system_zlib;
  2584. fi
  2585. # Make sure we don't let ZLIB be added if we didn't want it.
  2586. if test x$with_system_zlib = xyes ; then
  2587. use_included_zlib=no
  2588. noconfigdirs="$noconfigdirs zlib"
  2589. fi
  2590. # some tools are so dependent upon X11 that if we're not building with X,
  2591. # it's not even worth trying to configure, much less build, that tool.
  2592. case ${with_x} in
  2593. yes | "") ;; # the default value for this tree is that X11 is available
  2594. no)
  2595. skipdirs="${skipdirs} tk itcl libgui"
  2596. # We won't be able to build gdbtk without X.
  2597. enable_gdbtk=no
  2598. ;;
  2599. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2600. esac
  2601. # Some are only suitable for cross toolchains.
  2602. # Remove these if host=target.
  2603. cross_only="target-libgloss target-newlib target-opcodes"
  2604. case $is_cross_compiler in
  2605. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2606. esac
  2607. # If both --with-headers and --with-libs are specified, default to
  2608. # --without-newlib.
  2609. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2610. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2611. if test x"${with_newlib}" = x ; then
  2612. with_newlib=no
  2613. fi
  2614. fi
  2615. # Recognize --with-newlib/--without-newlib.
  2616. case ${with_newlib} in
  2617. no) skipdirs="${skipdirs} target-newlib" ;;
  2618. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2619. esac
  2620. # Check whether --enable-as-accelerator-for was given.
  2621. if test "${enable_as_accelerator_for+set}" = set; then :
  2622. enableval=$enable_as_accelerator_for;
  2623. fi
  2624. # Check whether --enable-offload-targets was given.
  2625. if test "${enable_offload_targets+set}" = set; then :
  2626. enableval=$enable_offload_targets;
  2627. if test x"$enable_offload_targets" = x; then
  2628. as_fn_error "no offload targets specified" "$LINENO" 5
  2629. fi
  2630. else
  2631. enable_offload_targets=
  2632. fi
  2633. # Handle --enable-gold, --enable-ld.
  2634. # --disable-gold [--enable-ld]
  2635. # Build only ld. Default option.
  2636. # --enable-gold [--enable-ld]
  2637. # Build both gold and ld. Install gold as "ld.gold", install ld
  2638. # as "ld.bfd" and "ld".
  2639. # --enable-gold=default [--enable-ld]
  2640. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2641. # install ld as "ld.bfd".
  2642. # --enable-gold[=default] --disable-ld
  2643. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2644. # --enable-gold --enable-ld=default
  2645. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2646. # and ld.bfd).
  2647. # In other words, ld is default
  2648. # --enable-gold=default --enable-ld=default
  2649. # Error.
  2650. default_ld=
  2651. # Check whether --enable-gold was given.
  2652. if test "${enable_gold+set}" = set; then :
  2653. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2654. else
  2655. ENABLE_GOLD=no
  2656. fi
  2657. case "${ENABLE_GOLD}" in
  2658. yes|default)
  2659. # Check for ELF target.
  2660. is_elf=no
  2661. case "${target}" in
  2662. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2663. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2664. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2665. | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
  2666. case "${target}" in
  2667. *-*-linux*aout* | *-*-linux*oldld*)
  2668. ;;
  2669. *)
  2670. is_elf=yes
  2671. ;;
  2672. esac
  2673. esac
  2674. if test "$is_elf" = "yes"; then
  2675. # Check for target supported by gold.
  2676. case "${target}" in
  2677. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2678. | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
  2679. configdirs="$configdirs gold"
  2680. if test x${ENABLE_GOLD} = xdefault; then
  2681. default_ld=gold
  2682. fi
  2683. ENABLE_GOLD=yes
  2684. ;;
  2685. esac
  2686. fi
  2687. ;;
  2688. no)
  2689. ;;
  2690. *)
  2691. as_fn_error "invalid --enable-gold argument" "$LINENO" 5
  2692. ;;
  2693. esac
  2694. # Check whether --enable-ld was given.
  2695. if test "${enable_ld+set}" = set; then :
  2696. enableval=$enable_ld; ENABLE_LD=$enableval
  2697. else
  2698. ENABLE_LD=yes
  2699. fi
  2700. case "${ENABLE_LD}" in
  2701. default)
  2702. if test x${default_ld} != x; then
  2703. as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
  2704. fi
  2705. ;;
  2706. yes)
  2707. ;;
  2708. no)
  2709. if test x${ENABLE_GOLD} != xyes; then
  2710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2711. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2712. fi
  2713. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2714. ;;
  2715. *)
  2716. as_fn_error "invalid --enable-ld argument" "$LINENO" 5
  2717. ;;
  2718. esac
  2719. # PR gas/19109
  2720. # Decide the default method for compressing debug sections.
  2721. # Provide a configure time option to override our default.
  2722. # Check whether --enable-compressed_debug_sections was given.
  2723. if test "${enable_compressed_debug_sections+set}" = set; then :
  2724. enableval=$enable_compressed_debug_sections;
  2725. if test x"$enable_compressed_debug_sections" = xyes; then
  2726. as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
  2727. fi
  2728. else
  2729. enable_compressed_debug_sections=
  2730. fi
  2731. # Configure extra directories which are host specific
  2732. case "${host}" in
  2733. *-cygwin*)
  2734. configdirs="$configdirs libtermcap" ;;
  2735. esac
  2736. # A target can indicate whether a language isn't supported for some reason.
  2737. # Only spaces may be used in this macro; not newlines or tabs.
  2738. unsupported_languages=
  2739. # Remove more programs from consideration, based on the host or
  2740. # target this usually means that a port of the program doesn't
  2741. # exist yet.
  2742. case "${host}" in
  2743. i[3456789]86-*-msdosdjgpp*)
  2744. noconfigdirs="$noconfigdirs tcl tk itcl"
  2745. ;;
  2746. esac
  2747. # Check whether --enable-libquadmath was given.
  2748. if test "${enable_libquadmath+set}" = set; then :
  2749. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2750. else
  2751. ENABLE_LIBQUADMATH=yes
  2752. fi
  2753. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2754. noconfigdirs="$noconfigdirs target-libquadmath"
  2755. fi
  2756. # Check whether --enable-libquadmath-support was given.
  2757. if test "${enable_libquadmath_support+set}" = set; then :
  2758. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2759. else
  2760. ENABLE_LIBQUADMATH_SUPPORT=yes
  2761. fi
  2762. enable_libquadmath_support=
  2763. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2764. enable_libquadmath_support=no
  2765. fi
  2766. # Check whether --enable-libada was given.
  2767. if test "${enable_libada+set}" = set; then :
  2768. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2769. else
  2770. ENABLE_LIBADA=yes
  2771. fi
  2772. if test "${ENABLE_LIBADA}" != "yes" ; then
  2773. noconfigdirs="$noconfigdirs gnattools"
  2774. fi
  2775. # Check whether --enable-libssp was given.
  2776. if test "${enable_libssp+set}" = set; then :
  2777. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2778. else
  2779. ENABLE_LIBSSP=yes
  2780. fi
  2781. # Check whether --enable-libstdcxx was given.
  2782. if test "${enable_libstdcxx+set}" = set; then :
  2783. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2784. else
  2785. ENABLE_LIBSTDCXX=default
  2786. fi
  2787. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2788. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2789. fi
  2790. # If this is accelerator compiler and its target is intelmic we enable
  2791. # target liboffloadmic by default. If this is compiler with offloading
  2792. # for intelmic we enable host liboffloadmic by default. Otherwise
  2793. # liboffloadmic is disabled by default.
  2794. # Check whether --enable-liboffloadmic was given.
  2795. if test "${enable_liboffloadmic+set}" = set; then :
  2796. enableval=$enable_liboffloadmic; case "$enableval" in
  2797. no | host | target)
  2798. enable_liboffloadmic=$enableval ;;
  2799. *)
  2800. as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2801. esac
  2802. else
  2803. if test x"$enable_as_accelerator_for" != x; then
  2804. case "${target}" in
  2805. *-intelmic-* | *-intelmicemul-*)
  2806. enable_liboffloadmic=target
  2807. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2808. ;;
  2809. *)
  2810. enable_liboffloadmic=no
  2811. ;;
  2812. esac
  2813. else
  2814. case "${enable_offload_targets}" in
  2815. *-intelmic-* | *-intelmicemul-*)
  2816. enable_liboffloadmic=host
  2817. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2818. ;;
  2819. *)
  2820. enable_liboffloadmic=no
  2821. ;;
  2822. esac
  2823. fi
  2824. fi
  2825. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2826. if test x$enable_libgomp = x ; then
  2827. case "${target}" in
  2828. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2829. ;;
  2830. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2831. ;;
  2832. *-*-solaris2* | *-*-hpux11*)
  2833. ;;
  2834. *-*-darwin* | *-*-aix*)
  2835. ;;
  2836. nvptx*-*-*)
  2837. ;;
  2838. *)
  2839. noconfigdirs="$noconfigdirs target-libgomp"
  2840. ;;
  2841. esac
  2842. fi
  2843. # Disable libatomic on unsupported systems.
  2844. if test -d ${srcdir}/libatomic; then
  2845. if test x$enable_libatomic = x; then
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2847. $as_echo_n "checking for libatomic support... " >&6; }
  2848. if (srcdir=${srcdir}/libatomic; \
  2849. . ${srcdir}/configure.tgt; \
  2850. test -n "$UNSUPPORTED")
  2851. then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. noconfigdirs="$noconfigdirs target-libatomic"
  2855. else
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2857. $as_echo "yes" >&6; }
  2858. fi
  2859. fi
  2860. fi
  2861. # Disable libcilkrts on unsupported systems.
  2862. if test -d ${srcdir}/libcilkrts; then
  2863. if test x$enable_libcilkrts = x; then
  2864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
  2865. $as_echo_n "checking for libcilkrts support... " >&6; }
  2866. if (srcdir=${srcdir}/libcilkrts; \
  2867. . ${srcdir}/configure.tgt; \
  2868. test -n "$UNSUPPORTED")
  2869. then
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2871. $as_echo "no" >&6; }
  2872. noconfigdirs="$noconfigdirs target-libcilkrts"
  2873. else
  2874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2875. $as_echo "yes" >&6; }
  2876. fi
  2877. fi
  2878. fi
  2879. # Disable liboffloadmic on unsupported systems.
  2880. if test -d ${srcdir}/liboffloadmic; then
  2881. if test x$enable_liboffloadmic != xno; then
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2883. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2884. if (srcdir=${srcdir}/liboffloadmic; \
  2885. . ${srcdir}/configure.tgt; \
  2886. test -n "$UNSUPPORTED")
  2887. then
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2893. $as_echo "yes" >&6; }
  2894. fi
  2895. fi
  2896. fi
  2897. # Disable libitm on unsupported systems.
  2898. if test -d ${srcdir}/libitm; then
  2899. if test x$enable_libitm = x; then
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2901. $as_echo_n "checking for libitm support... " >&6; }
  2902. if (srcdir=${srcdir}/libitm; \
  2903. . ${srcdir}/configure.tgt; \
  2904. test -n "$UNSUPPORTED")
  2905. then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2907. $as_echo "no" >&6; }
  2908. noconfigdirs="$noconfigdirs target-libitm"
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2911. $as_echo "yes" >&6; }
  2912. fi
  2913. fi
  2914. fi
  2915. # Disable libsanitizer on unsupported systems.
  2916. if test -d ${srcdir}/libsanitizer; then
  2917. if test x$enable_libsanitizer = x; then
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2919. $as_echo_n "checking for libsanitizer support... " >&6; }
  2920. if (srcdir=${srcdir}/libsanitizer; \
  2921. . ${srcdir}/configure.tgt; \
  2922. test -n "$UNSUPPORTED")
  2923. then
  2924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2925. $as_echo "no" >&6; }
  2926. noconfigdirs="$noconfigdirs target-libsanitizer"
  2927. else
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2929. $as_echo "yes" >&6; }
  2930. fi
  2931. fi
  2932. fi
  2933. # Disable libvtv on unsupported systems.
  2934. if test -d ${srcdir}/libvtv; then
  2935. if test x$enable_libvtv = x; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  2937. $as_echo_n "checking for libvtv support... " >&6; }
  2938. if (srcdir=${srcdir}/libvtv; \
  2939. . ${srcdir}/configure.tgt; \
  2940. test "$VTV_SUPPORTED" != "yes")
  2941. then
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. noconfigdirs="$noconfigdirs target-libvtv"
  2945. else
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2947. $as_echo "yes" >&6; }
  2948. fi
  2949. fi
  2950. fi
  2951. # Enable libmpx on supported systems by request.
  2952. if test -d ${srcdir}/libmpx; then
  2953. if test x$enable_libmpx = x; then
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
  2955. $as_echo_n "checking for libmpx support... " >&6; }
  2956. if (srcdir=${srcdir}/libmpx; \
  2957. . ${srcdir}/configure.tgt; \
  2958. test "$LIBMPX_SUPPORTED" != "yes")
  2959. then
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. noconfigdirs="$noconfigdirs target-libmpx"
  2963. else
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2965. $as_echo "yes" >&6; }
  2966. fi
  2967. fi
  2968. fi
  2969. # Disable libquadmath for some systems.
  2970. case "${target}" in
  2971. avr-*-*)
  2972. noconfigdirs="$noconfigdirs target-libquadmath"
  2973. ;;
  2974. # libquadmath is unused on AIX and libquadmath build process use of
  2975. # LD_LIBRARY_PATH can break AIX bootstrap.
  2976. powerpc-*-aix* | rs6000-*-aix*)
  2977. noconfigdirs="$noconfigdirs target-libquadmath"
  2978. ;;
  2979. esac
  2980. # Disable libssp for some systems.
  2981. case "${target}" in
  2982. avr-*-*)
  2983. # No hosted I/O support.
  2984. noconfigdirs="$noconfigdirs target-libssp"
  2985. ;;
  2986. powerpc-*-aix* | rs6000-*-aix*)
  2987. noconfigdirs="$noconfigdirs target-libssp"
  2988. ;;
  2989. rl78-*-*)
  2990. # libssp uses a misaligned load to trigger a fault, but the RL78
  2991. # doesn't fault for those - instead, it gives a build-time error
  2992. # for explicit misaligned loads.
  2993. noconfigdirs="$noconfigdirs target-libssp"
  2994. ;;
  2995. visium-*-*)
  2996. # No hosted I/O support.
  2997. noconfigdirs="$noconfigdirs target-libssp"
  2998. ;;
  2999. esac
  3000. # Disable libstdc++-v3 for some systems.
  3001. # Allow user to override this if they pass --enable-libstdc++-v3
  3002. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3003. case "${target}" in
  3004. *-*-vxworks*)
  3005. # VxWorks uses the Dinkumware C++ library.
  3006. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3007. ;;
  3008. arm*-wince-pe*)
  3009. # the C++ libraries don't build on top of CE's C libraries
  3010. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3011. ;;
  3012. avr-*-*)
  3013. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3014. ;;
  3015. ft32-*-*)
  3016. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3017. ;;
  3018. esac
  3019. fi
  3020. # Disable Fortran for some systems.
  3021. case "${target}" in
  3022. mmix-*-*)
  3023. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3024. unsupported_languages="$unsupported_languages fortran"
  3025. ;;
  3026. esac
  3027. # Disable libffi for some systems.
  3028. case "${target}" in
  3029. powerpc-*-darwin*)
  3030. ;;
  3031. i[3456789]86-*-darwin*)
  3032. ;;
  3033. x86_64-*-darwin[912]*)
  3034. ;;
  3035. *-*-darwin*)
  3036. noconfigdirs="$noconfigdirs target-libffi"
  3037. ;;
  3038. *-*-netware*)
  3039. noconfigdirs="$noconfigdirs target-libffi"
  3040. ;;
  3041. *-*-phoenix*)
  3042. noconfigdirs="$noconfigdirs target-libffi"
  3043. ;;
  3044. *-*-rtems*)
  3045. noconfigdirs="$noconfigdirs target-libffi"
  3046. ;;
  3047. *-*-tpf*)
  3048. noconfigdirs="$noconfigdirs target-libffi"
  3049. ;;
  3050. *-*-uclinux*)
  3051. noconfigdirs="$noconfigdirs target-libffi"
  3052. ;;
  3053. *-*-vxworks*)
  3054. noconfigdirs="$noconfigdirs target-libffi"
  3055. ;;
  3056. aarch64*-*-freebsd*)
  3057. noconfigdirs="$noconfigdirs target-libffi"
  3058. ;;
  3059. alpha*-*-*vms*)
  3060. noconfigdirs="$noconfigdirs target-libffi"
  3061. ;;
  3062. arm*-*-freebsd*)
  3063. noconfigdirs="$noconfigdirs target-libffi"
  3064. ;;
  3065. arm-wince-pe)
  3066. noconfigdirs="$noconfigdirs target-libffi"
  3067. ;;
  3068. arm*-*-symbianelf*)
  3069. noconfigdirs="$noconfigdirs target-libffi"
  3070. ;;
  3071. cris-*-* | crisv32-*-*)
  3072. case "${target}" in
  3073. *-*-linux*)
  3074. ;;
  3075. *) # See PR46792 regarding target-libffi.
  3076. noconfigdirs="$noconfigdirs target-libffi";;
  3077. esac
  3078. ;;
  3079. hppa*64*-*-hpux*)
  3080. noconfigdirs="$noconfigdirs target-libffi"
  3081. ;;
  3082. hppa*-hp-hpux11*)
  3083. ;;
  3084. hppa*-*-hpux*)
  3085. noconfigdirs="$noconfigdirs target-libffi"
  3086. ;;
  3087. ia64*-*-*vms*)
  3088. noconfigdirs="$noconfigdirs target-libffi"
  3089. ;;
  3090. i[3456789]86-w64-mingw*)
  3091. noconfigdirs="$noconfigdirs target-libffi"
  3092. ;;
  3093. i[3456789]86-*-mingw*)
  3094. noconfigdirs="$noconfigdirs target-libffi"
  3095. ;;
  3096. x86_64-*-mingw*)
  3097. noconfigdirs="$noconfigdirs target-libffi"
  3098. ;;
  3099. mmix-*-*)
  3100. noconfigdirs="$noconfigdirs target-libffi"
  3101. ;;
  3102. powerpc-*-aix*)
  3103. # copied from rs6000-*-* entry
  3104. noconfigdirs="$noconfigdirs target-libffi"
  3105. ;;
  3106. rs6000-*-aix*)
  3107. noconfigdirs="$noconfigdirs target-libffi"
  3108. ;;
  3109. ft32-*-*)
  3110. noconfigdirs="$noconfigdirs target-libffi"
  3111. ;;
  3112. *-*-lynxos*)
  3113. noconfigdirs="$noconfigdirs target-libffi"
  3114. ;;
  3115. esac
  3116. # Disable the go frontend on systems where it is known to not work. Please keep
  3117. # this in sync with contrib/config-list.mk.
  3118. case "${target}" in
  3119. *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
  3120. unsupported_languages="$unsupported_languages go"
  3121. ;;
  3122. esac
  3123. # Disable libgo for some systems where it is known to not work.
  3124. # For testing, you can easily override this with --enable-libgo.
  3125. if test x$enable_libgo = x; then
  3126. case "${target}" in
  3127. *-*-darwin*)
  3128. # PR 46986
  3129. noconfigdirs="$noconfigdirs target-libgo"
  3130. ;;
  3131. *-*-cygwin* | *-*-mingw*)
  3132. noconfigdirs="$noconfigdirs target-libgo"
  3133. ;;
  3134. *-*-aix*)
  3135. noconfigdirs="$noconfigdirs target-libgo"
  3136. ;;
  3137. esac
  3138. fi
  3139. # Default libgloss CPU subdirectory.
  3140. libgloss_dir="$target_cpu"
  3141. case "${target}" in
  3142. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3143. libgloss_dir=wince
  3144. ;;
  3145. aarch64*-*-* )
  3146. libgloss_dir=aarch64
  3147. ;;
  3148. arm*-*-*)
  3149. libgloss_dir=arm
  3150. ;;
  3151. cris-*-* | crisv32-*-*)
  3152. libgloss_dir=cris
  3153. ;;
  3154. hppa*-*-*)
  3155. libgloss_dir=pa
  3156. ;;
  3157. i[3456789]86-*-*)
  3158. libgloss_dir=i386
  3159. ;;
  3160. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3161. libgloss_dir=m68hc11
  3162. ;;
  3163. m68*-*-* | fido-*-*)
  3164. libgloss_dir=m68k
  3165. ;;
  3166. mips*-*-*)
  3167. libgloss_dir=mips
  3168. ;;
  3169. powerpc*-*-*)
  3170. libgloss_dir=rs6000
  3171. ;;
  3172. sparc*-*-*)
  3173. libgloss_dir=sparc
  3174. ;;
  3175. esac
  3176. # Disable newlib and libgloss for various target OSes.
  3177. case "${target}" in
  3178. alpha*-dec-osf*)
  3179. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3180. ;;
  3181. i[3456789]86-*-linux*)
  3182. # This section makes it possible to build newlib natively on linux.
  3183. # If we are using a cross compiler then don't configure newlib.
  3184. if test x${is_cross_compiler} != xno ; then
  3185. noconfigdirs="$noconfigdirs target-newlib"
  3186. fi
  3187. noconfigdirs="$noconfigdirs target-libgloss"
  3188. # If we are not using a cross compiler, do configure newlib.
  3189. # Note however, that newlib will only be configured in this situation
  3190. # if the --with-newlib option has been given, because otherwise
  3191. # 'target-newlib' will appear in skipdirs.
  3192. ;;
  3193. i[3456789]86-*-rdos*)
  3194. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3195. ;;
  3196. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3197. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3198. ;;
  3199. sparc-*-sunos4*)
  3200. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3201. ;;
  3202. *-*-aix*)
  3203. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3204. ;;
  3205. *-*-beos*)
  3206. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3207. ;;
  3208. *-*-chorusos)
  3209. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3210. ;;
  3211. *-*-dragonfly*)
  3212. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3213. ;;
  3214. *-*-freebsd*)
  3215. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3216. ;;
  3217. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3218. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3219. ;;
  3220. *-*-lynxos*)
  3221. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3222. ;;
  3223. *-*-mingw*)
  3224. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3225. ;;
  3226. *-*-netbsd*)
  3227. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3228. ;;
  3229. *-*-netware*)
  3230. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3231. ;;
  3232. *-*-tpf*)
  3233. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3234. ;;
  3235. *-*-uclinux*)
  3236. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3237. ;;
  3238. *-*-vxworks*)
  3239. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3240. ;;
  3241. esac
  3242. case "${target}" in
  3243. *-*-chorusos)
  3244. ;;
  3245. aarch64-*-darwin*)
  3246. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3247. noconfigdirs="$noconfigdirs sim target-rda"
  3248. ;;
  3249. arm-*-darwin*)
  3250. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3251. noconfigdirs="$noconfigdirs sim target-rda"
  3252. ;;
  3253. powerpc-*-darwin*)
  3254. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3255. noconfigdirs="$noconfigdirs sim target-rda"
  3256. ;;
  3257. i[3456789]86-*-darwin*)
  3258. noconfigdirs="$noconfigdirs ld gprof"
  3259. noconfigdirs="$noconfigdirs sim target-rda"
  3260. ;;
  3261. x86_64-*-darwin[912]*)
  3262. noconfigdirs="$noconfigdirs ld gas gprof"
  3263. noconfigdirs="$noconfigdirs sim target-rda"
  3264. ;;
  3265. *-*-darwin*)
  3266. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3267. noconfigdirs="$noconfigdirs sim target-rda"
  3268. ;;
  3269. *-*-dragonfly*)
  3270. ;;
  3271. *-*-freebsd*)
  3272. if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
  3273. && test -f /usr/local/include/gmp.h; then
  3274. with_gmp=/usr/local
  3275. fi
  3276. ;;
  3277. *-*-kaos*)
  3278. # Remove unsupported stuff on all kaOS configurations.
  3279. noconfigdirs="$noconfigdirs target-libgloss"
  3280. ;;
  3281. *-*-netbsd*)
  3282. ;;
  3283. *-*-netware*)
  3284. ;;
  3285. *-*-phoenix*)
  3286. noconfigdirs="$noconfigdirs target-libgloss"
  3287. ;;
  3288. *-*-rtems*)
  3289. noconfigdirs="$noconfigdirs target-libgloss"
  3290. # this is not caught below because this stanza matches earlier
  3291. case $target in
  3292. or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
  3293. esac
  3294. ;;
  3295. # The tpf target doesn't support gdb yet.
  3296. *-*-tpf*)
  3297. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3298. ;;
  3299. *-*-uclinux*)
  3300. noconfigdirs="$noconfigdirs target-rda"
  3301. ;;
  3302. *-*-vxworks*)
  3303. ;;
  3304. alpha*-dec-osf*)
  3305. # ld works, but does not support shared libraries.
  3306. # gas doesn't generate exception information.
  3307. noconfigdirs="$noconfigdirs gas ld"
  3308. ;;
  3309. alpha*-*-*vms*)
  3310. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3311. ;;
  3312. alpha*-*-*)
  3313. # newlib is not 64 bit ready
  3314. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3315. ;;
  3316. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3317. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3318. ;;
  3319. arc*-*-*)
  3320. noconfigdirs="$noconfigdirs sim"
  3321. ;;
  3322. arm-*-pe*)
  3323. noconfigdirs="$noconfigdirs target-libgloss"
  3324. ;;
  3325. arm-*-riscix*)
  3326. noconfigdirs="$noconfigdirs ld target-libgloss"
  3327. ;;
  3328. avr-*-*)
  3329. if test x${with_avrlibc} != xno; then
  3330. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3331. fi
  3332. ;;
  3333. c4x-*-* | tic4x-*-*)
  3334. noconfigdirs="$noconfigdirs target-libgloss"
  3335. ;;
  3336. tic54x-*-*)
  3337. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3338. ;;
  3339. d10v-*-*)
  3340. noconfigdirs="$noconfigdirs target-libgloss"
  3341. ;;
  3342. d30v-*-*)
  3343. noconfigdirs="$noconfigdirs gdb"
  3344. ;;
  3345. fr30-*-elf*)
  3346. noconfigdirs="$noconfigdirs gdb"
  3347. ;;
  3348. ft32-*-*)
  3349. noconfigdirs="$noconfigdirs target-rda gprof"
  3350. ;;
  3351. moxie-*-*)
  3352. noconfigdirs="$noconfigdirs"
  3353. ;;
  3354. h8300*-*-*)
  3355. noconfigdirs="$noconfigdirs target-libgloss"
  3356. ;;
  3357. h8500-*-*)
  3358. noconfigdirs="$noconfigdirs target-libgloss"
  3359. ;;
  3360. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3361. ;;
  3362. hppa*64*-*-hpux*)
  3363. noconfigdirs="$noconfigdirs gdb"
  3364. ;;
  3365. hppa*-*-hpux11*)
  3366. noconfigdirs="$noconfigdirs gdb ld"
  3367. ;;
  3368. hppa*64*-*-linux*)
  3369. ;;
  3370. hppa*-*-linux*)
  3371. ;;
  3372. hppa*-*-*elf* | \
  3373. hppa*-*-lites* | \
  3374. hppa*-*-openbsd* | \
  3375. hppa*64*-*-*)
  3376. ;;
  3377. hppa*-*-pro*)
  3378. ;;
  3379. hppa*-*-*)
  3380. noconfigdirs="$noconfigdirs ld"
  3381. ;;
  3382. i960-*-*)
  3383. noconfigdirs="$noconfigdirs gdb"
  3384. ;;
  3385. ia64*-*-elf*)
  3386. # No gdb support yet.
  3387. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3388. ;;
  3389. ia64*-**-hpux*)
  3390. # No ld support yet.
  3391. noconfigdirs="$noconfigdirs gdb libgui itcl ld"
  3392. ;;
  3393. ia64*-*-*vms*)
  3394. # No ld support yet.
  3395. noconfigdirs="$noconfigdirs libgui itcl ld"
  3396. ;;
  3397. i[3456789]86-w64-mingw*)
  3398. ;;
  3399. i[3456789]86-*-mingw*)
  3400. target_configdirs="$target_configdirs target-winsup"
  3401. ;;
  3402. *-*-cygwin*)
  3403. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3404. noconfigdirs="$noconfigdirs target-libgloss"
  3405. # always build newlib if winsup directory is present.
  3406. if test -d "$srcdir/winsup/cygwin"; then
  3407. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3408. elif test -d "$srcdir/newlib"; then
  3409. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3410. fi
  3411. ;;
  3412. i[3456789]86-*-pe)
  3413. noconfigdirs="$noconfigdirs target-libgloss"
  3414. ;;
  3415. i[3456789]86-*-sco3.2v5*)
  3416. # The linker does not yet know about weak symbols in COFF,
  3417. # and is not configured to handle mixed ELF and COFF.
  3418. noconfigdirs="$noconfigdirs ld target-libgloss"
  3419. ;;
  3420. i[3456789]86-*-sco*)
  3421. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3422. ;;
  3423. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3424. noconfigdirs="$noconfigdirs target-libgloss"
  3425. ;;
  3426. i[3456789]86-*-sysv4*)
  3427. noconfigdirs="$noconfigdirs target-libgloss"
  3428. ;;
  3429. i[3456789]86-*-beos*)
  3430. noconfigdirs="$noconfigdirs gdb"
  3431. ;;
  3432. i[3456789]86-*-rdos*)
  3433. noconfigdirs="$noconfigdirs gdb"
  3434. ;;
  3435. mmix-*-*)
  3436. noconfigdirs="$noconfigdirs gdb"
  3437. ;;
  3438. mt-*-*)
  3439. noconfigdirs="$noconfigdirs sim"
  3440. ;;
  3441. powerpc-*-aix*)
  3442. # copied from rs6000-*-* entry
  3443. noconfigdirs="$noconfigdirs gprof"
  3444. ;;
  3445. powerpc*-*-winnt* | powerpc*-*-pe*)
  3446. target_configdirs="$target_configdirs target-winsup"
  3447. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3448. # always build newlib.
  3449. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3450. ;;
  3451. # This is temporary until we can link against shared libraries
  3452. powerpcle-*-solaris*)
  3453. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3454. ;;
  3455. powerpc-*-beos*)
  3456. noconfigdirs="$noconfigdirs gdb"
  3457. ;;
  3458. rs6000-*-lynxos*)
  3459. noconfigdirs="$noconfigdirs gprof"
  3460. ;;
  3461. rs6000-*-aix*)
  3462. noconfigdirs="$noconfigdirs gprof"
  3463. ;;
  3464. rs6000-*-*)
  3465. noconfigdirs="$noconfigdirs gprof"
  3466. ;;
  3467. m68k-apollo-*)
  3468. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3469. ;;
  3470. microblaze*)
  3471. noconfigdirs="$noconfigdirs gprof"
  3472. ;;
  3473. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3474. if test x$with_newlib = xyes; then
  3475. noconfigdirs="$noconfigdirs gprof"
  3476. fi
  3477. ;;
  3478. mips*-*-irix5*)
  3479. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3480. ;;
  3481. mips*-*-irix6*)
  3482. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3483. ;;
  3484. mips*-*-bsd*)
  3485. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3486. ;;
  3487. mips*-*-linux*)
  3488. ;;
  3489. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3490. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3491. noconfigdirs="$noconfigdirs ld gas gprof"
  3492. ;;
  3493. mips*-*-*)
  3494. noconfigdirs="$noconfigdirs gprof"
  3495. ;;
  3496. nvptx*-*-*)
  3497. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3498. ;;
  3499. or1k*-*-*)
  3500. noconfigdirs="$noconfigdirs gdb"
  3501. ;;
  3502. sh-*-*)
  3503. case "${target}" in
  3504. sh*-*-elf)
  3505. ;;
  3506. *)
  3507. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3508. esac
  3509. ;;
  3510. sparc-*-sunos4*)
  3511. if test x${is_cross_compiler} = xno ; then
  3512. use_gnu_ld=no
  3513. fi
  3514. ;;
  3515. tic6x-*-*)
  3516. noconfigdirs="$noconfigdirs sim"
  3517. ;;
  3518. tilepro*-*-* | tilegx*-*-*)
  3519. noconfigdirs="$noconfigdirs sim"
  3520. ;;
  3521. v810-*-*)
  3522. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3523. ;;
  3524. vax-*-*)
  3525. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3526. ;;
  3527. esac
  3528. # If we aren't building newlib, then don't build libgloss, since libgloss
  3529. # depends upon some newlib header files.
  3530. case "${noconfigdirs}" in
  3531. *target-libgloss*) ;;
  3532. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3533. esac
  3534. # Work in distributions that contain no compiler tools, like Autoconf.
  3535. host_makefile_frag=/dev/null
  3536. if test -d ${srcdir}/config ; then
  3537. case "${host}" in
  3538. i[3456789]86-*-msdosdjgpp*)
  3539. host_makefile_frag="config/mh-djgpp"
  3540. ;;
  3541. *-cygwin*)
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3543. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3544. echo a >cygwin-cat-check
  3545. if test `cat cygwin-cat-check` = a ; then
  3546. rm cygwin-cat-check
  3547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3548. $as_echo "yes" >&6; }
  3549. else
  3550. rm cygwin-cat-check
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3552. $as_echo "no" >&6; }
  3553. as_fn_error "The cat command does not ignore carriage return characters.
  3554. Please either mount the build directory in binary mode or run the following
  3555. commands before running any configure script:
  3556. set -o igncr
  3557. export SHELLOPTS
  3558. " "$LINENO" 5
  3559. fi
  3560. host_makefile_frag="config/mh-cygwin"
  3561. ;;
  3562. *-mingw*)
  3563. host_makefile_frag="config/mh-mingw"
  3564. ;;
  3565. alpha*-linux*)
  3566. host_makefile_frag="config/mh-alpha-linux"
  3567. ;;
  3568. hppa*-hp-hpux10*)
  3569. host_makefile_frag="config/mh-pa-hpux10"
  3570. ;;
  3571. hppa*-hp-hpux*)
  3572. host_makefile_frag="config/mh-pa"
  3573. ;;
  3574. hppa*-*)
  3575. host_makefile_frag="config/mh-pa"
  3576. ;;
  3577. *-*-darwin*)
  3578. host_makefile_frag="config/mh-darwin"
  3579. ;;
  3580. powerpc-*-aix*)
  3581. host_makefile_frag="config/mh-ppc-aix"
  3582. ;;
  3583. rs6000-*-aix*)
  3584. host_makefile_frag="config/mh-ppc-aix"
  3585. ;;
  3586. esac
  3587. fi
  3588. if test "${build}" != "${host}" ; then
  3589. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3590. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3591. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3592. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3593. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3594. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3595. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3596. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3597. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3598. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3599. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3600. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3601. else
  3602. AR_FOR_BUILD="\$(AR)"
  3603. AS_FOR_BUILD="\$(AS)"
  3604. CC_FOR_BUILD="\$(CC)"
  3605. CXX_FOR_BUILD="\$(CXX)"
  3606. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3607. GOC_FOR_BUILD="\$(GOC)"
  3608. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3609. LD_FOR_BUILD="\$(LD)"
  3610. NM_FOR_BUILD="\$(NM)"
  3611. RANLIB_FOR_BUILD="\$(RANLIB)"
  3612. WINDRES_FOR_BUILD="\$(WINDRES)"
  3613. WINDMC_FOR_BUILD="\$(WINDMC)"
  3614. fi
  3615. ac_ext=c
  3616. ac_cpp='$CPP $CPPFLAGS'
  3617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3620. if test -n "$ac_tool_prefix"; then
  3621. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3622. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3624. $as_echo_n "checking for $ac_word... " >&6; }
  3625. if test "${ac_cv_prog_CC+set}" = set; then :
  3626. $as_echo_n "(cached) " >&6
  3627. else
  3628. if test -n "$CC"; then
  3629. ac_cv_prog_CC="$CC" # Let the user override the test.
  3630. else
  3631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3632. for as_dir in $PATH
  3633. do
  3634. IFS=$as_save_IFS
  3635. test -z "$as_dir" && as_dir=.
  3636. for ac_exec_ext in '' $ac_executable_extensions; do
  3637. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3638. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3640. break 2
  3641. fi
  3642. done
  3643. done
  3644. IFS=$as_save_IFS
  3645. fi
  3646. fi
  3647. CC=$ac_cv_prog_CC
  3648. if test -n "$CC"; then
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3650. $as_echo "$CC" >&6; }
  3651. else
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3653. $as_echo "no" >&6; }
  3654. fi
  3655. fi
  3656. if test -z "$ac_cv_prog_CC"; then
  3657. ac_ct_CC=$CC
  3658. # Extract the first word of "gcc", so it can be a program name with args.
  3659. set dummy gcc; ac_word=$2
  3660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3661. $as_echo_n "checking for $ac_word... " >&6; }
  3662. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3663. $as_echo_n "(cached) " >&6
  3664. else
  3665. if test -n "$ac_ct_CC"; then
  3666. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3667. else
  3668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3669. for as_dir in $PATH
  3670. do
  3671. IFS=$as_save_IFS
  3672. test -z "$as_dir" && as_dir=.
  3673. for ac_exec_ext in '' $ac_executable_extensions; do
  3674. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3675. ac_cv_prog_ac_ct_CC="gcc"
  3676. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3677. break 2
  3678. fi
  3679. done
  3680. done
  3681. IFS=$as_save_IFS
  3682. fi
  3683. fi
  3684. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3685. if test -n "$ac_ct_CC"; then
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3687. $as_echo "$ac_ct_CC" >&6; }
  3688. else
  3689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3690. $as_echo "no" >&6; }
  3691. fi
  3692. if test "x$ac_ct_CC" = x; then
  3693. CC=""
  3694. else
  3695. case $cross_compiling:$ac_tool_warned in
  3696. yes:)
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3698. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3699. ac_tool_warned=yes ;;
  3700. esac
  3701. CC=$ac_ct_CC
  3702. fi
  3703. else
  3704. CC="$ac_cv_prog_CC"
  3705. fi
  3706. if test -z "$CC"; then
  3707. if test -n "$ac_tool_prefix"; then
  3708. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3709. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3711. $as_echo_n "checking for $ac_word... " >&6; }
  3712. if test "${ac_cv_prog_CC+set}" = set; then :
  3713. $as_echo_n "(cached) " >&6
  3714. else
  3715. if test -n "$CC"; then
  3716. ac_cv_prog_CC="$CC" # Let the user override the test.
  3717. else
  3718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3719. for as_dir in $PATH
  3720. do
  3721. IFS=$as_save_IFS
  3722. test -z "$as_dir" && as_dir=.
  3723. for ac_exec_ext in '' $ac_executable_extensions; do
  3724. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3725. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3727. break 2
  3728. fi
  3729. done
  3730. done
  3731. IFS=$as_save_IFS
  3732. fi
  3733. fi
  3734. CC=$ac_cv_prog_CC
  3735. if test -n "$CC"; then
  3736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3737. $as_echo "$CC" >&6; }
  3738. else
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3740. $as_echo "no" >&6; }
  3741. fi
  3742. fi
  3743. fi
  3744. if test -z "$CC"; then
  3745. # Extract the first word of "cc", so it can be a program name with args.
  3746. set dummy cc; ac_word=$2
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3748. $as_echo_n "checking for $ac_word... " >&6; }
  3749. if test "${ac_cv_prog_CC+set}" = set; then :
  3750. $as_echo_n "(cached) " >&6
  3751. else
  3752. if test -n "$CC"; then
  3753. ac_cv_prog_CC="$CC" # Let the user override the test.
  3754. else
  3755. ac_prog_rejected=no
  3756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3757. for as_dir in $PATH
  3758. do
  3759. IFS=$as_save_IFS
  3760. test -z "$as_dir" && as_dir=.
  3761. for ac_exec_ext in '' $ac_executable_extensions; do
  3762. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3763. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3764. ac_prog_rejected=yes
  3765. continue
  3766. fi
  3767. ac_cv_prog_CC="cc"
  3768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3769. break 2
  3770. fi
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. if test $ac_prog_rejected = yes; then
  3775. # We found a bogon in the path, so make sure we never use it.
  3776. set dummy $ac_cv_prog_CC
  3777. shift
  3778. if test $# != 0; then
  3779. # We chose a different compiler from the bogus one.
  3780. # However, it has the same basename, so the bogon will be chosen
  3781. # first if we set CC to just the basename; use the full file name.
  3782. shift
  3783. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3784. fi
  3785. fi
  3786. fi
  3787. fi
  3788. CC=$ac_cv_prog_CC
  3789. if test -n "$CC"; then
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3791. $as_echo "$CC" >&6; }
  3792. else
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3794. $as_echo "no" >&6; }
  3795. fi
  3796. fi
  3797. if test -z "$CC"; then
  3798. if test -n "$ac_tool_prefix"; then
  3799. for ac_prog in cl.exe
  3800. do
  3801. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3802. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3804. $as_echo_n "checking for $ac_word... " >&6; }
  3805. if test "${ac_cv_prog_CC+set}" = set; then :
  3806. $as_echo_n "(cached) " >&6
  3807. else
  3808. if test -n "$CC"; then
  3809. ac_cv_prog_CC="$CC" # Let the user override the test.
  3810. else
  3811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3812. for as_dir in $PATH
  3813. do
  3814. IFS=$as_save_IFS
  3815. test -z "$as_dir" && as_dir=.
  3816. for ac_exec_ext in '' $ac_executable_extensions; do
  3817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3818. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3820. break 2
  3821. fi
  3822. done
  3823. done
  3824. IFS=$as_save_IFS
  3825. fi
  3826. fi
  3827. CC=$ac_cv_prog_CC
  3828. if test -n "$CC"; then
  3829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3830. $as_echo "$CC" >&6; }
  3831. else
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3833. $as_echo "no" >&6; }
  3834. fi
  3835. test -n "$CC" && break
  3836. done
  3837. fi
  3838. if test -z "$CC"; then
  3839. ac_ct_CC=$CC
  3840. for ac_prog in cl.exe
  3841. do
  3842. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3843. set dummy $ac_prog; ac_word=$2
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3845. $as_echo_n "checking for $ac_word... " >&6; }
  3846. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3847. $as_echo_n "(cached) " >&6
  3848. else
  3849. if test -n "$ac_ct_CC"; then
  3850. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3851. else
  3852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3853. for as_dir in $PATH
  3854. do
  3855. IFS=$as_save_IFS
  3856. test -z "$as_dir" && as_dir=.
  3857. for ac_exec_ext in '' $ac_executable_extensions; do
  3858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3859. ac_cv_prog_ac_ct_CC="$ac_prog"
  3860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3861. break 2
  3862. fi
  3863. done
  3864. done
  3865. IFS=$as_save_IFS
  3866. fi
  3867. fi
  3868. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3869. if test -n "$ac_ct_CC"; then
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3871. $as_echo "$ac_ct_CC" >&6; }
  3872. else
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3874. $as_echo "no" >&6; }
  3875. fi
  3876. test -n "$ac_ct_CC" && break
  3877. done
  3878. if test "x$ac_ct_CC" = x; then
  3879. CC=""
  3880. else
  3881. case $cross_compiling:$ac_tool_warned in
  3882. yes:)
  3883. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3884. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3885. ac_tool_warned=yes ;;
  3886. esac
  3887. CC=$ac_ct_CC
  3888. fi
  3889. fi
  3890. fi
  3891. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3892. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3893. as_fn_error "no acceptable C compiler found in \$PATH
  3894. See \`config.log' for more details." "$LINENO" 5; }
  3895. # Provide some information about the compiler.
  3896. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3897. set X $ac_compile
  3898. ac_compiler=$2
  3899. for ac_option in --version -v -V -qversion; do
  3900. { { ac_try="$ac_compiler $ac_option >&5"
  3901. case "(($ac_try" in
  3902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3903. *) ac_try_echo=$ac_try;;
  3904. esac
  3905. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3906. $as_echo "$ac_try_echo"; } >&5
  3907. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3908. ac_status=$?
  3909. if test -s conftest.err; then
  3910. sed '10a\
  3911. ... rest of stderr output deleted ...
  3912. 10q' conftest.err >conftest.er1
  3913. cat conftest.er1 >&5
  3914. rm -f conftest.er1 conftest.err
  3915. fi
  3916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3917. test $ac_status = 0; }
  3918. done
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. int
  3922. main ()
  3923. {
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. ac_clean_files_save=$ac_clean_files
  3929. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3930. # Try to create an executable without -o first, disregard a.out.
  3931. # It will help us diagnose broken compilers, and finding out an intuition
  3932. # of exeext.
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3934. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3935. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3936. # The possible output files:
  3937. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3938. ac_rmfiles=
  3939. for ac_file in $ac_files
  3940. do
  3941. case $ac_file in
  3942. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3943. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3944. esac
  3945. done
  3946. rm -f $ac_rmfiles
  3947. if { { ac_try="$ac_link_default"
  3948. case "(($ac_try" in
  3949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3950. *) ac_try_echo=$ac_try;;
  3951. esac
  3952. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3953. $as_echo "$ac_try_echo"; } >&5
  3954. (eval "$ac_link_default") 2>&5
  3955. ac_status=$?
  3956. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3957. test $ac_status = 0; }; then :
  3958. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3959. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3960. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3961. # so that the user can short-circuit this test for compilers unknown to
  3962. # Autoconf.
  3963. for ac_file in $ac_files ''
  3964. do
  3965. test -f "$ac_file" || continue
  3966. case $ac_file in
  3967. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3968. ;;
  3969. [ab].out )
  3970. # We found the default executable, but exeext='' is most
  3971. # certainly right.
  3972. break;;
  3973. *.* )
  3974. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3975. then :; else
  3976. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3977. fi
  3978. # We set ac_cv_exeext here because the later test for it is not
  3979. # safe: cross compilers may not add the suffix if given an `-o'
  3980. # argument, so we may need to know it at that point already.
  3981. # Even if this section looks crufty: it has the advantage of
  3982. # actually working.
  3983. break;;
  3984. * )
  3985. break;;
  3986. esac
  3987. done
  3988. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3989. else
  3990. ac_file=''
  3991. fi
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3993. $as_echo "$ac_file" >&6; }
  3994. if test -z "$ac_file"; then :
  3995. $as_echo "$as_me: failed program was:" >&5
  3996. sed 's/^/| /' conftest.$ac_ext >&5
  3997. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3998. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3999. { as_fn_set_status 77
  4000. as_fn_error "C compiler cannot create executables
  4001. See \`config.log' for more details." "$LINENO" 5; }; }
  4002. fi
  4003. ac_exeext=$ac_cv_exeext
  4004. # Check that the compiler produces executables we can run. If not, either
  4005. # the compiler is broken, or we cross compile.
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4007. $as_echo_n "checking whether the C compiler works... " >&6; }
  4008. # If not cross compiling, check that we can run a simple program.
  4009. if test "$cross_compiling" != yes; then
  4010. if { ac_try='./$ac_file'
  4011. { { case "(($ac_try" in
  4012. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4013. *) ac_try_echo=$ac_try;;
  4014. esac
  4015. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4016. $as_echo "$ac_try_echo"; } >&5
  4017. (eval "$ac_try") 2>&5
  4018. ac_status=$?
  4019. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4020. test $ac_status = 0; }; }; then
  4021. cross_compiling=no
  4022. else
  4023. if test "$cross_compiling" = maybe; then
  4024. cross_compiling=yes
  4025. else
  4026. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4028. as_fn_error "cannot run C compiled programs.
  4029. If you meant to cross compile, use \`--host'.
  4030. See \`config.log' for more details." "$LINENO" 5; }
  4031. fi
  4032. fi
  4033. fi
  4034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4035. $as_echo "yes" >&6; }
  4036. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  4037. ac_clean_files=$ac_clean_files_save
  4038. # Check that the compiler produces executables we can run. If not, either
  4039. # the compiler is broken, or we cross compile.
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4041. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4043. $as_echo "$cross_compiling" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4045. $as_echo_n "checking for suffix of executables... " >&6; }
  4046. if { { ac_try="$ac_link"
  4047. case "(($ac_try" in
  4048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4049. *) ac_try_echo=$ac_try;;
  4050. esac
  4051. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4052. $as_echo "$ac_try_echo"; } >&5
  4053. (eval "$ac_link") 2>&5
  4054. ac_status=$?
  4055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4056. test $ac_status = 0; }; then :
  4057. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4058. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4059. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4060. # `rm'.
  4061. for ac_file in conftest.exe conftest conftest.*; do
  4062. test -f "$ac_file" || continue
  4063. case $ac_file in
  4064. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4065. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4066. break;;
  4067. * ) break;;
  4068. esac
  4069. done
  4070. else
  4071. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4072. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4073. as_fn_error "cannot compute suffix of executables: cannot compile and link
  4074. See \`config.log' for more details." "$LINENO" 5; }
  4075. fi
  4076. rm -f conftest$ac_cv_exeext
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4078. $as_echo "$ac_cv_exeext" >&6; }
  4079. rm -f conftest.$ac_ext
  4080. EXEEXT=$ac_cv_exeext
  4081. ac_exeext=$EXEEXT
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4083. $as_echo_n "checking for suffix of object files... " >&6; }
  4084. if test "${ac_cv_objext+set}" = set; then :
  4085. $as_echo_n "(cached) " >&6
  4086. else
  4087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4088. /* end confdefs.h. */
  4089. int
  4090. main ()
  4091. {
  4092. ;
  4093. return 0;
  4094. }
  4095. _ACEOF
  4096. rm -f conftest.o conftest.obj
  4097. if { { ac_try="$ac_compile"
  4098. case "(($ac_try" in
  4099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4100. *) ac_try_echo=$ac_try;;
  4101. esac
  4102. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4103. $as_echo "$ac_try_echo"; } >&5
  4104. (eval "$ac_compile") 2>&5
  4105. ac_status=$?
  4106. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4107. test $ac_status = 0; }; then :
  4108. for ac_file in conftest.o conftest.obj conftest.*; do
  4109. test -f "$ac_file" || continue;
  4110. case $ac_file in
  4111. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4112. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4113. break;;
  4114. esac
  4115. done
  4116. else
  4117. $as_echo "$as_me: failed program was:" >&5
  4118. sed 's/^/| /' conftest.$ac_ext >&5
  4119. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4121. as_fn_error "cannot compute suffix of object files: cannot compile
  4122. See \`config.log' for more details." "$LINENO" 5; }
  4123. fi
  4124. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4125. fi
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4127. $as_echo "$ac_cv_objext" >&6; }
  4128. OBJEXT=$ac_cv_objext
  4129. ac_objext=$OBJEXT
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4131. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4132. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int
  4138. main ()
  4139. {
  4140. #ifndef __GNUC__
  4141. choke me
  4142. #endif
  4143. ;
  4144. return 0;
  4145. }
  4146. _ACEOF
  4147. if ac_fn_c_try_compile "$LINENO"; then :
  4148. ac_compiler_gnu=yes
  4149. else
  4150. ac_compiler_gnu=no
  4151. fi
  4152. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4153. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4154. fi
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4156. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4157. if test $ac_compiler_gnu = yes; then
  4158. GCC=yes
  4159. else
  4160. GCC=
  4161. fi
  4162. ac_test_CFLAGS=${CFLAGS+set}
  4163. ac_save_CFLAGS=$CFLAGS
  4164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4165. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4166. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4167. $as_echo_n "(cached) " >&6
  4168. else
  4169. ac_save_c_werror_flag=$ac_c_werror_flag
  4170. ac_c_werror_flag=yes
  4171. ac_cv_prog_cc_g=no
  4172. CFLAGS="-g"
  4173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4174. /* end confdefs.h. */
  4175. int
  4176. main ()
  4177. {
  4178. ;
  4179. return 0;
  4180. }
  4181. _ACEOF
  4182. if ac_fn_c_try_compile "$LINENO"; then :
  4183. ac_cv_prog_cc_g=yes
  4184. else
  4185. CFLAGS=""
  4186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4187. /* end confdefs.h. */
  4188. int
  4189. main ()
  4190. {
  4191. ;
  4192. return 0;
  4193. }
  4194. _ACEOF
  4195. if ac_fn_c_try_compile "$LINENO"; then :
  4196. else
  4197. ac_c_werror_flag=$ac_save_c_werror_flag
  4198. CFLAGS="-g"
  4199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4200. /* end confdefs.h. */
  4201. int
  4202. main ()
  4203. {
  4204. ;
  4205. return 0;
  4206. }
  4207. _ACEOF
  4208. if ac_fn_c_try_compile "$LINENO"; then :
  4209. ac_cv_prog_cc_g=yes
  4210. fi
  4211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4212. fi
  4213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4214. fi
  4215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4216. ac_c_werror_flag=$ac_save_c_werror_flag
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4219. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4220. if test "$ac_test_CFLAGS" = set; then
  4221. CFLAGS=$ac_save_CFLAGS
  4222. elif test $ac_cv_prog_cc_g = yes; then
  4223. if test "$GCC" = yes; then
  4224. CFLAGS="-g -O2"
  4225. else
  4226. CFLAGS="-g"
  4227. fi
  4228. else
  4229. if test "$GCC" = yes; then
  4230. CFLAGS="-O2"
  4231. else
  4232. CFLAGS=
  4233. fi
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4236. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4237. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4238. $as_echo_n "(cached) " >&6
  4239. else
  4240. ac_cv_prog_cc_c89=no
  4241. ac_save_CC=$CC
  4242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4243. /* end confdefs.h. */
  4244. #include <stdarg.h>
  4245. #include <stdio.h>
  4246. #include <sys/types.h>
  4247. #include <sys/stat.h>
  4248. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4249. struct buf { int x; };
  4250. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4251. static char *e (p, i)
  4252. char **p;
  4253. int i;
  4254. {
  4255. return p[i];
  4256. }
  4257. static char *f (char * (*g) (char **, int), char **p, ...)
  4258. {
  4259. char *s;
  4260. va_list v;
  4261. va_start (v,p);
  4262. s = g (p, va_arg (v,int));
  4263. va_end (v);
  4264. return s;
  4265. }
  4266. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4267. function prototypes and stuff, but not '\xHH' hex character constants.
  4268. These don't provoke an error unfortunately, instead are silently treated
  4269. as 'x'. The following induces an error, until -std is added to get
  4270. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4271. array size at least. It's necessary to write '\x00'==0 to get something
  4272. that's true only with -std. */
  4273. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4274. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4275. inside strings and character constants. */
  4276. #define FOO(x) 'x'
  4277. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4278. int test (int i, double x);
  4279. struct s1 {int (*f) (int a);};
  4280. struct s2 {int (*f) (double a);};
  4281. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4282. int argc;
  4283. char **argv;
  4284. int
  4285. main ()
  4286. {
  4287. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4288. ;
  4289. return 0;
  4290. }
  4291. _ACEOF
  4292. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4293. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4294. do
  4295. CC="$ac_save_CC $ac_arg"
  4296. if ac_fn_c_try_compile "$LINENO"; then :
  4297. ac_cv_prog_cc_c89=$ac_arg
  4298. fi
  4299. rm -f core conftest.err conftest.$ac_objext
  4300. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4301. done
  4302. rm -f conftest.$ac_ext
  4303. CC=$ac_save_CC
  4304. fi
  4305. # AC_CACHE_VAL
  4306. case "x$ac_cv_prog_cc_c89" in
  4307. x)
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4309. $as_echo "none needed" >&6; } ;;
  4310. xno)
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4312. $as_echo "unsupported" >&6; } ;;
  4313. *)
  4314. CC="$CC $ac_cv_prog_cc_c89"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4316. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4317. esac
  4318. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4319. fi
  4320. ac_ext=c
  4321. ac_cpp='$CPP $CPPFLAGS'
  4322. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4325. ac_ext=cpp
  4326. ac_cpp='$CXXCPP $CPPFLAGS'
  4327. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4328. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4329. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4330. if test -z "$CXX"; then
  4331. if test -n "$CCC"; then
  4332. CXX=$CCC
  4333. else
  4334. if test -n "$ac_tool_prefix"; then
  4335. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4336. do
  4337. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4338. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4340. $as_echo_n "checking for $ac_word... " >&6; }
  4341. if test "${ac_cv_prog_CXX+set}" = set; then :
  4342. $as_echo_n "(cached) " >&6
  4343. else
  4344. if test -n "$CXX"; then
  4345. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4346. else
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH
  4349. do
  4350. IFS=$as_save_IFS
  4351. test -z "$as_dir" && as_dir=.
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4354. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4355. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4356. break 2
  4357. fi
  4358. done
  4359. done
  4360. IFS=$as_save_IFS
  4361. fi
  4362. fi
  4363. CXX=$ac_cv_prog_CXX
  4364. if test -n "$CXX"; then
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4366. $as_echo "$CXX" >&6; }
  4367. else
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4369. $as_echo "no" >&6; }
  4370. fi
  4371. test -n "$CXX" && break
  4372. done
  4373. fi
  4374. if test -z "$CXX"; then
  4375. ac_ct_CXX=$CXX
  4376. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4377. do
  4378. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4379. set dummy $ac_prog; ac_word=$2
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4381. $as_echo_n "checking for $ac_word... " >&6; }
  4382. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -n "$ac_ct_CXX"; then
  4386. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4387. else
  4388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4389. for as_dir in $PATH
  4390. do
  4391. IFS=$as_save_IFS
  4392. test -z "$as_dir" && as_dir=.
  4393. for ac_exec_ext in '' $ac_executable_extensions; do
  4394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4395. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4397. break 2
  4398. fi
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. fi
  4403. fi
  4404. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4405. if test -n "$ac_ct_CXX"; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4407. $as_echo "$ac_ct_CXX" >&6; }
  4408. else
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4410. $as_echo "no" >&6; }
  4411. fi
  4412. test -n "$ac_ct_CXX" && break
  4413. done
  4414. if test "x$ac_ct_CXX" = x; then
  4415. CXX="g++"
  4416. else
  4417. case $cross_compiling:$ac_tool_warned in
  4418. yes:)
  4419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4421. ac_tool_warned=yes ;;
  4422. esac
  4423. CXX=$ac_ct_CXX
  4424. fi
  4425. fi
  4426. fi
  4427. fi
  4428. # Provide some information about the compiler.
  4429. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4430. set X $ac_compile
  4431. ac_compiler=$2
  4432. for ac_option in --version -v -V -qversion; do
  4433. { { ac_try="$ac_compiler $ac_option >&5"
  4434. case "(($ac_try" in
  4435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4436. *) ac_try_echo=$ac_try;;
  4437. esac
  4438. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4439. $as_echo "$ac_try_echo"; } >&5
  4440. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4441. ac_status=$?
  4442. if test -s conftest.err; then
  4443. sed '10a\
  4444. ... rest of stderr output deleted ...
  4445. 10q' conftest.err >conftest.er1
  4446. cat conftest.er1 >&5
  4447. rm -f conftest.er1 conftest.err
  4448. fi
  4449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4450. test $ac_status = 0; }
  4451. done
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4453. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4454. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4458. /* end confdefs.h. */
  4459. int
  4460. main ()
  4461. {
  4462. #ifndef __GNUC__
  4463. choke me
  4464. #endif
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. if ac_fn_cxx_try_compile "$LINENO"; then :
  4470. ac_compiler_gnu=yes
  4471. else
  4472. ac_compiler_gnu=no
  4473. fi
  4474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4475. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4476. fi
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4478. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4479. if test $ac_compiler_gnu = yes; then
  4480. GXX=yes
  4481. else
  4482. GXX=
  4483. fi
  4484. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4485. ac_save_CXXFLAGS=$CXXFLAGS
  4486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4487. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4488. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4492. ac_cxx_werror_flag=yes
  4493. ac_cv_prog_cxx_g=no
  4494. CXXFLAGS="-g"
  4495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4496. /* end confdefs.h. */
  4497. int
  4498. main ()
  4499. {
  4500. ;
  4501. return 0;
  4502. }
  4503. _ACEOF
  4504. if ac_fn_cxx_try_compile "$LINENO"; then :
  4505. ac_cv_prog_cxx_g=yes
  4506. else
  4507. CXXFLAGS=""
  4508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4509. /* end confdefs.h. */
  4510. int
  4511. main ()
  4512. {
  4513. ;
  4514. return 0;
  4515. }
  4516. _ACEOF
  4517. if ac_fn_cxx_try_compile "$LINENO"; then :
  4518. else
  4519. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4520. CXXFLAGS="-g"
  4521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4522. /* end confdefs.h. */
  4523. int
  4524. main ()
  4525. {
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. if ac_fn_cxx_try_compile "$LINENO"; then :
  4531. ac_cv_prog_cxx_g=yes
  4532. fi
  4533. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4534. fi
  4535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4536. fi
  4537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4538. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4539. fi
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4541. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4542. if test "$ac_test_CXXFLAGS" = set; then
  4543. CXXFLAGS=$ac_save_CXXFLAGS
  4544. elif test $ac_cv_prog_cxx_g = yes; then
  4545. if test "$GXX" = yes; then
  4546. CXXFLAGS="-g -O2"
  4547. else
  4548. CXXFLAGS="-g"
  4549. fi
  4550. else
  4551. if test "$GXX" = yes; then
  4552. CXXFLAGS="-O2"
  4553. else
  4554. CXXFLAGS=
  4555. fi
  4556. fi
  4557. ac_ext=c
  4558. ac_cpp='$CPP $CPPFLAGS'
  4559. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4560. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4561. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4562. # We must set the default linker to the linker used by gcc for the correct
  4563. # operation of libtool. If LD is not defined and we are using gcc, try to
  4564. # set the LD default to the ld used by gcc.
  4565. if test -z "$LD"; then
  4566. if test "$GCC" = yes; then
  4567. case $build in
  4568. *-*-mingw*)
  4569. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4570. *)
  4571. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4572. esac
  4573. case $gcc_prog_ld in
  4574. # Accept absolute paths.
  4575. [\\/]* | [A-Za-z]:[\\/]*)
  4576. LD="$gcc_prog_ld" ;;
  4577. esac
  4578. fi
  4579. fi
  4580. # Check whether -static-libstdc++ -static-libgcc is supported.
  4581. have_static_libs=no
  4582. if test "$GCC" = yes; then
  4583. saved_LDFLAGS="$LDFLAGS"
  4584. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4586. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4587. ac_ext=cpp
  4588. ac_cpp='$CXXCPP $CPPFLAGS'
  4589. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4590. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4591. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4593. /* end confdefs.h. */
  4594. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4595. #error -static-libstdc++ not implemented
  4596. #endif
  4597. int main() {}
  4598. _ACEOF
  4599. if ac_fn_cxx_try_link "$LINENO"; then :
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4601. $as_echo "yes" >&6; }; have_static_libs=yes
  4602. else
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4604. $as_echo "no" >&6; }
  4605. fi
  4606. rm -f core conftest.err conftest.$ac_objext \
  4607. conftest$ac_exeext conftest.$ac_ext
  4608. ac_ext=c
  4609. ac_cpp='$CPP $CPPFLAGS'
  4610. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4611. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4612. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4613. LDFLAGS="$saved_LDFLAGS"
  4614. fi
  4615. if test -n "$ac_tool_prefix"; then
  4616. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4617. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4619. $as_echo_n "checking for $ac_word... " >&6; }
  4620. if test "${ac_cv_prog_GNATBIND+set}" = set; then :
  4621. $as_echo_n "(cached) " >&6
  4622. else
  4623. if test -n "$GNATBIND"; then
  4624. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4625. else
  4626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4627. for as_dir in $PATH
  4628. do
  4629. IFS=$as_save_IFS
  4630. test -z "$as_dir" && as_dir=.
  4631. for ac_exec_ext in '' $ac_executable_extensions; do
  4632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4633. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4635. break 2
  4636. fi
  4637. done
  4638. done
  4639. IFS=$as_save_IFS
  4640. fi
  4641. fi
  4642. GNATBIND=$ac_cv_prog_GNATBIND
  4643. if test -n "$GNATBIND"; then
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4645. $as_echo "$GNATBIND" >&6; }
  4646. else
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4648. $as_echo "no" >&6; }
  4649. fi
  4650. fi
  4651. if test -z "$ac_cv_prog_GNATBIND"; then
  4652. ac_ct_GNATBIND=$GNATBIND
  4653. # Extract the first word of "gnatbind", so it can be a program name with args.
  4654. set dummy gnatbind; ac_word=$2
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4656. $as_echo_n "checking for $ac_word... " >&6; }
  4657. if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -n "$ac_ct_GNATBIND"; then
  4661. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  4662. else
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4670. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  4671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4672. break 2
  4673. fi
  4674. done
  4675. done
  4676. IFS=$as_save_IFS
  4677. fi
  4678. fi
  4679. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  4680. if test -n "$ac_ct_GNATBIND"; then
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  4682. $as_echo "$ac_ct_GNATBIND" >&6; }
  4683. else
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4685. $as_echo "no" >&6; }
  4686. fi
  4687. if test "x$ac_ct_GNATBIND" = x; then
  4688. GNATBIND="no"
  4689. else
  4690. case $cross_compiling:$ac_tool_warned in
  4691. yes:)
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4694. ac_tool_warned=yes ;;
  4695. esac
  4696. GNATBIND=$ac_ct_GNATBIND
  4697. fi
  4698. else
  4699. GNATBIND="$ac_cv_prog_GNATBIND"
  4700. fi
  4701. if test -n "$ac_tool_prefix"; then
  4702. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  4703. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4705. $as_echo_n "checking for $ac_word... " >&6; }
  4706. if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
  4707. $as_echo_n "(cached) " >&6
  4708. else
  4709. if test -n "$GNATMAKE"; then
  4710. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  4711. else
  4712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4713. for as_dir in $PATH
  4714. do
  4715. IFS=$as_save_IFS
  4716. test -z "$as_dir" && as_dir=.
  4717. for ac_exec_ext in '' $ac_executable_extensions; do
  4718. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4719. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  4720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4721. break 2
  4722. fi
  4723. done
  4724. done
  4725. IFS=$as_save_IFS
  4726. fi
  4727. fi
  4728. GNATMAKE=$ac_cv_prog_GNATMAKE
  4729. if test -n "$GNATMAKE"; then
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  4731. $as_echo "$GNATMAKE" >&6; }
  4732. else
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4734. $as_echo "no" >&6; }
  4735. fi
  4736. fi
  4737. if test -z "$ac_cv_prog_GNATMAKE"; then
  4738. ac_ct_GNATMAKE=$GNATMAKE
  4739. # Extract the first word of "gnatmake", so it can be a program name with args.
  4740. set dummy gnatmake; ac_word=$2
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4742. $as_echo_n "checking for $ac_word... " >&6; }
  4743. if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
  4744. $as_echo_n "(cached) " >&6
  4745. else
  4746. if test -n "$ac_ct_GNATMAKE"; then
  4747. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  4748. else
  4749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4750. for as_dir in $PATH
  4751. do
  4752. IFS=$as_save_IFS
  4753. test -z "$as_dir" && as_dir=.
  4754. for ac_exec_ext in '' $ac_executable_extensions; do
  4755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4756. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  4757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4758. break 2
  4759. fi
  4760. done
  4761. done
  4762. IFS=$as_save_IFS
  4763. fi
  4764. fi
  4765. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  4766. if test -n "$ac_ct_GNATMAKE"; then
  4767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  4768. $as_echo "$ac_ct_GNATMAKE" >&6; }
  4769. else
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4771. $as_echo "no" >&6; }
  4772. fi
  4773. if test "x$ac_ct_GNATMAKE" = x; then
  4774. GNATMAKE="no"
  4775. else
  4776. case $cross_compiling:$ac_tool_warned in
  4777. yes:)
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4780. ac_tool_warned=yes ;;
  4781. esac
  4782. GNATMAKE=$ac_ct_GNATMAKE
  4783. fi
  4784. else
  4785. GNATMAKE="$ac_cv_prog_GNATMAKE"
  4786. fi
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  4788. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  4789. if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
  4790. $as_echo_n "(cached) " >&6
  4791. else
  4792. cat >conftest.adb <<EOF
  4793. procedure conftest is begin null; end conftest;
  4794. EOF
  4795. acx_cv_cc_gcc_supports_ada=no
  4796. # There is a bug in old released versions of GCC which causes the
  4797. # driver to exit successfully when the appropriate language module
  4798. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  4799. # Therefore we must check for the error message as well as an
  4800. # unsuccessful exit.
  4801. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  4802. # given a .adb file, but produce no object file. So we must check
  4803. # if an object file was really produced to guard against this.
  4804. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  4805. if test x"$errors" = x && test -f conftest.$ac_objext; then
  4806. acx_cv_cc_gcc_supports_ada=yes
  4807. fi
  4808. rm -f conftest.*
  4809. fi
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  4811. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  4812. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  4813. have_gnat=yes
  4814. else
  4815. have_gnat=no
  4816. fi
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  4818. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  4819. if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
  4820. $as_echo_n "(cached) " >&6
  4821. else
  4822. echo abfoo >t1
  4823. echo cdfoo >t2
  4824. gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  4825. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  4826. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  4827. :
  4828. else
  4829. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  4830. fi
  4831. fi
  4832. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  4833. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  4834. :
  4835. else
  4836. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  4837. fi
  4838. fi
  4839. rm t1 t2
  4840. fi
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  4842. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  4843. do_compare="$gcc_cv_prog_cmp_skip"
  4844. # Check whether --enable-bootstrap was given.
  4845. if test "${enable_bootstrap+set}" = set; then :
  4846. enableval=$enable_bootstrap;
  4847. else
  4848. enable_bootstrap=default
  4849. fi
  4850. # Issue errors and warnings for invalid/strange bootstrap combinations.
  4851. if test -r $srcdir/gcc/configure; then
  4852. have_compiler=yes
  4853. else
  4854. have_compiler=no
  4855. fi
  4856. case "$have_compiler:$host:$target:$enable_bootstrap" in
  4857. *:*:*:no) ;;
  4858. # Default behavior. Enable bootstrap if we have a compiler
  4859. # and we are in a native configuration.
  4860. yes:$build:$build:default)
  4861. enable_bootstrap=yes ;;
  4862. *:*:*:default)
  4863. enable_bootstrap=no ;;
  4864. # We have a compiler and we are in a native configuration, bootstrap is ok
  4865. yes:$build:$build:yes)
  4866. ;;
  4867. # Other configurations, but we have a compiler. Assume the user knows
  4868. # what he's doing.
  4869. yes:*:*:yes)
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  4871. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  4872. ;;
  4873. # No compiler: if they passed --enable-bootstrap explicitly, fail
  4874. no:*:*:yes)
  4875. as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  4876. # Fail if wrong command line
  4877. *)
  4878. as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
  4879. ;;
  4880. esac
  4881. # When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
  4882. # C++98 compiler can still start the bootstrap.
  4883. if test "$enable_bootstrap:$GXX" = "yes:yes"; then
  4884. CXX="$CXX -std=gnu++98"
  4885. fi
  4886. # Used for setting $lt_cv_objdir
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4888. $as_echo_n "checking for objdir... " >&6; }
  4889. if test "${lt_cv_objdir+set}" = set; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. rm -f .libs 2>/dev/null
  4893. mkdir .libs 2>/dev/null
  4894. if test -d .libs; then
  4895. lt_cv_objdir=.libs
  4896. else
  4897. # MS-DOS does not allow filenames that begin with a dot.
  4898. lt_cv_objdir=_libs
  4899. fi
  4900. rmdir .libs 2>/dev/null
  4901. fi
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4903. $as_echo "$lt_cv_objdir" >&6; }
  4904. objdir=$lt_cv_objdir
  4905. cat >>confdefs.h <<_ACEOF
  4906. #define LT_OBJDIR "$lt_cv_objdir/"
  4907. _ACEOF
  4908. # Check for GMP, MPFR and MPC
  4909. gmplibs="-lmpc -lmpfr -lgmp"
  4910. gmpinc=
  4911. have_gmp=no
  4912. # Specify a location for mpc
  4913. # check for this first so it ends up on the link line before mpfr.
  4914. # Check whether --with-mpc was given.
  4915. if test "${with_mpc+set}" = set; then :
  4916. withval=$with_mpc;
  4917. fi
  4918. # Check whether --with-mpc-include was given.
  4919. if test "${with_mpc_include+set}" = set; then :
  4920. withval=$with_mpc_include;
  4921. fi
  4922. # Check whether --with-mpc-lib was given.
  4923. if test "${with_mpc_lib+set}" = set; then :
  4924. withval=$with_mpc_lib;
  4925. fi
  4926. if test "x$with_mpc" != x; then
  4927. gmplibs="-L$with_mpc/lib $gmplibs"
  4928. gmpinc="-I$with_mpc/include $gmpinc"
  4929. fi
  4930. if test "x$with_mpc_include" != x; then
  4931. gmpinc="-I$with_mpc_include $gmpinc"
  4932. fi
  4933. if test "x$with_mpc_lib" != x; then
  4934. gmplibs="-L$with_mpc_lib $gmplibs"
  4935. fi
  4936. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  4937. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  4938. gmpinc='-I$$s/mpc/src '"$gmpinc"
  4939. # Do not test the mpc version. Assume that it is sufficient, since
  4940. # it is in the source tree, and the library has not been built yet
  4941. # but it would be included on the link line in the version check below
  4942. # hence making the test fail.
  4943. have_gmp=yes
  4944. fi
  4945. # Specify a location for mpfr
  4946. # check for this first so it ends up on the link line before gmp.
  4947. # Check whether --with-mpfr-dir was given.
  4948. if test "${with_mpfr_dir+set}" = set; then :
  4949. withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
  4950. Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
  4951. fi
  4952. # Check whether --with-mpfr was given.
  4953. if test "${with_mpfr+set}" = set; then :
  4954. withval=$with_mpfr;
  4955. fi
  4956. # Check whether --with-mpfr-include was given.
  4957. if test "${with_mpfr_include+set}" = set; then :
  4958. withval=$with_mpfr_include;
  4959. fi
  4960. # Check whether --with-mpfr-lib was given.
  4961. if test "${with_mpfr_lib+set}" = set; then :
  4962. withval=$with_mpfr_lib;
  4963. fi
  4964. if test "x$with_mpfr" != x; then
  4965. gmplibs="-L$with_mpfr/lib $gmplibs"
  4966. gmpinc="-I$with_mpfr/include $gmpinc"
  4967. fi
  4968. if test "x$with_mpfr_include" != x; then
  4969. gmpinc="-I$with_mpfr_include $gmpinc"
  4970. fi
  4971. if test "x$with_mpfr_lib" != x; then
  4972. gmplibs="-L$with_mpfr_lib $gmplibs"
  4973. fi
  4974. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  4975. # MPFR v3.1.0 moved the sources into a src sub-directory.
  4976. if ! test -d ${srcdir}/mpfr/src; then
  4977. as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
  4978. fi
  4979. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  4980. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  4981. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  4982. # Do not test the mpfr version. Assume that it is sufficient, since
  4983. # it is in the source tree, and the library has not been built yet
  4984. # but it would be included on the link line in the version check below
  4985. # hence making the test fail.
  4986. have_gmp=yes
  4987. fi
  4988. # Specify a location for gmp
  4989. # Check whether --with-gmp-dir was given.
  4990. if test "${with_gmp_dir+set}" = set; then :
  4991. withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
  4992. Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
  4993. fi
  4994. # Check whether --with-gmp was given.
  4995. if test "${with_gmp+set}" = set; then :
  4996. withval=$with_gmp;
  4997. fi
  4998. # Check whether --with-gmp-include was given.
  4999. if test "${with_gmp_include+set}" = set; then :
  5000. withval=$with_gmp_include;
  5001. fi
  5002. # Check whether --with-gmp-lib was given.
  5003. if test "${with_gmp_lib+set}" = set; then :
  5004. withval=$with_gmp_lib;
  5005. fi
  5006. if test "x$with_gmp" != x; then
  5007. gmplibs="-L$with_gmp/lib $gmplibs"
  5008. gmpinc="-I$with_gmp/include $gmpinc"
  5009. fi
  5010. if test "x$with_gmp_include" != x; then
  5011. gmpinc="-I$with_gmp_include $gmpinc"
  5012. fi
  5013. if test "x$with_gmp_lib" != x; then
  5014. gmplibs="-L$with_gmp_lib $gmplibs"
  5015. fi
  5016. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  5017. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  5018. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  5019. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5020. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  5021. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  5022. # Do not test the gmp version. Assume that it is sufficient, since
  5023. # it is in the source tree, and the library has not been built yet
  5024. # but it would be included on the link line in the version check below
  5025. # hence making the test fail.
  5026. have_gmp=yes
  5027. fi
  5028. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  5029. have_gmp=yes
  5030. saved_CFLAGS="$CFLAGS"
  5031. CFLAGS="$CFLAGS $gmpinc"
  5032. # Check for the recommended and required versions of GMP.
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  5034. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  5035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5036. /* end confdefs.h. */
  5037. #include "gmp.h"
  5038. int
  5039. main ()
  5040. {
  5041. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5042. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5043. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  5044. choke me
  5045. #endif
  5046. ;
  5047. return 0;
  5048. }
  5049. _ACEOF
  5050. if ac_fn_c_try_compile "$LINENO"; then :
  5051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5052. /* end confdefs.h. */
  5053. #include <gmp.h>
  5054. int
  5055. main ()
  5056. {
  5057. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  5058. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  5059. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  5060. choke me
  5061. #endif
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. if ac_fn_c_try_compile "$LINENO"; then :
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5068. $as_echo "yes" >&6; }
  5069. else
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5071. $as_echo "buggy but acceptable" >&6; }
  5072. fi
  5073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5074. else
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5076. $as_echo "no" >&6; }; have_gmp=no
  5077. fi
  5078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5079. # If we have GMP, check the MPFR version.
  5080. if test x"$have_gmp" = xyes; then
  5081. # Check for the recommended and required versions of MPFR.
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  5083. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  5084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5085. /* end confdefs.h. */
  5086. #include <gmp.h>
  5087. #include <mpfr.h>
  5088. int
  5089. main ()
  5090. {
  5091. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
  5092. choke me
  5093. #endif
  5094. ;
  5095. return 0;
  5096. }
  5097. _ACEOF
  5098. if ac_fn_c_try_compile "$LINENO"; then :
  5099. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5100. /* end confdefs.h. */
  5101. #include <gmp.h>
  5102. #include <mpfr.h>
  5103. int
  5104. main ()
  5105. {
  5106. #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
  5107. choke me
  5108. #endif
  5109. ;
  5110. return 0;
  5111. }
  5112. _ACEOF
  5113. if ac_fn_c_try_compile "$LINENO"; then :
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5115. $as_echo "yes" >&6; }
  5116. else
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5118. $as_echo "buggy but acceptable" >&6; }
  5119. fi
  5120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5121. else
  5122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5123. $as_echo "no" >&6; }; have_gmp=no
  5124. fi
  5125. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5126. fi
  5127. # Check for the MPC header version.
  5128. if test x"$have_gmp" = xyes ; then
  5129. # Check for the recommended and required versions of MPC.
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  5131. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  5132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5133. /* end confdefs.h. */
  5134. #include <mpc.h>
  5135. int
  5136. main ()
  5137. {
  5138. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  5139. choke me
  5140. #endif
  5141. ;
  5142. return 0;
  5143. }
  5144. _ACEOF
  5145. if ac_fn_c_try_compile "$LINENO"; then :
  5146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5147. /* end confdefs.h. */
  5148. #include <mpc.h>
  5149. int
  5150. main ()
  5151. {
  5152. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  5153. choke me
  5154. #endif
  5155. ;
  5156. return 0;
  5157. }
  5158. _ACEOF
  5159. if ac_fn_c_try_compile "$LINENO"; then :
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5161. $as_echo "yes" >&6; }
  5162. else
  5163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  5164. $as_echo "buggy but acceptable" >&6; }
  5165. fi
  5166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5167. else
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5169. $as_echo "no" >&6; }; have_gmp=no
  5170. fi
  5171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5172. fi
  5173. # Now check the MPFR library.
  5174. if test x"$have_gmp" = xyes; then
  5175. saved_LIBS="$LIBS"
  5176. LIBS="$LIBS $gmplibs"
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  5178. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  5179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5180. /* end confdefs.h. */
  5181. #include <mpc.h>
  5182. int
  5183. main ()
  5184. {
  5185. mpfr_t n;
  5186. mpfr_t x;
  5187. mpc_t c;
  5188. int t;
  5189. mpfr_init (n);
  5190. mpfr_init (x);
  5191. mpfr_atan2 (n, n, x, GMP_RNDN);
  5192. mpfr_erfc (n, x, GMP_RNDN);
  5193. mpfr_subnormalize (x, t, GMP_RNDN);
  5194. mpfr_clear(n);
  5195. mpfr_clear(x);
  5196. mpc_init2 (c, 53);
  5197. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  5198. mpc_cosh (c, c, MPC_RNDNN);
  5199. mpc_pow (c, c, c, MPC_RNDNN);
  5200. mpc_acosh (c, c, MPC_RNDNN);
  5201. mpc_clear (c);
  5202. ;
  5203. return 0;
  5204. }
  5205. _ACEOF
  5206. if ac_fn_c_try_link "$LINENO"; then :
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5208. $as_echo "yes" >&6; }
  5209. else
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5211. $as_echo "no" >&6; }; have_gmp=no
  5212. fi
  5213. rm -f core conftest.err conftest.$ac_objext \
  5214. conftest$ac_exeext conftest.$ac_ext
  5215. LIBS="$saved_LIBS"
  5216. fi
  5217. CFLAGS="$saved_CFLAGS"
  5218. # The library versions listed in the error message below should match
  5219. # the HARD-minimums enforced above.
  5220. if test x$have_gmp != xyes; then
  5221. as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
  5222. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  5223. their locations. Source code for these libraries can be found at
  5224. their respective hosting sites as well as at
  5225. ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
  5226. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  5227. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  5228. make sure that you have installed both the libraries and the header
  5229. files. They may be located in separate packages." "$LINENO" 5
  5230. fi
  5231. fi
  5232. # Flags needed for both GMP, MPFR and/or MPC.
  5233. # Libraries to use for stage1 or when not bootstrapping.
  5234. # Check whether --with-stage1-libs was given.
  5235. if test "${with_stage1_libs+set}" = set; then :
  5236. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5237. stage1_libs=
  5238. else
  5239. stage1_libs=$withval
  5240. fi
  5241. else
  5242. stage1_libs=
  5243. fi
  5244. # Linker flags to use for stage1 or when not bootstrapping.
  5245. # Check whether --with-stage1-ldflags was given.
  5246. if test "${with_stage1_ldflags+set}" = set; then :
  5247. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5248. stage1_ldflags=
  5249. else
  5250. stage1_ldflags=$withval
  5251. fi
  5252. else
  5253. stage1_ldflags=
  5254. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  5255. # if supported. But if the user explicitly specified the libraries to use,
  5256. # trust that they are doing what they want.
  5257. if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
  5258. stage1_ldflags="-static-libstdc++ -static-libgcc"
  5259. fi
  5260. fi
  5261. # Libraries to use for stage2 and later builds.
  5262. # Check whether --with-boot-libs was given.
  5263. if test "${with_boot_libs+set}" = set; then :
  5264. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  5265. poststage1_libs=
  5266. else
  5267. poststage1_libs=$withval
  5268. fi
  5269. else
  5270. poststage1_libs=
  5271. fi
  5272. # Linker flags to use for stage2 and later builds.
  5273. # Check whether --with-boot-ldflags was given.
  5274. if test "${with_boot_ldflags+set}" = set; then :
  5275. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  5276. poststage1_ldflags=
  5277. else
  5278. poststage1_ldflags=$withval
  5279. fi
  5280. else
  5281. poststage1_ldflags=
  5282. # In stages 2 and 3, default to linking libstdc++ and libgcc
  5283. # statically. But if the user explicitly specified the libraries to
  5284. # use, trust that they are doing what they want.
  5285. if test "$poststage1_libs" = ""; then
  5286. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  5287. fi
  5288. fi
  5289. # GCC GRAPHITE dependency isl.
  5290. # Basic setup is inlined here, actual checks are in config/isl.m4
  5291. # Check whether --with-isl was given.
  5292. if test "${with_isl+set}" = set; then :
  5293. withval=$with_isl;
  5294. fi
  5295. # Treat --without-isl as a request to disable
  5296. # GRAPHITE support and skip all following checks.
  5297. if test "x$with_isl" != "xno"; then
  5298. # Check for isl
  5299. # Check whether --with-isl-include was given.
  5300. if test "${with_isl_include+set}" = set; then :
  5301. withval=$with_isl_include;
  5302. fi
  5303. # Check whether --with-isl-lib was given.
  5304. if test "${with_isl_lib+set}" = set; then :
  5305. withval=$with_isl_lib;
  5306. fi
  5307. # Check whether --enable-isl-version-check was given.
  5308. if test "${enable_isl_version_check+set}" = set; then :
  5309. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  5310. else
  5311. ENABLE_ISL_CHECK=yes
  5312. fi
  5313. # Initialize isllibs and islinc.
  5314. case $with_isl in
  5315. no)
  5316. isllibs=
  5317. islinc=
  5318. ;;
  5319. "" | yes)
  5320. ;;
  5321. *)
  5322. isllibs="-L$with_isl/lib"
  5323. islinc="-I$with_isl/include"
  5324. ;;
  5325. esac
  5326. if test "x${with_isl_include}" != x ; then
  5327. islinc="-I$with_isl_include"
  5328. fi
  5329. if test "x${with_isl_lib}" != x; then
  5330. isllibs="-L$with_isl_lib"
  5331. fi
  5332. if test "x${islinc}" = x && test "x${isllibs}" = x \
  5333. && test -d ${srcdir}/isl; then
  5334. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  5335. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  5336. ENABLE_ISL_CHECK=no
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
  5338. $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
  5339. fi
  5340. isllibs="${isllibs} -lisl"
  5341. if test "${ENABLE_ISL_CHECK}" = yes ; then
  5342. _isl_saved_CFLAGS=$CFLAGS
  5343. _isl_saved_LDFLAGS=$LDFLAGS
  5344. _isl_saved_LIBS=$LIBS
  5345. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  5346. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
  5347. LIBS="${_isl_saved_LIBS} -lisl -lgmp"
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
  5349. $as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
  5350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5351. /* end confdefs.h. */
  5352. #include <isl/ctx.h>
  5353. int
  5354. main ()
  5355. {
  5356. isl_ctx_get_max_operations (isl_ctx_alloc ());
  5357. ;
  5358. return 0;
  5359. }
  5360. _ACEOF
  5361. if ac_fn_c_try_link "$LINENO"; then :
  5362. gcc_cv_isl=yes
  5363. else
  5364. gcc_cv_isl=no
  5365. fi
  5366. rm -f core conftest.err conftest.$ac_objext \
  5367. conftest$ac_exeext conftest.$ac_ext
  5368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  5369. $as_echo "$gcc_cv_isl" >&6; }
  5370. if test "${gcc_cv_isl}" = no ; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
  5372. $as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
  5373. fi
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
  5375. $as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
  5376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5377. /* end confdefs.h. */
  5378. #include <isl/schedule.h>
  5379. int
  5380. main ()
  5381. {
  5382. isl_options_set_schedule_serialize_sccs (NULL, 0);
  5383. ;
  5384. return 0;
  5385. }
  5386. _ACEOF
  5387. if ac_fn_c_try_link "$LINENO"; then :
  5388. ac_has_isl_options_set_schedule_serialize_sccs=yes
  5389. else
  5390. ac_has_isl_options_set_schedule_serialize_sccs=no
  5391. fi
  5392. rm -f core conftest.err conftest.$ac_objext \
  5393. conftest$ac_exeext conftest.$ac_ext
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
  5395. $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
  5396. if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
  5397. islver="0.15"
  5398. fi
  5399. CFLAGS=$_isl_saved_CFLAGS
  5400. LDFLAGS=$_isl_saved_LDFLAGS
  5401. LIBS=$_isl_saved_LIBS
  5402. fi
  5403. if test "x${with_isl}" = xno; then
  5404. graphite_requested=no
  5405. elif test "x${with_isl}" != x \
  5406. || test "x${with_isl_include}" != x \
  5407. || test "x${with_isl_lib}" != x ; then
  5408. graphite_requested=yes
  5409. else
  5410. graphite_requested=no
  5411. fi
  5412. if test "${gcc_cv_isl}" = no ; then
  5413. isllibs=
  5414. islinc=
  5415. fi
  5416. if test "${graphite_requested}" = yes \
  5417. && test "x${isllibs}" = x \
  5418. && test "x${islinc}" = x ; then
  5419. as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
  5420. fi
  5421. fi
  5422. # If the isl check failed, disable builds of in-tree variant of isl
  5423. if test "x$with_isl" = xno ||
  5424. test "x$gcc_cv_isl" = xno; then
  5425. noconfigdirs="$noconfigdirs isl"
  5426. islinc=
  5427. fi
  5428. # Check for LTO support.
  5429. # Check whether --enable-lto was given.
  5430. if test "${enable_lto+set}" = set; then :
  5431. enableval=$enable_lto; enable_lto=$enableval
  5432. else
  5433. enable_lto=yes; default_enable_lto=yes
  5434. fi
  5435. target_elf=no
  5436. case $target in
  5437. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  5438. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  5439. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
  5440. nvptx-*-none)
  5441. target_elf=no
  5442. ;;
  5443. *)
  5444. target_elf=yes
  5445. ;;
  5446. esac
  5447. if test $target_elf = yes; then :
  5448. # ELF platforms build the lto-plugin always.
  5449. build_lto_plugin=yes
  5450. else
  5451. if test x"$default_enable_lto" = x"yes" ; then
  5452. case $target in
  5453. *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
  5454. # On other non-ELF platforms, LTO has yet to be validated.
  5455. *) enable_lto=no ;;
  5456. esac
  5457. else
  5458. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  5459. # It would also be nice to check the binutils support, but we don't
  5460. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  5461. # warn during gcc/ subconfigure; unless you're bootstrapping with
  5462. # -flto it won't be needed until after installation anyway.
  5463. case $target in
  5464. *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
  5465. *) if test x"$enable_lto" = x"yes"; then
  5466. as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
  5467. fi
  5468. ;;
  5469. esac
  5470. fi
  5471. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  5472. # Build it unless LTO was explicitly disabled.
  5473. case $target in
  5474. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  5475. *) ;;
  5476. esac
  5477. fi
  5478. # Check whether --enable-linker-plugin-configure-flags was given.
  5479. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  5480. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  5481. else
  5482. extra_linker_plugin_configure_flags=
  5483. fi
  5484. # Check whether --enable-linker-plugin-flags was given.
  5485. if test "${enable_linker_plugin_flags+set}" = set; then :
  5486. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  5487. else
  5488. extra_linker_plugin_flags=
  5489. fi
  5490. # By default, C and C++ are the only stage 1 languages.
  5491. stage1_languages=,c,
  5492. # Target libraries that we bootstrap.
  5493. bootstrap_target_libs=,target-libgcc,
  5494. # Figure out what language subdirectories are present.
  5495. # Look if the user specified --enable-languages="..."; if not, use
  5496. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  5497. # go away some day.
  5498. # NB: embedded tabs in this IF block -- do not untabify
  5499. if test -d ${srcdir}/gcc; then
  5500. if test x"${enable_languages+set}" != xset; then
  5501. if test x"${LANGUAGES+set}" = xset; then
  5502. enable_languages="${LANGUAGES}"
  5503. echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  5504. else
  5505. enable_languages=all
  5506. fi
  5507. else
  5508. if test x"${enable_languages}" = x ||
  5509. test x"${enable_languages}" = xyes;
  5510. then
  5511. echo configure.ac: --enable-languages needs at least one language argument 1>&2
  5512. exit 1
  5513. fi
  5514. fi
  5515. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  5516. # 'f95' is the old name for the 'fortran' language. We issue a warning
  5517. # and make the substitution.
  5518. case ,${enable_languages}, in
  5519. *,f95,*)
  5520. echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  5521. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  5522. ;;
  5523. esac
  5524. # If bootstrapping, C++ must be enabled.
  5525. case ",$enable_languages,:$enable_bootstrap" in
  5526. *,c++,*:*) ;;
  5527. *:yes)
  5528. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  5529. enable_languages="${enable_languages},c++"
  5530. else
  5531. as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
  5532. fi
  5533. ;;
  5534. esac
  5535. # First scan to see if an enabled language requires some other language.
  5536. # We assume that a given config-lang.in will list all the language
  5537. # front ends it requires, even if some are required indirectly.
  5538. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5539. case ${lang_frag} in
  5540. ..) ;;
  5541. # The odd quoting in the next line works around
  5542. # an apparent bug in bash 1.12 on linux.
  5543. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5544. *)
  5545. # From the config-lang.in, get $language, $lang_requires, and
  5546. # $lang_requires_boot_languages.
  5547. language=
  5548. lang_requires=
  5549. lang_requires_boot_languages=
  5550. . ${lang_frag}
  5551. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  5552. case ,${enable_languages}, in
  5553. *,$other,*) ;;
  5554. *,all,*) ;;
  5555. *,$language,*)
  5556. echo " \`$other' language required by \`$language'; enabling" 1>&2
  5557. enable_languages="${enable_languages},${other}"
  5558. ;;
  5559. esac
  5560. done
  5561. for other in ${lang_requires_boot_languages} ; do
  5562. if test "$other" != "c"; then
  5563. case ,${enable_stage1_languages}, in
  5564. *,$other,*) ;;
  5565. *,all,*) ;;
  5566. *)
  5567. case ,${enable_languages}, in
  5568. *,$language,*)
  5569. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  5570. enable_stage1_languages="$enable_stage1_languages,${other}"
  5571. ;;
  5572. esac
  5573. ;;
  5574. esac
  5575. fi
  5576. done
  5577. ;;
  5578. esac
  5579. done
  5580. new_enable_languages=,c,
  5581. # If LTO is enabled, add the LTO front end.
  5582. if test "$enable_lto" = "yes" ; then
  5583. case ,${enable_languages}, in
  5584. *,lto,*) ;;
  5585. *) enable_languages="${enable_languages},lto" ;;
  5586. esac
  5587. if test "${build_lto_plugin}" = "yes" ; then
  5588. configdirs="$configdirs lto-plugin"
  5589. fi
  5590. fi
  5591. # If we're building an offloading compiler, add the LTO front end.
  5592. if test x"$enable_as_accelerator_for" != x ; then
  5593. case ,${enable_languages}, in
  5594. *,lto,*) ;;
  5595. *) enable_languages="${enable_languages},lto" ;;
  5596. esac
  5597. fi
  5598. missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
  5599. potential_languages=,c,
  5600. enabled_target_libs=
  5601. disabled_target_libs=
  5602. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  5603. case ${lang_frag} in
  5604. ..) ;;
  5605. # The odd quoting in the next line works around
  5606. # an apparent bug in bash 1.12 on linux.
  5607. ${srcdir}/gcc/[*]/config-lang.in) ;;
  5608. *)
  5609. # From the config-lang.in, get $language, $target_libs,
  5610. # $lang_dirs, $boot_language, and $build_by_default
  5611. language=
  5612. target_libs=
  5613. lang_dirs=
  5614. subdir_requires=
  5615. boot_language=no
  5616. build_by_default=yes
  5617. . ${lang_frag}
  5618. if test x${language} = x; then
  5619. echo "${lang_frag} doesn't set \$language." 1>&2
  5620. exit 1
  5621. fi
  5622. if test "$language" = "c++"; then
  5623. boot_language=yes
  5624. fi
  5625. add_this_lang=no
  5626. case ,${enable_languages}, in
  5627. *,${language},*)
  5628. # Language was explicitly selected; include it
  5629. # unless it is C, which is enabled by default.
  5630. if test "$language" != "c"; then
  5631. add_this_lang=yes
  5632. fi
  5633. ;;
  5634. *,all,*)
  5635. # 'all' was selected, select it if it is a default language
  5636. if test "$language" != "c"; then
  5637. add_this_lang=${build_by_default}
  5638. fi
  5639. ;;
  5640. esac
  5641. # Disable languages that need other directories if these aren't available.
  5642. for i in $subdir_requires; do
  5643. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  5644. case ,${enable_languages}, in
  5645. *,${language},*)
  5646. # Specifically requested language; tell them.
  5647. as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  5648. ;;
  5649. *)
  5650. # Silently disable.
  5651. add_this_lang=unsupported
  5652. ;;
  5653. esac
  5654. done
  5655. # Disable Ada if no preexisting GNAT is available.
  5656. case ,${enable_languages},:${language}:${have_gnat} in
  5657. *,${language},*:ada:no)
  5658. # Specifically requested language; tell them.
  5659. as_fn_error "GNAT is required to build $language" "$LINENO" 5
  5660. ;;
  5661. *:ada:no)
  5662. # Silently disable.
  5663. add_this_lang=unsupported
  5664. ;;
  5665. esac
  5666. # Disable a language that is unsupported by the target.
  5667. case " $unsupported_languages " in
  5668. *" $language "*)
  5669. add_this_lang=unsupported
  5670. ;;
  5671. esac
  5672. case $add_this_lang in
  5673. unsupported)
  5674. # Remove language-dependent dirs.
  5675. disabled_target_libs="$disabled_target_libs $target_libs"
  5676. noconfigdirs="$noconfigdirs $lang_dirs"
  5677. ;;
  5678. no)
  5679. # Remove language-dependent dirs; still show language as supported.
  5680. disabled_target_libs="$disabled_target_libs $target_libs"
  5681. noconfigdirs="$noconfigdirs $lang_dirs"
  5682. potential_languages="${potential_languages}${language},"
  5683. ;;
  5684. yes)
  5685. new_enable_languages="${new_enable_languages}${language},"
  5686. potential_languages="${potential_languages}${language},"
  5687. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  5688. enabled_target_libs="$enabled_target_libs $target_libs"
  5689. case "${boot_language}:,$enable_stage1_languages," in
  5690. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  5691. # Add to (comma-separated) list of stage 1 languages.
  5692. case ",$stage1_languages," in
  5693. *,$language,* | ,yes, | ,all,) ;;
  5694. *) stage1_languages="${stage1_languages}${language}," ;;
  5695. esac
  5696. # We need to bootstrap any supporting libraries.
  5697. bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
  5698. ;;
  5699. esac
  5700. ;;
  5701. esac
  5702. ;;
  5703. esac
  5704. done
  5705. # Add target libraries which are only needed for disabled languages
  5706. # to noconfigdirs.
  5707. if test -n "$disabled_target_libs"; then
  5708. for dir in $disabled_target_libs; do
  5709. case " $enabled_target_libs " in
  5710. *" ${dir} "*) ;;
  5711. *) noconfigdirs="$noconfigdirs $dir" ;;
  5712. esac
  5713. done
  5714. fi
  5715. # Check whether --enable-stage1-languages was given.
  5716. if test "${enable_stage1_languages+set}" = set; then :
  5717. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  5718. ,no,|,,)
  5719. # Set it to something that will have no effect in the loop below
  5720. enable_stage1_languages=c ;;
  5721. ,yes,)
  5722. enable_stage1_languages=`echo $new_enable_languages | \
  5723. sed -e "s/^,//" -e "s/,$//" ` ;;
  5724. *,all,*)
  5725. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  5726. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  5727. esac
  5728. # Add "good" languages from enable_stage1_languages to stage1_languages,
  5729. # while "bad" languages go in missing_languages. Leave no duplicates.
  5730. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  5731. case $potential_languages in
  5732. *,$i,*)
  5733. case $stage1_languages in
  5734. *,$i,*) ;;
  5735. *) stage1_languages="$stage1_languages$i," ;;
  5736. esac ;;
  5737. *)
  5738. case $missing_languages in
  5739. *,$i,*) ;;
  5740. *) missing_languages="$missing_languages$i," ;;
  5741. esac ;;
  5742. esac
  5743. done
  5744. fi
  5745. # Remove leading/trailing commas that were added for simplicity
  5746. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  5747. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  5748. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  5749. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  5750. if test "x$missing_languages" != x; then
  5751. as_fn_error "
  5752. The following requested languages could not be built: ${missing_languages}
  5753. Supported languages are: ${potential_languages}" "$LINENO" 5
  5754. fi
  5755. if test "x$new_enable_languages" != "x$enable_languages"; then
  5756. echo The following languages will be built: ${new_enable_languages}
  5757. enable_languages="$new_enable_languages"
  5758. fi
  5759. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  5760. fi
  5761. # Handle --disable-<component> generically.
  5762. for dir in $configdirs $build_configdirs $target_configdirs ; do
  5763. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  5764. varname=`echo $dirname | sed -e s/+/_/g`
  5765. if eval test x\${enable_${varname}} "=" xno ; then
  5766. noconfigdirs="$noconfigdirs $dir"
  5767. fi
  5768. done
  5769. # Check for Boehm's garbage collector
  5770. # Check whether --enable-objc-gc was given.
  5771. if test "${enable_objc_gc+set}" = set; then :
  5772. enableval=$enable_objc_gc;
  5773. fi
  5774. # Check whether --with-target-bdw-gc was given.
  5775. if test "${with_target_bdw_gc+set}" = set; then :
  5776. withval=$with_target_bdw_gc;
  5777. fi
  5778. # Check whether --with-target-bdw-gc-include was given.
  5779. if test "${with_target_bdw_gc_include+set}" = set; then :
  5780. withval=$with_target_bdw_gc_include;
  5781. fi
  5782. # Check whether --with-target-bdw-gc-lib was given.
  5783. if test "${with_target_bdw_gc_lib+set}" = set; then :
  5784. withval=$with_target_bdw_gc_lib;
  5785. fi
  5786. case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
  5788. $as_echo_n "checking for bdw garbage collector... " >&6; }
  5789. if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
  5791. $as_echo "using bdw-gc in default locations" >&6; }
  5792. else
  5793. if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
  5794. as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
  5795. elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
  5796. as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
  5797. else
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
  5799. $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
  5800. fi
  5801. fi
  5802. esac
  5803. # Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  5804. case ,${enable_languages}, in
  5805. *,c++,*)
  5806. # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
  5807. case "${noconfigdirs}" in
  5808. *target-libstdc++-v3*)
  5809. noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
  5810. ;;
  5811. *) ;;
  5812. esac
  5813. ;;
  5814. *)
  5815. noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  5816. ;;
  5817. esac
  5818. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  5819. # $build_configdirs and $target_configdirs.
  5820. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  5821. notsupp=""
  5822. for dir in . $skipdirs $noconfigdirs ; do
  5823. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  5824. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5825. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  5826. if test -r $srcdir/$dirname/configure ; then
  5827. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5828. true
  5829. else
  5830. notsupp="$notsupp $dir"
  5831. fi
  5832. fi
  5833. fi
  5834. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5835. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  5836. if test -r $srcdir/$dirname/configure ; then
  5837. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5838. true
  5839. else
  5840. notsupp="$notsupp $dir"
  5841. fi
  5842. fi
  5843. fi
  5844. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5845. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  5846. if test -r $srcdir/$dirname/configure ; then
  5847. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5848. true
  5849. else
  5850. notsupp="$notsupp $dir"
  5851. fi
  5852. fi
  5853. fi
  5854. done
  5855. # Quietly strip out all directories which aren't configurable in this tree.
  5856. # This relies on all configurable subdirectories being autoconfiscated, which
  5857. # is now the case.
  5858. build_configdirs_all="$build_configdirs"
  5859. build_configdirs=
  5860. for i in ${build_configdirs_all} ; do
  5861. j=`echo $i | sed -e s/build-//g`
  5862. if test -f ${srcdir}/$j/configure ; then
  5863. build_configdirs="${build_configdirs} $i"
  5864. fi
  5865. done
  5866. configdirs_all="$configdirs"
  5867. configdirs=
  5868. for i in ${configdirs_all} ; do
  5869. if test -f ${srcdir}/$i/configure ; then
  5870. configdirs="${configdirs} $i"
  5871. fi
  5872. done
  5873. target_configdirs_all="$target_configdirs"
  5874. target_configdirs=
  5875. for i in ${target_configdirs_all} ; do
  5876. j=`echo $i | sed -e s/target-//g`
  5877. if test -f ${srcdir}/$j/configure ; then
  5878. target_configdirs="${target_configdirs} $i"
  5879. fi
  5880. done
  5881. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  5882. # so we have to add it after the preceding checks.
  5883. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  5884. then
  5885. case " $configdirs " in
  5886. *" libiberty "*)
  5887. # If we can build libiberty, we can also build libiberty-linker-plugin.
  5888. configdirs="$configdirs libiberty-linker-plugin"
  5889. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  5890. --with-libiberty=../libiberty-linker-plugin";;
  5891. *)
  5892. as_fn_error "libiberty missing" "$LINENO" 5;;
  5893. esac
  5894. fi
  5895. # Sometimes we have special requirements for the host libiberty.
  5896. extra_host_libiberty_configure_flags=
  5897. extra_host_zlib_configure_flags=
  5898. case " $configdirs " in
  5899. *" lto-plugin "* | *" libcc1 "*)
  5900. # When these are to be built as shared libraries, the same applies to
  5901. # libiberty.
  5902. extra_host_libiberty_configure_flags=--enable-shared
  5903. ;;
  5904. *" bfd "*)
  5905. # When bfd is to be built as a shared library, the same applies to
  5906. # zlib.
  5907. if test "$enable_shared" = "yes"; then
  5908. extra_host_zlib_configure_flags=--enable-host-shared
  5909. fi
  5910. ;;
  5911. esac
  5912. # Produce a warning message for the subdirs we can't configure.
  5913. # This isn't especially interesting in the Cygnus tree, but in the individual
  5914. # FSF releases, it's important to let people know when their machine isn't
  5915. # supported by the one or two programs in a package.
  5916. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  5917. # If $appdirs is non-empty, at least one of those directories must still
  5918. # be configured, or we error out. (E.g., if the gas release supports a
  5919. # specified target in some subdirs but not the gas subdir, we shouldn't
  5920. # pretend that all is well.)
  5921. if test -n "$appdirs" ; then
  5922. for dir in $appdirs ; do
  5923. if test -r $dir/Makefile.in ; then
  5924. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  5925. appdirs=""
  5926. break
  5927. fi
  5928. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  5929. appdirs=""
  5930. break
  5931. fi
  5932. fi
  5933. done
  5934. if test -n "$appdirs" ; then
  5935. echo "*** This configuration is not supported by this package." 1>&2
  5936. exit 1
  5937. fi
  5938. fi
  5939. # Okay, some application will build, or we don't care to check. Still
  5940. # notify of subdirs not getting built.
  5941. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  5942. echo " ${notsupp}" 1>&2
  5943. echo " (Any other directories should still work fine.)" 1>&2
  5944. fi
  5945. case "$host" in
  5946. *msdosdjgpp*)
  5947. enable_gdbtk=no ;;
  5948. esac
  5949. # To find our prefix, in gcc_cv_tool_prefix.
  5950. # The user is always right.
  5951. if test "${PATH_SEPARATOR+set}" != set; then
  5952. echo "#! /bin/sh" >conf$$.sh
  5953. echo "exit 0" >>conf$$.sh
  5954. chmod +x conf$$.sh
  5955. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5956. PATH_SEPARATOR=';'
  5957. else
  5958. PATH_SEPARATOR=:
  5959. fi
  5960. rm -f conf$$.sh
  5961. fi
  5962. if test "x$exec_prefix" = xNONE; then
  5963. if test "x$prefix" = xNONE; then
  5964. gcc_cv_tool_prefix=$ac_default_prefix
  5965. else
  5966. gcc_cv_tool_prefix=$prefix
  5967. fi
  5968. else
  5969. gcc_cv_tool_prefix=$exec_prefix
  5970. fi
  5971. # If there is no compiler in the tree, use the PATH only. In any
  5972. # case, if there is no compiler in the tree nobody should use
  5973. # AS_FOR_TARGET and LD_FOR_TARGET.
  5974. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  5975. gcc_version=`cat $srcdir/gcc/BASE-VER`
  5976. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5977. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  5978. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5979. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  5980. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  5981. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  5982. else
  5983. gcc_cv_tool_dirs=
  5984. fi
  5985. if test x$build = x$target && test -n "$md_exec_prefix"; then
  5986. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  5987. fi
  5988. copy_dirs=
  5989. # Check whether --with-build-sysroot was given.
  5990. if test "${with_build_sysroot+set}" = set; then :
  5991. withval=$with_build_sysroot; if test x"$withval" != x ; then
  5992. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  5993. fi
  5994. else
  5995. SYSROOT_CFLAGS_FOR_TARGET=
  5996. fi
  5997. # Check whether --with-debug-prefix-map was given.
  5998. if test "${with_debug_prefix_map+set}" = set; then :
  5999. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  6000. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6001. for debug_map in $withval; do
  6002. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  6003. done
  6004. fi
  6005. else
  6006. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  6007. fi
  6008. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  6009. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  6010. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  6011. # We want to ensure that TARGET libraries (which we know are built with
  6012. # gcc) are built with "-O2 -g", so include those options when setting
  6013. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  6014. if test "x$CFLAGS_FOR_TARGET" = x; then
  6015. if test "x${is_cross_compiler}" = xyes; then
  6016. CFLAGS_FOR_TARGET="-g -O2"
  6017. else
  6018. CFLAGS_FOR_TARGET=$CFLAGS
  6019. case " $CFLAGS " in
  6020. *" -O2 "*) ;;
  6021. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  6022. esac
  6023. case " $CFLAGS " in
  6024. *" -g "* | *" -g3 "*) ;;
  6025. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  6026. esac
  6027. fi
  6028. fi
  6029. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  6030. if test "x${is_cross_compiler}" = xyes; then
  6031. CXXFLAGS_FOR_TARGET="-g -O2"
  6032. else
  6033. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  6034. case " $CXXFLAGS " in
  6035. *" -O2 "*) ;;
  6036. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  6037. esac
  6038. case " $CXXFLAGS " in
  6039. *" -g "* | *" -g3 "*) ;;
  6040. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  6041. esac
  6042. fi
  6043. fi
  6044. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  6045. # the named directory are copied to $(tooldir)/sys-include.
  6046. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  6047. if test x${is_cross_compiler} = xno ; then
  6048. echo 1>&2 '***' --with-headers is only supported when cross compiling
  6049. exit 1
  6050. fi
  6051. if test x"${with_headers}" != xyes ; then
  6052. x=${gcc_cv_tool_prefix}
  6053. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  6054. fi
  6055. fi
  6056. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  6057. # the name directories are copied to $(tooldir)/lib. Multiple directories
  6058. # are permitted.
  6059. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  6060. if test x${is_cross_compiler} = xno ; then
  6061. echo 1>&2 '***' --with-libs is only supported when cross compiling
  6062. exit 1
  6063. fi
  6064. if test x"${with_libs}" != xyes ; then
  6065. # Copy the libraries in reverse order, so that files in the first named
  6066. # library override files in subsequent libraries.
  6067. x=${gcc_cv_tool_prefix}
  6068. for l in ${with_libs}; do
  6069. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  6070. done
  6071. fi
  6072. fi
  6073. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  6074. #
  6075. # This is done by determining whether or not the appropriate directory
  6076. # is available, and by checking whether or not specific configurations
  6077. # have requested that this magic not happen.
  6078. #
  6079. # The command line options always override the explicit settings in
  6080. # configure.ac, and the settings in configure.ac override this magic.
  6081. #
  6082. # If the default for a toolchain is to use GNU as and ld, and you don't
  6083. # want to do that, then you should use the --without-gnu-as and
  6084. # --without-gnu-ld options for the configure script. Similarly, if
  6085. # the default is to use the included zlib and you don't want to do that,
  6086. # you should use the --with-system-zlib option for the configure script.
  6087. if test x${use_gnu_as} = x &&
  6088. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  6089. with_gnu_as=yes
  6090. extra_host_args="$extra_host_args --with-gnu-as"
  6091. fi
  6092. if test x${use_gnu_ld} = x &&
  6093. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  6094. with_gnu_ld=yes
  6095. extra_host_args="$extra_host_args --with-gnu-ld"
  6096. fi
  6097. if test x${use_included_zlib} = x &&
  6098. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  6099. :
  6100. else
  6101. with_system_zlib=yes
  6102. extra_host_args="$extra_host_args --with-system-zlib"
  6103. fi
  6104. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  6105. # can detect this case.
  6106. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  6107. with_newlib=yes
  6108. extra_host_args="$extra_host_args --with-newlib"
  6109. fi
  6110. # Handle ${copy_dirs}
  6111. set fnord ${copy_dirs}
  6112. shift
  6113. while test $# != 0 ; do
  6114. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  6115. :
  6116. else
  6117. echo Copying $1 to $2
  6118. # Use the install script to create the directory and all required
  6119. # parent directories.
  6120. if test -d $2 ; then
  6121. :
  6122. else
  6123. echo >config.temp
  6124. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  6125. fi
  6126. # Copy the directory, assuming we have tar.
  6127. # FIXME: Should we use B in the second tar? Not all systems support it.
  6128. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  6129. # It is the responsibility of the user to correctly adjust all
  6130. # symlinks. If somebody can figure out how to handle them correctly
  6131. # here, feel free to add the code.
  6132. echo $1 > $2/COPIED
  6133. fi
  6134. shift; shift
  6135. done
  6136. # Determine a target-dependent exec_prefix that the installed
  6137. # gcc will search in. Keep this list sorted by triplet, with
  6138. # the *-*-osname triplets last.
  6139. md_exec_prefix=
  6140. case "${target}" in
  6141. i[34567]86-pc-msdosdjgpp*)
  6142. md_exec_prefix=/dev/env/DJDIR/bin
  6143. ;;
  6144. *-*-hpux* | \
  6145. *-*-nto-qnx* | \
  6146. *-*-solaris2*)
  6147. md_exec_prefix=/usr/ccs/bin
  6148. ;;
  6149. esac
  6150. extra_arflags_for_target=
  6151. extra_nmflags_for_target=
  6152. extra_ranlibflags_for_target=
  6153. target_makefile_frag=/dev/null
  6154. case "${target}" in
  6155. spu-*-*)
  6156. target_makefile_frag="config/mt-spu"
  6157. ;;
  6158. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  6159. target_makefile_frag="config/mt-sde"
  6160. ;;
  6161. mipsisa*-*-elfoabi*)
  6162. target_makefile_frag="config/mt-mips-elfoabi"
  6163. ;;
  6164. mips*-*-*linux* | mips*-*-gnu*)
  6165. target_makefile_frag="config/mt-mips-gnu"
  6166. ;;
  6167. nios2-*-elf*)
  6168. target_makefile_frag="config/mt-nios2-elf"
  6169. ;;
  6170. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  6171. target_makefile_frag="config/mt-gnu"
  6172. ;;
  6173. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  6174. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  6175. # commands to handle both 32-bit and 64-bit objects. These flags are
  6176. # harmless if we're using GNU nm or ar.
  6177. extra_arflags_for_target=" -X32_64"
  6178. extra_nmflags_for_target=" -B -X32_64"
  6179. ;;
  6180. esac
  6181. alphaieee_frag=/dev/null
  6182. case $target in
  6183. alpha*-*-*)
  6184. # This just makes sure to use the -mieee option to build target libs.
  6185. # This should probably be set individually by each library.
  6186. alphaieee_frag="config/mt-alphaieee"
  6187. ;;
  6188. esac
  6189. # If --enable-target-optspace always use -Os instead of -O2 to build
  6190. # the target libraries, similarly if it is not specified, use -Os
  6191. # on selected platforms.
  6192. ospace_frag=/dev/null
  6193. case "${enable_target_optspace}:${target}" in
  6194. yes:*)
  6195. ospace_frag="config/mt-ospace"
  6196. ;;
  6197. :d30v-*)
  6198. ospace_frag="config/mt-d30v"
  6199. ;;
  6200. :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
  6201. ospace_frag="config/mt-ospace"
  6202. ;;
  6203. no:* | :*)
  6204. ;;
  6205. *)
  6206. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  6207. ;;
  6208. esac
  6209. # Some systems (e.g., one of the i386-aix systems the gas testers are
  6210. # using) don't handle "\$" correctly, so don't use it here.
  6211. tooldir='${exec_prefix}'/${target_noncanonical}
  6212. build_tooldir=${tooldir}
  6213. # Create a .gdbinit file which runs the one in srcdir
  6214. # and tells GDB to look there for source files.
  6215. if test -r ${srcdir}/.gdbinit ; then
  6216. case ${srcdir} in
  6217. .) ;;
  6218. *) cat > ./.gdbinit <<EOF
  6219. # ${NO_EDIT}
  6220. dir ${srcdir}
  6221. dir .
  6222. source ${srcdir}/.gdbinit
  6223. EOF
  6224. ;;
  6225. esac
  6226. fi
  6227. # Make sure that the compiler is able to generate an executable. If it
  6228. # can't, we are probably in trouble. We don't care whether we can run the
  6229. # executable--we might be using a cross compiler--we only care whether it
  6230. # can be created. At this point the main configure script has set CC.
  6231. we_are_ok=no
  6232. echo "int main () { return 0; }" > conftest.c
  6233. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6234. if test $? = 0 ; then
  6235. if test -s conftest || test -s conftest.exe ; then
  6236. we_are_ok=yes
  6237. fi
  6238. fi
  6239. case $we_are_ok in
  6240. no)
  6241. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  6242. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  6243. rm -f conftest*
  6244. exit 1
  6245. ;;
  6246. esac
  6247. rm -f conftest*
  6248. # Decide which environment variable is used to find dynamic libraries.
  6249. case "${host}" in
  6250. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  6251. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  6252. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  6253. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  6254. esac
  6255. # On systems where the dynamic library environment variable is PATH,
  6256. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  6257. # built executables to PATH.
  6258. if test "$RPATH_ENVVAR" = PATH; then
  6259. GCC_SHLIB_SUBDIR=/shlib
  6260. else
  6261. GCC_SHLIB_SUBDIR=
  6262. fi
  6263. # Adjust the toplevel makefile according to whether bootstrap was selected.
  6264. case $enable_bootstrap in
  6265. yes)
  6266. bootstrap_suffix=bootstrap
  6267. BUILD_CONFIG=bootstrap-debug
  6268. ;;
  6269. no)
  6270. bootstrap_suffix=no-bootstrap
  6271. BUILD_CONFIG=
  6272. ;;
  6273. esac
  6274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  6275. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  6276. # Check whether --with-build-config was given.
  6277. if test "${with_build_config+set}" = set; then :
  6278. withval=$with_build_config; case $with_build_config in
  6279. yes) with_build_config= ;;
  6280. no) with_build_config= BUILD_CONFIG= ;;
  6281. esac
  6282. fi
  6283. if test "x${with_build_config}" != x; then
  6284. BUILD_CONFIG=$with_build_config
  6285. else
  6286. case $BUILD_CONFIG in
  6287. bootstrap-debug)
  6288. if echo "int f (void) { return 0; }" > conftest.c &&
  6289. ${CC} -c conftest.c &&
  6290. mv conftest.o conftest.o.g0 &&
  6291. ${CC} -c -g conftest.c &&
  6292. mv conftest.o conftest.o.g &&
  6293. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  6294. :
  6295. else
  6296. BUILD_CONFIG=
  6297. fi
  6298. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  6299. ;;
  6300. esac
  6301. fi
  6302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  6303. $as_echo "$BUILD_CONFIG" >&6; }
  6304. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  6306. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  6307. # Check whether --enable-vtable-verify was given.
  6308. if test "${enable_vtable_verify+set}" = set; then :
  6309. enableval=$enable_vtable_verify; case "$enableval" in
  6310. yes) enable_vtable_verify=yes ;;
  6311. no) enable_vtable_verify=no ;;
  6312. *) enable_vtable_verify=no;;
  6313. esac
  6314. else
  6315. enable_vtable_verify=no
  6316. fi
  6317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  6318. $as_echo "$enable_vtable_verify" >&6; }
  6319. # Record target_configdirs and the configure arguments for target and
  6320. # build configuration in Makefile.
  6321. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  6322. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  6323. bootstrap_fixincludes=no
  6324. # If we are building libgomp, bootstrap it.
  6325. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  6326. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  6327. fi
  6328. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  6329. # or bootstrap-ubsan, bootstrap it.
  6330. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  6331. case "$BUILD_CONFIG" in
  6332. *bootstrap-asan* | *bootstrap-ubsan* )
  6333. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  6334. bootstrap_fixincludes=yes
  6335. ;;
  6336. esac
  6337. fi
  6338. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  6339. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  6340. test "$enable_vtable_verify" != no; then
  6341. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  6342. fi
  6343. # If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
  6344. # bootstrap it.
  6345. if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
  6346. case "$BUILD_CONFIG" in
  6347. *bootstrap-mpx* )
  6348. bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
  6349. ;;
  6350. esac
  6351. fi
  6352. # Determine whether gdb needs tk/tcl or not.
  6353. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  6354. # and in that case we want gdb to be built without tk. Ugh!
  6355. # In fact I believe gdb is the *only* package directly dependent on tk,
  6356. # so we should be able to put the 'maybe's in unconditionally and
  6357. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  6358. # 100% sure that that's safe though.
  6359. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  6360. case "$enable_gdbtk" in
  6361. no)
  6362. GDB_TK="" ;;
  6363. yes)
  6364. GDB_TK="${gdb_tk}" ;;
  6365. *)
  6366. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  6367. # distro. Eventually someone will fix this and move Insight, nee
  6368. # gdbtk to a separate directory.
  6369. if test -d ${srcdir}/gdb/gdbtk ; then
  6370. GDB_TK="${gdb_tk}"
  6371. else
  6372. GDB_TK=""
  6373. fi
  6374. ;;
  6375. esac
  6376. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  6377. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  6378. # Strip out unwanted targets.
  6379. # While at that, we remove Makefiles if we were started for recursive
  6380. # configuration, so that the top-level Makefile reconfigures them,
  6381. # like we used to do when configure itself was recursive.
  6382. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  6383. # but now we're fixing up the Makefile ourselves with the additional
  6384. # commands passed to AC_CONFIG_FILES. Use separate variables
  6385. # extrasub-{build,host,target} not because there is any reason to split
  6386. # the substitutions up that way, but only to remain below the limit of
  6387. # 99 commands in a script, for HP-UX sed.
  6388. # Do not nest @if/@endif pairs, because configure will not warn you at all.
  6389. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  6390. yes:yes:*\ gold\ *:*,c++,*) ;;
  6391. yes:yes:*\ gold\ *:*)
  6392. as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  6393. ;;
  6394. esac
  6395. extrasub_build=
  6396. for module in ${build_configdirs} ; do
  6397. if test -z "${no_recursion}" \
  6398. && test -f ${build_subdir}/${module}/Makefile; then
  6399. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  6400. rm -f ${build_subdir}/${module}/Makefile
  6401. fi
  6402. extrasub_build="$extrasub_build
  6403. /^@if build-$module\$/d
  6404. /^@endif build-$module\$/d
  6405. /^@if build-$module-$bootstrap_suffix\$/d
  6406. /^@endif build-$module-$bootstrap_suffix\$/d"
  6407. done
  6408. extrasub_host=
  6409. for module in ${configdirs} ; do
  6410. if test -z "${no_recursion}"; then
  6411. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  6412. if test -f ${file}; then
  6413. echo 1>&2 "*** removing ${file} to force reconfigure"
  6414. rm -f ${file}
  6415. fi
  6416. done
  6417. fi
  6418. case ${module},${bootstrap_fixincludes} in
  6419. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  6420. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  6421. esac
  6422. extrasub_host="$extrasub_host
  6423. /^@if $module\$/d
  6424. /^@endif $module\$/d
  6425. /^@if $module-$host_bootstrap_suffix\$/d
  6426. /^@endif $module-$host_bootstrap_suffix\$/d"
  6427. done
  6428. extrasub_target=
  6429. for module in ${target_configdirs} ; do
  6430. if test -z "${no_recursion}" \
  6431. && test -f ${target_subdir}/${module}/Makefile; then
  6432. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  6433. rm -f ${target_subdir}/${module}/Makefile
  6434. fi
  6435. # We only bootstrap target libraries listed in bootstrap_target_libs.
  6436. case $bootstrap_target_libs in
  6437. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  6438. *) target_bootstrap_suffix=no-bootstrap ;;
  6439. esac
  6440. extrasub_target="$extrasub_target
  6441. /^@if target-$module\$/d
  6442. /^@endif target-$module\$/d
  6443. /^@if target-$module-$target_bootstrap_suffix\$/d
  6444. /^@endif target-$module-$target_bootstrap_suffix\$/d"
  6445. done
  6446. # Do the final fixup along with target modules.
  6447. extrasub_target="$extrasub_target
  6448. /^@if /,/^@endif /d"
  6449. # Create the serialization dependencies. This uses a temporary file.
  6450. # Check whether --enable-serial-configure was given.
  6451. if test "${enable_serial_configure+set}" = set; then :
  6452. enableval=$enable_serial_configure;
  6453. fi
  6454. case ${enable_serial_configure} in
  6455. yes)
  6456. enable_serial_build_configure=yes
  6457. enable_serial_host_configure=yes
  6458. enable_serial_target_configure=yes
  6459. ;;
  6460. esac
  6461. # These force 'configure's to be done one at a time, to avoid problems
  6462. # with contention over a shared config.cache.
  6463. rm -f serdep.tmp
  6464. echo '# serdep.tmp' > serdep.tmp
  6465. olditem=
  6466. test "x${enable_serial_build_configure}" = xyes &&
  6467. for item in ${build_configdirs} ; do
  6468. case ${olditem} in
  6469. "") ;;
  6470. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  6471. esac
  6472. olditem=${item}
  6473. done
  6474. olditem=
  6475. test "x${enable_serial_host_configure}" = xyes &&
  6476. for item in ${configdirs} ; do
  6477. case ${olditem} in
  6478. "") ;;
  6479. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  6480. esac
  6481. olditem=${item}
  6482. done
  6483. olditem=
  6484. test "x${enable_serial_target_configure}" = xyes &&
  6485. for item in ${target_configdirs} ; do
  6486. case ${olditem} in
  6487. "") ;;
  6488. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  6489. esac
  6490. olditem=${item}
  6491. done
  6492. serialization_dependencies=serdep.tmp
  6493. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  6494. # target, nonopt, and variable assignments. These are the ones we
  6495. # might not want to pass down to subconfigures. The exception being
  6496. # --cache-file=/dev/null, which is used to turn off the use of cache
  6497. # files altogether, and which should be passed on to subconfigures.
  6498. # Also strip program-prefix, program-suffix, and program-transform-name,
  6499. # so that we can pass down a consistent program-transform-name.
  6500. baseargs=
  6501. tbaseargs=
  6502. keep_next=no
  6503. skip_next=no
  6504. eval "set -- $ac_configure_args"
  6505. for ac_arg
  6506. do
  6507. if test X"$skip_next" = X"yes"; then
  6508. skip_next=no
  6509. continue
  6510. fi
  6511. if test X"$keep_next" = X"yes"; then
  6512. case $ac_arg in
  6513. *\'*)
  6514. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6515. esac
  6516. baseargs="$baseargs '$ac_arg'"
  6517. tbaseargs="$tbaseargs '$ac_arg'"
  6518. keep_next=no
  6519. continue
  6520. fi
  6521. # Handle separated arguments. Based on the logic generated by
  6522. # autoconf 2.59.
  6523. case $ac_arg in
  6524. *=* | --config-cache | -C | -disable-* | --disable-* \
  6525. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  6526. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  6527. | -with-* | --with-* | -without-* | --without-* | --x)
  6528. separate_arg=no
  6529. ;;
  6530. -*)
  6531. separate_arg=yes
  6532. ;;
  6533. *)
  6534. separate_arg=no
  6535. ;;
  6536. esac
  6537. skip_targ=no
  6538. case $ac_arg in
  6539. --with-* | --without-*)
  6540. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  6541. case $libopt in
  6542. *[-_]include)
  6543. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  6544. ;;
  6545. *[-_]lib)
  6546. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  6547. ;;
  6548. *)
  6549. lib=$libopt
  6550. ;;
  6551. esac
  6552. case $lib in
  6553. mpc | mpfr | gmp | isl)
  6554. # If we're processing --with-$lib, --with-$lib-include or
  6555. # --with-$lib-lib, for one of the libs above, and target is
  6556. # different from host, don't pass the current argument to any
  6557. # target library's configure.
  6558. if test x$is_cross_compiler = xyes; then
  6559. skip_targ=yes
  6560. fi
  6561. ;;
  6562. esac
  6563. ;;
  6564. esac
  6565. case "$ac_arg" in
  6566. --cache-file=/dev/null | \
  6567. -cache-file=/dev/null )
  6568. # Handled here to avoid the test to skip args below.
  6569. baseargs="$baseargs '$ac_arg'"
  6570. tbaseargs="$tbaseargs '$ac_arg'"
  6571. # Assert: $separate_arg should always be no.
  6572. keep_next=$separate_arg
  6573. ;;
  6574. --no*)
  6575. continue
  6576. ;;
  6577. --c* | \
  6578. --sr* | \
  6579. --ho* | \
  6580. --bu* | \
  6581. --t* | \
  6582. --program-* | \
  6583. -cache_file* | \
  6584. -srcdir* | \
  6585. -host* | \
  6586. -build* | \
  6587. -target* | \
  6588. -program-prefix* | \
  6589. -program-suffix* | \
  6590. -program-transform-name* )
  6591. skip_next=$separate_arg
  6592. continue
  6593. ;;
  6594. -*)
  6595. # An option. Add it.
  6596. case $ac_arg in
  6597. *\'*)
  6598. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  6599. esac
  6600. baseargs="$baseargs '$ac_arg'"
  6601. if test X"$skip_targ" = Xno; then
  6602. tbaseargs="$tbaseargs '$ac_arg'"
  6603. fi
  6604. keep_next=$separate_arg
  6605. ;;
  6606. *)
  6607. # Either a variable assignment, or a nonopt (triplet). Don't
  6608. # pass it down; let the Makefile handle this.
  6609. continue
  6610. ;;
  6611. esac
  6612. done
  6613. # Remove the initial space we just introduced and, as these will be
  6614. # expanded by make, quote '$'.
  6615. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  6616. # Add in --program-transform-name, after --program-prefix and
  6617. # --program-suffix have been applied to it. Autoconf has already
  6618. # doubled dollar signs and backslashes in program_transform_name; we want
  6619. # the backslashes un-doubled, and then the entire thing wrapped in single
  6620. # quotes, because this will be expanded first by make and then by the shell.
  6621. # Also, because we want to override the logic in subdir configure scripts to
  6622. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  6623. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  6624. ${program_transform_name}
  6625. EOF_SED
  6626. gcc_transform_name=`cat conftestsed.out`
  6627. rm -f conftestsed.out
  6628. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  6629. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  6630. if test "$silent" = yes; then
  6631. baseargs="$baseargs --silent"
  6632. tbaseargs="$tbaseargs --silent"
  6633. fi
  6634. baseargs="$baseargs --disable-option-checking"
  6635. tbaseargs="$tbaseargs --disable-option-checking"
  6636. # Record and document user additions to sub configure arguments.
  6637. # For the build-side libraries, we just need to pretend we're native,
  6638. # and not use the same cache file. Multilibs are neither needed nor
  6639. # desired. We can't even use the same cache file for all build-side
  6640. # libraries, as they're compiled differently; some with C, some with
  6641. # C++ or with different feature-enabling options.
  6642. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  6643. # For host modules, accept cache file option, or specification as blank.
  6644. case "${cache_file}" in
  6645. "") # empty
  6646. cache_file_option="" ;;
  6647. /* | [A-Za-z]:[\\/]* ) # absolute path
  6648. cache_file_option="--cache-file=${cache_file}" ;;
  6649. *) # relative path
  6650. cache_file_option="--cache-file=../${cache_file}" ;;
  6651. esac
  6652. # Host dirs don't like to share a cache file either, horribly enough.
  6653. # This seems to be due to autoconf 2.5x stupidity.
  6654. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  6655. target_configargs="$target_configargs ${tbaseargs}"
  6656. # Passing a --with-cross-host argument lets the target libraries know
  6657. # whether they are being built with a cross-compiler or being built
  6658. # native. However, it would be better to use other mechanisms to make the
  6659. # sorts of decisions they want to make on this basis. Please consider
  6660. # this option to be deprecated. FIXME.
  6661. if test x${is_cross_compiler} = xyes ; then
  6662. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  6663. fi
  6664. # Special user-friendly check for native x86_64-linux build, if
  6665. # multilib is not explicitly enabled.
  6666. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  6667. x86_64-*linux*:yes:$build:$build:)
  6668. # Make sure we have a development environment that handles 32-bit
  6669. dev64=no
  6670. echo "int main () { return 0; }" > conftest.c
  6671. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  6672. if test $? = 0 ; then
  6673. if test -s conftest || test -s conftest.exe ; then
  6674. dev64=yes
  6675. fi
  6676. fi
  6677. rm -f conftest*
  6678. if test x${dev64} != xyes ; then
  6679. as_fn_error "I suspect your system does not have 32-bit development 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
  6680. fi
  6681. ;;
  6682. esac
  6683. # Default to --enable-multilib.
  6684. if test x${enable_multilib} = x ; then
  6685. target_configargs="--enable-multilib ${target_configargs}"
  6686. fi
  6687. # Pass --with-newlib if appropriate. Note that target_configdirs has
  6688. # changed from the earlier setting of with_newlib.
  6689. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  6690. target_configargs="--with-newlib ${target_configargs}"
  6691. fi
  6692. # Different target subdirs use different values of certain variables
  6693. # (notably CXX). Worse, multilibs use *lots* of different values.
  6694. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  6695. # it doesn't automatically accept command-line overrides of them.
  6696. # This means it's not safe for target subdirs to share a cache file,
  6697. # which is disgusting, but there you have it. Hopefully this can be
  6698. # fixed in future. It's still worthwhile to use a cache file for each
  6699. # directory. I think.
  6700. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  6701. # We need to pass --target, as newer autoconf's requires consistency
  6702. # for target_alias and gcc doesn't manage it consistently.
  6703. target_configargs="--cache-file=./config.cache ${target_configargs}"
  6704. FLAGS_FOR_TARGET=
  6705. case " $target_configdirs " in
  6706. *" newlib "*)
  6707. case " $target_configargs " in
  6708. *" --with-newlib "*)
  6709. case "$target" in
  6710. *-cygwin*)
  6711. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  6712. ;;
  6713. esac
  6714. # If we're not building GCC, don't discard standard headers.
  6715. if test -d ${srcdir}/gcc; then
  6716. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  6717. if test "${build}" != "${host}"; then
  6718. # On Canadian crosses, CC_FOR_TARGET will have already been set
  6719. # by `configure', so we won't have an opportunity to add -Bgcc/
  6720. # to it. This is right: we don't want to search that directory
  6721. # for binaries, but we want the header files in there, so add
  6722. # them explicitly.
  6723. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  6724. # Someone might think of using the pre-installed headers on
  6725. # Canadian crosses, in case the installed compiler is not fully
  6726. # compatible with the compiler being built. In this case, it
  6727. # would be better to flag an error than risking having
  6728. # incompatible object files being constructed. We can't
  6729. # guarantee that an error will be flagged, but let's hope the
  6730. # compiler will do it, when presented with incompatible header
  6731. # files.
  6732. fi
  6733. fi
  6734. case "${target}-${is_cross_compiler}" in
  6735. i[3456789]86-*-linux*-no)
  6736. # Here host == target, so we don't need to build gcc,
  6737. # so we don't want to discard standard headers.
  6738. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  6739. ;;
  6740. *)
  6741. # If we're building newlib, use its generic headers last, but search
  6742. # for any libc-related directories first (so make it the last -B
  6743. # switch).
  6744. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  6745. # If we're building libgloss, find the startup file, simulator library
  6746. # and linker script.
  6747. case " $target_configdirs " in
  6748. *" libgloss "*)
  6749. # Look for startup file, simulator library and maybe linker script.
  6750. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  6751. # Look for libnosys.a in case the target needs it.
  6752. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  6753. # Most targets have the linker script in the source directory.
  6754. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  6755. ;;
  6756. esac
  6757. ;;
  6758. esac
  6759. ;;
  6760. esac
  6761. ;;
  6762. esac
  6763. case "$target" in
  6764. x86_64-*mingw* | *-w64-mingw*)
  6765. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  6766. # however, use a symlink named 'mingw' in ${prefix} .
  6767. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  6768. ;;
  6769. *-mingw*)
  6770. # MinGW can't be handled as Cygwin above since it does not use newlib.
  6771. 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'
  6772. ;;
  6773. esac
  6774. # Allow the user to override the flags for
  6775. # our build compiler if desired.
  6776. if test x"${build}" = x"${host}" ; then
  6777. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  6778. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  6779. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  6780. fi
  6781. # On Canadian crosses, we'll be searching the right directories for
  6782. # the previously-installed cross compiler, so don't bother to add
  6783. # flags for directories within the install tree of the compiler
  6784. # being built; programs in there won't even run.
  6785. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  6786. # Search for pre-installed headers if nothing else fits.
  6787. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  6788. fi
  6789. if test "x${use_gnu_ld}" = x &&
  6790. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  6791. # Arrange for us to find uninstalled linker scripts.
  6792. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  6793. fi
  6794. # Search for other target-specific linker scripts and such.
  6795. case "${target}" in
  6796. mep*)
  6797. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  6798. ;;
  6799. esac
  6800. # Makefile fragments.
  6801. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  6802. do
  6803. eval fragval=\$$frag
  6804. if test $fragval != /dev/null; then
  6805. eval $frag=${srcdir}/$fragval
  6806. fi
  6807. done
  6808. # Miscellanea: directories, flags, etc.
  6809. # Build module lists & subconfigure args.
  6810. # Host module lists & subconfigure args.
  6811. # Target module lists & subconfigure args.
  6812. # Build tools.
  6813. # Generate default definitions for YACC, M4, LEX and other programs that run
  6814. # on the build machine. These are used if the Makefile can't locate these
  6815. # programs in objdir.
  6816. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  6817. for ac_prog in 'bison -y' byacc yacc
  6818. do
  6819. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6820. set dummy $ac_prog; ac_word=$2
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6822. $as_echo_n "checking for $ac_word... " >&6; }
  6823. if test "${ac_cv_prog_YACC+set}" = set; then :
  6824. $as_echo_n "(cached) " >&6
  6825. else
  6826. if test -n "$YACC"; then
  6827. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6828. else
  6829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6830. for as_dir in $PATH
  6831. do
  6832. IFS=$as_save_IFS
  6833. test -z "$as_dir" && as_dir=.
  6834. for ac_exec_ext in '' $ac_executable_extensions; do
  6835. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6836. ac_cv_prog_YACC="$ac_prog"
  6837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6838. break 2
  6839. fi
  6840. done
  6841. done
  6842. IFS=$as_save_IFS
  6843. fi
  6844. fi
  6845. YACC=$ac_cv_prog_YACC
  6846. if test -n "$YACC"; then
  6847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  6848. $as_echo "$YACC" >&6; }
  6849. else
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6851. $as_echo "no" >&6; }
  6852. fi
  6853. test -n "$YACC" && break
  6854. done
  6855. test -n "$YACC" || YACC="$MISSING bison -y"
  6856. case " $build_configdirs " in
  6857. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  6858. esac
  6859. for ac_prog in bison
  6860. do
  6861. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6862. set dummy $ac_prog; ac_word=$2
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6864. $as_echo_n "checking for $ac_word... " >&6; }
  6865. if test "${ac_cv_prog_BISON+set}" = set; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. if test -n "$BISON"; then
  6869. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  6870. else
  6871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6872. for as_dir in $PATH
  6873. do
  6874. IFS=$as_save_IFS
  6875. test -z "$as_dir" && as_dir=.
  6876. for ac_exec_ext in '' $ac_executable_extensions; do
  6877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6878. ac_cv_prog_BISON="$ac_prog"
  6879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6880. break 2
  6881. fi
  6882. done
  6883. done
  6884. IFS=$as_save_IFS
  6885. fi
  6886. fi
  6887. BISON=$ac_cv_prog_BISON
  6888. if test -n "$BISON"; then
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  6890. $as_echo "$BISON" >&6; }
  6891. else
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6893. $as_echo "no" >&6; }
  6894. fi
  6895. test -n "$BISON" && break
  6896. done
  6897. test -n "$BISON" || BISON="$MISSING bison"
  6898. case " $build_configdirs " in
  6899. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  6900. esac
  6901. for ac_prog in gm4 gnum4 m4
  6902. do
  6903. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6904. set dummy $ac_prog; ac_word=$2
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6906. $as_echo_n "checking for $ac_word... " >&6; }
  6907. if test "${ac_cv_prog_M4+set}" = set; then :
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. if test -n "$M4"; then
  6911. ac_cv_prog_M4="$M4" # Let the user override the test.
  6912. else
  6913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6914. for as_dir in $PATH
  6915. do
  6916. IFS=$as_save_IFS
  6917. test -z "$as_dir" && as_dir=.
  6918. for ac_exec_ext in '' $ac_executable_extensions; do
  6919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6920. ac_cv_prog_M4="$ac_prog"
  6921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6922. break 2
  6923. fi
  6924. done
  6925. done
  6926. IFS=$as_save_IFS
  6927. fi
  6928. fi
  6929. M4=$ac_cv_prog_M4
  6930. if test -n "$M4"; then
  6931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  6932. $as_echo "$M4" >&6; }
  6933. else
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6935. $as_echo "no" >&6; }
  6936. fi
  6937. test -n "$M4" && break
  6938. done
  6939. test -n "$M4" || M4="$MISSING m4"
  6940. case " $build_configdirs " in
  6941. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  6942. esac
  6943. for ac_prog in flex lex
  6944. do
  6945. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6946. set dummy $ac_prog; ac_word=$2
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6948. $as_echo_n "checking for $ac_word... " >&6; }
  6949. if test "${ac_cv_prog_LEX+set}" = set; then :
  6950. $as_echo_n "(cached) " >&6
  6951. else
  6952. if test -n "$LEX"; then
  6953. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6954. else
  6955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6956. for as_dir in $PATH
  6957. do
  6958. IFS=$as_save_IFS
  6959. test -z "$as_dir" && as_dir=.
  6960. for ac_exec_ext in '' $ac_executable_extensions; do
  6961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6962. ac_cv_prog_LEX="$ac_prog"
  6963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6964. break 2
  6965. fi
  6966. done
  6967. done
  6968. IFS=$as_save_IFS
  6969. fi
  6970. fi
  6971. LEX=$ac_cv_prog_LEX
  6972. if test -n "$LEX"; then
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  6974. $as_echo "$LEX" >&6; }
  6975. else
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6977. $as_echo "no" >&6; }
  6978. fi
  6979. test -n "$LEX" && break
  6980. done
  6981. test -n "$LEX" || LEX="$MISSING flex"
  6982. case " $build_configdirs " in
  6983. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  6984. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  6985. esac
  6986. for ac_prog in flex
  6987. do
  6988. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6989. set dummy $ac_prog; ac_word=$2
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6991. $as_echo_n "checking for $ac_word... " >&6; }
  6992. if test "${ac_cv_prog_FLEX+set}" = set; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. if test -n "$FLEX"; then
  6996. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  6997. else
  6998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6999. for as_dir in $PATH
  7000. do
  7001. IFS=$as_save_IFS
  7002. test -z "$as_dir" && as_dir=.
  7003. for ac_exec_ext in '' $ac_executable_extensions; do
  7004. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7005. ac_cv_prog_FLEX="$ac_prog"
  7006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7007. break 2
  7008. fi
  7009. done
  7010. done
  7011. IFS=$as_save_IFS
  7012. fi
  7013. fi
  7014. FLEX=$ac_cv_prog_FLEX
  7015. if test -n "$FLEX"; then
  7016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  7017. $as_echo "$FLEX" >&6; }
  7018. else
  7019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7020. $as_echo "no" >&6; }
  7021. fi
  7022. test -n "$FLEX" && break
  7023. done
  7024. test -n "$FLEX" || FLEX="$MISSING flex"
  7025. case " $build_configdirs " in
  7026. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  7027. esac
  7028. for ac_prog in makeinfo
  7029. do
  7030. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7031. set dummy $ac_prog; ac_word=$2
  7032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7033. $as_echo_n "checking for $ac_word... " >&6; }
  7034. if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
  7035. $as_echo_n "(cached) " >&6
  7036. else
  7037. if test -n "$MAKEINFO"; then
  7038. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  7039. else
  7040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7041. for as_dir in $PATH
  7042. do
  7043. IFS=$as_save_IFS
  7044. test -z "$as_dir" && as_dir=.
  7045. for ac_exec_ext in '' $ac_executable_extensions; do
  7046. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7047. ac_cv_prog_MAKEINFO="$ac_prog"
  7048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7049. break 2
  7050. fi
  7051. done
  7052. done
  7053. IFS=$as_save_IFS
  7054. fi
  7055. fi
  7056. MAKEINFO=$ac_cv_prog_MAKEINFO
  7057. if test -n "$MAKEINFO"; then
  7058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  7059. $as_echo "$MAKEINFO" >&6; }
  7060. else
  7061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7062. $as_echo "no" >&6; }
  7063. fi
  7064. test -n "$MAKEINFO" && break
  7065. done
  7066. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  7067. case " $build_configdirs " in
  7068. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  7069. *)
  7070. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  7071. # higher, else we use the "missing" dummy.
  7072. if ${MAKEINFO} --version \
  7073. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  7074. :
  7075. else
  7076. MAKEINFO="$MISSING makeinfo"
  7077. fi
  7078. ;;
  7079. esac
  7080. # FIXME: expect and dejagnu may become build tools?
  7081. for ac_prog in expect
  7082. do
  7083. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7084. set dummy $ac_prog; ac_word=$2
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7086. $as_echo_n "checking for $ac_word... " >&6; }
  7087. if test "${ac_cv_prog_EXPECT+set}" = set; then :
  7088. $as_echo_n "(cached) " >&6
  7089. else
  7090. if test -n "$EXPECT"; then
  7091. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  7092. else
  7093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7094. for as_dir in $PATH
  7095. do
  7096. IFS=$as_save_IFS
  7097. test -z "$as_dir" && as_dir=.
  7098. for ac_exec_ext in '' $ac_executable_extensions; do
  7099. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7100. ac_cv_prog_EXPECT="$ac_prog"
  7101. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7102. break 2
  7103. fi
  7104. done
  7105. done
  7106. IFS=$as_save_IFS
  7107. fi
  7108. fi
  7109. EXPECT=$ac_cv_prog_EXPECT
  7110. if test -n "$EXPECT"; then
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  7112. $as_echo "$EXPECT" >&6; }
  7113. else
  7114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7115. $as_echo "no" >&6; }
  7116. fi
  7117. test -n "$EXPECT" && break
  7118. done
  7119. test -n "$EXPECT" || EXPECT="expect"
  7120. case " $configdirs " in
  7121. *" expect "*)
  7122. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  7123. ;;
  7124. esac
  7125. for ac_prog in runtest
  7126. do
  7127. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7128. set dummy $ac_prog; ac_word=$2
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7130. $as_echo_n "checking for $ac_word... " >&6; }
  7131. if test "${ac_cv_prog_RUNTEST+set}" = set; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. if test -n "$RUNTEST"; then
  7135. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  7136. else
  7137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7138. for as_dir in $PATH
  7139. do
  7140. IFS=$as_save_IFS
  7141. test -z "$as_dir" && as_dir=.
  7142. for ac_exec_ext in '' $ac_executable_extensions; do
  7143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7144. ac_cv_prog_RUNTEST="$ac_prog"
  7145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7146. break 2
  7147. fi
  7148. done
  7149. done
  7150. IFS=$as_save_IFS
  7151. fi
  7152. fi
  7153. RUNTEST=$ac_cv_prog_RUNTEST
  7154. if test -n "$RUNTEST"; then
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  7156. $as_echo "$RUNTEST" >&6; }
  7157. else
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7159. $as_echo "no" >&6; }
  7160. fi
  7161. test -n "$RUNTEST" && break
  7162. done
  7163. test -n "$RUNTEST" || RUNTEST="runtest"
  7164. case " $configdirs " in
  7165. *" dejagnu "*)
  7166. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  7167. ;;
  7168. esac
  7169. # Host tools.
  7170. ncn_tool_prefix=
  7171. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  7172. ncn_target_tool_prefix=
  7173. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  7174. if test -n "$AR"; then
  7175. ac_cv_prog_AR=$AR
  7176. elif test -n "$ac_cv_prog_AR"; then
  7177. AR=$ac_cv_prog_AR
  7178. fi
  7179. if test -n "$ac_cv_prog_AR"; then
  7180. for ncn_progname in ar; do
  7181. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7182. set dummy ${ncn_progname}; ac_word=$2
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7184. $as_echo_n "checking for $ac_word... " >&6; }
  7185. if test "${ac_cv_prog_AR+set}" = set; then :
  7186. $as_echo_n "(cached) " >&6
  7187. else
  7188. if test -n "$AR"; then
  7189. ac_cv_prog_AR="$AR" # Let the user override the test.
  7190. else
  7191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7192. for as_dir in $PATH
  7193. do
  7194. IFS=$as_save_IFS
  7195. test -z "$as_dir" && as_dir=.
  7196. for ac_exec_ext in '' $ac_executable_extensions; do
  7197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7198. ac_cv_prog_AR="${ncn_progname}"
  7199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7200. break 2
  7201. fi
  7202. done
  7203. done
  7204. IFS=$as_save_IFS
  7205. fi
  7206. fi
  7207. AR=$ac_cv_prog_AR
  7208. if test -n "$AR"; then
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7210. $as_echo "$AR" >&6; }
  7211. else
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7213. $as_echo "no" >&6; }
  7214. fi
  7215. done
  7216. fi
  7217. for ncn_progname in ar; do
  7218. if test -n "$ncn_tool_prefix"; then
  7219. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7220. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7222. $as_echo_n "checking for $ac_word... " >&6; }
  7223. if test "${ac_cv_prog_AR+set}" = set; then :
  7224. $as_echo_n "(cached) " >&6
  7225. else
  7226. if test -n "$AR"; then
  7227. ac_cv_prog_AR="$AR" # Let the user override the test.
  7228. else
  7229. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7230. for as_dir in $PATH
  7231. do
  7232. IFS=$as_save_IFS
  7233. test -z "$as_dir" && as_dir=.
  7234. for ac_exec_ext in '' $ac_executable_extensions; do
  7235. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7236. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  7237. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7238. break 2
  7239. fi
  7240. done
  7241. done
  7242. IFS=$as_save_IFS
  7243. fi
  7244. fi
  7245. AR=$ac_cv_prog_AR
  7246. if test -n "$AR"; then
  7247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7248. $as_echo "$AR" >&6; }
  7249. else
  7250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7251. $as_echo "no" >&6; }
  7252. fi
  7253. fi
  7254. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  7255. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7256. set dummy ${ncn_progname}; ac_word=$2
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7258. $as_echo_n "checking for $ac_word... " >&6; }
  7259. if test "${ac_cv_prog_AR+set}" = set; then :
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. if test -n "$AR"; then
  7263. ac_cv_prog_AR="$AR" # Let the user override the test.
  7264. else
  7265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7266. for as_dir in $PATH
  7267. do
  7268. IFS=$as_save_IFS
  7269. test -z "$as_dir" && as_dir=.
  7270. for ac_exec_ext in '' $ac_executable_extensions; do
  7271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7272. ac_cv_prog_AR="${ncn_progname}"
  7273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7274. break 2
  7275. fi
  7276. done
  7277. done
  7278. IFS=$as_save_IFS
  7279. fi
  7280. fi
  7281. AR=$ac_cv_prog_AR
  7282. if test -n "$AR"; then
  7283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  7284. $as_echo "$AR" >&6; }
  7285. else
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7287. $as_echo "no" >&6; }
  7288. fi
  7289. fi
  7290. test -n "$ac_cv_prog_AR" && break
  7291. done
  7292. if test -z "$ac_cv_prog_AR" ; then
  7293. set dummy ar
  7294. if test $build = $host ; then
  7295. AR="$2"
  7296. else
  7297. AR="${ncn_tool_prefix}$2"
  7298. fi
  7299. fi
  7300. if test -n "$AS"; then
  7301. ac_cv_prog_AS=$AS
  7302. elif test -n "$ac_cv_prog_AS"; then
  7303. AS=$ac_cv_prog_AS
  7304. fi
  7305. if test -n "$ac_cv_prog_AS"; then
  7306. for ncn_progname in as; do
  7307. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7308. set dummy ${ncn_progname}; ac_word=$2
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7310. $as_echo_n "checking for $ac_word... " >&6; }
  7311. if test "${ac_cv_prog_AS+set}" = set; then :
  7312. $as_echo_n "(cached) " >&6
  7313. else
  7314. if test -n "$AS"; then
  7315. ac_cv_prog_AS="$AS" # Let the user override the test.
  7316. else
  7317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7318. for as_dir in $PATH
  7319. do
  7320. IFS=$as_save_IFS
  7321. test -z "$as_dir" && as_dir=.
  7322. for ac_exec_ext in '' $ac_executable_extensions; do
  7323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7324. ac_cv_prog_AS="${ncn_progname}"
  7325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7326. break 2
  7327. fi
  7328. done
  7329. done
  7330. IFS=$as_save_IFS
  7331. fi
  7332. fi
  7333. AS=$ac_cv_prog_AS
  7334. if test -n "$AS"; then
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7336. $as_echo "$AS" >&6; }
  7337. else
  7338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7339. $as_echo "no" >&6; }
  7340. fi
  7341. done
  7342. fi
  7343. for ncn_progname in as; do
  7344. if test -n "$ncn_tool_prefix"; then
  7345. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7346. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7348. $as_echo_n "checking for $ac_word... " >&6; }
  7349. if test "${ac_cv_prog_AS+set}" = set; then :
  7350. $as_echo_n "(cached) " >&6
  7351. else
  7352. if test -n "$AS"; then
  7353. ac_cv_prog_AS="$AS" # Let the user override the test.
  7354. else
  7355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7356. for as_dir in $PATH
  7357. do
  7358. IFS=$as_save_IFS
  7359. test -z "$as_dir" && as_dir=.
  7360. for ac_exec_ext in '' $ac_executable_extensions; do
  7361. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7362. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  7363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7364. break 2
  7365. fi
  7366. done
  7367. done
  7368. IFS=$as_save_IFS
  7369. fi
  7370. fi
  7371. AS=$ac_cv_prog_AS
  7372. if test -n "$AS"; then
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7374. $as_echo "$AS" >&6; }
  7375. else
  7376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7377. $as_echo "no" >&6; }
  7378. fi
  7379. fi
  7380. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  7381. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7382. set dummy ${ncn_progname}; ac_word=$2
  7383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7384. $as_echo_n "checking for $ac_word... " >&6; }
  7385. if test "${ac_cv_prog_AS+set}" = set; then :
  7386. $as_echo_n "(cached) " >&6
  7387. else
  7388. if test -n "$AS"; then
  7389. ac_cv_prog_AS="$AS" # Let the user override the test.
  7390. else
  7391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7392. for as_dir in $PATH
  7393. do
  7394. IFS=$as_save_IFS
  7395. test -z "$as_dir" && as_dir=.
  7396. for ac_exec_ext in '' $ac_executable_extensions; do
  7397. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7398. ac_cv_prog_AS="${ncn_progname}"
  7399. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7400. break 2
  7401. fi
  7402. done
  7403. done
  7404. IFS=$as_save_IFS
  7405. fi
  7406. fi
  7407. AS=$ac_cv_prog_AS
  7408. if test -n "$AS"; then
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7410. $as_echo "$AS" >&6; }
  7411. else
  7412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7413. $as_echo "no" >&6; }
  7414. fi
  7415. fi
  7416. test -n "$ac_cv_prog_AS" && break
  7417. done
  7418. if test -z "$ac_cv_prog_AS" ; then
  7419. set dummy as
  7420. if test $build = $host ; then
  7421. AS="$2"
  7422. else
  7423. AS="${ncn_tool_prefix}$2"
  7424. fi
  7425. fi
  7426. if test -n "$DLLTOOL"; then
  7427. ac_cv_prog_DLLTOOL=$DLLTOOL
  7428. elif test -n "$ac_cv_prog_DLLTOOL"; then
  7429. DLLTOOL=$ac_cv_prog_DLLTOOL
  7430. fi
  7431. if test -n "$ac_cv_prog_DLLTOOL"; then
  7432. for ncn_progname in dlltool; do
  7433. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7434. set dummy ${ncn_progname}; ac_word=$2
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7436. $as_echo_n "checking for $ac_word... " >&6; }
  7437. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7438. $as_echo_n "(cached) " >&6
  7439. else
  7440. if test -n "$DLLTOOL"; then
  7441. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7442. else
  7443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7444. for as_dir in $PATH
  7445. do
  7446. IFS=$as_save_IFS
  7447. test -z "$as_dir" && as_dir=.
  7448. for ac_exec_ext in '' $ac_executable_extensions; do
  7449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7450. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7452. break 2
  7453. fi
  7454. done
  7455. done
  7456. IFS=$as_save_IFS
  7457. fi
  7458. fi
  7459. DLLTOOL=$ac_cv_prog_DLLTOOL
  7460. if test -n "$DLLTOOL"; then
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7462. $as_echo "$DLLTOOL" >&6; }
  7463. else
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7465. $as_echo "no" >&6; }
  7466. fi
  7467. done
  7468. fi
  7469. for ncn_progname in dlltool; do
  7470. if test -n "$ncn_tool_prefix"; then
  7471. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7472. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7474. $as_echo_n "checking for $ac_word... " >&6; }
  7475. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7476. $as_echo_n "(cached) " >&6
  7477. else
  7478. if test -n "$DLLTOOL"; then
  7479. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7480. else
  7481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7482. for as_dir in $PATH
  7483. do
  7484. IFS=$as_save_IFS
  7485. test -z "$as_dir" && as_dir=.
  7486. for ac_exec_ext in '' $ac_executable_extensions; do
  7487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7488. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  7489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7490. break 2
  7491. fi
  7492. done
  7493. done
  7494. IFS=$as_save_IFS
  7495. fi
  7496. fi
  7497. DLLTOOL=$ac_cv_prog_DLLTOOL
  7498. if test -n "$DLLTOOL"; then
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7500. $as_echo "$DLLTOOL" >&6; }
  7501. else
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7503. $as_echo "no" >&6; }
  7504. fi
  7505. fi
  7506. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  7507. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7508. set dummy ${ncn_progname}; ac_word=$2
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. $as_echo_n "checking for $ac_word... " >&6; }
  7511. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. if test -n "$DLLTOOL"; then
  7515. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7516. else
  7517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7518. for as_dir in $PATH
  7519. do
  7520. IFS=$as_save_IFS
  7521. test -z "$as_dir" && as_dir=.
  7522. for ac_exec_ext in '' $ac_executable_extensions; do
  7523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7524. ac_cv_prog_DLLTOOL="${ncn_progname}"
  7525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7526. break 2
  7527. fi
  7528. done
  7529. done
  7530. IFS=$as_save_IFS
  7531. fi
  7532. fi
  7533. DLLTOOL=$ac_cv_prog_DLLTOOL
  7534. if test -n "$DLLTOOL"; then
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7536. $as_echo "$DLLTOOL" >&6; }
  7537. else
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7539. $as_echo "no" >&6; }
  7540. fi
  7541. fi
  7542. test -n "$ac_cv_prog_DLLTOOL" && break
  7543. done
  7544. if test -z "$ac_cv_prog_DLLTOOL" ; then
  7545. set dummy dlltool
  7546. if test $build = $host ; then
  7547. DLLTOOL="$2"
  7548. else
  7549. DLLTOOL="${ncn_tool_prefix}$2"
  7550. fi
  7551. fi
  7552. if test -n "$LD"; then
  7553. ac_cv_prog_LD=$LD
  7554. elif test -n "$ac_cv_prog_LD"; then
  7555. LD=$ac_cv_prog_LD
  7556. fi
  7557. if test -n "$ac_cv_prog_LD"; then
  7558. for ncn_progname in ld; do
  7559. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7560. set dummy ${ncn_progname}; ac_word=$2
  7561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7562. $as_echo_n "checking for $ac_word... " >&6; }
  7563. if test "${ac_cv_prog_LD+set}" = set; then :
  7564. $as_echo_n "(cached) " >&6
  7565. else
  7566. if test -n "$LD"; then
  7567. ac_cv_prog_LD="$LD" # Let the user override the test.
  7568. else
  7569. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7570. for as_dir in $PATH
  7571. do
  7572. IFS=$as_save_IFS
  7573. test -z "$as_dir" && as_dir=.
  7574. for ac_exec_ext in '' $ac_executable_extensions; do
  7575. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7576. ac_cv_prog_LD="${ncn_progname}"
  7577. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7578. break 2
  7579. fi
  7580. done
  7581. done
  7582. IFS=$as_save_IFS
  7583. fi
  7584. fi
  7585. LD=$ac_cv_prog_LD
  7586. if test -n "$LD"; then
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7588. $as_echo "$LD" >&6; }
  7589. else
  7590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7591. $as_echo "no" >&6; }
  7592. fi
  7593. done
  7594. fi
  7595. for ncn_progname in ld; do
  7596. if test -n "$ncn_tool_prefix"; then
  7597. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7598. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7600. $as_echo_n "checking for $ac_word... " >&6; }
  7601. if test "${ac_cv_prog_LD+set}" = set; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. if test -n "$LD"; then
  7605. ac_cv_prog_LD="$LD" # Let the user override the test.
  7606. else
  7607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7608. for as_dir in $PATH
  7609. do
  7610. IFS=$as_save_IFS
  7611. test -z "$as_dir" && as_dir=.
  7612. for ac_exec_ext in '' $ac_executable_extensions; do
  7613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7614. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  7615. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7616. break 2
  7617. fi
  7618. done
  7619. done
  7620. IFS=$as_save_IFS
  7621. fi
  7622. fi
  7623. LD=$ac_cv_prog_LD
  7624. if test -n "$LD"; then
  7625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7626. $as_echo "$LD" >&6; }
  7627. else
  7628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7629. $as_echo "no" >&6; }
  7630. fi
  7631. fi
  7632. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  7633. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7634. set dummy ${ncn_progname}; ac_word=$2
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7636. $as_echo_n "checking for $ac_word... " >&6; }
  7637. if test "${ac_cv_prog_LD+set}" = set; then :
  7638. $as_echo_n "(cached) " >&6
  7639. else
  7640. if test -n "$LD"; then
  7641. ac_cv_prog_LD="$LD" # Let the user override the test.
  7642. else
  7643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7644. for as_dir in $PATH
  7645. do
  7646. IFS=$as_save_IFS
  7647. test -z "$as_dir" && as_dir=.
  7648. for ac_exec_ext in '' $ac_executable_extensions; do
  7649. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7650. ac_cv_prog_LD="${ncn_progname}"
  7651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7652. break 2
  7653. fi
  7654. done
  7655. done
  7656. IFS=$as_save_IFS
  7657. fi
  7658. fi
  7659. LD=$ac_cv_prog_LD
  7660. if test -n "$LD"; then
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7662. $as_echo "$LD" >&6; }
  7663. else
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7665. $as_echo "no" >&6; }
  7666. fi
  7667. fi
  7668. test -n "$ac_cv_prog_LD" && break
  7669. done
  7670. if test -z "$ac_cv_prog_LD" ; then
  7671. set dummy ld
  7672. if test $build = $host ; then
  7673. LD="$2"
  7674. else
  7675. LD="${ncn_tool_prefix}$2"
  7676. fi
  7677. fi
  7678. if test -n "$LIPO"; then
  7679. ac_cv_prog_LIPO=$LIPO
  7680. elif test -n "$ac_cv_prog_LIPO"; then
  7681. LIPO=$ac_cv_prog_LIPO
  7682. fi
  7683. if test -n "$ac_cv_prog_LIPO"; then
  7684. for ncn_progname in lipo; do
  7685. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7686. set dummy ${ncn_progname}; ac_word=$2
  7687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7688. $as_echo_n "checking for $ac_word... " >&6; }
  7689. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7690. $as_echo_n "(cached) " >&6
  7691. else
  7692. if test -n "$LIPO"; then
  7693. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7694. else
  7695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7696. for as_dir in $PATH
  7697. do
  7698. IFS=$as_save_IFS
  7699. test -z "$as_dir" && as_dir=.
  7700. for ac_exec_ext in '' $ac_executable_extensions; do
  7701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7702. ac_cv_prog_LIPO="${ncn_progname}"
  7703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7704. break 2
  7705. fi
  7706. done
  7707. done
  7708. IFS=$as_save_IFS
  7709. fi
  7710. fi
  7711. LIPO=$ac_cv_prog_LIPO
  7712. if test -n "$LIPO"; then
  7713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7714. $as_echo "$LIPO" >&6; }
  7715. else
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7717. $as_echo "no" >&6; }
  7718. fi
  7719. done
  7720. fi
  7721. for ncn_progname in lipo; do
  7722. if test -n "$ncn_tool_prefix"; then
  7723. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7724. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7726. $as_echo_n "checking for $ac_word... " >&6; }
  7727. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7728. $as_echo_n "(cached) " >&6
  7729. else
  7730. if test -n "$LIPO"; then
  7731. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7732. else
  7733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7734. for as_dir in $PATH
  7735. do
  7736. IFS=$as_save_IFS
  7737. test -z "$as_dir" && as_dir=.
  7738. for ac_exec_ext in '' $ac_executable_extensions; do
  7739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7740. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  7741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7742. break 2
  7743. fi
  7744. done
  7745. done
  7746. IFS=$as_save_IFS
  7747. fi
  7748. fi
  7749. LIPO=$ac_cv_prog_LIPO
  7750. if test -n "$LIPO"; then
  7751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7752. $as_echo "$LIPO" >&6; }
  7753. else
  7754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7755. $as_echo "no" >&6; }
  7756. fi
  7757. fi
  7758. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  7759. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7760. set dummy ${ncn_progname}; ac_word=$2
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7762. $as_echo_n "checking for $ac_word... " >&6; }
  7763. if test "${ac_cv_prog_LIPO+set}" = set; then :
  7764. $as_echo_n "(cached) " >&6
  7765. else
  7766. if test -n "$LIPO"; then
  7767. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7768. else
  7769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7770. for as_dir in $PATH
  7771. do
  7772. IFS=$as_save_IFS
  7773. test -z "$as_dir" && as_dir=.
  7774. for ac_exec_ext in '' $ac_executable_extensions; do
  7775. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7776. ac_cv_prog_LIPO="${ncn_progname}"
  7777. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7778. break 2
  7779. fi
  7780. done
  7781. done
  7782. IFS=$as_save_IFS
  7783. fi
  7784. fi
  7785. LIPO=$ac_cv_prog_LIPO
  7786. if test -n "$LIPO"; then
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7788. $as_echo "$LIPO" >&6; }
  7789. else
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7791. $as_echo "no" >&6; }
  7792. fi
  7793. fi
  7794. test -n "$ac_cv_prog_LIPO" && break
  7795. done
  7796. if test -z "$ac_cv_prog_LIPO" ; then
  7797. set dummy lipo
  7798. if test $build = $host ; then
  7799. LIPO="$2"
  7800. else
  7801. LIPO="${ncn_tool_prefix}$2"
  7802. fi
  7803. fi
  7804. if test -n "$NM"; then
  7805. ac_cv_prog_NM=$NM
  7806. elif test -n "$ac_cv_prog_NM"; then
  7807. NM=$ac_cv_prog_NM
  7808. fi
  7809. if test -n "$ac_cv_prog_NM"; then
  7810. for ncn_progname in nm; do
  7811. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7812. set dummy ${ncn_progname}; ac_word=$2
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7814. $as_echo_n "checking for $ac_word... " >&6; }
  7815. if test "${ac_cv_prog_NM+set}" = set; then :
  7816. $as_echo_n "(cached) " >&6
  7817. else
  7818. if test -n "$NM"; then
  7819. ac_cv_prog_NM="$NM" # Let the user override the test.
  7820. else
  7821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7822. for as_dir in $PATH
  7823. do
  7824. IFS=$as_save_IFS
  7825. test -z "$as_dir" && as_dir=.
  7826. for ac_exec_ext in '' $ac_executable_extensions; do
  7827. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7828. ac_cv_prog_NM="${ncn_progname}"
  7829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7830. break 2
  7831. fi
  7832. done
  7833. done
  7834. IFS=$as_save_IFS
  7835. fi
  7836. fi
  7837. NM=$ac_cv_prog_NM
  7838. if test -n "$NM"; then
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7840. $as_echo "$NM" >&6; }
  7841. else
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7843. $as_echo "no" >&6; }
  7844. fi
  7845. done
  7846. fi
  7847. for ncn_progname in nm; do
  7848. if test -n "$ncn_tool_prefix"; then
  7849. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7850. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7852. $as_echo_n "checking for $ac_word... " >&6; }
  7853. if test "${ac_cv_prog_NM+set}" = set; then :
  7854. $as_echo_n "(cached) " >&6
  7855. else
  7856. if test -n "$NM"; then
  7857. ac_cv_prog_NM="$NM" # Let the user override the test.
  7858. else
  7859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7860. for as_dir in $PATH
  7861. do
  7862. IFS=$as_save_IFS
  7863. test -z "$as_dir" && as_dir=.
  7864. for ac_exec_ext in '' $ac_executable_extensions; do
  7865. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7866. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  7867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7868. break 2
  7869. fi
  7870. done
  7871. done
  7872. IFS=$as_save_IFS
  7873. fi
  7874. fi
  7875. NM=$ac_cv_prog_NM
  7876. if test -n "$NM"; then
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7878. $as_echo "$NM" >&6; }
  7879. else
  7880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7881. $as_echo "no" >&6; }
  7882. fi
  7883. fi
  7884. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  7885. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7886. set dummy ${ncn_progname}; ac_word=$2
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7888. $as_echo_n "checking for $ac_word... " >&6; }
  7889. if test "${ac_cv_prog_NM+set}" = set; then :
  7890. $as_echo_n "(cached) " >&6
  7891. else
  7892. if test -n "$NM"; then
  7893. ac_cv_prog_NM="$NM" # Let the user override the test.
  7894. else
  7895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7896. for as_dir in $PATH
  7897. do
  7898. IFS=$as_save_IFS
  7899. test -z "$as_dir" && as_dir=.
  7900. for ac_exec_ext in '' $ac_executable_extensions; do
  7901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7902. ac_cv_prog_NM="${ncn_progname}"
  7903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7904. break 2
  7905. fi
  7906. done
  7907. done
  7908. IFS=$as_save_IFS
  7909. fi
  7910. fi
  7911. NM=$ac_cv_prog_NM
  7912. if test -n "$NM"; then
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  7914. $as_echo "$NM" >&6; }
  7915. else
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7917. $as_echo "no" >&6; }
  7918. fi
  7919. fi
  7920. test -n "$ac_cv_prog_NM" && break
  7921. done
  7922. if test -z "$ac_cv_prog_NM" ; then
  7923. set dummy nm
  7924. if test $build = $host ; then
  7925. NM="$2"
  7926. else
  7927. NM="${ncn_tool_prefix}$2"
  7928. fi
  7929. fi
  7930. if test -n "$RANLIB"; then
  7931. ac_cv_prog_RANLIB=$RANLIB
  7932. elif test -n "$ac_cv_prog_RANLIB"; then
  7933. RANLIB=$ac_cv_prog_RANLIB
  7934. fi
  7935. if test -n "$ac_cv_prog_RANLIB"; then
  7936. for ncn_progname in ranlib; do
  7937. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  7938. set dummy ${ncn_progname}; ac_word=$2
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7940. $as_echo_n "checking for $ac_word... " >&6; }
  7941. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7942. $as_echo_n "(cached) " >&6
  7943. else
  7944. if test -n "$RANLIB"; then
  7945. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7946. else
  7947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7948. for as_dir in $PATH
  7949. do
  7950. IFS=$as_save_IFS
  7951. test -z "$as_dir" && as_dir=.
  7952. for ac_exec_ext in '' $ac_executable_extensions; do
  7953. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7954. ac_cv_prog_RANLIB="${ncn_progname}"
  7955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7956. break 2
  7957. fi
  7958. done
  7959. done
  7960. IFS=$as_save_IFS
  7961. fi
  7962. fi
  7963. RANLIB=$ac_cv_prog_RANLIB
  7964. if test -n "$RANLIB"; then
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  7966. $as_echo "$RANLIB" >&6; }
  7967. else
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7969. $as_echo "no" >&6; }
  7970. fi
  7971. done
  7972. fi
  7973. for ncn_progname in ranlib; do
  7974. if test -n "$ncn_tool_prefix"; then
  7975. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  7976. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7978. $as_echo_n "checking for $ac_word... " >&6; }
  7979. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. if test -n "$RANLIB"; then
  7983. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7984. else
  7985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7986. for as_dir in $PATH
  7987. do
  7988. IFS=$as_save_IFS
  7989. test -z "$as_dir" && as_dir=.
  7990. for ac_exec_ext in '' $ac_executable_extensions; do
  7991. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7992. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  7993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7994. break 2
  7995. fi
  7996. done
  7997. done
  7998. IFS=$as_save_IFS
  7999. fi
  8000. fi
  8001. RANLIB=$ac_cv_prog_RANLIB
  8002. if test -n "$RANLIB"; then
  8003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8004. $as_echo "$RANLIB" >&6; }
  8005. else
  8006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8007. $as_echo "no" >&6; }
  8008. fi
  8009. fi
  8010. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  8011. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8012. set dummy ${ncn_progname}; ac_word=$2
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8014. $as_echo_n "checking for $ac_word... " >&6; }
  8015. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8016. $as_echo_n "(cached) " >&6
  8017. else
  8018. if test -n "$RANLIB"; then
  8019. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8020. else
  8021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8022. for as_dir in $PATH
  8023. do
  8024. IFS=$as_save_IFS
  8025. test -z "$as_dir" && as_dir=.
  8026. for ac_exec_ext in '' $ac_executable_extensions; do
  8027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8028. ac_cv_prog_RANLIB="${ncn_progname}"
  8029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8030. break 2
  8031. fi
  8032. done
  8033. done
  8034. IFS=$as_save_IFS
  8035. fi
  8036. fi
  8037. RANLIB=$ac_cv_prog_RANLIB
  8038. if test -n "$RANLIB"; then
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8040. $as_echo "$RANLIB" >&6; }
  8041. else
  8042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8043. $as_echo "no" >&6; }
  8044. fi
  8045. fi
  8046. test -n "$ac_cv_prog_RANLIB" && break
  8047. done
  8048. if test -z "$ac_cv_prog_RANLIB" ; then
  8049. RANLIB="true"
  8050. fi
  8051. if test -n "$STRIP"; then
  8052. ac_cv_prog_STRIP=$STRIP
  8053. elif test -n "$ac_cv_prog_STRIP"; then
  8054. STRIP=$ac_cv_prog_STRIP
  8055. fi
  8056. if test -n "$ac_cv_prog_STRIP"; then
  8057. for ncn_progname in strip; do
  8058. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8059. set dummy ${ncn_progname}; ac_word=$2
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8061. $as_echo_n "checking for $ac_word... " >&6; }
  8062. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8063. $as_echo_n "(cached) " >&6
  8064. else
  8065. if test -n "$STRIP"; then
  8066. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8067. else
  8068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8069. for as_dir in $PATH
  8070. do
  8071. IFS=$as_save_IFS
  8072. test -z "$as_dir" && as_dir=.
  8073. for ac_exec_ext in '' $ac_executable_extensions; do
  8074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8075. ac_cv_prog_STRIP="${ncn_progname}"
  8076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8077. break 2
  8078. fi
  8079. done
  8080. done
  8081. IFS=$as_save_IFS
  8082. fi
  8083. fi
  8084. STRIP=$ac_cv_prog_STRIP
  8085. if test -n "$STRIP"; then
  8086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8087. $as_echo "$STRIP" >&6; }
  8088. else
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8090. $as_echo "no" >&6; }
  8091. fi
  8092. done
  8093. fi
  8094. for ncn_progname in strip; do
  8095. if test -n "$ncn_tool_prefix"; then
  8096. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8097. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8099. $as_echo_n "checking for $ac_word... " >&6; }
  8100. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8101. $as_echo_n "(cached) " >&6
  8102. else
  8103. if test -n "$STRIP"; then
  8104. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8105. else
  8106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8107. for as_dir in $PATH
  8108. do
  8109. IFS=$as_save_IFS
  8110. test -z "$as_dir" && as_dir=.
  8111. for ac_exec_ext in '' $ac_executable_extensions; do
  8112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8113. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  8114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8115. break 2
  8116. fi
  8117. done
  8118. done
  8119. IFS=$as_save_IFS
  8120. fi
  8121. fi
  8122. STRIP=$ac_cv_prog_STRIP
  8123. if test -n "$STRIP"; then
  8124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8125. $as_echo "$STRIP" >&6; }
  8126. else
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8128. $as_echo "no" >&6; }
  8129. fi
  8130. fi
  8131. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  8132. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8133. set dummy ${ncn_progname}; ac_word=$2
  8134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8135. $as_echo_n "checking for $ac_word... " >&6; }
  8136. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8137. $as_echo_n "(cached) " >&6
  8138. else
  8139. if test -n "$STRIP"; then
  8140. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8141. else
  8142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8143. for as_dir in $PATH
  8144. do
  8145. IFS=$as_save_IFS
  8146. test -z "$as_dir" && as_dir=.
  8147. for ac_exec_ext in '' $ac_executable_extensions; do
  8148. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8149. ac_cv_prog_STRIP="${ncn_progname}"
  8150. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8151. break 2
  8152. fi
  8153. done
  8154. done
  8155. IFS=$as_save_IFS
  8156. fi
  8157. fi
  8158. STRIP=$ac_cv_prog_STRIP
  8159. if test -n "$STRIP"; then
  8160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8161. $as_echo "$STRIP" >&6; }
  8162. else
  8163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8164. $as_echo "no" >&6; }
  8165. fi
  8166. fi
  8167. test -n "$ac_cv_prog_STRIP" && break
  8168. done
  8169. if test -z "$ac_cv_prog_STRIP" ; then
  8170. STRIP="true"
  8171. fi
  8172. if test -n "$WINDRES"; then
  8173. ac_cv_prog_WINDRES=$WINDRES
  8174. elif test -n "$ac_cv_prog_WINDRES"; then
  8175. WINDRES=$ac_cv_prog_WINDRES
  8176. fi
  8177. if test -n "$ac_cv_prog_WINDRES"; then
  8178. for ncn_progname in windres; do
  8179. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8180. set dummy ${ncn_progname}; ac_word=$2
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8182. $as_echo_n "checking for $ac_word... " >&6; }
  8183. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8184. $as_echo_n "(cached) " >&6
  8185. else
  8186. if test -n "$WINDRES"; then
  8187. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8188. else
  8189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8190. for as_dir in $PATH
  8191. do
  8192. IFS=$as_save_IFS
  8193. test -z "$as_dir" && as_dir=.
  8194. for ac_exec_ext in '' $ac_executable_extensions; do
  8195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8196. ac_cv_prog_WINDRES="${ncn_progname}"
  8197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8198. break 2
  8199. fi
  8200. done
  8201. done
  8202. IFS=$as_save_IFS
  8203. fi
  8204. fi
  8205. WINDRES=$ac_cv_prog_WINDRES
  8206. if test -n "$WINDRES"; then
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8208. $as_echo "$WINDRES" >&6; }
  8209. else
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8211. $as_echo "no" >&6; }
  8212. fi
  8213. done
  8214. fi
  8215. for ncn_progname in windres; do
  8216. if test -n "$ncn_tool_prefix"; then
  8217. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8218. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8220. $as_echo_n "checking for $ac_word... " >&6; }
  8221. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. if test -n "$WINDRES"; then
  8225. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8226. else
  8227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8228. for as_dir in $PATH
  8229. do
  8230. IFS=$as_save_IFS
  8231. test -z "$as_dir" && as_dir=.
  8232. for ac_exec_ext in '' $ac_executable_extensions; do
  8233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8234. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  8235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8236. break 2
  8237. fi
  8238. done
  8239. done
  8240. IFS=$as_save_IFS
  8241. fi
  8242. fi
  8243. WINDRES=$ac_cv_prog_WINDRES
  8244. if test -n "$WINDRES"; then
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8246. $as_echo "$WINDRES" >&6; }
  8247. else
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8249. $as_echo "no" >&6; }
  8250. fi
  8251. fi
  8252. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  8253. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8254. set dummy ${ncn_progname}; ac_word=$2
  8255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8256. $as_echo_n "checking for $ac_word... " >&6; }
  8257. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  8258. $as_echo_n "(cached) " >&6
  8259. else
  8260. if test -n "$WINDRES"; then
  8261. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  8262. else
  8263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8264. for as_dir in $PATH
  8265. do
  8266. IFS=$as_save_IFS
  8267. test -z "$as_dir" && as_dir=.
  8268. for ac_exec_ext in '' $ac_executable_extensions; do
  8269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8270. ac_cv_prog_WINDRES="${ncn_progname}"
  8271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8272. break 2
  8273. fi
  8274. done
  8275. done
  8276. IFS=$as_save_IFS
  8277. fi
  8278. fi
  8279. WINDRES=$ac_cv_prog_WINDRES
  8280. if test -n "$WINDRES"; then
  8281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  8282. $as_echo "$WINDRES" >&6; }
  8283. else
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8285. $as_echo "no" >&6; }
  8286. fi
  8287. fi
  8288. test -n "$ac_cv_prog_WINDRES" && break
  8289. done
  8290. if test -z "$ac_cv_prog_WINDRES" ; then
  8291. set dummy windres
  8292. if test $build = $host ; then
  8293. WINDRES="$2"
  8294. else
  8295. WINDRES="${ncn_tool_prefix}$2"
  8296. fi
  8297. fi
  8298. if test -n "$WINDMC"; then
  8299. ac_cv_prog_WINDMC=$WINDMC
  8300. elif test -n "$ac_cv_prog_WINDMC"; then
  8301. WINDMC=$ac_cv_prog_WINDMC
  8302. fi
  8303. if test -n "$ac_cv_prog_WINDMC"; then
  8304. for ncn_progname in windmc; do
  8305. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8306. set dummy ${ncn_progname}; ac_word=$2
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8308. $as_echo_n "checking for $ac_word... " >&6; }
  8309. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8310. $as_echo_n "(cached) " >&6
  8311. else
  8312. if test -n "$WINDMC"; then
  8313. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8314. else
  8315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8316. for as_dir in $PATH
  8317. do
  8318. IFS=$as_save_IFS
  8319. test -z "$as_dir" && as_dir=.
  8320. for ac_exec_ext in '' $ac_executable_extensions; do
  8321. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8322. ac_cv_prog_WINDMC="${ncn_progname}"
  8323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8324. break 2
  8325. fi
  8326. done
  8327. done
  8328. IFS=$as_save_IFS
  8329. fi
  8330. fi
  8331. WINDMC=$ac_cv_prog_WINDMC
  8332. if test -n "$WINDMC"; then
  8333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8334. $as_echo "$WINDMC" >&6; }
  8335. else
  8336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8337. $as_echo "no" >&6; }
  8338. fi
  8339. done
  8340. fi
  8341. for ncn_progname in windmc; do
  8342. if test -n "$ncn_tool_prefix"; then
  8343. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8344. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8346. $as_echo_n "checking for $ac_word... " >&6; }
  8347. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8348. $as_echo_n "(cached) " >&6
  8349. else
  8350. if test -n "$WINDMC"; then
  8351. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8352. else
  8353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8354. for as_dir in $PATH
  8355. do
  8356. IFS=$as_save_IFS
  8357. test -z "$as_dir" && as_dir=.
  8358. for ac_exec_ext in '' $ac_executable_extensions; do
  8359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8360. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  8361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8362. break 2
  8363. fi
  8364. done
  8365. done
  8366. IFS=$as_save_IFS
  8367. fi
  8368. fi
  8369. WINDMC=$ac_cv_prog_WINDMC
  8370. if test -n "$WINDMC"; then
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8372. $as_echo "$WINDMC" >&6; }
  8373. else
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8375. $as_echo "no" >&6; }
  8376. fi
  8377. fi
  8378. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  8379. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8380. set dummy ${ncn_progname}; ac_word=$2
  8381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8382. $as_echo_n "checking for $ac_word... " >&6; }
  8383. if test "${ac_cv_prog_WINDMC+set}" = set; then :
  8384. $as_echo_n "(cached) " >&6
  8385. else
  8386. if test -n "$WINDMC"; then
  8387. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  8388. else
  8389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8390. for as_dir in $PATH
  8391. do
  8392. IFS=$as_save_IFS
  8393. test -z "$as_dir" && as_dir=.
  8394. for ac_exec_ext in '' $ac_executable_extensions; do
  8395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8396. ac_cv_prog_WINDMC="${ncn_progname}"
  8397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8398. break 2
  8399. fi
  8400. done
  8401. done
  8402. IFS=$as_save_IFS
  8403. fi
  8404. fi
  8405. WINDMC=$ac_cv_prog_WINDMC
  8406. if test -n "$WINDMC"; then
  8407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  8408. $as_echo "$WINDMC" >&6; }
  8409. else
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8411. $as_echo "no" >&6; }
  8412. fi
  8413. fi
  8414. test -n "$ac_cv_prog_WINDMC" && break
  8415. done
  8416. if test -z "$ac_cv_prog_WINDMC" ; then
  8417. set dummy windmc
  8418. if test $build = $host ; then
  8419. WINDMC="$2"
  8420. else
  8421. WINDMC="${ncn_tool_prefix}$2"
  8422. fi
  8423. fi
  8424. if test -n "$OBJCOPY"; then
  8425. ac_cv_prog_OBJCOPY=$OBJCOPY
  8426. elif test -n "$ac_cv_prog_OBJCOPY"; then
  8427. OBJCOPY=$ac_cv_prog_OBJCOPY
  8428. fi
  8429. if test -n "$ac_cv_prog_OBJCOPY"; then
  8430. for ncn_progname in objcopy; do
  8431. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8432. set dummy ${ncn_progname}; ac_word=$2
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8434. $as_echo_n "checking for $ac_word... " >&6; }
  8435. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8436. $as_echo_n "(cached) " >&6
  8437. else
  8438. if test -n "$OBJCOPY"; then
  8439. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8440. else
  8441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8442. for as_dir in $PATH
  8443. do
  8444. IFS=$as_save_IFS
  8445. test -z "$as_dir" && as_dir=.
  8446. for ac_exec_ext in '' $ac_executable_extensions; do
  8447. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8448. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8450. break 2
  8451. fi
  8452. done
  8453. done
  8454. IFS=$as_save_IFS
  8455. fi
  8456. fi
  8457. OBJCOPY=$ac_cv_prog_OBJCOPY
  8458. if test -n "$OBJCOPY"; then
  8459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8460. $as_echo "$OBJCOPY" >&6; }
  8461. else
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8463. $as_echo "no" >&6; }
  8464. fi
  8465. done
  8466. fi
  8467. for ncn_progname in objcopy; do
  8468. if test -n "$ncn_tool_prefix"; then
  8469. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8470. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8472. $as_echo_n "checking for $ac_word... " >&6; }
  8473. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8474. $as_echo_n "(cached) " >&6
  8475. else
  8476. if test -n "$OBJCOPY"; then
  8477. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8478. else
  8479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8480. for as_dir in $PATH
  8481. do
  8482. IFS=$as_save_IFS
  8483. test -z "$as_dir" && as_dir=.
  8484. for ac_exec_ext in '' $ac_executable_extensions; do
  8485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8486. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  8487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8488. break 2
  8489. fi
  8490. done
  8491. done
  8492. IFS=$as_save_IFS
  8493. fi
  8494. fi
  8495. OBJCOPY=$ac_cv_prog_OBJCOPY
  8496. if test -n "$OBJCOPY"; then
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8498. $as_echo "$OBJCOPY" >&6; }
  8499. else
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8501. $as_echo "no" >&6; }
  8502. fi
  8503. fi
  8504. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  8505. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8506. set dummy ${ncn_progname}; ac_word=$2
  8507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8508. $as_echo_n "checking for $ac_word... " >&6; }
  8509. if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
  8510. $as_echo_n "(cached) " >&6
  8511. else
  8512. if test -n "$OBJCOPY"; then
  8513. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  8514. else
  8515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8516. for as_dir in $PATH
  8517. do
  8518. IFS=$as_save_IFS
  8519. test -z "$as_dir" && as_dir=.
  8520. for ac_exec_ext in '' $ac_executable_extensions; do
  8521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8522. ac_cv_prog_OBJCOPY="${ncn_progname}"
  8523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8524. break 2
  8525. fi
  8526. done
  8527. done
  8528. IFS=$as_save_IFS
  8529. fi
  8530. fi
  8531. OBJCOPY=$ac_cv_prog_OBJCOPY
  8532. if test -n "$OBJCOPY"; then
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  8534. $as_echo "$OBJCOPY" >&6; }
  8535. else
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8537. $as_echo "no" >&6; }
  8538. fi
  8539. fi
  8540. test -n "$ac_cv_prog_OBJCOPY" && break
  8541. done
  8542. if test -z "$ac_cv_prog_OBJCOPY" ; then
  8543. set dummy objcopy
  8544. if test $build = $host ; then
  8545. OBJCOPY="$2"
  8546. else
  8547. OBJCOPY="${ncn_tool_prefix}$2"
  8548. fi
  8549. fi
  8550. if test -n "$OBJDUMP"; then
  8551. ac_cv_prog_OBJDUMP=$OBJDUMP
  8552. elif test -n "$ac_cv_prog_OBJDUMP"; then
  8553. OBJDUMP=$ac_cv_prog_OBJDUMP
  8554. fi
  8555. if test -n "$ac_cv_prog_OBJDUMP"; then
  8556. for ncn_progname in objdump; do
  8557. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8558. set dummy ${ncn_progname}; ac_word=$2
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8560. $as_echo_n "checking for $ac_word... " >&6; }
  8561. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8562. $as_echo_n "(cached) " >&6
  8563. else
  8564. if test -n "$OBJDUMP"; then
  8565. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8566. else
  8567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8568. for as_dir in $PATH
  8569. do
  8570. IFS=$as_save_IFS
  8571. test -z "$as_dir" && as_dir=.
  8572. for ac_exec_ext in '' $ac_executable_extensions; do
  8573. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8574. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8576. break 2
  8577. fi
  8578. done
  8579. done
  8580. IFS=$as_save_IFS
  8581. fi
  8582. fi
  8583. OBJDUMP=$ac_cv_prog_OBJDUMP
  8584. if test -n "$OBJDUMP"; then
  8585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8586. $as_echo "$OBJDUMP" >&6; }
  8587. else
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8589. $as_echo "no" >&6; }
  8590. fi
  8591. done
  8592. fi
  8593. for ncn_progname in objdump; do
  8594. if test -n "$ncn_tool_prefix"; then
  8595. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8596. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8598. $as_echo_n "checking for $ac_word... " >&6; }
  8599. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8600. $as_echo_n "(cached) " >&6
  8601. else
  8602. if test -n "$OBJDUMP"; then
  8603. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8604. else
  8605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8606. for as_dir in $PATH
  8607. do
  8608. IFS=$as_save_IFS
  8609. test -z "$as_dir" && as_dir=.
  8610. for ac_exec_ext in '' $ac_executable_extensions; do
  8611. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8612. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  8613. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8614. break 2
  8615. fi
  8616. done
  8617. done
  8618. IFS=$as_save_IFS
  8619. fi
  8620. fi
  8621. OBJDUMP=$ac_cv_prog_OBJDUMP
  8622. if test -n "$OBJDUMP"; then
  8623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8624. $as_echo "$OBJDUMP" >&6; }
  8625. else
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8627. $as_echo "no" >&6; }
  8628. fi
  8629. fi
  8630. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  8631. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8632. set dummy ${ncn_progname}; ac_word=$2
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8634. $as_echo_n "checking for $ac_word... " >&6; }
  8635. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  8636. $as_echo_n "(cached) " >&6
  8637. else
  8638. if test -n "$OBJDUMP"; then
  8639. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  8640. else
  8641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8642. for as_dir in $PATH
  8643. do
  8644. IFS=$as_save_IFS
  8645. test -z "$as_dir" && as_dir=.
  8646. for ac_exec_ext in '' $ac_executable_extensions; do
  8647. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8648. ac_cv_prog_OBJDUMP="${ncn_progname}"
  8649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8650. break 2
  8651. fi
  8652. done
  8653. done
  8654. IFS=$as_save_IFS
  8655. fi
  8656. fi
  8657. OBJDUMP=$ac_cv_prog_OBJDUMP
  8658. if test -n "$OBJDUMP"; then
  8659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  8660. $as_echo "$OBJDUMP" >&6; }
  8661. else
  8662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8663. $as_echo "no" >&6; }
  8664. fi
  8665. fi
  8666. test -n "$ac_cv_prog_OBJDUMP" && break
  8667. done
  8668. if test -z "$ac_cv_prog_OBJDUMP" ; then
  8669. set dummy objdump
  8670. if test $build = $host ; then
  8671. OBJDUMP="$2"
  8672. else
  8673. OBJDUMP="${ncn_tool_prefix}$2"
  8674. fi
  8675. fi
  8676. if test -n "$READELF"; then
  8677. ac_cv_prog_READELF=$READELF
  8678. elif test -n "$ac_cv_prog_READELF"; then
  8679. READELF=$ac_cv_prog_READELF
  8680. fi
  8681. if test -n "$ac_cv_prog_READELF"; then
  8682. for ncn_progname in readelf; do
  8683. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8684. set dummy ${ncn_progname}; ac_word=$2
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8686. $as_echo_n "checking for $ac_word... " >&6; }
  8687. if test "${ac_cv_prog_READELF+set}" = set; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. if test -n "$READELF"; then
  8691. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8692. else
  8693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8694. for as_dir in $PATH
  8695. do
  8696. IFS=$as_save_IFS
  8697. test -z "$as_dir" && as_dir=.
  8698. for ac_exec_ext in '' $ac_executable_extensions; do
  8699. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8700. ac_cv_prog_READELF="${ncn_progname}"
  8701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8702. break 2
  8703. fi
  8704. done
  8705. done
  8706. IFS=$as_save_IFS
  8707. fi
  8708. fi
  8709. READELF=$ac_cv_prog_READELF
  8710. if test -n "$READELF"; then
  8711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8712. $as_echo "$READELF" >&6; }
  8713. else
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8715. $as_echo "no" >&6; }
  8716. fi
  8717. done
  8718. fi
  8719. for ncn_progname in readelf; do
  8720. if test -n "$ncn_tool_prefix"; then
  8721. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8722. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  8723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8724. $as_echo_n "checking for $ac_word... " >&6; }
  8725. if test "${ac_cv_prog_READELF+set}" = set; then :
  8726. $as_echo_n "(cached) " >&6
  8727. else
  8728. if test -n "$READELF"; then
  8729. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8730. else
  8731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8732. for as_dir in $PATH
  8733. do
  8734. IFS=$as_save_IFS
  8735. test -z "$as_dir" && as_dir=.
  8736. for ac_exec_ext in '' $ac_executable_extensions; do
  8737. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8738. ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
  8739. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8740. break 2
  8741. fi
  8742. done
  8743. done
  8744. IFS=$as_save_IFS
  8745. fi
  8746. fi
  8747. READELF=$ac_cv_prog_READELF
  8748. if test -n "$READELF"; then
  8749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8750. $as_echo "$READELF" >&6; }
  8751. else
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8753. $as_echo "no" >&6; }
  8754. fi
  8755. fi
  8756. if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
  8757. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8758. set dummy ${ncn_progname}; ac_word=$2
  8759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8760. $as_echo_n "checking for $ac_word... " >&6; }
  8761. if test "${ac_cv_prog_READELF+set}" = set; then :
  8762. $as_echo_n "(cached) " >&6
  8763. else
  8764. if test -n "$READELF"; then
  8765. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  8766. else
  8767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8768. for as_dir in $PATH
  8769. do
  8770. IFS=$as_save_IFS
  8771. test -z "$as_dir" && as_dir=.
  8772. for ac_exec_ext in '' $ac_executable_extensions; do
  8773. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8774. ac_cv_prog_READELF="${ncn_progname}"
  8775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8776. break 2
  8777. fi
  8778. done
  8779. done
  8780. IFS=$as_save_IFS
  8781. fi
  8782. fi
  8783. READELF=$ac_cv_prog_READELF
  8784. if test -n "$READELF"; then
  8785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  8786. $as_echo "$READELF" >&6; }
  8787. else
  8788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8789. $as_echo "no" >&6; }
  8790. fi
  8791. fi
  8792. test -n "$ac_cv_prog_READELF" && break
  8793. done
  8794. if test -z "$ac_cv_prog_READELF" ; then
  8795. set dummy readelf
  8796. if test $build = $host ; then
  8797. READELF="$2"
  8798. else
  8799. READELF="${ncn_tool_prefix}$2"
  8800. fi
  8801. fi
  8802. # Target tools.
  8803. # Check whether --with-build-time-tools was given.
  8804. if test "${with_build_time_tools+set}" = set; then :
  8805. withval=$with_build_time_tools; case x"$withval" in
  8806. x/*) ;;
  8807. *)
  8808. with_build_time_tools=
  8809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  8810. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  8811. ;;
  8812. esac
  8813. else
  8814. with_build_time_tools=
  8815. fi
  8816. if test -n "$CC_FOR_TARGET"; then
  8817. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  8818. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8819. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8820. fi
  8821. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  8822. for ncn_progname in cc gcc; do
  8823. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8824. set dummy ${ncn_progname}; ac_word=$2
  8825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8826. $as_echo_n "checking for $ac_word... " >&6; }
  8827. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8828. $as_echo_n "(cached) " >&6
  8829. else
  8830. if test -n "$CC_FOR_TARGET"; then
  8831. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8832. else
  8833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8834. for as_dir in $PATH
  8835. do
  8836. IFS=$as_save_IFS
  8837. test -z "$as_dir" && as_dir=.
  8838. for ac_exec_ext in '' $ac_executable_extensions; do
  8839. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8840. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8841. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8842. break 2
  8843. fi
  8844. done
  8845. done
  8846. IFS=$as_save_IFS
  8847. fi
  8848. fi
  8849. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8850. if test -n "$CC_FOR_TARGET"; then
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8852. $as_echo "$CC_FOR_TARGET" >&6; }
  8853. else
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8855. $as_echo "no" >&6; }
  8856. fi
  8857. done
  8858. fi
  8859. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  8860. for ncn_progname in cc gcc; do
  8861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  8862. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  8863. if test -x $with_build_time_tools/${ncn_progname}; then
  8864. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8866. $as_echo "yes" >&6; }
  8867. break
  8868. else
  8869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8870. $as_echo "no" >&6; }
  8871. fi
  8872. done
  8873. fi
  8874. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  8875. for ncn_progname in cc gcc; do
  8876. if test -n "$ncn_target_tool_prefix"; then
  8877. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  8878. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  8879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8880. $as_echo_n "checking for $ac_word... " >&6; }
  8881. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8882. $as_echo_n "(cached) " >&6
  8883. else
  8884. if test -n "$CC_FOR_TARGET"; then
  8885. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8886. else
  8887. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8888. for as_dir in $PATH
  8889. do
  8890. IFS=$as_save_IFS
  8891. test -z "$as_dir" && as_dir=.
  8892. for ac_exec_ext in '' $ac_executable_extensions; do
  8893. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8894. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  8895. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8896. break 2
  8897. fi
  8898. done
  8899. done
  8900. IFS=$as_save_IFS
  8901. fi
  8902. fi
  8903. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8904. if test -n "$CC_FOR_TARGET"; then
  8905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8906. $as_echo "$CC_FOR_TARGET" >&6; }
  8907. else
  8908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8909. $as_echo "no" >&6; }
  8910. fi
  8911. fi
  8912. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  8913. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8914. set dummy ${ncn_progname}; ac_word=$2
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8916. $as_echo_n "checking for $ac_word... " >&6; }
  8917. if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
  8918. $as_echo_n "(cached) " >&6
  8919. else
  8920. if test -n "$CC_FOR_TARGET"; then
  8921. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  8922. else
  8923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8924. for as_dir in $PATH
  8925. do
  8926. IFS=$as_save_IFS
  8927. test -z "$as_dir" && as_dir=.
  8928. for ac_exec_ext in '' $ac_executable_extensions; do
  8929. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8930. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  8931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8932. break 2
  8933. fi
  8934. done
  8935. done
  8936. IFS=$as_save_IFS
  8937. fi
  8938. fi
  8939. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  8940. if test -n "$CC_FOR_TARGET"; then
  8941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  8942. $as_echo "$CC_FOR_TARGET" >&6; }
  8943. else
  8944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8945. $as_echo "no" >&6; }
  8946. fi
  8947. fi
  8948. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  8949. done
  8950. fi
  8951. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  8952. set dummy cc gcc
  8953. if test $build = $target ; then
  8954. CC_FOR_TARGET="$2"
  8955. else
  8956. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  8957. fi
  8958. else
  8959. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  8960. fi
  8961. if test -n "$CXX_FOR_TARGET"; then
  8962. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  8963. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8964. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8965. fi
  8966. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  8967. for ncn_progname in c++ g++ cxx gxx; do
  8968. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  8969. set dummy ${ncn_progname}; ac_word=$2
  8970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8971. $as_echo_n "checking for $ac_word... " >&6; }
  8972. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  8973. $as_echo_n "(cached) " >&6
  8974. else
  8975. if test -n "$CXX_FOR_TARGET"; then
  8976. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  8977. else
  8978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8979. for as_dir in $PATH
  8980. do
  8981. IFS=$as_save_IFS
  8982. test -z "$as_dir" && as_dir=.
  8983. for ac_exec_ext in '' $ac_executable_extensions; do
  8984. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8985. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  8986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8987. break 2
  8988. fi
  8989. done
  8990. done
  8991. IFS=$as_save_IFS
  8992. fi
  8993. fi
  8994. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  8995. if test -n "$CXX_FOR_TARGET"; then
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  8997. $as_echo "$CXX_FOR_TARGET" >&6; }
  8998. else
  8999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9000. $as_echo "no" >&6; }
  9001. fi
  9002. done
  9003. fi
  9004. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9005. for ncn_progname in c++ g++ cxx gxx; do
  9006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9007. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9008. if test -x $with_build_time_tools/${ncn_progname}; then
  9009. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9011. $as_echo "yes" >&6; }
  9012. break
  9013. else
  9014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9015. $as_echo "no" >&6; }
  9016. fi
  9017. done
  9018. fi
  9019. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  9020. for ncn_progname in c++ g++ cxx gxx; do
  9021. if test -n "$ncn_target_tool_prefix"; then
  9022. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9023. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9025. $as_echo_n "checking for $ac_word... " >&6; }
  9026. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9027. $as_echo_n "(cached) " >&6
  9028. else
  9029. if test -n "$CXX_FOR_TARGET"; then
  9030. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9031. else
  9032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9033. for as_dir in $PATH
  9034. do
  9035. IFS=$as_save_IFS
  9036. test -z "$as_dir" && as_dir=.
  9037. for ac_exec_ext in '' $ac_executable_extensions; do
  9038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9039. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9041. break 2
  9042. fi
  9043. done
  9044. done
  9045. IFS=$as_save_IFS
  9046. fi
  9047. fi
  9048. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9049. if test -n "$CXX_FOR_TARGET"; then
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9051. $as_echo "$CXX_FOR_TARGET" >&6; }
  9052. else
  9053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9054. $as_echo "no" >&6; }
  9055. fi
  9056. fi
  9057. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  9058. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9059. set dummy ${ncn_progname}; ac_word=$2
  9060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9061. $as_echo_n "checking for $ac_word... " >&6; }
  9062. if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
  9063. $as_echo_n "(cached) " >&6
  9064. else
  9065. if test -n "$CXX_FOR_TARGET"; then
  9066. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  9067. else
  9068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9069. for as_dir in $PATH
  9070. do
  9071. IFS=$as_save_IFS
  9072. test -z "$as_dir" && as_dir=.
  9073. for ac_exec_ext in '' $ac_executable_extensions; do
  9074. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9075. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  9076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9077. break 2
  9078. fi
  9079. done
  9080. done
  9081. IFS=$as_save_IFS
  9082. fi
  9083. fi
  9084. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  9085. if test -n "$CXX_FOR_TARGET"; then
  9086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  9087. $as_echo "$CXX_FOR_TARGET" >&6; }
  9088. else
  9089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9090. $as_echo "no" >&6; }
  9091. fi
  9092. fi
  9093. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  9094. done
  9095. fi
  9096. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  9097. set dummy c++ g++ cxx gxx
  9098. if test $build = $target ; then
  9099. CXX_FOR_TARGET="$2"
  9100. else
  9101. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9102. fi
  9103. else
  9104. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  9105. fi
  9106. if test -n "$GCC_FOR_TARGET"; then
  9107. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  9108. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9109. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9110. fi
  9111. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  9112. for ncn_progname in gcc; do
  9113. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9114. set dummy ${ncn_progname}; ac_word=$2
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9116. $as_echo_n "checking for $ac_word... " >&6; }
  9117. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9118. $as_echo_n "(cached) " >&6
  9119. else
  9120. if test -n "$GCC_FOR_TARGET"; then
  9121. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9122. else
  9123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9124. for as_dir in $PATH
  9125. do
  9126. IFS=$as_save_IFS
  9127. test -z "$as_dir" && as_dir=.
  9128. for ac_exec_ext in '' $ac_executable_extensions; do
  9129. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9130. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9132. break 2
  9133. fi
  9134. done
  9135. done
  9136. IFS=$as_save_IFS
  9137. fi
  9138. fi
  9139. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9140. if test -n "$GCC_FOR_TARGET"; then
  9141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9142. $as_echo "$GCC_FOR_TARGET" >&6; }
  9143. else
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9145. $as_echo "no" >&6; }
  9146. fi
  9147. done
  9148. fi
  9149. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9150. for ncn_progname in gcc; do
  9151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9152. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9153. if test -x $with_build_time_tools/${ncn_progname}; then
  9154. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9156. $as_echo "yes" >&6; }
  9157. break
  9158. else
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9160. $as_echo "no" >&6; }
  9161. fi
  9162. done
  9163. fi
  9164. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  9165. for ncn_progname in gcc; do
  9166. if test -n "$ncn_target_tool_prefix"; then
  9167. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9168. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9170. $as_echo_n "checking for $ac_word... " >&6; }
  9171. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9172. $as_echo_n "(cached) " >&6
  9173. else
  9174. if test -n "$GCC_FOR_TARGET"; then
  9175. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9176. else
  9177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9178. for as_dir in $PATH
  9179. do
  9180. IFS=$as_save_IFS
  9181. test -z "$as_dir" && as_dir=.
  9182. for ac_exec_ext in '' $ac_executable_extensions; do
  9183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9184. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9186. break 2
  9187. fi
  9188. done
  9189. done
  9190. IFS=$as_save_IFS
  9191. fi
  9192. fi
  9193. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9194. if test -n "$GCC_FOR_TARGET"; then
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9196. $as_echo "$GCC_FOR_TARGET" >&6; }
  9197. else
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9199. $as_echo "no" >&6; }
  9200. fi
  9201. fi
  9202. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  9203. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9204. set dummy ${ncn_progname}; ac_word=$2
  9205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9206. $as_echo_n "checking for $ac_word... " >&6; }
  9207. if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
  9208. $as_echo_n "(cached) " >&6
  9209. else
  9210. if test -n "$GCC_FOR_TARGET"; then
  9211. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  9212. else
  9213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9214. for as_dir in $PATH
  9215. do
  9216. IFS=$as_save_IFS
  9217. test -z "$as_dir" && as_dir=.
  9218. for ac_exec_ext in '' $ac_executable_extensions; do
  9219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9220. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  9221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9222. break 2
  9223. fi
  9224. done
  9225. done
  9226. IFS=$as_save_IFS
  9227. fi
  9228. fi
  9229. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  9230. if test -n "$GCC_FOR_TARGET"; then
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  9232. $as_echo "$GCC_FOR_TARGET" >&6; }
  9233. else
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9235. $as_echo "no" >&6; }
  9236. fi
  9237. fi
  9238. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  9239. done
  9240. fi
  9241. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  9242. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  9243. else
  9244. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  9245. fi
  9246. if test -n "$GFORTRAN_FOR_TARGET"; then
  9247. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  9248. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9249. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9250. fi
  9251. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9252. for ncn_progname in gfortran; do
  9253. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9254. set dummy ${ncn_progname}; ac_word=$2
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9256. $as_echo_n "checking for $ac_word... " >&6; }
  9257. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9258. $as_echo_n "(cached) " >&6
  9259. else
  9260. if test -n "$GFORTRAN_FOR_TARGET"; then
  9261. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9262. else
  9263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9264. for as_dir in $PATH
  9265. do
  9266. IFS=$as_save_IFS
  9267. test -z "$as_dir" && as_dir=.
  9268. for ac_exec_ext in '' $ac_executable_extensions; do
  9269. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9270. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9271. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9272. break 2
  9273. fi
  9274. done
  9275. done
  9276. IFS=$as_save_IFS
  9277. fi
  9278. fi
  9279. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9280. if test -n "$GFORTRAN_FOR_TARGET"; then
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9282. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9283. else
  9284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9285. $as_echo "no" >&6; }
  9286. fi
  9287. done
  9288. fi
  9289. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9290. for ncn_progname in gfortran; do
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9292. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9293. if test -x $with_build_time_tools/${ncn_progname}; then
  9294. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9296. $as_echo "yes" >&6; }
  9297. break
  9298. else
  9299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9300. $as_echo "no" >&6; }
  9301. fi
  9302. done
  9303. fi
  9304. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  9305. for ncn_progname in gfortran; do
  9306. if test -n "$ncn_target_tool_prefix"; then
  9307. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9308. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9310. $as_echo_n "checking for $ac_word... " >&6; }
  9311. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9312. $as_echo_n "(cached) " >&6
  9313. else
  9314. if test -n "$GFORTRAN_FOR_TARGET"; then
  9315. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9316. else
  9317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9318. for as_dir in $PATH
  9319. do
  9320. IFS=$as_save_IFS
  9321. test -z "$as_dir" && as_dir=.
  9322. for ac_exec_ext in '' $ac_executable_extensions; do
  9323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9324. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9326. break 2
  9327. fi
  9328. done
  9329. done
  9330. IFS=$as_save_IFS
  9331. fi
  9332. fi
  9333. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9334. if test -n "$GFORTRAN_FOR_TARGET"; then
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9336. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9337. else
  9338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9339. $as_echo "no" >&6; }
  9340. fi
  9341. fi
  9342. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  9343. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9344. set dummy ${ncn_progname}; ac_word=$2
  9345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9346. $as_echo_n "checking for $ac_word... " >&6; }
  9347. if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
  9348. $as_echo_n "(cached) " >&6
  9349. else
  9350. if test -n "$GFORTRAN_FOR_TARGET"; then
  9351. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  9352. else
  9353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9354. for as_dir in $PATH
  9355. do
  9356. IFS=$as_save_IFS
  9357. test -z "$as_dir" && as_dir=.
  9358. for ac_exec_ext in '' $ac_executable_extensions; do
  9359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9360. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  9361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9362. break 2
  9363. fi
  9364. done
  9365. done
  9366. IFS=$as_save_IFS
  9367. fi
  9368. fi
  9369. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  9370. if test -n "$GFORTRAN_FOR_TARGET"; then
  9371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  9372. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  9373. else
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9375. $as_echo "no" >&6; }
  9376. fi
  9377. fi
  9378. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  9379. done
  9380. fi
  9381. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  9382. set dummy gfortran
  9383. if test $build = $target ; then
  9384. GFORTRAN_FOR_TARGET="$2"
  9385. else
  9386. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9387. fi
  9388. else
  9389. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  9390. fi
  9391. if test -n "$GOC_FOR_TARGET"; then
  9392. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  9393. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9394. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9395. fi
  9396. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  9397. for ncn_progname in gccgo; do
  9398. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9399. set dummy ${ncn_progname}; ac_word=$2
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9401. $as_echo_n "checking for $ac_word... " >&6; }
  9402. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9403. $as_echo_n "(cached) " >&6
  9404. else
  9405. if test -n "$GOC_FOR_TARGET"; then
  9406. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9407. else
  9408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9409. for as_dir in $PATH
  9410. do
  9411. IFS=$as_save_IFS
  9412. test -z "$as_dir" && as_dir=.
  9413. for ac_exec_ext in '' $ac_executable_extensions; do
  9414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9415. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9417. break 2
  9418. fi
  9419. done
  9420. done
  9421. IFS=$as_save_IFS
  9422. fi
  9423. fi
  9424. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9425. if test -n "$GOC_FOR_TARGET"; then
  9426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9427. $as_echo "$GOC_FOR_TARGET" >&6; }
  9428. else
  9429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9430. $as_echo "no" >&6; }
  9431. fi
  9432. done
  9433. fi
  9434. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9435. for ncn_progname in gccgo; do
  9436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9437. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9438. if test -x $with_build_time_tools/${ncn_progname}; then
  9439. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9441. $as_echo "yes" >&6; }
  9442. break
  9443. else
  9444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9445. $as_echo "no" >&6; }
  9446. fi
  9447. done
  9448. fi
  9449. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  9450. for ncn_progname in gccgo; do
  9451. if test -n "$ncn_target_tool_prefix"; then
  9452. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9453. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9455. $as_echo_n "checking for $ac_word... " >&6; }
  9456. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9457. $as_echo_n "(cached) " >&6
  9458. else
  9459. if test -n "$GOC_FOR_TARGET"; then
  9460. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9461. else
  9462. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9463. for as_dir in $PATH
  9464. do
  9465. IFS=$as_save_IFS
  9466. test -z "$as_dir" && as_dir=.
  9467. for ac_exec_ext in '' $ac_executable_extensions; do
  9468. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9469. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9470. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9471. break 2
  9472. fi
  9473. done
  9474. done
  9475. IFS=$as_save_IFS
  9476. fi
  9477. fi
  9478. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9479. if test -n "$GOC_FOR_TARGET"; then
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9481. $as_echo "$GOC_FOR_TARGET" >&6; }
  9482. else
  9483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9484. $as_echo "no" >&6; }
  9485. fi
  9486. fi
  9487. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  9488. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9489. set dummy ${ncn_progname}; ac_word=$2
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9491. $as_echo_n "checking for $ac_word... " >&6; }
  9492. if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
  9493. $as_echo_n "(cached) " >&6
  9494. else
  9495. if test -n "$GOC_FOR_TARGET"; then
  9496. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  9497. else
  9498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9499. for as_dir in $PATH
  9500. do
  9501. IFS=$as_save_IFS
  9502. test -z "$as_dir" && as_dir=.
  9503. for ac_exec_ext in '' $ac_executable_extensions; do
  9504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9505. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  9506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9507. break 2
  9508. fi
  9509. done
  9510. done
  9511. IFS=$as_save_IFS
  9512. fi
  9513. fi
  9514. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  9515. if test -n "$GOC_FOR_TARGET"; then
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  9517. $as_echo "$GOC_FOR_TARGET" >&6; }
  9518. else
  9519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9520. $as_echo "no" >&6; }
  9521. fi
  9522. fi
  9523. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  9524. done
  9525. fi
  9526. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  9527. set dummy gccgo
  9528. if test $build = $target ; then
  9529. GOC_FOR_TARGET="$2"
  9530. else
  9531. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9532. fi
  9533. else
  9534. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  9535. fi
  9536. cat > conftest.c << \EOF
  9537. #ifdef __GNUC__
  9538. gcc_yay;
  9539. #endif
  9540. EOF
  9541. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  9542. have_gcc_for_target=yes
  9543. else
  9544. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  9545. have_gcc_for_target=no
  9546. fi
  9547. rm conftest.c
  9548. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9549. if test -n "$with_build_time_tools"; then
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  9551. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  9552. if test -x $with_build_time_tools/ar; then
  9553. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  9554. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  9556. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  9557. else
  9558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9559. $as_echo "no" >&6; }
  9560. fi
  9561. elif test $build != $host && test $have_gcc_for_target = yes; then
  9562. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  9563. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  9564. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  9565. fi
  9566. fi
  9567. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9568. # Extract the first word of "ar", so it can be a program name with args.
  9569. set dummy ar; ac_word=$2
  9570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9571. $as_echo_n "checking for $ac_word... " >&6; }
  9572. if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
  9573. $as_echo_n "(cached) " >&6
  9574. else
  9575. case $AR_FOR_TARGET in
  9576. [\\/]* | ?:[\\/]*)
  9577. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  9578. ;;
  9579. *)
  9580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9581. for as_dir in $gcc_cv_tool_dirs
  9582. do
  9583. IFS=$as_save_IFS
  9584. test -z "$as_dir" && as_dir=.
  9585. for ac_exec_ext in '' $ac_executable_extensions; do
  9586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9587. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9589. break 2
  9590. fi
  9591. done
  9592. done
  9593. IFS=$as_save_IFS
  9594. ;;
  9595. esac
  9596. fi
  9597. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9598. if test -n "$AR_FOR_TARGET"; then
  9599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9600. $as_echo "$AR_FOR_TARGET" >&6; }
  9601. else
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9603. $as_echo "no" >&6; }
  9604. fi
  9605. fi
  9606. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  9607. if test -n "$AR_FOR_TARGET"; then
  9608. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  9609. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9610. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9611. fi
  9612. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  9613. for ncn_progname in ar; do
  9614. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9615. set dummy ${ncn_progname}; ac_word=$2
  9616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9617. $as_echo_n "checking for $ac_word... " >&6; }
  9618. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9619. $as_echo_n "(cached) " >&6
  9620. else
  9621. if test -n "$AR_FOR_TARGET"; then
  9622. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9623. else
  9624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9625. for as_dir in $PATH
  9626. do
  9627. IFS=$as_save_IFS
  9628. test -z "$as_dir" && as_dir=.
  9629. for ac_exec_ext in '' $ac_executable_extensions; do
  9630. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9631. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9632. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9633. break 2
  9634. fi
  9635. done
  9636. done
  9637. IFS=$as_save_IFS
  9638. fi
  9639. fi
  9640. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9641. if test -n "$AR_FOR_TARGET"; then
  9642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9643. $as_echo "$AR_FOR_TARGET" >&6; }
  9644. else
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9646. $as_echo "no" >&6; }
  9647. fi
  9648. done
  9649. fi
  9650. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9651. for ncn_progname in ar; do
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9653. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9654. if test -x $with_build_time_tools/${ncn_progname}; then
  9655. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9657. $as_echo "yes" >&6; }
  9658. break
  9659. else
  9660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9661. $as_echo "no" >&6; }
  9662. fi
  9663. done
  9664. fi
  9665. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  9666. for ncn_progname in ar; do
  9667. if test -n "$ncn_target_tool_prefix"; then
  9668. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9669. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9671. $as_echo_n "checking for $ac_word... " >&6; }
  9672. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9673. $as_echo_n "(cached) " >&6
  9674. else
  9675. if test -n "$AR_FOR_TARGET"; then
  9676. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9677. else
  9678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9679. for as_dir in $PATH
  9680. do
  9681. IFS=$as_save_IFS
  9682. test -z "$as_dir" && as_dir=.
  9683. for ac_exec_ext in '' $ac_executable_extensions; do
  9684. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9685. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9687. break 2
  9688. fi
  9689. done
  9690. done
  9691. IFS=$as_save_IFS
  9692. fi
  9693. fi
  9694. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9695. if test -n "$AR_FOR_TARGET"; then
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9697. $as_echo "$AR_FOR_TARGET" >&6; }
  9698. else
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9700. $as_echo "no" >&6; }
  9701. fi
  9702. fi
  9703. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  9704. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9705. set dummy ${ncn_progname}; ac_word=$2
  9706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9707. $as_echo_n "checking for $ac_word... " >&6; }
  9708. if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
  9709. $as_echo_n "(cached) " >&6
  9710. else
  9711. if test -n "$AR_FOR_TARGET"; then
  9712. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  9713. else
  9714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9715. for as_dir in $PATH
  9716. do
  9717. IFS=$as_save_IFS
  9718. test -z "$as_dir" && as_dir=.
  9719. for ac_exec_ext in '' $ac_executable_extensions; do
  9720. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9721. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  9722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9723. break 2
  9724. fi
  9725. done
  9726. done
  9727. IFS=$as_save_IFS
  9728. fi
  9729. fi
  9730. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  9731. if test -n "$AR_FOR_TARGET"; then
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  9733. $as_echo "$AR_FOR_TARGET" >&6; }
  9734. else
  9735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9736. $as_echo "no" >&6; }
  9737. fi
  9738. fi
  9739. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  9740. done
  9741. fi
  9742. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  9743. set dummy ar
  9744. if test $build = $target ; then
  9745. AR_FOR_TARGET="$2"
  9746. else
  9747. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9748. fi
  9749. else
  9750. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  9751. fi
  9752. else
  9753. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  9754. fi
  9755. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9756. if test -n "$with_build_time_tools"; then
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  9758. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  9759. if test -x $with_build_time_tools/as; then
  9760. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  9761. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  9763. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  9764. else
  9765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9766. $as_echo "no" >&6; }
  9767. fi
  9768. elif test $build != $host && test $have_gcc_for_target = yes; then
  9769. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  9770. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  9771. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  9772. fi
  9773. fi
  9774. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9775. # Extract the first word of "as", so it can be a program name with args.
  9776. set dummy as; ac_word=$2
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9778. $as_echo_n "checking for $ac_word... " >&6; }
  9779. if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
  9780. $as_echo_n "(cached) " >&6
  9781. else
  9782. case $AS_FOR_TARGET in
  9783. [\\/]* | ?:[\\/]*)
  9784. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  9785. ;;
  9786. *)
  9787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9788. for as_dir in $gcc_cv_tool_dirs
  9789. do
  9790. IFS=$as_save_IFS
  9791. test -z "$as_dir" && as_dir=.
  9792. for ac_exec_ext in '' $ac_executable_extensions; do
  9793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9794. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  9795. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9796. break 2
  9797. fi
  9798. done
  9799. done
  9800. IFS=$as_save_IFS
  9801. ;;
  9802. esac
  9803. fi
  9804. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9805. if test -n "$AS_FOR_TARGET"; then
  9806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9807. $as_echo "$AS_FOR_TARGET" >&6; }
  9808. else
  9809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9810. $as_echo "no" >&6; }
  9811. fi
  9812. fi
  9813. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  9814. if test -n "$AS_FOR_TARGET"; then
  9815. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  9816. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9817. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9818. fi
  9819. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  9820. for ncn_progname in as; do
  9821. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9822. set dummy ${ncn_progname}; ac_word=$2
  9823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9824. $as_echo_n "checking for $ac_word... " >&6; }
  9825. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9826. $as_echo_n "(cached) " >&6
  9827. else
  9828. if test -n "$AS_FOR_TARGET"; then
  9829. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9830. else
  9831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9832. for as_dir in $PATH
  9833. do
  9834. IFS=$as_save_IFS
  9835. test -z "$as_dir" && as_dir=.
  9836. for ac_exec_ext in '' $ac_executable_extensions; do
  9837. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9838. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9840. break 2
  9841. fi
  9842. done
  9843. done
  9844. IFS=$as_save_IFS
  9845. fi
  9846. fi
  9847. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9848. if test -n "$AS_FOR_TARGET"; then
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9850. $as_echo "$AS_FOR_TARGET" >&6; }
  9851. else
  9852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9853. $as_echo "no" >&6; }
  9854. fi
  9855. done
  9856. fi
  9857. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  9858. for ncn_progname in as; do
  9859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  9860. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  9861. if test -x $with_build_time_tools/${ncn_progname}; then
  9862. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  9863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9864. $as_echo "yes" >&6; }
  9865. break
  9866. else
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9868. $as_echo "no" >&6; }
  9869. fi
  9870. done
  9871. fi
  9872. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  9873. for ncn_progname in as; do
  9874. if test -n "$ncn_target_tool_prefix"; then
  9875. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9876. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  9877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9878. $as_echo_n "checking for $ac_word... " >&6; }
  9879. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9880. $as_echo_n "(cached) " >&6
  9881. else
  9882. if test -n "$AS_FOR_TARGET"; then
  9883. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9884. else
  9885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9886. for as_dir in $PATH
  9887. do
  9888. IFS=$as_save_IFS
  9889. test -z "$as_dir" && as_dir=.
  9890. for ac_exec_ext in '' $ac_executable_extensions; do
  9891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9892. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  9893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9894. break 2
  9895. fi
  9896. done
  9897. done
  9898. IFS=$as_save_IFS
  9899. fi
  9900. fi
  9901. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9902. if test -n "$AS_FOR_TARGET"; then
  9903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9904. $as_echo "$AS_FOR_TARGET" >&6; }
  9905. else
  9906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9907. $as_echo "no" >&6; }
  9908. fi
  9909. fi
  9910. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  9911. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9912. set dummy ${ncn_progname}; ac_word=$2
  9913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9914. $as_echo_n "checking for $ac_word... " >&6; }
  9915. if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
  9916. $as_echo_n "(cached) " >&6
  9917. else
  9918. if test -n "$AS_FOR_TARGET"; then
  9919. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  9920. else
  9921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9922. for as_dir in $PATH
  9923. do
  9924. IFS=$as_save_IFS
  9925. test -z "$as_dir" && as_dir=.
  9926. for ac_exec_ext in '' $ac_executable_extensions; do
  9927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9928. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  9929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9930. break 2
  9931. fi
  9932. done
  9933. done
  9934. IFS=$as_save_IFS
  9935. fi
  9936. fi
  9937. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  9938. if test -n "$AS_FOR_TARGET"; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  9940. $as_echo "$AS_FOR_TARGET" >&6; }
  9941. else
  9942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9943. $as_echo "no" >&6; }
  9944. fi
  9945. fi
  9946. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  9947. done
  9948. fi
  9949. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  9950. set dummy as
  9951. if test $build = $target ; then
  9952. AS_FOR_TARGET="$2"
  9953. else
  9954. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  9955. fi
  9956. else
  9957. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  9958. fi
  9959. else
  9960. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  9961. fi
  9962. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  9963. if test -n "$with_build_time_tools"; then
  9964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  9965. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  9966. if test -x $with_build_time_tools/dlltool; then
  9967. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  9968. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  9970. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  9971. else
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9973. $as_echo "no" >&6; }
  9974. fi
  9975. elif test $build != $host && test $have_gcc_for_target = yes; then
  9976. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  9977. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  9978. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  9979. fi
  9980. fi
  9981. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  9982. # Extract the first word of "dlltool", so it can be a program name with args.
  9983. set dummy dlltool; ac_word=$2
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9985. $as_echo_n "checking for $ac_word... " >&6; }
  9986. if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
  9987. $as_echo_n "(cached) " >&6
  9988. else
  9989. case $DLLTOOL_FOR_TARGET in
  9990. [\\/]* | ?:[\\/]*)
  9991. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  9992. ;;
  9993. *)
  9994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9995. for as_dir in $gcc_cv_tool_dirs
  9996. do
  9997. IFS=$as_save_IFS
  9998. test -z "$as_dir" && as_dir=.
  9999. for ac_exec_ext in '' $ac_executable_extensions; do
  10000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10001. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10003. break 2
  10004. fi
  10005. done
  10006. done
  10007. IFS=$as_save_IFS
  10008. ;;
  10009. esac
  10010. fi
  10011. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10012. if test -n "$DLLTOOL_FOR_TARGET"; then
  10013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10014. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10015. else
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10017. $as_echo "no" >&6; }
  10018. fi
  10019. fi
  10020. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  10021. if test -n "$DLLTOOL_FOR_TARGET"; then
  10022. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  10023. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10024. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10025. fi
  10026. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10027. for ncn_progname in dlltool; do
  10028. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10029. set dummy ${ncn_progname}; ac_word=$2
  10030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10031. $as_echo_n "checking for $ac_word... " >&6; }
  10032. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10033. $as_echo_n "(cached) " >&6
  10034. else
  10035. if test -n "$DLLTOOL_FOR_TARGET"; then
  10036. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10037. else
  10038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10039. for as_dir in $PATH
  10040. do
  10041. IFS=$as_save_IFS
  10042. test -z "$as_dir" && as_dir=.
  10043. for ac_exec_ext in '' $ac_executable_extensions; do
  10044. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10045. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10046. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10047. break 2
  10048. fi
  10049. done
  10050. done
  10051. IFS=$as_save_IFS
  10052. fi
  10053. fi
  10054. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10055. if test -n "$DLLTOOL_FOR_TARGET"; then
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10057. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10058. else
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10060. $as_echo "no" >&6; }
  10061. fi
  10062. done
  10063. fi
  10064. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10065. for ncn_progname in dlltool; do
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10067. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10068. if test -x $with_build_time_tools/${ncn_progname}; then
  10069. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10071. $as_echo "yes" >&6; }
  10072. break
  10073. else
  10074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10075. $as_echo "no" >&6; }
  10076. fi
  10077. done
  10078. fi
  10079. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  10080. for ncn_progname in dlltool; do
  10081. if test -n "$ncn_target_tool_prefix"; then
  10082. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10083. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10085. $as_echo_n "checking for $ac_word... " >&6; }
  10086. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10087. $as_echo_n "(cached) " >&6
  10088. else
  10089. if test -n "$DLLTOOL_FOR_TARGET"; then
  10090. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10091. else
  10092. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10093. for as_dir in $PATH
  10094. do
  10095. IFS=$as_save_IFS
  10096. test -z "$as_dir" && as_dir=.
  10097. for ac_exec_ext in '' $ac_executable_extensions; do
  10098. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10099. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10100. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10101. break 2
  10102. fi
  10103. done
  10104. done
  10105. IFS=$as_save_IFS
  10106. fi
  10107. fi
  10108. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10109. if test -n "$DLLTOOL_FOR_TARGET"; then
  10110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10111. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10112. else
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10114. $as_echo "no" >&6; }
  10115. fi
  10116. fi
  10117. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  10118. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10119. set dummy ${ncn_progname}; ac_word=$2
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10121. $as_echo_n "checking for $ac_word... " >&6; }
  10122. if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
  10123. $as_echo_n "(cached) " >&6
  10124. else
  10125. if test -n "$DLLTOOL_FOR_TARGET"; then
  10126. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  10127. else
  10128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10129. for as_dir in $PATH
  10130. do
  10131. IFS=$as_save_IFS
  10132. test -z "$as_dir" && as_dir=.
  10133. for ac_exec_ext in '' $ac_executable_extensions; do
  10134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10135. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  10136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10137. break 2
  10138. fi
  10139. done
  10140. done
  10141. IFS=$as_save_IFS
  10142. fi
  10143. fi
  10144. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  10145. if test -n "$DLLTOOL_FOR_TARGET"; then
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  10147. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  10148. else
  10149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10150. $as_echo "no" >&6; }
  10151. fi
  10152. fi
  10153. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  10154. done
  10155. fi
  10156. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  10157. set dummy dlltool
  10158. if test $build = $target ; then
  10159. DLLTOOL_FOR_TARGET="$2"
  10160. else
  10161. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10162. fi
  10163. else
  10164. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  10165. fi
  10166. else
  10167. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  10168. fi
  10169. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10170. if test -n "$with_build_time_tools"; then
  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  10172. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  10173. if test -x $with_build_time_tools/ld; then
  10174. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  10175. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  10177. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  10178. else
  10179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10180. $as_echo "no" >&6; }
  10181. fi
  10182. elif test $build != $host && test $have_gcc_for_target = yes; then
  10183. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  10184. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  10185. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  10186. fi
  10187. fi
  10188. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10189. # Extract the first word of "ld", so it can be a program name with args.
  10190. set dummy ld; ac_word=$2
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10192. $as_echo_n "checking for $ac_word... " >&6; }
  10193. if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
  10194. $as_echo_n "(cached) " >&6
  10195. else
  10196. case $LD_FOR_TARGET in
  10197. [\\/]* | ?:[\\/]*)
  10198. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  10199. ;;
  10200. *)
  10201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10202. for as_dir in $gcc_cv_tool_dirs
  10203. do
  10204. IFS=$as_save_IFS
  10205. test -z "$as_dir" && as_dir=.
  10206. for ac_exec_ext in '' $ac_executable_extensions; do
  10207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10208. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10210. break 2
  10211. fi
  10212. done
  10213. done
  10214. IFS=$as_save_IFS
  10215. ;;
  10216. esac
  10217. fi
  10218. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10219. if test -n "$LD_FOR_TARGET"; then
  10220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10221. $as_echo "$LD_FOR_TARGET" >&6; }
  10222. else
  10223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10224. $as_echo "no" >&6; }
  10225. fi
  10226. fi
  10227. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  10228. if test -n "$LD_FOR_TARGET"; then
  10229. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  10230. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10231. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10232. fi
  10233. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  10234. for ncn_progname in ld; do
  10235. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10236. set dummy ${ncn_progname}; ac_word=$2
  10237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10238. $as_echo_n "checking for $ac_word... " >&6; }
  10239. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10240. $as_echo_n "(cached) " >&6
  10241. else
  10242. if test -n "$LD_FOR_TARGET"; then
  10243. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10244. else
  10245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10246. for as_dir in $PATH
  10247. do
  10248. IFS=$as_save_IFS
  10249. test -z "$as_dir" && as_dir=.
  10250. for ac_exec_ext in '' $ac_executable_extensions; do
  10251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10252. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10253. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10254. break 2
  10255. fi
  10256. done
  10257. done
  10258. IFS=$as_save_IFS
  10259. fi
  10260. fi
  10261. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10262. if test -n "$LD_FOR_TARGET"; then
  10263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10264. $as_echo "$LD_FOR_TARGET" >&6; }
  10265. else
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10267. $as_echo "no" >&6; }
  10268. fi
  10269. done
  10270. fi
  10271. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10272. for ncn_progname in ld; do
  10273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10274. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10275. if test -x $with_build_time_tools/${ncn_progname}; then
  10276. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10278. $as_echo "yes" >&6; }
  10279. break
  10280. else
  10281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10282. $as_echo "no" >&6; }
  10283. fi
  10284. done
  10285. fi
  10286. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  10287. for ncn_progname in ld; do
  10288. if test -n "$ncn_target_tool_prefix"; then
  10289. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10290. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10292. $as_echo_n "checking for $ac_word... " >&6; }
  10293. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. if test -n "$LD_FOR_TARGET"; then
  10297. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10298. else
  10299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10300. for as_dir in $PATH
  10301. do
  10302. IFS=$as_save_IFS
  10303. test -z "$as_dir" && as_dir=.
  10304. for ac_exec_ext in '' $ac_executable_extensions; do
  10305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10306. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10308. break 2
  10309. fi
  10310. done
  10311. done
  10312. IFS=$as_save_IFS
  10313. fi
  10314. fi
  10315. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10316. if test -n "$LD_FOR_TARGET"; then
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10318. $as_echo "$LD_FOR_TARGET" >&6; }
  10319. else
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10321. $as_echo "no" >&6; }
  10322. fi
  10323. fi
  10324. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  10325. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10326. set dummy ${ncn_progname}; ac_word=$2
  10327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10328. $as_echo_n "checking for $ac_word... " >&6; }
  10329. if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
  10330. $as_echo_n "(cached) " >&6
  10331. else
  10332. if test -n "$LD_FOR_TARGET"; then
  10333. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  10334. else
  10335. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10336. for as_dir in $PATH
  10337. do
  10338. IFS=$as_save_IFS
  10339. test -z "$as_dir" && as_dir=.
  10340. for ac_exec_ext in '' $ac_executable_extensions; do
  10341. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10342. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  10343. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10344. break 2
  10345. fi
  10346. done
  10347. done
  10348. IFS=$as_save_IFS
  10349. fi
  10350. fi
  10351. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  10352. if test -n "$LD_FOR_TARGET"; then
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  10354. $as_echo "$LD_FOR_TARGET" >&6; }
  10355. else
  10356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10357. $as_echo "no" >&6; }
  10358. fi
  10359. fi
  10360. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  10361. done
  10362. fi
  10363. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  10364. set dummy ld
  10365. if test $build = $target ; then
  10366. LD_FOR_TARGET="$2"
  10367. else
  10368. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10369. fi
  10370. else
  10371. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  10372. fi
  10373. else
  10374. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  10375. fi
  10376. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10377. if test -n "$with_build_time_tools"; then
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  10379. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  10380. if test -x $with_build_time_tools/lipo; then
  10381. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  10382. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  10384. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  10385. else
  10386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10387. $as_echo "no" >&6; }
  10388. fi
  10389. elif test $build != $host && test $have_gcc_for_target = yes; then
  10390. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  10391. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  10392. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10393. fi
  10394. fi
  10395. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10396. # Extract the first word of "lipo", so it can be a program name with args.
  10397. set dummy lipo; ac_word=$2
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10399. $as_echo_n "checking for $ac_word... " >&6; }
  10400. if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. case $LIPO_FOR_TARGET in
  10404. [\\/]* | ?:[\\/]*)
  10405. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  10406. ;;
  10407. *)
  10408. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10409. for as_dir in $gcc_cv_tool_dirs
  10410. do
  10411. IFS=$as_save_IFS
  10412. test -z "$as_dir" && as_dir=.
  10413. for ac_exec_ext in '' $ac_executable_extensions; do
  10414. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10415. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10416. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10417. break 2
  10418. fi
  10419. done
  10420. done
  10421. IFS=$as_save_IFS
  10422. ;;
  10423. esac
  10424. fi
  10425. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10426. if test -n "$LIPO_FOR_TARGET"; then
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10428. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10429. else
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10431. $as_echo "no" >&6; }
  10432. fi
  10433. fi
  10434. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  10435. if test -n "$LIPO_FOR_TARGET"; then
  10436. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  10437. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10438. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10439. fi
  10440. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10441. for ncn_progname in lipo; do
  10442. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10443. set dummy ${ncn_progname}; ac_word=$2
  10444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10445. $as_echo_n "checking for $ac_word... " >&6; }
  10446. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10447. $as_echo_n "(cached) " >&6
  10448. else
  10449. if test -n "$LIPO_FOR_TARGET"; then
  10450. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10451. else
  10452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10453. for as_dir in $PATH
  10454. do
  10455. IFS=$as_save_IFS
  10456. test -z "$as_dir" && as_dir=.
  10457. for ac_exec_ext in '' $ac_executable_extensions; do
  10458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10459. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10460. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10461. break 2
  10462. fi
  10463. done
  10464. done
  10465. IFS=$as_save_IFS
  10466. fi
  10467. fi
  10468. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10469. if test -n "$LIPO_FOR_TARGET"; then
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10471. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10472. else
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10474. $as_echo "no" >&6; }
  10475. fi
  10476. done
  10477. fi
  10478. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10479. for ncn_progname in lipo; do
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10481. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10482. if test -x $with_build_time_tools/${ncn_progname}; then
  10483. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10485. $as_echo "yes" >&6; }
  10486. break
  10487. else
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10489. $as_echo "no" >&6; }
  10490. fi
  10491. done
  10492. fi
  10493. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  10494. for ncn_progname in lipo; do
  10495. if test -n "$ncn_target_tool_prefix"; then
  10496. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10497. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10499. $as_echo_n "checking for $ac_word... " >&6; }
  10500. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10501. $as_echo_n "(cached) " >&6
  10502. else
  10503. if test -n "$LIPO_FOR_TARGET"; then
  10504. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10505. else
  10506. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10507. for as_dir in $PATH
  10508. do
  10509. IFS=$as_save_IFS
  10510. test -z "$as_dir" && as_dir=.
  10511. for ac_exec_ext in '' $ac_executable_extensions; do
  10512. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10513. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10514. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10515. break 2
  10516. fi
  10517. done
  10518. done
  10519. IFS=$as_save_IFS
  10520. fi
  10521. fi
  10522. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10523. if test -n "$LIPO_FOR_TARGET"; then
  10524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10525. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10526. else
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10528. $as_echo "no" >&6; }
  10529. fi
  10530. fi
  10531. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  10532. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10533. set dummy ${ncn_progname}; ac_word=$2
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10535. $as_echo_n "checking for $ac_word... " >&6; }
  10536. if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
  10537. $as_echo_n "(cached) " >&6
  10538. else
  10539. if test -n "$LIPO_FOR_TARGET"; then
  10540. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  10541. else
  10542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10543. for as_dir in $PATH
  10544. do
  10545. IFS=$as_save_IFS
  10546. test -z "$as_dir" && as_dir=.
  10547. for ac_exec_ext in '' $ac_executable_extensions; do
  10548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10549. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  10550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10551. break 2
  10552. fi
  10553. done
  10554. done
  10555. IFS=$as_save_IFS
  10556. fi
  10557. fi
  10558. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  10559. if test -n "$LIPO_FOR_TARGET"; then
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  10561. $as_echo "$LIPO_FOR_TARGET" >&6; }
  10562. else
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10564. $as_echo "no" >&6; }
  10565. fi
  10566. fi
  10567. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  10568. done
  10569. fi
  10570. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  10571. set dummy lipo
  10572. if test $build = $target ; then
  10573. LIPO_FOR_TARGET="$2"
  10574. else
  10575. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10576. fi
  10577. else
  10578. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  10579. fi
  10580. else
  10581. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  10582. fi
  10583. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10584. if test -n "$with_build_time_tools"; then
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  10586. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  10587. if test -x $with_build_time_tools/nm; then
  10588. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  10589. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  10591. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  10592. else
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10594. $as_echo "no" >&6; }
  10595. fi
  10596. elif test $build != $host && test $have_gcc_for_target = yes; then
  10597. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  10598. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  10599. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  10600. fi
  10601. fi
  10602. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10603. # Extract the first word of "nm", so it can be a program name with args.
  10604. set dummy nm; ac_word=$2
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10606. $as_echo_n "checking for $ac_word... " >&6; }
  10607. if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
  10608. $as_echo_n "(cached) " >&6
  10609. else
  10610. case $NM_FOR_TARGET in
  10611. [\\/]* | ?:[\\/]*)
  10612. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  10613. ;;
  10614. *)
  10615. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10616. for as_dir in $gcc_cv_tool_dirs
  10617. do
  10618. IFS=$as_save_IFS
  10619. test -z "$as_dir" && as_dir=.
  10620. for ac_exec_ext in '' $ac_executable_extensions; do
  10621. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10622. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10623. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10624. break 2
  10625. fi
  10626. done
  10627. done
  10628. IFS=$as_save_IFS
  10629. ;;
  10630. esac
  10631. fi
  10632. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10633. if test -n "$NM_FOR_TARGET"; then
  10634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10635. $as_echo "$NM_FOR_TARGET" >&6; }
  10636. else
  10637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10638. $as_echo "no" >&6; }
  10639. fi
  10640. fi
  10641. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  10642. if test -n "$NM_FOR_TARGET"; then
  10643. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  10644. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10645. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10646. fi
  10647. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  10648. for ncn_progname in nm; do
  10649. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10650. set dummy ${ncn_progname}; ac_word=$2
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10652. $as_echo_n "checking for $ac_word... " >&6; }
  10653. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10654. $as_echo_n "(cached) " >&6
  10655. else
  10656. if test -n "$NM_FOR_TARGET"; then
  10657. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10658. else
  10659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10660. for as_dir in $PATH
  10661. do
  10662. IFS=$as_save_IFS
  10663. test -z "$as_dir" && as_dir=.
  10664. for ac_exec_ext in '' $ac_executable_extensions; do
  10665. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10666. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10668. break 2
  10669. fi
  10670. done
  10671. done
  10672. IFS=$as_save_IFS
  10673. fi
  10674. fi
  10675. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10676. if test -n "$NM_FOR_TARGET"; then
  10677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10678. $as_echo "$NM_FOR_TARGET" >&6; }
  10679. else
  10680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10681. $as_echo "no" >&6; }
  10682. fi
  10683. done
  10684. fi
  10685. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10686. for ncn_progname in nm; do
  10687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10688. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10689. if test -x $with_build_time_tools/${ncn_progname}; then
  10690. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10692. $as_echo "yes" >&6; }
  10693. break
  10694. else
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10696. $as_echo "no" >&6; }
  10697. fi
  10698. done
  10699. fi
  10700. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  10701. for ncn_progname in nm; do
  10702. if test -n "$ncn_target_tool_prefix"; then
  10703. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10704. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10706. $as_echo_n "checking for $ac_word... " >&6; }
  10707. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10708. $as_echo_n "(cached) " >&6
  10709. else
  10710. if test -n "$NM_FOR_TARGET"; then
  10711. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10712. else
  10713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10714. for as_dir in $PATH
  10715. do
  10716. IFS=$as_save_IFS
  10717. test -z "$as_dir" && as_dir=.
  10718. for ac_exec_ext in '' $ac_executable_extensions; do
  10719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10720. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10721. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10722. break 2
  10723. fi
  10724. done
  10725. done
  10726. IFS=$as_save_IFS
  10727. fi
  10728. fi
  10729. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10730. if test -n "$NM_FOR_TARGET"; then
  10731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10732. $as_echo "$NM_FOR_TARGET" >&6; }
  10733. else
  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10735. $as_echo "no" >&6; }
  10736. fi
  10737. fi
  10738. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  10739. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10740. set dummy ${ncn_progname}; ac_word=$2
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10742. $as_echo_n "checking for $ac_word... " >&6; }
  10743. if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
  10744. $as_echo_n "(cached) " >&6
  10745. else
  10746. if test -n "$NM_FOR_TARGET"; then
  10747. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  10748. else
  10749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10750. for as_dir in $PATH
  10751. do
  10752. IFS=$as_save_IFS
  10753. test -z "$as_dir" && as_dir=.
  10754. for ac_exec_ext in '' $ac_executable_extensions; do
  10755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10756. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  10757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10758. break 2
  10759. fi
  10760. done
  10761. done
  10762. IFS=$as_save_IFS
  10763. fi
  10764. fi
  10765. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  10766. if test -n "$NM_FOR_TARGET"; then
  10767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  10768. $as_echo "$NM_FOR_TARGET" >&6; }
  10769. else
  10770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10771. $as_echo "no" >&6; }
  10772. fi
  10773. fi
  10774. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  10775. done
  10776. fi
  10777. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  10778. set dummy nm
  10779. if test $build = $target ; then
  10780. NM_FOR_TARGET="$2"
  10781. else
  10782. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10783. fi
  10784. else
  10785. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  10786. fi
  10787. else
  10788. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  10789. fi
  10790. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  10791. if test -n "$with_build_time_tools"; then
  10792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
  10793. $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
  10794. if test -x $with_build_time_tools/objcopy; then
  10795. OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
  10796. ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
  10798. $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
  10799. else
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10801. $as_echo "no" >&6; }
  10802. fi
  10803. elif test $build != $host && test $have_gcc_for_target = yes; then
  10804. OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
  10805. test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
  10806. test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10807. fi
  10808. fi
  10809. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  10810. # Extract the first word of "objcopy", so it can be a program name with args.
  10811. set dummy objcopy; ac_word=$2
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10813. $as_echo_n "checking for $ac_word... " >&6; }
  10814. if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
  10815. $as_echo_n "(cached) " >&6
  10816. else
  10817. case $OBJCOPY_FOR_TARGET in
  10818. [\\/]* | ?:[\\/]*)
  10819. ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
  10820. ;;
  10821. *)
  10822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10823. for as_dir in $gcc_cv_tool_dirs
  10824. do
  10825. IFS=$as_save_IFS
  10826. test -z "$as_dir" && as_dir=.
  10827. for ac_exec_ext in '' $ac_executable_extensions; do
  10828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10829. ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  10830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10831. break 2
  10832. fi
  10833. done
  10834. done
  10835. IFS=$as_save_IFS
  10836. ;;
  10837. esac
  10838. fi
  10839. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  10840. if test -n "$OBJCOPY_FOR_TARGET"; then
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  10842. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  10843. else
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10845. $as_echo "no" >&6; }
  10846. fi
  10847. fi
  10848. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  10849. if test -n "$OBJCOPY_FOR_TARGET"; then
  10850. ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  10851. elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  10852. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  10853. fi
  10854. if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  10855. for ncn_progname in objcopy; do
  10856. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10857. set dummy ${ncn_progname}; ac_word=$2
  10858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10859. $as_echo_n "checking for $ac_word... " >&6; }
  10860. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  10861. $as_echo_n "(cached) " >&6
  10862. else
  10863. if test -n "$OBJCOPY_FOR_TARGET"; then
  10864. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  10865. else
  10866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10867. for as_dir in $PATH
  10868. do
  10869. IFS=$as_save_IFS
  10870. test -z "$as_dir" && as_dir=.
  10871. for ac_exec_ext in '' $ac_executable_extensions; do
  10872. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10873. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  10874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10875. break 2
  10876. fi
  10877. done
  10878. done
  10879. IFS=$as_save_IFS
  10880. fi
  10881. fi
  10882. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  10883. if test -n "$OBJCOPY_FOR_TARGET"; then
  10884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  10885. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  10886. else
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10888. $as_echo "no" >&6; }
  10889. fi
  10890. done
  10891. fi
  10892. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
  10893. for ncn_progname in objcopy; do
  10894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  10895. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  10896. if test -x $with_build_time_tools/${ncn_progname}; then
  10897. ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10899. $as_echo "yes" >&6; }
  10900. break
  10901. else
  10902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10903. $as_echo "no" >&6; }
  10904. fi
  10905. done
  10906. fi
  10907. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  10908. for ncn_progname in objcopy; do
  10909. if test -n "$ncn_target_tool_prefix"; then
  10910. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10911. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  10912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10913. $as_echo_n "checking for $ac_word... " >&6; }
  10914. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  10915. $as_echo_n "(cached) " >&6
  10916. else
  10917. if test -n "$OBJCOPY_FOR_TARGET"; then
  10918. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  10919. else
  10920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10921. for as_dir in $PATH
  10922. do
  10923. IFS=$as_save_IFS
  10924. test -z "$as_dir" && as_dir=.
  10925. for ac_exec_ext in '' $ac_executable_extensions; do
  10926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10927. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  10928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10929. break 2
  10930. fi
  10931. done
  10932. done
  10933. IFS=$as_save_IFS
  10934. fi
  10935. fi
  10936. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  10937. if test -n "$OBJCOPY_FOR_TARGET"; then
  10938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  10939. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  10940. else
  10941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10942. $as_echo "no" >&6; }
  10943. fi
  10944. fi
  10945. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
  10946. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10947. set dummy ${ncn_progname}; ac_word=$2
  10948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10949. $as_echo_n "checking for $ac_word... " >&6; }
  10950. if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
  10951. $as_echo_n "(cached) " >&6
  10952. else
  10953. if test -n "$OBJCOPY_FOR_TARGET"; then
  10954. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  10955. else
  10956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10957. for as_dir in $PATH
  10958. do
  10959. IFS=$as_save_IFS
  10960. test -z "$as_dir" && as_dir=.
  10961. for ac_exec_ext in '' $ac_executable_extensions; do
  10962. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10963. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  10964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10965. break 2
  10966. fi
  10967. done
  10968. done
  10969. IFS=$as_save_IFS
  10970. fi
  10971. fi
  10972. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  10973. if test -n "$OBJCOPY_FOR_TARGET"; then
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  10975. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  10976. else
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10978. $as_echo "no" >&6; }
  10979. fi
  10980. fi
  10981. test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
  10982. done
  10983. fi
  10984. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
  10985. set dummy objcopy
  10986. if test $build = $target ; then
  10987. OBJCOPY_FOR_TARGET="$2"
  10988. else
  10989. OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
  10990. fi
  10991. else
  10992. OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
  10993. fi
  10994. else
  10995. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  10996. fi
  10997. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  10998. if test -n "$with_build_time_tools"; then
  10999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  11000. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  11001. if test -x $with_build_time_tools/objdump; then
  11002. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  11003. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  11005. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  11006. else
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11008. $as_echo "no" >&6; }
  11009. fi
  11010. elif test $build != $host && test $have_gcc_for_target = yes; then
  11011. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  11012. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  11013. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11014. fi
  11015. fi
  11016. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11017. # Extract the first word of "objdump", so it can be a program name with args.
  11018. set dummy objdump; ac_word=$2
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11020. $as_echo_n "checking for $ac_word... " >&6; }
  11021. if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
  11022. $as_echo_n "(cached) " >&6
  11023. else
  11024. case $OBJDUMP_FOR_TARGET in
  11025. [\\/]* | ?:[\\/]*)
  11026. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  11027. ;;
  11028. *)
  11029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11030. for as_dir in $gcc_cv_tool_dirs
  11031. do
  11032. IFS=$as_save_IFS
  11033. test -z "$as_dir" && as_dir=.
  11034. for ac_exec_ext in '' $ac_executable_extensions; do
  11035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11036. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11038. break 2
  11039. fi
  11040. done
  11041. done
  11042. IFS=$as_save_IFS
  11043. ;;
  11044. esac
  11045. fi
  11046. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11047. if test -n "$OBJDUMP_FOR_TARGET"; then
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11049. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11050. else
  11051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11052. $as_echo "no" >&6; }
  11053. fi
  11054. fi
  11055. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  11056. if test -n "$OBJDUMP_FOR_TARGET"; then
  11057. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  11058. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11059. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11060. fi
  11061. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11062. for ncn_progname in objdump; do
  11063. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11064. set dummy ${ncn_progname}; ac_word=$2
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11066. $as_echo_n "checking for $ac_word... " >&6; }
  11067. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11068. $as_echo_n "(cached) " >&6
  11069. else
  11070. if test -n "$OBJDUMP_FOR_TARGET"; then
  11071. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11072. else
  11073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11074. for as_dir in $PATH
  11075. do
  11076. IFS=$as_save_IFS
  11077. test -z "$as_dir" && as_dir=.
  11078. for ac_exec_ext in '' $ac_executable_extensions; do
  11079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11080. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11082. break 2
  11083. fi
  11084. done
  11085. done
  11086. IFS=$as_save_IFS
  11087. fi
  11088. fi
  11089. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11090. if test -n "$OBJDUMP_FOR_TARGET"; then
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11092. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11093. else
  11094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11095. $as_echo "no" >&6; }
  11096. fi
  11097. done
  11098. fi
  11099. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11100. for ncn_progname in objdump; do
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11102. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11103. if test -x $with_build_time_tools/${ncn_progname}; then
  11104. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11106. $as_echo "yes" >&6; }
  11107. break
  11108. else
  11109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11110. $as_echo "no" >&6; }
  11111. fi
  11112. done
  11113. fi
  11114. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  11115. for ncn_progname in objdump; do
  11116. if test -n "$ncn_target_tool_prefix"; then
  11117. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11118. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11120. $as_echo_n "checking for $ac_word... " >&6; }
  11121. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11122. $as_echo_n "(cached) " >&6
  11123. else
  11124. if test -n "$OBJDUMP_FOR_TARGET"; then
  11125. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11126. else
  11127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11128. for as_dir in $PATH
  11129. do
  11130. IFS=$as_save_IFS
  11131. test -z "$as_dir" && as_dir=.
  11132. for ac_exec_ext in '' $ac_executable_extensions; do
  11133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11134. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11136. break 2
  11137. fi
  11138. done
  11139. done
  11140. IFS=$as_save_IFS
  11141. fi
  11142. fi
  11143. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11144. if test -n "$OBJDUMP_FOR_TARGET"; then
  11145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11146. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11147. else
  11148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11149. $as_echo "no" >&6; }
  11150. fi
  11151. fi
  11152. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  11153. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11154. set dummy ${ncn_progname}; ac_word=$2
  11155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11156. $as_echo_n "checking for $ac_word... " >&6; }
  11157. if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
  11158. $as_echo_n "(cached) " >&6
  11159. else
  11160. if test -n "$OBJDUMP_FOR_TARGET"; then
  11161. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  11162. else
  11163. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11164. for as_dir in $PATH
  11165. do
  11166. IFS=$as_save_IFS
  11167. test -z "$as_dir" && as_dir=.
  11168. for ac_exec_ext in '' $ac_executable_extensions; do
  11169. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11170. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  11171. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11172. break 2
  11173. fi
  11174. done
  11175. done
  11176. IFS=$as_save_IFS
  11177. fi
  11178. fi
  11179. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  11180. if test -n "$OBJDUMP_FOR_TARGET"; then
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  11182. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  11183. else
  11184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11185. $as_echo "no" >&6; }
  11186. fi
  11187. fi
  11188. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  11189. done
  11190. fi
  11191. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  11192. set dummy objdump
  11193. if test $build = $target ; then
  11194. OBJDUMP_FOR_TARGET="$2"
  11195. else
  11196. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11197. fi
  11198. else
  11199. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  11200. fi
  11201. else
  11202. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  11203. fi
  11204. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11205. if test -n "$with_build_time_tools"; then
  11206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  11207. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  11208. if test -x $with_build_time_tools/ranlib; then
  11209. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  11210. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  11212. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  11213. else
  11214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11215. $as_echo "no" >&6; }
  11216. fi
  11217. elif test $build != $host && test $have_gcc_for_target = yes; then
  11218. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  11219. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  11220. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11221. fi
  11222. fi
  11223. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11224. # Extract the first word of "ranlib", so it can be a program name with args.
  11225. set dummy ranlib; ac_word=$2
  11226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11227. $as_echo_n "checking for $ac_word... " >&6; }
  11228. if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. case $RANLIB_FOR_TARGET in
  11232. [\\/]* | ?:[\\/]*)
  11233. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  11234. ;;
  11235. *)
  11236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11237. for as_dir in $gcc_cv_tool_dirs
  11238. do
  11239. IFS=$as_save_IFS
  11240. test -z "$as_dir" && as_dir=.
  11241. for ac_exec_ext in '' $ac_executable_extensions; do
  11242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11243. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11244. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11245. break 2
  11246. fi
  11247. done
  11248. done
  11249. IFS=$as_save_IFS
  11250. ;;
  11251. esac
  11252. fi
  11253. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11254. if test -n "$RANLIB_FOR_TARGET"; then
  11255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11256. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11257. else
  11258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11259. $as_echo "no" >&6; }
  11260. fi
  11261. fi
  11262. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  11263. if test -n "$RANLIB_FOR_TARGET"; then
  11264. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  11265. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11266. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11267. fi
  11268. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11269. for ncn_progname in ranlib; do
  11270. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11271. set dummy ${ncn_progname}; ac_word=$2
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11273. $as_echo_n "checking for $ac_word... " >&6; }
  11274. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. if test -n "$RANLIB_FOR_TARGET"; then
  11278. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11279. else
  11280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11281. for as_dir in $PATH
  11282. do
  11283. IFS=$as_save_IFS
  11284. test -z "$as_dir" && as_dir=.
  11285. for ac_exec_ext in '' $ac_executable_extensions; do
  11286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11287. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11289. break 2
  11290. fi
  11291. done
  11292. done
  11293. IFS=$as_save_IFS
  11294. fi
  11295. fi
  11296. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11297. if test -n "$RANLIB_FOR_TARGET"; then
  11298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11299. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11300. else
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11302. $as_echo "no" >&6; }
  11303. fi
  11304. done
  11305. fi
  11306. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11307. for ncn_progname in ranlib; do
  11308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11309. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11310. if test -x $with_build_time_tools/${ncn_progname}; then
  11311. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11313. $as_echo "yes" >&6; }
  11314. break
  11315. else
  11316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11317. $as_echo "no" >&6; }
  11318. fi
  11319. done
  11320. fi
  11321. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  11322. for ncn_progname in ranlib; do
  11323. if test -n "$ncn_target_tool_prefix"; then
  11324. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11325. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11327. $as_echo_n "checking for $ac_word... " >&6; }
  11328. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11329. $as_echo_n "(cached) " >&6
  11330. else
  11331. if test -n "$RANLIB_FOR_TARGET"; then
  11332. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11333. else
  11334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11335. for as_dir in $PATH
  11336. do
  11337. IFS=$as_save_IFS
  11338. test -z "$as_dir" && as_dir=.
  11339. for ac_exec_ext in '' $ac_executable_extensions; do
  11340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11341. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11343. break 2
  11344. fi
  11345. done
  11346. done
  11347. IFS=$as_save_IFS
  11348. fi
  11349. fi
  11350. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11351. if test -n "$RANLIB_FOR_TARGET"; then
  11352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11353. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11354. else
  11355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11356. $as_echo "no" >&6; }
  11357. fi
  11358. fi
  11359. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  11360. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11361. set dummy ${ncn_progname}; ac_word=$2
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11363. $as_echo_n "checking for $ac_word... " >&6; }
  11364. if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
  11365. $as_echo_n "(cached) " >&6
  11366. else
  11367. if test -n "$RANLIB_FOR_TARGET"; then
  11368. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  11369. else
  11370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11371. for as_dir in $PATH
  11372. do
  11373. IFS=$as_save_IFS
  11374. test -z "$as_dir" && as_dir=.
  11375. for ac_exec_ext in '' $ac_executable_extensions; do
  11376. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11377. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  11378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11379. break 2
  11380. fi
  11381. done
  11382. done
  11383. IFS=$as_save_IFS
  11384. fi
  11385. fi
  11386. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  11387. if test -n "$RANLIB_FOR_TARGET"; then
  11388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  11389. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  11390. else
  11391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11392. $as_echo "no" >&6; }
  11393. fi
  11394. fi
  11395. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  11396. done
  11397. fi
  11398. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  11399. set dummy ranlib
  11400. if test $build = $target ; then
  11401. RANLIB_FOR_TARGET="$2"
  11402. else
  11403. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11404. fi
  11405. else
  11406. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  11407. fi
  11408. else
  11409. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  11410. fi
  11411. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11412. if test -n "$with_build_time_tools"; then
  11413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
  11414. $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
  11415. if test -x $with_build_time_tools/readelf; then
  11416. READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
  11417. ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
  11419. $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
  11420. else
  11421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11422. $as_echo "no" >&6; }
  11423. fi
  11424. elif test $build != $host && test $have_gcc_for_target = yes; then
  11425. READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
  11426. test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
  11427. test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11428. fi
  11429. fi
  11430. if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11431. # Extract the first word of "readelf", so it can be a program name with args.
  11432. set dummy readelf; ac_word=$2
  11433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11434. $as_echo_n "checking for $ac_word... " >&6; }
  11435. if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
  11436. $as_echo_n "(cached) " >&6
  11437. else
  11438. case $READELF_FOR_TARGET in
  11439. [\\/]* | ?:[\\/]*)
  11440. ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
  11441. ;;
  11442. *)
  11443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11444. for as_dir in $gcc_cv_tool_dirs
  11445. do
  11446. IFS=$as_save_IFS
  11447. test -z "$as_dir" && as_dir=.
  11448. for ac_exec_ext in '' $ac_executable_extensions; do
  11449. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11450. ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11452. break 2
  11453. fi
  11454. done
  11455. done
  11456. IFS=$as_save_IFS
  11457. ;;
  11458. esac
  11459. fi
  11460. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11461. if test -n "$READELF_FOR_TARGET"; then
  11462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11463. $as_echo "$READELF_FOR_TARGET" >&6; }
  11464. else
  11465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11466. $as_echo "no" >&6; }
  11467. fi
  11468. fi
  11469. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  11470. if test -n "$READELF_FOR_TARGET"; then
  11471. ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
  11472. elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11473. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11474. fi
  11475. if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  11476. for ncn_progname in readelf; do
  11477. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11478. set dummy ${ncn_progname}; ac_word=$2
  11479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11480. $as_echo_n "checking for $ac_word... " >&6; }
  11481. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11482. $as_echo_n "(cached) " >&6
  11483. else
  11484. if test -n "$READELF_FOR_TARGET"; then
  11485. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11486. else
  11487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11488. for as_dir in $PATH
  11489. do
  11490. IFS=$as_save_IFS
  11491. test -z "$as_dir" && as_dir=.
  11492. for ac_exec_ext in '' $ac_executable_extensions; do
  11493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11494. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11495. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11496. break 2
  11497. fi
  11498. done
  11499. done
  11500. IFS=$as_save_IFS
  11501. fi
  11502. fi
  11503. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11504. if test -n "$READELF_FOR_TARGET"; then
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11506. $as_echo "$READELF_FOR_TARGET" >&6; }
  11507. else
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11509. $as_echo "no" >&6; }
  11510. fi
  11511. done
  11512. fi
  11513. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11514. for ncn_progname in readelf; do
  11515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11516. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11517. if test -x $with_build_time_tools/${ncn_progname}; then
  11518. ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11520. $as_echo "yes" >&6; }
  11521. break
  11522. else
  11523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11524. $as_echo "no" >&6; }
  11525. fi
  11526. done
  11527. fi
  11528. if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
  11529. for ncn_progname in readelf; do
  11530. if test -n "$ncn_target_tool_prefix"; then
  11531. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11532. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11534. $as_echo_n "checking for $ac_word... " >&6; }
  11535. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11536. $as_echo_n "(cached) " >&6
  11537. else
  11538. if test -n "$READELF_FOR_TARGET"; then
  11539. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11540. else
  11541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11542. for as_dir in $PATH
  11543. do
  11544. IFS=$as_save_IFS
  11545. test -z "$as_dir" && as_dir=.
  11546. for ac_exec_ext in '' $ac_executable_extensions; do
  11547. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11548. ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11550. break 2
  11551. fi
  11552. done
  11553. done
  11554. IFS=$as_save_IFS
  11555. fi
  11556. fi
  11557. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11558. if test -n "$READELF_FOR_TARGET"; then
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11560. $as_echo "$READELF_FOR_TARGET" >&6; }
  11561. else
  11562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11563. $as_echo "no" >&6; }
  11564. fi
  11565. fi
  11566. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
  11567. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11568. set dummy ${ncn_progname}; ac_word=$2
  11569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11570. $as_echo_n "checking for $ac_word... " >&6; }
  11571. if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
  11572. $as_echo_n "(cached) " >&6
  11573. else
  11574. if test -n "$READELF_FOR_TARGET"; then
  11575. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  11576. else
  11577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11578. for as_dir in $PATH
  11579. do
  11580. IFS=$as_save_IFS
  11581. test -z "$as_dir" && as_dir=.
  11582. for ac_exec_ext in '' $ac_executable_extensions; do
  11583. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11584. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  11585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11586. break 2
  11587. fi
  11588. done
  11589. done
  11590. IFS=$as_save_IFS
  11591. fi
  11592. fi
  11593. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  11594. if test -n "$READELF_FOR_TARGET"; then
  11595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  11596. $as_echo "$READELF_FOR_TARGET" >&6; }
  11597. else
  11598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11599. $as_echo "no" >&6; }
  11600. fi
  11601. fi
  11602. test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
  11603. done
  11604. fi
  11605. if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
  11606. set dummy readelf
  11607. if test $build = $target ; then
  11608. READELF_FOR_TARGET="$2"
  11609. else
  11610. READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11611. fi
  11612. else
  11613. READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
  11614. fi
  11615. else
  11616. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  11617. fi
  11618. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11619. if test -n "$with_build_time_tools"; then
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  11621. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  11622. if test -x $with_build_time_tools/strip; then
  11623. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  11624. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  11626. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  11627. else
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11629. $as_echo "no" >&6; }
  11630. fi
  11631. elif test $build != $host && test $have_gcc_for_target = yes; then
  11632. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  11633. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  11634. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11635. fi
  11636. fi
  11637. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11638. # Extract the first word of "strip", so it can be a program name with args.
  11639. set dummy strip; ac_word=$2
  11640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11641. $as_echo_n "checking for $ac_word... " >&6; }
  11642. if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
  11643. $as_echo_n "(cached) " >&6
  11644. else
  11645. case $STRIP_FOR_TARGET in
  11646. [\\/]* | ?:[\\/]*)
  11647. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  11648. ;;
  11649. *)
  11650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11651. for as_dir in $gcc_cv_tool_dirs
  11652. do
  11653. IFS=$as_save_IFS
  11654. test -z "$as_dir" && as_dir=.
  11655. for ac_exec_ext in '' $ac_executable_extensions; do
  11656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11657. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11659. break 2
  11660. fi
  11661. done
  11662. done
  11663. IFS=$as_save_IFS
  11664. ;;
  11665. esac
  11666. fi
  11667. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11668. if test -n "$STRIP_FOR_TARGET"; then
  11669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11670. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11671. else
  11672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11673. $as_echo "no" >&6; }
  11674. fi
  11675. fi
  11676. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  11677. if test -n "$STRIP_FOR_TARGET"; then
  11678. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  11679. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11680. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11681. fi
  11682. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11683. for ncn_progname in strip; do
  11684. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11685. set dummy ${ncn_progname}; ac_word=$2
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11687. $as_echo_n "checking for $ac_word... " >&6; }
  11688. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11689. $as_echo_n "(cached) " >&6
  11690. else
  11691. if test -n "$STRIP_FOR_TARGET"; then
  11692. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11693. else
  11694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11695. for as_dir in $PATH
  11696. do
  11697. IFS=$as_save_IFS
  11698. test -z "$as_dir" && as_dir=.
  11699. for ac_exec_ext in '' $ac_executable_extensions; do
  11700. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11701. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11703. break 2
  11704. fi
  11705. done
  11706. done
  11707. IFS=$as_save_IFS
  11708. fi
  11709. fi
  11710. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11711. if test -n "$STRIP_FOR_TARGET"; then
  11712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11713. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11714. else
  11715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11716. $as_echo "no" >&6; }
  11717. fi
  11718. done
  11719. fi
  11720. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11721. for ncn_progname in strip; do
  11722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11723. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11724. if test -x $with_build_time_tools/${ncn_progname}; then
  11725. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11727. $as_echo "yes" >&6; }
  11728. break
  11729. else
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11731. $as_echo "no" >&6; }
  11732. fi
  11733. done
  11734. fi
  11735. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  11736. for ncn_progname in strip; do
  11737. if test -n "$ncn_target_tool_prefix"; then
  11738. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11739. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11741. $as_echo_n "checking for $ac_word... " >&6; }
  11742. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11743. $as_echo_n "(cached) " >&6
  11744. else
  11745. if test -n "$STRIP_FOR_TARGET"; then
  11746. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11747. else
  11748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11749. for as_dir in $PATH
  11750. do
  11751. IFS=$as_save_IFS
  11752. test -z "$as_dir" && as_dir=.
  11753. for ac_exec_ext in '' $ac_executable_extensions; do
  11754. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11755. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11757. break 2
  11758. fi
  11759. done
  11760. done
  11761. IFS=$as_save_IFS
  11762. fi
  11763. fi
  11764. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11765. if test -n "$STRIP_FOR_TARGET"; then
  11766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11767. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11768. else
  11769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11770. $as_echo "no" >&6; }
  11771. fi
  11772. fi
  11773. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  11774. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11775. set dummy ${ncn_progname}; ac_word=$2
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11777. $as_echo_n "checking for $ac_word... " >&6; }
  11778. if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
  11779. $as_echo_n "(cached) " >&6
  11780. else
  11781. if test -n "$STRIP_FOR_TARGET"; then
  11782. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  11783. else
  11784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11785. for as_dir in $PATH
  11786. do
  11787. IFS=$as_save_IFS
  11788. test -z "$as_dir" && as_dir=.
  11789. for ac_exec_ext in '' $ac_executable_extensions; do
  11790. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11791. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  11792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11793. break 2
  11794. fi
  11795. done
  11796. done
  11797. IFS=$as_save_IFS
  11798. fi
  11799. fi
  11800. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  11801. if test -n "$STRIP_FOR_TARGET"; then
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  11803. $as_echo "$STRIP_FOR_TARGET" >&6; }
  11804. else
  11805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11806. $as_echo "no" >&6; }
  11807. fi
  11808. fi
  11809. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  11810. done
  11811. fi
  11812. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  11813. set dummy strip
  11814. if test $build = $target ; then
  11815. STRIP_FOR_TARGET="$2"
  11816. else
  11817. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11818. fi
  11819. else
  11820. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  11821. fi
  11822. else
  11823. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  11824. fi
  11825. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11826. if test -n "$with_build_time_tools"; then
  11827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  11828. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  11829. if test -x $with_build_time_tools/windres; then
  11830. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  11831. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  11833. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  11834. else
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11836. $as_echo "no" >&6; }
  11837. fi
  11838. elif test $build != $host && test $have_gcc_for_target = yes; then
  11839. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  11840. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  11841. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11842. fi
  11843. fi
  11844. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  11845. # Extract the first word of "windres", so it can be a program name with args.
  11846. set dummy windres; ac_word=$2
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11848. $as_echo_n "checking for $ac_word... " >&6; }
  11849. if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
  11850. $as_echo_n "(cached) " >&6
  11851. else
  11852. case $WINDRES_FOR_TARGET in
  11853. [\\/]* | ?:[\\/]*)
  11854. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  11855. ;;
  11856. *)
  11857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11858. for as_dir in $gcc_cv_tool_dirs
  11859. do
  11860. IFS=$as_save_IFS
  11861. test -z "$as_dir" && as_dir=.
  11862. for ac_exec_ext in '' $ac_executable_extensions; do
  11863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11864. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  11865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11866. break 2
  11867. fi
  11868. done
  11869. done
  11870. IFS=$as_save_IFS
  11871. ;;
  11872. esac
  11873. fi
  11874. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  11875. if test -n "$WINDRES_FOR_TARGET"; then
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11877. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11878. else
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11880. $as_echo "no" >&6; }
  11881. fi
  11882. fi
  11883. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  11884. if test -n "$WINDRES_FOR_TARGET"; then
  11885. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  11886. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11887. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11888. fi
  11889. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11890. for ncn_progname in windres; do
  11891. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11892. set dummy ${ncn_progname}; ac_word=$2
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11894. $as_echo_n "checking for $ac_word... " >&6; }
  11895. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11896. $as_echo_n "(cached) " >&6
  11897. else
  11898. if test -n "$WINDRES_FOR_TARGET"; then
  11899. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11900. else
  11901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11902. for as_dir in $PATH
  11903. do
  11904. IFS=$as_save_IFS
  11905. test -z "$as_dir" && as_dir=.
  11906. for ac_exec_ext in '' $ac_executable_extensions; do
  11907. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11908. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11910. break 2
  11911. fi
  11912. done
  11913. done
  11914. IFS=$as_save_IFS
  11915. fi
  11916. fi
  11917. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11918. if test -n "$WINDRES_FOR_TARGET"; then
  11919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11920. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11921. else
  11922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11923. $as_echo "no" >&6; }
  11924. fi
  11925. done
  11926. fi
  11927. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11928. for ncn_progname in windres; do
  11929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11930. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11931. if test -x $with_build_time_tools/${ncn_progname}; then
  11932. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11934. $as_echo "yes" >&6; }
  11935. break
  11936. else
  11937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11938. $as_echo "no" >&6; }
  11939. fi
  11940. done
  11941. fi
  11942. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  11943. for ncn_progname in windres; do
  11944. if test -n "$ncn_target_tool_prefix"; then
  11945. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11946. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11948. $as_echo_n "checking for $ac_word... " >&6; }
  11949. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11950. $as_echo_n "(cached) " >&6
  11951. else
  11952. if test -n "$WINDRES_FOR_TARGET"; then
  11953. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11954. else
  11955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11956. for as_dir in $PATH
  11957. do
  11958. IFS=$as_save_IFS
  11959. test -z "$as_dir" && as_dir=.
  11960. for ac_exec_ext in '' $ac_executable_extensions; do
  11961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11962. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11964. break 2
  11965. fi
  11966. done
  11967. done
  11968. IFS=$as_save_IFS
  11969. fi
  11970. fi
  11971. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  11972. if test -n "$WINDRES_FOR_TARGET"; then
  11973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  11974. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  11975. else
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11977. $as_echo "no" >&6; }
  11978. fi
  11979. fi
  11980. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  11981. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11982. set dummy ${ncn_progname}; ac_word=$2
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11984. $as_echo_n "checking for $ac_word... " >&6; }
  11985. if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
  11986. $as_echo_n "(cached) " >&6
  11987. else
  11988. if test -n "$WINDRES_FOR_TARGET"; then
  11989. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  11990. else
  11991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11992. for as_dir in $PATH
  11993. do
  11994. IFS=$as_save_IFS
  11995. test -z "$as_dir" && as_dir=.
  11996. for ac_exec_ext in '' $ac_executable_extensions; do
  11997. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11998. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  11999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12000. break 2
  12001. fi
  12002. done
  12003. done
  12004. IFS=$as_save_IFS
  12005. fi
  12006. fi
  12007. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  12008. if test -n "$WINDRES_FOR_TARGET"; then
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  12010. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  12011. else
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12013. $as_echo "no" >&6; }
  12014. fi
  12015. fi
  12016. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  12017. done
  12018. fi
  12019. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  12020. set dummy windres
  12021. if test $build = $target ; then
  12022. WINDRES_FOR_TARGET="$2"
  12023. else
  12024. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12025. fi
  12026. else
  12027. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  12028. fi
  12029. else
  12030. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  12031. fi
  12032. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12033. if test -n "$with_build_time_tools"; then
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  12035. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  12036. if test -x $with_build_time_tools/windmc; then
  12037. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  12038. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  12040. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  12041. else
  12042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12043. $as_echo "no" >&6; }
  12044. fi
  12045. elif test $build != $host && test $have_gcc_for_target = yes; then
  12046. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  12047. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  12048. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12049. fi
  12050. fi
  12051. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12052. # Extract the first word of "windmc", so it can be a program name with args.
  12053. set dummy windmc; ac_word=$2
  12054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12055. $as_echo_n "checking for $ac_word... " >&6; }
  12056. if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
  12057. $as_echo_n "(cached) " >&6
  12058. else
  12059. case $WINDMC_FOR_TARGET in
  12060. [\\/]* | ?:[\\/]*)
  12061. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  12062. ;;
  12063. *)
  12064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12065. for as_dir in $gcc_cv_tool_dirs
  12066. do
  12067. IFS=$as_save_IFS
  12068. test -z "$as_dir" && as_dir=.
  12069. for ac_exec_ext in '' $ac_executable_extensions; do
  12070. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12071. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12073. break 2
  12074. fi
  12075. done
  12076. done
  12077. IFS=$as_save_IFS
  12078. ;;
  12079. esac
  12080. fi
  12081. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12082. if test -n "$WINDMC_FOR_TARGET"; then
  12083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12084. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12085. else
  12086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12087. $as_echo "no" >&6; }
  12088. fi
  12089. fi
  12090. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  12091. if test -n "$WINDMC_FOR_TARGET"; then
  12092. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  12093. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12094. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12095. fi
  12096. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12097. for ncn_progname in windmc; do
  12098. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12099. set dummy ${ncn_progname}; ac_word=$2
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12101. $as_echo_n "checking for $ac_word... " >&6; }
  12102. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12103. $as_echo_n "(cached) " >&6
  12104. else
  12105. if test -n "$WINDMC_FOR_TARGET"; then
  12106. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12107. else
  12108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12109. for as_dir in $PATH
  12110. do
  12111. IFS=$as_save_IFS
  12112. test -z "$as_dir" && as_dir=.
  12113. for ac_exec_ext in '' $ac_executable_extensions; do
  12114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12115. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12117. break 2
  12118. fi
  12119. done
  12120. done
  12121. IFS=$as_save_IFS
  12122. fi
  12123. fi
  12124. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12125. if test -n "$WINDMC_FOR_TARGET"; then
  12126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12127. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12128. else
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12130. $as_echo "no" >&6; }
  12131. fi
  12132. done
  12133. fi
  12134. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12135. for ncn_progname in windmc; do
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12137. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12138. if test -x $with_build_time_tools/${ncn_progname}; then
  12139. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12141. $as_echo "yes" >&6; }
  12142. break
  12143. else
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12145. $as_echo "no" >&6; }
  12146. fi
  12147. done
  12148. fi
  12149. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  12150. for ncn_progname in windmc; do
  12151. if test -n "$ncn_target_tool_prefix"; then
  12152. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12153. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12155. $as_echo_n "checking for $ac_word... " >&6; }
  12156. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12157. $as_echo_n "(cached) " >&6
  12158. else
  12159. if test -n "$WINDMC_FOR_TARGET"; then
  12160. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12161. else
  12162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12163. for as_dir in $PATH
  12164. do
  12165. IFS=$as_save_IFS
  12166. test -z "$as_dir" && as_dir=.
  12167. for ac_exec_ext in '' $ac_executable_extensions; do
  12168. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12169. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12170. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12171. break 2
  12172. fi
  12173. done
  12174. done
  12175. IFS=$as_save_IFS
  12176. fi
  12177. fi
  12178. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12179. if test -n "$WINDMC_FOR_TARGET"; then
  12180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12181. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12182. else
  12183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12184. $as_echo "no" >&6; }
  12185. fi
  12186. fi
  12187. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  12188. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12189. set dummy ${ncn_progname}; ac_word=$2
  12190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12191. $as_echo_n "checking for $ac_word... " >&6; }
  12192. if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
  12193. $as_echo_n "(cached) " >&6
  12194. else
  12195. if test -n "$WINDMC_FOR_TARGET"; then
  12196. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  12197. else
  12198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12199. for as_dir in $PATH
  12200. do
  12201. IFS=$as_save_IFS
  12202. test -z "$as_dir" && as_dir=.
  12203. for ac_exec_ext in '' $ac_executable_extensions; do
  12204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12205. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  12206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12207. break 2
  12208. fi
  12209. done
  12210. done
  12211. IFS=$as_save_IFS
  12212. fi
  12213. fi
  12214. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  12215. if test -n "$WINDMC_FOR_TARGET"; then
  12216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  12217. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  12218. else
  12219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12220. $as_echo "no" >&6; }
  12221. fi
  12222. fi
  12223. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  12224. done
  12225. fi
  12226. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  12227. set dummy windmc
  12228. if test $build = $target ; then
  12229. WINDMC_FOR_TARGET="$2"
  12230. else
  12231. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12232. fi
  12233. else
  12234. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  12235. fi
  12236. else
  12237. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  12238. fi
  12239. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  12240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  12241. $as_echo_n "checking where to find the target ar... " >&6; }
  12242. if test "x${build}" != "x${host}" ; then
  12243. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12244. # We already found the complete path
  12245. ac_dir=`dirname $AR_FOR_TARGET`
  12246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12247. $as_echo "pre-installed in $ac_dir" >&6; }
  12248. else
  12249. # Canadian cross, just use what we found
  12250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12251. $as_echo "pre-installed" >&6; }
  12252. fi
  12253. else
  12254. ok=yes
  12255. case " ${configdirs} " in
  12256. *" binutils "*) ;;
  12257. *) ok=no ;;
  12258. esac
  12259. if test $ok = yes; then
  12260. # An in-tree tool is available and we can use it
  12261. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  12262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12263. $as_echo "just compiled" >&6; }
  12264. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  12265. # We already found the complete path
  12266. ac_dir=`dirname $AR_FOR_TARGET`
  12267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12268. $as_echo "pre-installed in $ac_dir" >&6; }
  12269. elif test "x$target" = "x$host"; then
  12270. # We can use an host tool
  12271. AR_FOR_TARGET='$(AR)'
  12272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12273. $as_echo "host tool" >&6; }
  12274. else
  12275. # We need a cross tool
  12276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12277. $as_echo "pre-installed" >&6; }
  12278. fi
  12279. fi
  12280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  12281. $as_echo_n "checking where to find the target as... " >&6; }
  12282. if test "x${build}" != "x${host}" ; then
  12283. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12284. # We already found the complete path
  12285. ac_dir=`dirname $AS_FOR_TARGET`
  12286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12287. $as_echo "pre-installed in $ac_dir" >&6; }
  12288. else
  12289. # Canadian cross, just use what we found
  12290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12291. $as_echo "pre-installed" >&6; }
  12292. fi
  12293. else
  12294. ok=yes
  12295. case " ${configdirs} " in
  12296. *" gas "*) ;;
  12297. *) ok=no ;;
  12298. esac
  12299. if test $ok = yes; then
  12300. # An in-tree tool is available and we can use it
  12301. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  12302. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12303. $as_echo "just compiled" >&6; }
  12304. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  12305. # We already found the complete path
  12306. ac_dir=`dirname $AS_FOR_TARGET`
  12307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12308. $as_echo "pre-installed in $ac_dir" >&6; }
  12309. elif test "x$target" = "x$host"; then
  12310. # We can use an host tool
  12311. AS_FOR_TARGET='$(AS)'
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12313. $as_echo "host tool" >&6; }
  12314. else
  12315. # We need a cross tool
  12316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12317. $as_echo "pre-installed" >&6; }
  12318. fi
  12319. fi
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  12321. $as_echo_n "checking where to find the target cc... " >&6; }
  12322. if test "x${build}" != "x${host}" ; then
  12323. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12324. # We already found the complete path
  12325. ac_dir=`dirname $CC_FOR_TARGET`
  12326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12327. $as_echo "pre-installed in $ac_dir" >&6; }
  12328. else
  12329. # Canadian cross, just use what we found
  12330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12331. $as_echo "pre-installed" >&6; }
  12332. fi
  12333. else
  12334. ok=yes
  12335. case " ${configdirs} " in
  12336. *" gcc "*) ;;
  12337. *) ok=no ;;
  12338. esac
  12339. if test $ok = yes; then
  12340. # An in-tree tool is available and we can use it
  12341. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12343. $as_echo "just compiled" >&6; }
  12344. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  12345. # We already found the complete path
  12346. ac_dir=`dirname $CC_FOR_TARGET`
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12348. $as_echo "pre-installed in $ac_dir" >&6; }
  12349. elif test "x$target" = "x$host"; then
  12350. # We can use an host tool
  12351. CC_FOR_TARGET='$(CC)'
  12352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12353. $as_echo "host tool" >&6; }
  12354. else
  12355. # We need a cross tool
  12356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12357. $as_echo "pre-installed" >&6; }
  12358. fi
  12359. fi
  12360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  12361. $as_echo_n "checking where to find the target c++... " >&6; }
  12362. if test "x${build}" != "x${host}" ; then
  12363. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12364. # We already found the complete path
  12365. ac_dir=`dirname $CXX_FOR_TARGET`
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12367. $as_echo "pre-installed in $ac_dir" >&6; }
  12368. else
  12369. # Canadian cross, just use what we found
  12370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12371. $as_echo "pre-installed" >&6; }
  12372. fi
  12373. else
  12374. ok=yes
  12375. case " ${configdirs} " in
  12376. *" gcc "*) ;;
  12377. *) ok=no ;;
  12378. esac
  12379. case ,${enable_languages}, in
  12380. *,c++,*) ;;
  12381. *) ok=no ;;
  12382. esac
  12383. if test $ok = yes; then
  12384. # An in-tree tool is available and we can use it
  12385. 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'
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12387. $as_echo "just compiled" >&6; }
  12388. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  12389. # We already found the complete path
  12390. ac_dir=`dirname $CXX_FOR_TARGET`
  12391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12392. $as_echo "pre-installed in $ac_dir" >&6; }
  12393. elif test "x$target" = "x$host"; then
  12394. # We can use an host tool
  12395. CXX_FOR_TARGET='$(CXX)'
  12396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12397. $as_echo "host tool" >&6; }
  12398. else
  12399. # We need a cross tool
  12400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12401. $as_echo "pre-installed" >&6; }
  12402. fi
  12403. fi
  12404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  12405. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  12406. if test "x${build}" != "x${host}" ; then
  12407. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12408. # We already found the complete path
  12409. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12411. $as_echo "pre-installed in $ac_dir" >&6; }
  12412. else
  12413. # Canadian cross, just use what we found
  12414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12415. $as_echo "pre-installed" >&6; }
  12416. fi
  12417. else
  12418. ok=yes
  12419. case " ${configdirs} " in
  12420. *" gcc "*) ;;
  12421. *) ok=no ;;
  12422. esac
  12423. case ,${enable_languages}, in
  12424. *,c++,*) ;;
  12425. *) ok=no ;;
  12426. esac
  12427. if test $ok = yes; then
  12428. # An in-tree tool is available and we can use it
  12429. 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'
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12431. $as_echo "just compiled" >&6; }
  12432. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  12433. # We already found the complete path
  12434. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12436. $as_echo "pre-installed in $ac_dir" >&6; }
  12437. elif test "x$target" = "x$host"; then
  12438. # We can use an host tool
  12439. RAW_CXX_FOR_TARGET='$(CXX)'
  12440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12441. $as_echo "host tool" >&6; }
  12442. else
  12443. # We need a cross tool
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12445. $as_echo "pre-installed" >&6; }
  12446. fi
  12447. fi
  12448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  12449. $as_echo_n "checking where to find the target dlltool... " >&6; }
  12450. if test "x${build}" != "x${host}" ; then
  12451. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12452. # We already found the complete path
  12453. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12455. $as_echo "pre-installed in $ac_dir" >&6; }
  12456. else
  12457. # Canadian cross, just use what we found
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12459. $as_echo "pre-installed" >&6; }
  12460. fi
  12461. else
  12462. ok=yes
  12463. case " ${configdirs} " in
  12464. *" binutils "*) ;;
  12465. *) ok=no ;;
  12466. esac
  12467. if test $ok = yes; then
  12468. # An in-tree tool is available and we can use it
  12469. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  12470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12471. $as_echo "just compiled" >&6; }
  12472. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  12473. # We already found the complete path
  12474. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12476. $as_echo "pre-installed in $ac_dir" >&6; }
  12477. elif test "x$target" = "x$host"; then
  12478. # We can use an host tool
  12479. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12481. $as_echo "host tool" >&6; }
  12482. else
  12483. # We need a cross tool
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12485. $as_echo "pre-installed" >&6; }
  12486. fi
  12487. fi
  12488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  12489. $as_echo_n "checking where to find the target gcc... " >&6; }
  12490. if test "x${build}" != "x${host}" ; then
  12491. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12492. # We already found the complete path
  12493. ac_dir=`dirname $GCC_FOR_TARGET`
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12495. $as_echo "pre-installed in $ac_dir" >&6; }
  12496. else
  12497. # Canadian cross, just use what we found
  12498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12499. $as_echo "pre-installed" >&6; }
  12500. fi
  12501. else
  12502. ok=yes
  12503. case " ${configdirs} " in
  12504. *" gcc "*) ;;
  12505. *) ok=no ;;
  12506. esac
  12507. if test $ok = yes; then
  12508. # An in-tree tool is available and we can use it
  12509. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12511. $as_echo "just compiled" >&6; }
  12512. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  12513. # We already found the complete path
  12514. ac_dir=`dirname $GCC_FOR_TARGET`
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12516. $as_echo "pre-installed in $ac_dir" >&6; }
  12517. elif test "x$target" = "x$host"; then
  12518. # We can use an host tool
  12519. GCC_FOR_TARGET='$()'
  12520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12521. $as_echo "host tool" >&6; }
  12522. else
  12523. # We need a cross tool
  12524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12525. $as_echo "pre-installed" >&6; }
  12526. fi
  12527. fi
  12528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  12529. $as_echo_n "checking where to find the target gfortran... " >&6; }
  12530. if test "x${build}" != "x${host}" ; then
  12531. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12532. # We already found the complete path
  12533. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12535. $as_echo "pre-installed in $ac_dir" >&6; }
  12536. else
  12537. # Canadian cross, just use what we found
  12538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12539. $as_echo "pre-installed" >&6; }
  12540. fi
  12541. else
  12542. ok=yes
  12543. case " ${configdirs} " in
  12544. *" gcc "*) ;;
  12545. *) ok=no ;;
  12546. esac
  12547. case ,${enable_languages}, in
  12548. *,fortran,*) ;;
  12549. *) ok=no ;;
  12550. esac
  12551. if test $ok = yes; then
  12552. # An in-tree tool is available and we can use it
  12553. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  12554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12555. $as_echo "just compiled" >&6; }
  12556. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  12557. # We already found the complete path
  12558. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12560. $as_echo "pre-installed in $ac_dir" >&6; }
  12561. elif test "x$target" = "x$host"; then
  12562. # We can use an host tool
  12563. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12565. $as_echo "host tool" >&6; }
  12566. else
  12567. # We need a cross tool
  12568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12569. $as_echo "pre-installed" >&6; }
  12570. fi
  12571. fi
  12572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  12573. $as_echo_n "checking where to find the target gccgo... " >&6; }
  12574. if test "x${build}" != "x${host}" ; then
  12575. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12576. # We already found the complete path
  12577. ac_dir=`dirname $GOC_FOR_TARGET`
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12579. $as_echo "pre-installed in $ac_dir" >&6; }
  12580. else
  12581. # Canadian cross, just use what we found
  12582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12583. $as_echo "pre-installed" >&6; }
  12584. fi
  12585. else
  12586. ok=yes
  12587. case " ${configdirs} " in
  12588. *" gcc "*) ;;
  12589. *) ok=no ;;
  12590. esac
  12591. case ,${enable_languages}, in
  12592. *,go,*) ;;
  12593. *) ok=no ;;
  12594. esac
  12595. if test $ok = yes; then
  12596. # An in-tree tool is available and we can use it
  12597. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  12598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12599. $as_echo "just compiled" >&6; }
  12600. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  12601. # We already found the complete path
  12602. ac_dir=`dirname $GOC_FOR_TARGET`
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12604. $as_echo "pre-installed in $ac_dir" >&6; }
  12605. elif test "x$target" = "x$host"; then
  12606. # We can use an host tool
  12607. GOC_FOR_TARGET='$(GOC)'
  12608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12609. $as_echo "host tool" >&6; }
  12610. else
  12611. # We need a cross tool
  12612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12613. $as_echo "pre-installed" >&6; }
  12614. fi
  12615. fi
  12616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  12617. $as_echo_n "checking where to find the target ld... " >&6; }
  12618. if test "x${build}" != "x${host}" ; then
  12619. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12620. # We already found the complete path
  12621. ac_dir=`dirname $LD_FOR_TARGET`
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12623. $as_echo "pre-installed in $ac_dir" >&6; }
  12624. else
  12625. # Canadian cross, just use what we found
  12626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12627. $as_echo "pre-installed" >&6; }
  12628. fi
  12629. else
  12630. ok=yes
  12631. case " ${configdirs} " in
  12632. *" ld "*) ;;
  12633. *) ok=no ;;
  12634. esac
  12635. if test $ok = yes; then
  12636. # An in-tree tool is available and we can use it
  12637. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  12638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12639. $as_echo "just compiled" >&6; }
  12640. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  12641. # We already found the complete path
  12642. ac_dir=`dirname $LD_FOR_TARGET`
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12644. $as_echo "pre-installed in $ac_dir" >&6; }
  12645. elif test "x$target" = "x$host"; then
  12646. # We can use an host tool
  12647. LD_FOR_TARGET='$(LD)'
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12649. $as_echo "host tool" >&6; }
  12650. else
  12651. # We need a cross tool
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12653. $as_echo "pre-installed" >&6; }
  12654. fi
  12655. fi
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  12657. $as_echo_n "checking where to find the target lipo... " >&6; }
  12658. if test "x${build}" != "x${host}" ; then
  12659. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12660. # We already found the complete path
  12661. ac_dir=`dirname $LIPO_FOR_TARGET`
  12662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12663. $as_echo "pre-installed in $ac_dir" >&6; }
  12664. else
  12665. # Canadian cross, just use what we found
  12666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12667. $as_echo "pre-installed" >&6; }
  12668. fi
  12669. else
  12670. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  12671. # We already found the complete path
  12672. ac_dir=`dirname $LIPO_FOR_TARGET`
  12673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12674. $as_echo "pre-installed in $ac_dir" >&6; }
  12675. elif test "x$target" = "x$host"; then
  12676. # We can use an host tool
  12677. LIPO_FOR_TARGET='$(LIPO)'
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12679. $as_echo "host tool" >&6; }
  12680. else
  12681. # We need a cross tool
  12682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12683. $as_echo "pre-installed" >&6; }
  12684. fi
  12685. fi
  12686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  12687. $as_echo_n "checking where to find the target nm... " >&6; }
  12688. if test "x${build}" != "x${host}" ; then
  12689. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12690. # We already found the complete path
  12691. ac_dir=`dirname $NM_FOR_TARGET`
  12692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12693. $as_echo "pre-installed in $ac_dir" >&6; }
  12694. else
  12695. # Canadian cross, just use what we found
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12697. $as_echo "pre-installed" >&6; }
  12698. fi
  12699. else
  12700. ok=yes
  12701. case " ${configdirs} " in
  12702. *" binutils "*) ;;
  12703. *) ok=no ;;
  12704. esac
  12705. if test $ok = yes; then
  12706. # An in-tree tool is available and we can use it
  12707. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12709. $as_echo "just compiled" >&6; }
  12710. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  12711. # We already found the complete path
  12712. ac_dir=`dirname $NM_FOR_TARGET`
  12713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12714. $as_echo "pre-installed in $ac_dir" >&6; }
  12715. elif test "x$target" = "x$host"; then
  12716. # We can use an host tool
  12717. NM_FOR_TARGET='$(NM)'
  12718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12719. $as_echo "host tool" >&6; }
  12720. else
  12721. # We need a cross tool
  12722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12723. $as_echo "pre-installed" >&6; }
  12724. fi
  12725. fi
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
  12727. $as_echo_n "checking where to find the target objcopy... " >&6; }
  12728. if test "x${build}" != "x${host}" ; then
  12729. if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12730. # We already found the complete path
  12731. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12733. $as_echo "pre-installed in $ac_dir" >&6; }
  12734. else
  12735. # Canadian cross, just use what we found
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12737. $as_echo "pre-installed" >&6; }
  12738. fi
  12739. else
  12740. ok=yes
  12741. case " ${configdirs} " in
  12742. *" binutils "*) ;;
  12743. *) ok=no ;;
  12744. esac
  12745. if test $ok = yes; then
  12746. # An in-tree tool is available and we can use it
  12747. OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
  12748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12749. $as_echo "just compiled" >&6; }
  12750. elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  12751. # We already found the complete path
  12752. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12754. $as_echo "pre-installed in $ac_dir" >&6; }
  12755. elif test "x$target" = "x$host"; then
  12756. # We can use an host tool
  12757. OBJCOPY_FOR_TARGET='$(OBJCOPY)'
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12759. $as_echo "host tool" >&6; }
  12760. else
  12761. # We need a cross tool
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12763. $as_echo "pre-installed" >&6; }
  12764. fi
  12765. fi
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  12767. $as_echo_n "checking where to find the target objdump... " >&6; }
  12768. if test "x${build}" != "x${host}" ; then
  12769. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12770. # We already found the complete path
  12771. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12773. $as_echo "pre-installed in $ac_dir" >&6; }
  12774. else
  12775. # Canadian cross, just use what we found
  12776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12777. $as_echo "pre-installed" >&6; }
  12778. fi
  12779. else
  12780. ok=yes
  12781. case " ${configdirs} " in
  12782. *" binutils "*) ;;
  12783. *) ok=no ;;
  12784. esac
  12785. if test $ok = yes; then
  12786. # An in-tree tool is available and we can use it
  12787. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12789. $as_echo "just compiled" >&6; }
  12790. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  12791. # We already found the complete path
  12792. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  12793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12794. $as_echo "pre-installed in $ac_dir" >&6; }
  12795. elif test "x$target" = "x$host"; then
  12796. # We can use an host tool
  12797. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  12798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12799. $as_echo "host tool" >&6; }
  12800. else
  12801. # We need a cross tool
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12803. $as_echo "pre-installed" >&6; }
  12804. fi
  12805. fi
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  12807. $as_echo_n "checking where to find the target ranlib... " >&6; }
  12808. if test "x${build}" != "x${host}" ; then
  12809. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12810. # We already found the complete path
  12811. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12813. $as_echo "pre-installed in $ac_dir" >&6; }
  12814. else
  12815. # Canadian cross, just use what we found
  12816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12817. $as_echo "pre-installed" >&6; }
  12818. fi
  12819. else
  12820. ok=yes
  12821. case " ${configdirs} " in
  12822. *" binutils "*) ;;
  12823. *) ok=no ;;
  12824. esac
  12825. if test $ok = yes; then
  12826. # An in-tree tool is available and we can use it
  12827. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  12828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12829. $as_echo "just compiled" >&6; }
  12830. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  12831. # We already found the complete path
  12832. ac_dir=`dirname $RANLIB_FOR_TARGET`
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12834. $as_echo "pre-installed in $ac_dir" >&6; }
  12835. elif test "x$target" = "x$host"; then
  12836. # We can use an host tool
  12837. RANLIB_FOR_TARGET='$(RANLIB)'
  12838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12839. $as_echo "host tool" >&6; }
  12840. else
  12841. # We need a cross tool
  12842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12843. $as_echo "pre-installed" >&6; }
  12844. fi
  12845. fi
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
  12847. $as_echo_n "checking where to find the target readelf... " >&6; }
  12848. if test "x${build}" != "x${host}" ; then
  12849. if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  12850. # We already found the complete path
  12851. ac_dir=`dirname $READELF_FOR_TARGET`
  12852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12853. $as_echo "pre-installed in $ac_dir" >&6; }
  12854. else
  12855. # Canadian cross, just use what we found
  12856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12857. $as_echo "pre-installed" >&6; }
  12858. fi
  12859. else
  12860. ok=yes
  12861. case " ${configdirs} " in
  12862. *" binutils "*) ;;
  12863. *) ok=no ;;
  12864. esac
  12865. if test $ok = yes; then
  12866. # An in-tree tool is available and we can use it
  12867. READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12869. $as_echo "just compiled" >&6; }
  12870. elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  12871. # We already found the complete path
  12872. ac_dir=`dirname $READELF_FOR_TARGET`
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12874. $as_echo "pre-installed in $ac_dir" >&6; }
  12875. elif test "x$target" = "x$host"; then
  12876. # We can use an host tool
  12877. READELF_FOR_TARGET='$(READELF)'
  12878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12879. $as_echo "host tool" >&6; }
  12880. else
  12881. # We need a cross tool
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12883. $as_echo "pre-installed" >&6; }
  12884. fi
  12885. fi
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  12887. $as_echo_n "checking where to find the target strip... " >&6; }
  12888. if test "x${build}" != "x${host}" ; then
  12889. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12890. # We already found the complete path
  12891. ac_dir=`dirname $STRIP_FOR_TARGET`
  12892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12893. $as_echo "pre-installed in $ac_dir" >&6; }
  12894. else
  12895. # Canadian cross, just use what we found
  12896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12897. $as_echo "pre-installed" >&6; }
  12898. fi
  12899. else
  12900. ok=yes
  12901. case " ${configdirs} " in
  12902. *" binutils "*) ;;
  12903. *) ok=no ;;
  12904. esac
  12905. if test $ok = yes; then
  12906. # An in-tree tool is available and we can use it
  12907. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  12908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12909. $as_echo "just compiled" >&6; }
  12910. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  12911. # We already found the complete path
  12912. ac_dir=`dirname $STRIP_FOR_TARGET`
  12913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12914. $as_echo "pre-installed in $ac_dir" >&6; }
  12915. elif test "x$target" = "x$host"; then
  12916. # We can use an host tool
  12917. STRIP_FOR_TARGET='$(STRIP)'
  12918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12919. $as_echo "host tool" >&6; }
  12920. else
  12921. # We need a cross tool
  12922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12923. $as_echo "pre-installed" >&6; }
  12924. fi
  12925. fi
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  12927. $as_echo_n "checking where to find the target windres... " >&6; }
  12928. if test "x${build}" != "x${host}" ; then
  12929. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12930. # We already found the complete path
  12931. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12933. $as_echo "pre-installed in $ac_dir" >&6; }
  12934. else
  12935. # Canadian cross, just use what we found
  12936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12937. $as_echo "pre-installed" >&6; }
  12938. fi
  12939. else
  12940. ok=yes
  12941. case " ${configdirs} " in
  12942. *" binutils "*) ;;
  12943. *) ok=no ;;
  12944. esac
  12945. if test $ok = yes; then
  12946. # An in-tree tool is available and we can use it
  12947. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  12948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12949. $as_echo "just compiled" >&6; }
  12950. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  12951. # We already found the complete path
  12952. ac_dir=`dirname $WINDRES_FOR_TARGET`
  12953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12954. $as_echo "pre-installed in $ac_dir" >&6; }
  12955. elif test "x$target" = "x$host"; then
  12956. # We can use an host tool
  12957. WINDRES_FOR_TARGET='$(WINDRES)'
  12958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12959. $as_echo "host tool" >&6; }
  12960. else
  12961. # We need a cross tool
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12963. $as_echo "pre-installed" >&6; }
  12964. fi
  12965. fi
  12966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  12967. $as_echo_n "checking where to find the target windmc... " >&6; }
  12968. if test "x${build}" != "x${host}" ; then
  12969. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12970. # We already found the complete path
  12971. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12973. $as_echo "pre-installed in $ac_dir" >&6; }
  12974. else
  12975. # Canadian cross, just use what we found
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  12977. $as_echo "pre-installed" >&6; }
  12978. fi
  12979. else
  12980. ok=yes
  12981. case " ${configdirs} " in
  12982. *" binutils "*) ;;
  12983. *) ok=no ;;
  12984. esac
  12985. if test $ok = yes; then
  12986. # An in-tree tool is available and we can use it
  12987. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  12988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  12989. $as_echo "just compiled" >&6; }
  12990. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  12991. # We already found the complete path
  12992. ac_dir=`dirname $WINDMC_FOR_TARGET`
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  12994. $as_echo "pre-installed in $ac_dir" >&6; }
  12995. elif test "x$target" = "x$host"; then
  12996. # We can use an host tool
  12997. WINDMC_FOR_TARGET='$(WINDMC)'
  12998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  12999. $as_echo "host tool" >&6; }
  13000. else
  13001. # We need a cross tool
  13002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  13003. $as_echo "pre-installed" >&6; }
  13004. fi
  13005. fi
  13006. # Certain tools may need extra flags.
  13007. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  13008. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  13009. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  13010. # When building target libraries, except in a Canadian cross, we use
  13011. # the same toolchain as the compiler we just built.
  13012. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  13013. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  13014. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  13015. if test $host = $build; then
  13016. case " $configdirs " in
  13017. *" gcc "*)
  13018. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  13019. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  13020. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  13021. ;;
  13022. esac
  13023. fi
  13024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  13025. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  13026. # Check whether --enable-maintainer-mode was given.
  13027. if test "${enable_maintainer_mode+set}" = set; then :
  13028. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  13029. else
  13030. USE_MAINTAINER_MODE=no
  13031. fi
  13032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  13033. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  13034. if test "$USE_MAINTAINER_MODE" = yes; then
  13035. MAINTAINER_MODE_TRUE=
  13036. MAINTAINER_MODE_FALSE='#'
  13037. else
  13038. MAINTAINER_MODE_TRUE='#'
  13039. MAINTAINER_MODE_FALSE=
  13040. fi
  13041. MAINT=$MAINTAINER_MODE_TRUE
  13042. # ---------------------
  13043. # GCC bootstrap support
  13044. # ---------------------
  13045. # Stage specific cflags for build.
  13046. stage1_cflags="-g"
  13047. case $build in
  13048. vax-*-*)
  13049. case ${GCC} in
  13050. yes) stage1_cflags="-g -Wa,-J" ;;
  13051. *) stage1_cflags="-g -J" ;;
  13052. esac ;;
  13053. esac
  13054. # Enable --enable-checking in stage1 of the compiler.
  13055. # Check whether --enable-stage1-checking was given.
  13056. if test "${enable_stage1_checking+set}" = set; then :
  13057. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  13058. else
  13059. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  13060. # For --disable-checking or implicit --enable-checking=release, avoid
  13061. # setting --enable-checking=gc in the default stage1 checking for LTO
  13062. # bootstraps. See PR62077.
  13063. case $BUILD_CONFIG in
  13064. *lto*)
  13065. stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
  13066. *)
  13067. stage1_checking=--enable-checking=yes,types;;
  13068. esac
  13069. if test "x$enable_checking" = x && \
  13070. test -d ${srcdir}/gcc && \
  13071. test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
  13072. stage1_checking=--enable-checking=yes,types,extra
  13073. fi
  13074. else
  13075. stage1_checking=--enable-checking=$enable_checking,types
  13076. fi
  13077. fi
  13078. # Enable -Werror in bootstrap stage2 and later.
  13079. # Check whether --enable-werror was given.
  13080. if test "${enable_werror+set}" = set; then :
  13081. enableval=$enable_werror;
  13082. else
  13083. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  13084. enable_werror=yes
  13085. else
  13086. enable_werror=no
  13087. fi
  13088. fi
  13089. case ${enable_werror} in
  13090. yes) stage2_werror_flag="--enable-werror-always" ;;
  13091. *) stage2_werror_flag="" ;;
  13092. esac
  13093. # Enable --enable-host-shared.
  13094. # Check whether --enable-host-shared was given.
  13095. if test "${enable_host_shared+set}" = set; then :
  13096. enableval=$enable_host_shared; host_shared=$enableval
  13097. else
  13098. host_shared=no
  13099. fi
  13100. # PR jit/64780: Require the user to explicitly specify
  13101. # --enable-host-shared if the jit is enabled, hinting
  13102. # that they might want to do a separate configure/build of
  13103. # the jit, to avoid users from slowing down the rest of the
  13104. # compiler by enabling the jit.
  13105. if test ${host_shared} = "no" ; then
  13106. case "${enable_languages}" in
  13107. *jit*)
  13108. as_fn_error "
  13109. Enabling language \"jit\" requires --enable-host-shared.
  13110. --enable-host-shared typically slows the rest of the compiler down by
  13111. a few %, so you must explicitly enable it.
  13112. If you want to build both the jit and the regular compiler, it is often
  13113. best to do this via two separate configure/builds, in separate
  13114. directories, to avoid imposing the performance cost of
  13115. --enable-host-shared on the regular compiler." "$LINENO" 5
  13116. ;;
  13117. *)
  13118. ;;
  13119. esac
  13120. fi
  13121. # Specify what files to not compare during bootstrap.
  13122. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  13123. case "$target" in
  13124. hppa*64*-*-hpux*) ;;
  13125. hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
  13126. powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
  13127. esac
  13128. ac_config_files="$ac_config_files Makefile"
  13129. cat >confcache <<\_ACEOF
  13130. # This file is a shell script that caches the results of configure
  13131. # tests run on this system so they can be shared between configure
  13132. # scripts and configure runs, see configure's option --config-cache.
  13133. # It is not useful on other systems. If it contains results you don't
  13134. # want to keep, you may remove or edit it.
  13135. #
  13136. # config.status only pays attention to the cache file if you give it
  13137. # the --recheck option to rerun configure.
  13138. #
  13139. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13140. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13141. # following values.
  13142. _ACEOF
  13143. # The following way of writing the cache mishandles newlines in values,
  13144. # but we know of no workaround that is simple, portable, and efficient.
  13145. # So, we kill variables containing newlines.
  13146. # Ultrix sh set writes to stderr and can't be redirected directly,
  13147. # and sets the high bit in the cache file unless we assign to the vars.
  13148. (
  13149. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13150. eval ac_val=\$$ac_var
  13151. case $ac_val in #(
  13152. *${as_nl}*)
  13153. case $ac_var in #(
  13154. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13155. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13156. esac
  13157. case $ac_var in #(
  13158. _ | IFS | as_nl) ;; #(
  13159. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13160. *) { eval $ac_var=; unset $ac_var;} ;;
  13161. esac ;;
  13162. esac
  13163. done
  13164. (set) 2>&1 |
  13165. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13166. *${as_nl}ac_space=\ *)
  13167. # `set' does not quote correctly, so add quotes: double-quote
  13168. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13169. sed -n \
  13170. "s/'/'\\\\''/g;
  13171. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13172. ;; #(
  13173. *)
  13174. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13175. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13176. ;;
  13177. esac |
  13178. sort
  13179. ) |
  13180. sed '
  13181. /^ac_cv_env_/b end
  13182. t clear
  13183. :clear
  13184. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13185. t end
  13186. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13187. :end' >>confcache
  13188. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13189. if test -w "$cache_file"; then
  13190. test "x$cache_file" != "x/dev/null" &&
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13192. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13193. cat confcache >$cache_file
  13194. else
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13196. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13197. fi
  13198. fi
  13199. rm -f confcache
  13200. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13201. # Let make expand exec_prefix.
  13202. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13203. # Transform confdefs.h into DEFS.
  13204. # Protect against shell expansion while executing Makefile rules.
  13205. # Protect against Makefile macro expansion.
  13206. #
  13207. # If the first sed substitution is executed (which looks for macros that
  13208. # take arguments), then branch to the quote section. Otherwise,
  13209. # look for a macro that doesn't take arguments.
  13210. ac_script='
  13211. :mline
  13212. /\\$/{
  13213. N
  13214. s,\\\n,,
  13215. b mline
  13216. }
  13217. t clear
  13218. :clear
  13219. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  13220. t quote
  13221. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  13222. t quote
  13223. b any
  13224. :quote
  13225. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  13226. s/\[/\\&/g
  13227. s/\]/\\&/g
  13228. s/\$/$$/g
  13229. H
  13230. :any
  13231. ${
  13232. g
  13233. s/^\n//
  13234. s/\n/ /g
  13235. p
  13236. }
  13237. '
  13238. DEFS=`sed -n "$ac_script" confdefs.h`
  13239. ac_libobjs=
  13240. ac_ltlibobjs=
  13241. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13242. # 1. Remove the extension, and $U if already installed.
  13243. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13244. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13245. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13246. # will be set to the directory where LIBOBJS objects are built.
  13247. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13248. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13249. done
  13250. LIBOBJS=$ac_libobjs
  13251. LTLIBOBJS=$ac_ltlibobjs
  13252. : ${CONFIG_STATUS=./config.status}
  13253. ac_write_fail=0
  13254. ac_clean_files_save=$ac_clean_files
  13255. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13256. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13257. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13258. as_write_fail=0
  13259. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13260. #! $SHELL
  13261. # Generated by $as_me.
  13262. # Run this file to recreate the current configuration.
  13263. # Compiler output produced by configure, useful for debugging
  13264. # configure, is in config.log if it exists.
  13265. debug=false
  13266. ac_cs_recheck=false
  13267. ac_cs_silent=false
  13268. SHELL=\${CONFIG_SHELL-$SHELL}
  13269. export SHELL
  13270. _ASEOF
  13271. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13272. ## -------------------- ##
  13273. ## M4sh Initialization. ##
  13274. ## -------------------- ##
  13275. # Be more Bourne compatible
  13276. DUALCASE=1; export DUALCASE # for MKS sh
  13277. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13278. emulate sh
  13279. NULLCMD=:
  13280. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13281. # is contrary to our usage. Disable this feature.
  13282. alias -g '${1+"$@"}'='"$@"'
  13283. setopt NO_GLOB_SUBST
  13284. else
  13285. case `(set -o) 2>/dev/null` in #(
  13286. *posix*) :
  13287. set -o posix ;; #(
  13288. *) :
  13289. ;;
  13290. esac
  13291. fi
  13292. as_nl='
  13293. '
  13294. export as_nl
  13295. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13296. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13297. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13298. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13299. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13300. # but without wasting forks for bash or zsh.
  13301. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13302. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13303. as_echo='print -r --'
  13304. as_echo_n='print -rn --'
  13305. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13306. as_echo='printf %s\n'
  13307. as_echo_n='printf %s'
  13308. else
  13309. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13310. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13311. as_echo_n='/usr/ucb/echo -n'
  13312. else
  13313. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13314. as_echo_n_body='eval
  13315. arg=$1;
  13316. case $arg in #(
  13317. *"$as_nl"*)
  13318. expr "X$arg" : "X\\(.*\\)$as_nl";
  13319. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13320. esac;
  13321. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13322. '
  13323. export as_echo_n_body
  13324. as_echo_n='sh -c $as_echo_n_body as_echo'
  13325. fi
  13326. export as_echo_body
  13327. as_echo='sh -c $as_echo_body as_echo'
  13328. fi
  13329. # The user is always right.
  13330. if test "${PATH_SEPARATOR+set}" != set; then
  13331. PATH_SEPARATOR=:
  13332. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13333. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13334. PATH_SEPARATOR=';'
  13335. }
  13336. fi
  13337. # IFS
  13338. # We need space, tab and new line, in precisely that order. Quoting is
  13339. # there to prevent editors from complaining about space-tab.
  13340. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13341. # splitting by setting IFS to empty value.)
  13342. IFS=" "" $as_nl"
  13343. # Find who we are. Look in the path if we contain no directory separator.
  13344. case $0 in #((
  13345. *[\\/]* ) as_myself=$0 ;;
  13346. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13347. for as_dir in $PATH
  13348. do
  13349. IFS=$as_save_IFS
  13350. test -z "$as_dir" && as_dir=.
  13351. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13352. done
  13353. IFS=$as_save_IFS
  13354. ;;
  13355. esac
  13356. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13357. # in which case we are not to be found in the path.
  13358. if test "x$as_myself" = x; then
  13359. as_myself=$0
  13360. fi
  13361. if test ! -f "$as_myself"; then
  13362. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13363. exit 1
  13364. fi
  13365. # Unset variables that we do not need and which cause bugs (e.g. in
  13366. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13367. # suppresses any "Segmentation fault" message there. '((' could
  13368. # trigger a bug in pdksh 5.2.14.
  13369. for as_var in BASH_ENV ENV MAIL MAILPATH
  13370. do eval test x\${$as_var+set} = xset \
  13371. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13372. done
  13373. PS1='$ '
  13374. PS2='> '
  13375. PS4='+ '
  13376. # NLS nuisances.
  13377. LC_ALL=C
  13378. export LC_ALL
  13379. LANGUAGE=C
  13380. export LANGUAGE
  13381. # CDPATH.
  13382. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13383. # as_fn_error ERROR [LINENO LOG_FD]
  13384. # ---------------------------------
  13385. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13386. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13387. # script with status $?, using 1 if that was 0.
  13388. as_fn_error ()
  13389. {
  13390. as_status=$?; test $as_status -eq 0 && as_status=1
  13391. if test "$3"; then
  13392. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13393. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13394. fi
  13395. $as_echo "$as_me: error: $1" >&2
  13396. as_fn_exit $as_status
  13397. } # as_fn_error
  13398. # as_fn_set_status STATUS
  13399. # -----------------------
  13400. # Set $? to STATUS, without forking.
  13401. as_fn_set_status ()
  13402. {
  13403. return $1
  13404. } # as_fn_set_status
  13405. # as_fn_exit STATUS
  13406. # -----------------
  13407. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13408. as_fn_exit ()
  13409. {
  13410. set +e
  13411. as_fn_set_status $1
  13412. exit $1
  13413. } # as_fn_exit
  13414. # as_fn_unset VAR
  13415. # ---------------
  13416. # Portably unset VAR.
  13417. as_fn_unset ()
  13418. {
  13419. { eval $1=; unset $1;}
  13420. }
  13421. as_unset=as_fn_unset
  13422. # as_fn_append VAR VALUE
  13423. # ----------------------
  13424. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13425. # advantage of any shell optimizations that allow amortized linear growth over
  13426. # repeated appends, instead of the typical quadratic growth present in naive
  13427. # implementations.
  13428. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13429. eval 'as_fn_append ()
  13430. {
  13431. eval $1+=\$2
  13432. }'
  13433. else
  13434. as_fn_append ()
  13435. {
  13436. eval $1=\$$1\$2
  13437. }
  13438. fi # as_fn_append
  13439. # as_fn_arith ARG...
  13440. # ------------------
  13441. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13442. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13443. # must be portable across $(()) and expr.
  13444. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13445. eval 'as_fn_arith ()
  13446. {
  13447. as_val=$(( $* ))
  13448. }'
  13449. else
  13450. as_fn_arith ()
  13451. {
  13452. as_val=`expr "$@" || test $? -eq 1`
  13453. }
  13454. fi # as_fn_arith
  13455. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13456. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13457. as_expr=expr
  13458. else
  13459. as_expr=false
  13460. fi
  13461. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13462. as_basename=basename
  13463. else
  13464. as_basename=false
  13465. fi
  13466. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13467. as_dirname=dirname
  13468. else
  13469. as_dirname=false
  13470. fi
  13471. as_me=`$as_basename -- "$0" ||
  13472. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13473. X"$0" : 'X\(//\)$' \| \
  13474. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13475. $as_echo X/"$0" |
  13476. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13477. s//\1/
  13478. q
  13479. }
  13480. /^X\/\(\/\/\)$/{
  13481. s//\1/
  13482. q
  13483. }
  13484. /^X\/\(\/\).*/{
  13485. s//\1/
  13486. q
  13487. }
  13488. s/.*/./; q'`
  13489. # Avoid depending upon Character Ranges.
  13490. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13491. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13492. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13493. as_cr_digits='0123456789'
  13494. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13495. ECHO_C= ECHO_N= ECHO_T=
  13496. case `echo -n x` in #(((((
  13497. -n*)
  13498. case `echo 'xy\c'` in
  13499. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13500. xy) ECHO_C='\c';;
  13501. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13502. ECHO_T=' ';;
  13503. esac;;
  13504. *)
  13505. ECHO_N='-n';;
  13506. esac
  13507. rm -f conf$$ conf$$.exe conf$$.file
  13508. if test -d conf$$.dir; then
  13509. rm -f conf$$.dir/conf$$.file
  13510. else
  13511. rm -f conf$$.dir
  13512. mkdir conf$$.dir 2>/dev/null
  13513. fi
  13514. if (echo >conf$$.file) 2>/dev/null; then
  13515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13516. as_ln_s='ln -s'
  13517. # ... but there are two gotchas:
  13518. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13519. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13520. # In both cases, we have to default to `cp -p'.
  13521. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13522. as_ln_s='cp -p'
  13523. elif ln conf$$.file conf$$ 2>/dev/null; then
  13524. as_ln_s=ln
  13525. else
  13526. as_ln_s='cp -p'
  13527. fi
  13528. else
  13529. as_ln_s='cp -p'
  13530. fi
  13531. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13532. rmdir conf$$.dir 2>/dev/null
  13533. # as_fn_mkdir_p
  13534. # -------------
  13535. # Create "$as_dir" as a directory, including parents if necessary.
  13536. as_fn_mkdir_p ()
  13537. {
  13538. case $as_dir in #(
  13539. -*) as_dir=./$as_dir;;
  13540. esac
  13541. test -d "$as_dir" || eval $as_mkdir_p || {
  13542. as_dirs=
  13543. while :; do
  13544. case $as_dir in #(
  13545. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13546. *) as_qdir=$as_dir;;
  13547. esac
  13548. as_dirs="'$as_qdir' $as_dirs"
  13549. as_dir=`$as_dirname -- "$as_dir" ||
  13550. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13551. X"$as_dir" : 'X\(//\)[^/]' \| \
  13552. X"$as_dir" : 'X\(//\)$' \| \
  13553. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13554. $as_echo X"$as_dir" |
  13555. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13556. s//\1/
  13557. q
  13558. }
  13559. /^X\(\/\/\)[^/].*/{
  13560. s//\1/
  13561. q
  13562. }
  13563. /^X\(\/\/\)$/{
  13564. s//\1/
  13565. q
  13566. }
  13567. /^X\(\/\).*/{
  13568. s//\1/
  13569. q
  13570. }
  13571. s/.*/./; q'`
  13572. test -d "$as_dir" && break
  13573. done
  13574. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13575. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13576. } # as_fn_mkdir_p
  13577. if mkdir -p . 2>/dev/null; then
  13578. as_mkdir_p='mkdir -p "$as_dir"'
  13579. else
  13580. test -d ./-p && rmdir ./-p
  13581. as_mkdir_p=false
  13582. fi
  13583. if test -x / >/dev/null 2>&1; then
  13584. as_test_x='test -x'
  13585. else
  13586. if ls -dL / >/dev/null 2>&1; then
  13587. as_ls_L_option=L
  13588. else
  13589. as_ls_L_option=
  13590. fi
  13591. as_test_x='
  13592. eval sh -c '\''
  13593. if test -d "$1"; then
  13594. test -d "$1/.";
  13595. else
  13596. case $1 in #(
  13597. -*)set "./$1";;
  13598. esac;
  13599. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13600. ???[sx]*):;;*)false;;esac;fi
  13601. '\'' sh
  13602. '
  13603. fi
  13604. as_executable_p=$as_test_x
  13605. # Sed expression to map a string onto a valid CPP name.
  13606. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13607. # Sed expression to map a string onto a valid variable name.
  13608. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13609. exec 6>&1
  13610. ## ----------------------------------- ##
  13611. ## Main body of $CONFIG_STATUS script. ##
  13612. ## ----------------------------------- ##
  13613. _ASEOF
  13614. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13615. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13616. # Save the log message, to keep $0 and so on meaningful, and to
  13617. # report actual input values of CONFIG_FILES etc. instead of their
  13618. # values after options handling.
  13619. ac_log="
  13620. This file was extended by $as_me, which was
  13621. generated by GNU Autoconf 2.64. Invocation command line was
  13622. CONFIG_FILES = $CONFIG_FILES
  13623. CONFIG_HEADERS = $CONFIG_HEADERS
  13624. CONFIG_LINKS = $CONFIG_LINKS
  13625. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13626. $ $0 $@
  13627. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13628. "
  13629. _ACEOF
  13630. case $ac_config_files in *"
  13631. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13632. esac
  13633. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13634. # Files that config.status was made for.
  13635. config_files="$ac_config_files"
  13636. _ACEOF
  13637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13638. ac_cs_usage="\
  13639. \`$as_me' instantiates files and other configuration actions
  13640. from templates according to the current configuration. Unless the files
  13641. and actions are specified as TAGs, all are instantiated by default.
  13642. Usage: $0 [OPTION]... [TAG]...
  13643. -h, --help print this help, then exit
  13644. -V, --version print version number and configuration settings, then exit
  13645. -q, --quiet, --silent
  13646. do not print progress messages
  13647. -d, --debug don't remove temporary files
  13648. --recheck update $as_me by reconfiguring in the same conditions
  13649. --file=FILE[:TEMPLATE]
  13650. instantiate the configuration file FILE
  13651. Configuration files:
  13652. $config_files
  13653. Report bugs to the package provider."
  13654. _ACEOF
  13655. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13656. ac_cs_version="\\
  13657. config.status
  13658. configured by $0, generated by GNU Autoconf 2.64,
  13659. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  13660. Copyright (C) 2009 Free Software Foundation, Inc.
  13661. This config.status script is free software; the Free Software Foundation
  13662. gives unlimited permission to copy, distribute and modify it."
  13663. ac_pwd='$ac_pwd'
  13664. srcdir='$srcdir'
  13665. INSTALL='$INSTALL'
  13666. AWK='$AWK'
  13667. test -n "\$AWK" || AWK=awk
  13668. _ACEOF
  13669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13670. # The default lists apply if the user does not specify any file.
  13671. ac_need_defaults=:
  13672. while test $# != 0
  13673. do
  13674. case $1 in
  13675. --*=*)
  13676. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13677. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13678. ac_shift=:
  13679. ;;
  13680. *)
  13681. ac_option=$1
  13682. ac_optarg=$2
  13683. ac_shift=shift
  13684. ;;
  13685. esac
  13686. case $ac_option in
  13687. # Handling of the options.
  13688. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13689. ac_cs_recheck=: ;;
  13690. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13691. $as_echo "$ac_cs_version"; exit ;;
  13692. --debug | --debu | --deb | --de | --d | -d )
  13693. debug=: ;;
  13694. --file | --fil | --fi | --f )
  13695. $ac_shift
  13696. case $ac_optarg in
  13697. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13698. esac
  13699. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13700. ac_need_defaults=false;;
  13701. --he | --h | --help | --hel | -h )
  13702. $as_echo "$ac_cs_usage"; exit ;;
  13703. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13704. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13705. ac_cs_silent=: ;;
  13706. # This is an error.
  13707. -*) as_fn_error "unrecognized option: \`$1'
  13708. Try \`$0 --help' for more information." ;;
  13709. *) as_fn_append ac_config_targets " $1"
  13710. ac_need_defaults=false ;;
  13711. esac
  13712. shift
  13713. done
  13714. ac_configure_extra_args=
  13715. if $ac_cs_silent; then
  13716. exec 6>/dev/null
  13717. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13718. fi
  13719. _ACEOF
  13720. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13721. if \$ac_cs_recheck; then
  13722. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13723. shift
  13724. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13725. CONFIG_SHELL='$SHELL'
  13726. export CONFIG_SHELL
  13727. exec "\$@"
  13728. fi
  13729. _ACEOF
  13730. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13731. exec 5>>config.log
  13732. {
  13733. echo
  13734. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13735. ## Running $as_me. ##
  13736. _ASBOX
  13737. $as_echo "$ac_log"
  13738. } >&5
  13739. _ACEOF
  13740. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13741. #
  13742. # INIT-COMMANDS
  13743. #
  13744. extrasub_build="$extrasub_build"
  13745. extrasub_host="$extrasub_host"
  13746. extrasub_target="$extrasub_target"
  13747. _ACEOF
  13748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13749. # Handling of arguments.
  13750. for ac_config_target in $ac_config_targets
  13751. do
  13752. case $ac_config_target in
  13753. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13754. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13755. esac
  13756. done
  13757. # If the user did not use the arguments to specify the items to instantiate,
  13758. # then the envvar interface is used. Set only those that are not.
  13759. # We use the long form for the default assignment because of an extremely
  13760. # bizarre bug on SunOS 4.1.3.
  13761. if $ac_need_defaults; then
  13762. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13763. fi
  13764. # Have a temporary directory for convenience. Make it in the build tree
  13765. # simply because there is no reason against having it here, and in addition,
  13766. # creating and moving files from /tmp can sometimes cause problems.
  13767. # Hook for its removal unless debugging.
  13768. # Note that there is a small window in which the directory will not be cleaned:
  13769. # after its creation but before its name has been assigned to `$tmp'.
  13770. $debug ||
  13771. {
  13772. tmp=
  13773. trap 'exit_status=$?
  13774. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13775. ' 0
  13776. trap 'as_fn_exit 1' 1 2 13 15
  13777. }
  13778. # Create a (secure) tmp directory for tmp files.
  13779. {
  13780. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13781. test -n "$tmp" && test -d "$tmp"
  13782. } ||
  13783. {
  13784. tmp=./conf$$-$RANDOM
  13785. (umask 077 && mkdir "$tmp")
  13786. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13787. # Set up the scripts for CONFIG_FILES section.
  13788. # No need to generate them if there are no CONFIG_FILES.
  13789. # This happens for instance with `./config.status config.h'.
  13790. if test -n "$CONFIG_FILES"; then
  13791. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  13792. ac_cs_awk_getline=:
  13793. ac_cs_awk_pipe_init=
  13794. ac_cs_awk_read_file='
  13795. while ((getline aline < (F[key])) > 0)
  13796. print(aline)
  13797. close(F[key])'
  13798. ac_cs_awk_pipe_fini=
  13799. else
  13800. ac_cs_awk_getline=false
  13801. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  13802. ac_cs_awk_read_file='
  13803. print "|#_!!_#|"
  13804. print "cat " F[key] " &&"
  13805. '$ac_cs_awk_pipe_init
  13806. # The final `:' finishes the AND list.
  13807. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  13808. fi
  13809. ac_cr=`echo X | tr X '\015'`
  13810. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13811. # But we know of no other shell where ac_cr would be empty at this
  13812. # point, so we can use a bashism as a fallback.
  13813. if test "x$ac_cr" = x; then
  13814. eval ac_cr=\$\'\\r\'
  13815. fi
  13816. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13817. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13818. ac_cs_awk_cr='\r'
  13819. else
  13820. ac_cs_awk_cr=$ac_cr
  13821. fi
  13822. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13823. _ACEOF
  13824. # Create commands to substitute file output variables.
  13825. {
  13826. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  13827. echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  13828. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  13829. echo "_ACAWK" &&
  13830. echo "_ACEOF"
  13831. } >conf$$files.sh &&
  13832. . ./conf$$files.sh ||
  13833. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13834. rm -f conf$$files.sh
  13835. {
  13836. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13837. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13838. echo "_ACEOF"
  13839. } >conf$$subs.sh ||
  13840. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13841. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13842. ac_delim='%!_!# '
  13843. for ac_last_try in false false false false false :; do
  13844. . ./conf$$subs.sh ||
  13845. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13846. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13847. if test $ac_delim_n = $ac_delim_num; then
  13848. break
  13849. elif $ac_last_try; then
  13850. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13851. else
  13852. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13853. fi
  13854. done
  13855. rm -f conf$$subs.sh
  13856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13857. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13858. _ACEOF
  13859. sed -n '
  13860. h
  13861. s/^/S["/; s/!.*/"]=/
  13862. p
  13863. g
  13864. s/^[^!]*!//
  13865. :repl
  13866. t repl
  13867. s/'"$ac_delim"'$//
  13868. t delim
  13869. :nl
  13870. h
  13871. s/\(.\{148\}\).*/\1/
  13872. t more1
  13873. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13874. p
  13875. n
  13876. b repl
  13877. :more1
  13878. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13879. p
  13880. g
  13881. s/.\{148\}//
  13882. t nl
  13883. :delim
  13884. h
  13885. s/\(.\{148\}\).*/\1/
  13886. t more2
  13887. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13888. p
  13889. b
  13890. :more2
  13891. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13892. p
  13893. g
  13894. s/.\{148\}//
  13895. t delim
  13896. ' <conf$$subs.awk | sed '
  13897. /^[^""]/{
  13898. N
  13899. s/\n//
  13900. }
  13901. ' >>$CONFIG_STATUS || ac_write_fail=1
  13902. rm -f conf$$subs.awk
  13903. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13904. _ACAWK
  13905. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13906. for (key in S) S_is_set[key] = 1
  13907. FS = ""
  13908. \$ac_cs_awk_pipe_init
  13909. }
  13910. {
  13911. line = $ 0
  13912. nfields = split(line, field, "@")
  13913. substed = 0
  13914. len = length(field[1])
  13915. for (i = 2; i < nfields; i++) {
  13916. key = field[i]
  13917. keylen = length(key)
  13918. if (S_is_set[key]) {
  13919. value = S[key]
  13920. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13921. len += length(value) + length(field[++i])
  13922. substed = 1
  13923. } else
  13924. len += 1 + keylen
  13925. }
  13926. if (nfields == 3 && !substed) {
  13927. key = field[2]
  13928. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  13929. \$ac_cs_awk_read_file
  13930. next
  13931. }
  13932. }
  13933. print line
  13934. }
  13935. \$ac_cs_awk_pipe_fini
  13936. _ACAWK
  13937. _ACEOF
  13938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13939. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13940. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13941. else
  13942. cat
  13943. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13944. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13945. _ACEOF
  13946. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13947. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13948. # trailing colons and then remove the whole line if VPATH becomes empty
  13949. # (actually we leave an empty line to preserve line numbers).
  13950. if test "x$srcdir" = x.; then
  13951. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13952. s/:*\$(srcdir):*/:/
  13953. s/:*\${srcdir}:*/:/
  13954. s/:*@srcdir@:*/:/
  13955. s/^\([^=]*=[ ]*\):*/\1/
  13956. s/:*$//
  13957. s/^[^=]*=[ ]*$//
  13958. }'
  13959. fi
  13960. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13961. fi # test -n "$CONFIG_FILES"
  13962. eval set X " :F $CONFIG_FILES "
  13963. shift
  13964. for ac_tag
  13965. do
  13966. case $ac_tag in
  13967. :[FHLC]) ac_mode=$ac_tag; continue;;
  13968. esac
  13969. case $ac_mode$ac_tag in
  13970. :[FHL]*:*);;
  13971. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  13972. :[FH]-) ac_tag=-:-;;
  13973. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13974. esac
  13975. ac_save_IFS=$IFS
  13976. IFS=:
  13977. set x $ac_tag
  13978. IFS=$ac_save_IFS
  13979. shift
  13980. ac_file=$1
  13981. shift
  13982. case $ac_mode in
  13983. :L) ac_source=$1;;
  13984. :[FH])
  13985. ac_file_inputs=
  13986. for ac_f
  13987. do
  13988. case $ac_f in
  13989. -) ac_f="$tmp/stdin";;
  13990. *) # Look for the file first in the build tree, then in the source tree
  13991. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13992. # because $ac_f cannot contain `:'.
  13993. test -f "$ac_f" ||
  13994. case $ac_f in
  13995. [\\/$]*) false;;
  13996. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13997. esac ||
  13998. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  13999. esac
  14000. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14001. as_fn_append ac_file_inputs " '$ac_f'"
  14002. done
  14003. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14004. # use $as_me), people would be surprised to read:
  14005. # /* config.h. Generated by config.status. */
  14006. configure_input='Generated from '`
  14007. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14008. `' by configure.'
  14009. if test x"$ac_file" != x-; then
  14010. configure_input="$ac_file. $configure_input"
  14011. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14012. $as_echo "$as_me: creating $ac_file" >&6;}
  14013. fi
  14014. # Neutralize special characters interpreted by sed in replacement strings.
  14015. case $configure_input in #(
  14016. *\&* | *\|* | *\\* )
  14017. ac_sed_conf_input=`$as_echo "$configure_input" |
  14018. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14019. *) ac_sed_conf_input=$configure_input;;
  14020. esac
  14021. case $ac_tag in
  14022. *:-:* | *:-) cat >"$tmp/stdin" \
  14023. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14024. esac
  14025. ;;
  14026. esac
  14027. ac_dir=`$as_dirname -- "$ac_file" ||
  14028. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14029. X"$ac_file" : 'X\(//\)[^/]' \| \
  14030. X"$ac_file" : 'X\(//\)$' \| \
  14031. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14032. $as_echo X"$ac_file" |
  14033. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14034. s//\1/
  14035. q
  14036. }
  14037. /^X\(\/\/\)[^/].*/{
  14038. s//\1/
  14039. q
  14040. }
  14041. /^X\(\/\/\)$/{
  14042. s//\1/
  14043. q
  14044. }
  14045. /^X\(\/\).*/{
  14046. s//\1/
  14047. q
  14048. }
  14049. s/.*/./; q'`
  14050. as_dir="$ac_dir"; as_fn_mkdir_p
  14051. ac_builddir=.
  14052. case "$ac_dir" in
  14053. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14054. *)
  14055. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14056. # A ".." for each directory in $ac_dir_suffix.
  14057. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14058. case $ac_top_builddir_sub in
  14059. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14060. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14061. esac ;;
  14062. esac
  14063. ac_abs_top_builddir=$ac_pwd
  14064. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14065. # for backward compatibility:
  14066. ac_top_builddir=$ac_top_build_prefix
  14067. case $srcdir in
  14068. .) # We are building in place.
  14069. ac_srcdir=.
  14070. ac_top_srcdir=$ac_top_builddir_sub
  14071. ac_abs_top_srcdir=$ac_pwd ;;
  14072. [\\/]* | ?:[\\/]* ) # Absolute name.
  14073. ac_srcdir=$srcdir$ac_dir_suffix;
  14074. ac_top_srcdir=$srcdir
  14075. ac_abs_top_srcdir=$srcdir ;;
  14076. *) # Relative name.
  14077. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14078. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14079. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14080. esac
  14081. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14082. case $ac_mode in
  14083. :F)
  14084. #
  14085. # CONFIG_FILE
  14086. #
  14087. case $INSTALL in
  14088. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14089. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14090. esac
  14091. _ACEOF
  14092. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14093. # If the template does not know about datarootdir, expand it.
  14094. # FIXME: This hack should be removed a few years after 2.60.
  14095. ac_datarootdir_hack=; ac_datarootdir_seen=
  14096. ac_sed_dataroot='
  14097. /datarootdir/ {
  14098. p
  14099. q
  14100. }
  14101. /@datadir@/p
  14102. /@docdir@/p
  14103. /@infodir@/p
  14104. /@localedir@/p
  14105. /@mandir@/p'
  14106. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14107. *datarootdir*) ac_datarootdir_seen=yes;;
  14108. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14110. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14111. _ACEOF
  14112. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14113. ac_datarootdir_hack='
  14114. s&@datadir@&$datadir&g
  14115. s&@docdir@&$docdir&g
  14116. s&@infodir@&$infodir&g
  14117. s&@localedir@&$localedir&g
  14118. s&@mandir@&$mandir&g
  14119. s&\\\${datarootdir}&$datarootdir&g' ;;
  14120. esac
  14121. _ACEOF
  14122. # Neutralize VPATH when `$srcdir' = `.'.
  14123. # Shell code in configure.ac might set extrasub.
  14124. # FIXME: do we really want to maintain this feature?
  14125. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14126. ac_sed_extra="$ac_vpsub
  14127. $extrasub
  14128. _ACEOF
  14129. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14130. :t
  14131. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14132. s|@configure_input@|$ac_sed_conf_input|;t t
  14133. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14134. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14135. s&@srcdir@&$ac_srcdir&;t t
  14136. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14137. s&@top_srcdir@&$ac_top_srcdir&;t t
  14138. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14139. s&@builddir@&$ac_builddir&;t t
  14140. s&@abs_builddir@&$ac_abs_builddir&;t t
  14141. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14142. s&@INSTALL@&$ac_INSTALL&;t t
  14143. $ac_datarootdir_hack
  14144. "
  14145. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14146. if $ac_cs_awk_getline; then
  14147. $AWK -f "$tmp/subs.awk"
  14148. else
  14149. $AWK -f "$tmp/subs.awk" | $SHELL
  14150. fi >$tmp/out \
  14151. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14152. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14153. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14154. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14156. which seems to be undefined. Please make sure it is defined." >&5
  14157. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14158. which seems to be undefined. Please make sure it is defined." >&2;}
  14159. rm -f "$tmp/stdin"
  14160. case $ac_file in
  14161. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14162. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14163. esac \
  14164. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14165. ;;
  14166. esac
  14167. case $ac_file$ac_mode in
  14168. "Makefile":F) sed "$extrasub_build" Makefile |
  14169. sed "$extrasub_host" |
  14170. sed "$extrasub_target" > mf$$
  14171. mv -f mf$$ Makefile ;;
  14172. esac
  14173. done # for ac_tag
  14174. as_fn_exit 0
  14175. _ACEOF
  14176. ac_clean_files=$ac_clean_files_save
  14177. test $ac_write_fail = 0 ||
  14178. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  14179. # configure is writing to config.log, and then calls config.status.
  14180. # config.status does its own redirection, appending to config.log.
  14181. # Unfortunately, on DOS this fails, as config.log is still kept open
  14182. # by configure, so config.status won't be able to write to it; its
  14183. # output is simply discarded. So we exec the FD to /dev/null,
  14184. # effectively closing config.log, so it can be properly (re)opened and
  14185. # appended to by config.status. When coming back to configure, we
  14186. # need to make the FD available again.
  14187. if test "$no_create" != yes; then
  14188. ac_cs_success=:
  14189. ac_config_status_args=
  14190. test "$silent" = yes &&
  14191. ac_config_status_args="$ac_config_status_args --quiet"
  14192. exec 5>/dev/null
  14193. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14194. exec 5>>config.log
  14195. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14196. # would make configure fail if this is the last instruction.
  14197. $ac_cs_success || as_fn_exit $?
  14198. fi
  14199. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14201. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14202. fi