configure 557 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  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. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="move-if-change"
  537. enable_option_checking=no
  538. ac_subst_vars='LTLIBOBJS
  539. LIBOBJS
  540. compare_exclusions
  541. stage2_werror_flag
  542. stage1_checking
  543. stage1_cflags
  544. MAINT
  545. MAINTAINER_MODE_FALSE
  546. MAINTAINER_MODE_TRUE
  547. COMPILER_NM_FOR_TARGET
  548. COMPILER_LD_FOR_TARGET
  549. COMPILER_AS_FOR_TARGET
  550. FLAGS_FOR_TARGET
  551. RAW_CXX_FOR_TARGET
  552. WINDMC_FOR_TARGET
  553. WINDRES_FOR_TARGET
  554. STRIP_FOR_TARGET
  555. READELF_FOR_TARGET
  556. RANLIB_FOR_TARGET
  557. OTOOL_FOR_TARGET
  558. OBJDUMP_FOR_TARGET
  559. OBJCOPY_FOR_TARGET
  560. NM_FOR_TARGET
  561. LIPO_FOR_TARGET
  562. LD_FOR_TARGET
  563. DSYMUTIL_FOR_TARGET
  564. DLLTOOL_FOR_TARGET
  565. AS_FOR_TARGET
  566. AR_FOR_TARGET
  567. GDC_FOR_TARGET
  568. GOC_FOR_TARGET
  569. GFORTRAN_FOR_TARGET
  570. GCC_FOR_TARGET
  571. CXX_FOR_TARGET
  572. CC_FOR_TARGET
  573. GDCFLAGS
  574. READELF
  575. OTOOL
  576. OBJDUMP
  577. OBJCOPY
  578. WINDMC
  579. WINDRES
  580. STRIP
  581. RANLIB
  582. NM
  583. LIPO
  584. LD
  585. DSYMUTIL
  586. DLLTOOL
  587. AS
  588. AR
  589. RUNTEST
  590. EXPECT
  591. MAKEINFO
  592. FLEX
  593. LEX
  594. M4
  595. BISON
  596. YACC
  597. WINDRES_FOR_BUILD
  598. WINDMC_FOR_BUILD
  599. RANLIB_FOR_BUILD
  600. NM_FOR_BUILD
  601. LD_FOR_BUILD
  602. LDFLAGS_FOR_BUILD
  603. GDC_FOR_BUILD
  604. GOC_FOR_BUILD
  605. GFORTRAN_FOR_BUILD
  606. DSYMUTIL_FOR_BUILD
  607. DLLTOOL_FOR_BUILD
  608. CXX_FOR_BUILD
  609. CXXFLAGS_FOR_BUILD
  610. CPPFLAGS_FOR_BUILD
  611. CPP_FOR_BUILD
  612. CFLAGS_FOR_BUILD
  613. CC_FOR_BUILD
  614. AS_FOR_BUILD
  615. AR_FOR_BUILD
  616. target_configdirs
  617. configdirs
  618. build_configdirs
  619. INSTALL_GDB_TK
  620. GDB_TK
  621. CONFIGURE_GDB_TK
  622. build_tooldir
  623. tooldir
  624. GCC_SHLIB_SUBDIR
  625. RPATH_ENVVAR
  626. target_configargs
  627. host_configargs
  628. build_configargs
  629. BUILD_CONFIG
  630. LDFLAGS_FOR_TARGET
  631. CXXFLAGS_FOR_TARGET
  632. CFLAGS_FOR_TARGET
  633. DEBUG_PREFIX_CFLAGS_FOR_TARGET
  634. SYSROOT_CFLAGS_FOR_TARGET
  635. get_gcc_base_ver
  636. extra_host_zlib_configure_flags
  637. extra_host_libiberty_configure_flags
  638. stage1_languages
  639. host_shared
  640. extra_linker_plugin_flags
  641. extra_linker_plugin_configure_flags
  642. islinc
  643. isllibs
  644. poststage1_ldflags
  645. poststage1_libs
  646. stage1_ldflags
  647. stage1_libs
  648. extra_isl_gmp_configure_flags
  649. extra_mpc_mpfr_configure_flags
  650. extra_mpc_gmp_configure_flags
  651. extra_mpfr_configure_flags
  652. gmpinc
  653. gmplibs
  654. PGO_BUILD_LTO_CFLAGS
  655. PGO_BUILD_USE_CFLAGS
  656. PGO_BUILD_GEN_CFLAGS
  657. HAVE_CXX11_FOR_BUILD
  658. HAVE_CXX11
  659. do_compare
  660. GDC
  661. GNATMAKE
  662. GNATBIND
  663. ac_ct_CXX
  664. CXXFLAGS
  665. CXX
  666. OBJEXT
  667. EXEEXT
  668. ac_ct_CC
  669. CPPFLAGS
  670. LDFLAGS
  671. CFLAGS
  672. CC
  673. extra_liboffloadmic_configure_flags
  674. target_subdir
  675. host_subdir
  676. build_subdir
  677. build_libsubdir
  678. AWK
  679. SED
  680. LN_S
  681. LN
  682. INSTALL_DATA
  683. INSTALL_SCRIPT
  684. INSTALL_PROGRAM
  685. target_os
  686. target_vendor
  687. target_cpu
  688. target
  689. host_os
  690. host_vendor
  691. host_cpu
  692. host
  693. target_noncanonical
  694. host_noncanonical
  695. build_noncanonical
  696. build_os
  697. build_vendor
  698. build_cpu
  699. build
  700. TOPLEVEL_CONFIGURE_ARGUMENTS
  701. target_alias
  702. host_alias
  703. build_alias
  704. LIBS
  705. ECHO_T
  706. ECHO_N
  707. ECHO_C
  708. DEFS
  709. mandir
  710. localedir
  711. libdir
  712. psdir
  713. pdfdir
  714. dvidir
  715. htmldir
  716. infodir
  717. docdir
  718. oldincludedir
  719. includedir
  720. localstatedir
  721. sharedstatedir
  722. sysconfdir
  723. datadir
  724. datarootdir
  725. libexecdir
  726. sbindir
  727. bindir
  728. program_transform_name
  729. prefix
  730. exec_prefix
  731. PACKAGE_URL
  732. PACKAGE_BUGREPORT
  733. PACKAGE_STRING
  734. PACKAGE_VERSION
  735. PACKAGE_TARNAME
  736. PACKAGE_NAME
  737. PATH_SEPARATOR
  738. SHELL'
  739. ac_subst_files='serialization_dependencies
  740. host_makefile_frag
  741. target_makefile_frag
  742. alphaieee_frag
  743. ospace_frag'
  744. ac_user_opts='
  745. enable_option_checking
  746. with_build_libsubdir
  747. with_system_zlib
  748. enable_as_accelerator_for
  749. enable_offload_targets
  750. enable_offload_defaulted
  751. enable_gold
  752. enable_ld
  753. enable_compressed_debug_sections
  754. enable_libquadmath
  755. enable_libquadmath_support
  756. enable_libada
  757. enable_libssp
  758. enable_libstdcxx
  759. enable_liboffloadmic
  760. enable_bootstrap
  761. enable_pgo_build
  762. with_mpc
  763. with_mpc_include
  764. with_mpc_lib
  765. with_mpfr
  766. with_mpfr_include
  767. with_mpfr_lib
  768. with_gmp
  769. with_gmp_include
  770. with_gmp_lib
  771. with_stage1_libs
  772. with_static_standard_libraries
  773. with_stage1_ldflags
  774. with_boot_libs
  775. with_boot_ldflags
  776. with_isl
  777. with_isl_include
  778. with_isl_lib
  779. enable_isl_version_check
  780. enable_lto
  781. enable_linker_plugin_configure_flags
  782. enable_linker_plugin_flags
  783. enable_host_shared
  784. enable_stage1_languages
  785. enable_objc_gc
  786. with_target_bdw_gc
  787. with_target_bdw_gc_include
  788. with_target_bdw_gc_lib
  789. with_gcc_major_version_only
  790. with_build_sysroot
  791. with_debug_prefix_map
  792. with_build_config
  793. enable_vtable_verify
  794. enable_serial_configure
  795. with_build_time_tools
  796. enable_maintainer_mode
  797. enable_stage1_checking
  798. enable_werror
  799. '
  800. ac_precious_vars='build_alias
  801. host_alias
  802. target_alias
  803. CC
  804. CFLAGS
  805. LDFLAGS
  806. LIBS
  807. CPPFLAGS
  808. CXX
  809. CXXFLAGS
  810. CCC
  811. build_configargs
  812. host_configargs
  813. target_configargs
  814. AR
  815. AS
  816. DLLTOOL
  817. DSYMUTIL
  818. LD
  819. LIPO
  820. NM
  821. RANLIB
  822. STRIP
  823. WINDRES
  824. WINDMC
  825. OBJCOPY
  826. OBJDUMP
  827. OTOOL
  828. READELF
  829. CC_FOR_TARGET
  830. CXX_FOR_TARGET
  831. GCC_FOR_TARGET
  832. GFORTRAN_FOR_TARGET
  833. GOC_FOR_TARGET
  834. GDC_FOR_TARGET
  835. AR_FOR_TARGET
  836. AS_FOR_TARGET
  837. DLLTOOL_FOR_TARGET
  838. DSYMUTIL_FOR_TARGET
  839. LD_FOR_TARGET
  840. LIPO_FOR_TARGET
  841. NM_FOR_TARGET
  842. OBJCOPY_FOR_TARGET
  843. OBJDUMP_FOR_TARGET
  844. OTOOL_FOR_TARGET
  845. RANLIB_FOR_TARGET
  846. READELF_FOR_TARGET
  847. STRIP_FOR_TARGET
  848. WINDRES_FOR_TARGET
  849. WINDMC_FOR_TARGET'
  850. # Initialize some variables set by options.
  851. ac_init_help=
  852. ac_init_version=false
  853. ac_unrecognized_opts=
  854. ac_unrecognized_sep=
  855. # The variables have the same names as the options, with
  856. # dashes changed to underlines.
  857. cache_file=/dev/null
  858. exec_prefix=NONE
  859. no_create=
  860. no_recursion=
  861. prefix=NONE
  862. program_prefix=NONE
  863. program_suffix=NONE
  864. program_transform_name=s,x,x,
  865. silent=
  866. site=
  867. srcdir=
  868. verbose=
  869. x_includes=NONE
  870. x_libraries=NONE
  871. # Installation directory options.
  872. # These are left unexpanded so users can "make install exec_prefix=/foo"
  873. # and all the variables that are supposed to be based on exec_prefix
  874. # by default will actually change.
  875. # Use braces instead of parens because sh, perl, etc. also accept them.
  876. # (The list follows the same order as the GNU Coding Standards.)
  877. bindir='${exec_prefix}/bin'
  878. sbindir='${exec_prefix}/sbin'
  879. libexecdir='${exec_prefix}/libexec'
  880. datarootdir='${prefix}/share'
  881. datadir='${datarootdir}'
  882. sysconfdir='${prefix}/etc'
  883. sharedstatedir='${prefix}/com'
  884. localstatedir='${prefix}/var'
  885. includedir='${prefix}/include'
  886. oldincludedir='/usr/include'
  887. docdir='${datarootdir}/doc/${PACKAGE}'
  888. infodir='${datarootdir}/info'
  889. htmldir='${docdir}'
  890. dvidir='${docdir}'
  891. pdfdir='${docdir}'
  892. psdir='${docdir}'
  893. libdir='${exec_prefix}/lib'
  894. localedir='${datarootdir}/locale'
  895. mandir='${datarootdir}/man'
  896. ac_prev=
  897. ac_dashdash=
  898. for ac_option
  899. do
  900. # If the previous option needs an argument, assign it.
  901. if test -n "$ac_prev"; then
  902. eval $ac_prev=\$ac_option
  903. ac_prev=
  904. continue
  905. fi
  906. case $ac_option in
  907. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  908. *=) ac_optarg= ;;
  909. *) ac_optarg=yes ;;
  910. esac
  911. # Accept the important Cygnus configure options, so we can diagnose typos.
  912. case $ac_dashdash$ac_option in
  913. --)
  914. ac_dashdash=yes ;;
  915. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  916. ac_prev=bindir ;;
  917. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  918. bindir=$ac_optarg ;;
  919. -build | --build | --buil | --bui | --bu)
  920. ac_prev=build_alias ;;
  921. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  922. build_alias=$ac_optarg ;;
  923. -cache-file | --cache-file | --cache-fil | --cache-fi \
  924. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  925. ac_prev=cache_file ;;
  926. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  927. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  928. cache_file=$ac_optarg ;;
  929. --config-cache | -C)
  930. cache_file=config.cache ;;
  931. -datadir | --datadir | --datadi | --datad)
  932. ac_prev=datadir ;;
  933. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  934. datadir=$ac_optarg ;;
  935. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  936. | --dataroo | --dataro | --datar)
  937. ac_prev=datarootdir ;;
  938. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  939. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  940. datarootdir=$ac_optarg ;;
  941. -disable-* | --disable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. as_fn_error $? "invalid feature name: $ac_useropt"
  946. ac_useropt_orig=$ac_useropt
  947. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  948. case $ac_user_opts in
  949. *"
  950. "enable_$ac_useropt"
  951. "*) ;;
  952. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  953. ac_unrecognized_sep=', ';;
  954. esac
  955. eval enable_$ac_useropt=no ;;
  956. -docdir | --docdir | --docdi | --doc | --do)
  957. ac_prev=docdir ;;
  958. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959. docdir=$ac_optarg ;;
  960. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  961. ac_prev=dvidir ;;
  962. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  963. dvidir=$ac_optarg ;;
  964. -enable-* | --enable-*)
  965. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  966. # Reject names that are not valid shell variable names.
  967. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  968. as_fn_error $? "invalid feature name: $ac_useropt"
  969. ac_useropt_orig=$ac_useropt
  970. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  971. case $ac_user_opts in
  972. *"
  973. "enable_$ac_useropt"
  974. "*) ;;
  975. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  976. ac_unrecognized_sep=', ';;
  977. esac
  978. eval enable_$ac_useropt=\$ac_optarg ;;
  979. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  980. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  981. | --exec | --exe | --ex)
  982. ac_prev=exec_prefix ;;
  983. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  984. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  985. | --exec=* | --exe=* | --ex=*)
  986. exec_prefix=$ac_optarg ;;
  987. -gas | --gas | --ga | --g)
  988. # Obsolete; use --with-gas.
  989. with_gas=yes ;;
  990. -help | --help | --hel | --he | -h)
  991. ac_init_help=long ;;
  992. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  993. ac_init_help=recursive ;;
  994. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  995. ac_init_help=short ;;
  996. -host | --host | --hos | --ho)
  997. ac_prev=host_alias ;;
  998. -host=* | --host=* | --hos=* | --ho=*)
  999. host_alias=$ac_optarg ;;
  1000. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1001. ac_prev=htmldir ;;
  1002. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1003. | --ht=*)
  1004. htmldir=$ac_optarg ;;
  1005. -includedir | --includedir | --includedi | --included | --include \
  1006. | --includ | --inclu | --incl | --inc)
  1007. ac_prev=includedir ;;
  1008. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1009. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1010. includedir=$ac_optarg ;;
  1011. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1012. ac_prev=infodir ;;
  1013. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1014. infodir=$ac_optarg ;;
  1015. -libdir | --libdir | --libdi | --libd)
  1016. ac_prev=libdir ;;
  1017. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1018. libdir=$ac_optarg ;;
  1019. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1020. | --libexe | --libex | --libe)
  1021. ac_prev=libexecdir ;;
  1022. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1023. | --libexe=* | --libex=* | --libe=*)
  1024. libexecdir=$ac_optarg ;;
  1025. -localedir | --localedir | --localedi | --localed | --locale)
  1026. ac_prev=localedir ;;
  1027. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1028. localedir=$ac_optarg ;;
  1029. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1030. | --localstate | --localstat | --localsta | --localst | --locals)
  1031. ac_prev=localstatedir ;;
  1032. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1033. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1034. localstatedir=$ac_optarg ;;
  1035. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1036. ac_prev=mandir ;;
  1037. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1038. mandir=$ac_optarg ;;
  1039. -nfp | --nfp | --nf)
  1040. # Obsolete; use --without-fp.
  1041. with_fp=no ;;
  1042. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1043. | --no-cr | --no-c | -n)
  1044. no_create=yes ;;
  1045. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1046. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1047. no_recursion=yes ;;
  1048. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1049. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1050. | --oldin | --oldi | --old | --ol | --o)
  1051. ac_prev=oldincludedir ;;
  1052. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1053. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1054. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1055. oldincludedir=$ac_optarg ;;
  1056. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1057. ac_prev=prefix ;;
  1058. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1059. prefix=$ac_optarg ;;
  1060. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1061. | --program-pre | --program-pr | --program-p)
  1062. ac_prev=program_prefix ;;
  1063. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1064. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1065. program_prefix=$ac_optarg ;;
  1066. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1067. | --program-suf | --program-su | --program-s)
  1068. ac_prev=program_suffix ;;
  1069. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1070. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1071. program_suffix=$ac_optarg ;;
  1072. -program-transform-name | --program-transform-name \
  1073. | --program-transform-nam | --program-transform-na \
  1074. | --program-transform-n | --program-transform- \
  1075. | --program-transform | --program-transfor \
  1076. | --program-transfo | --program-transf \
  1077. | --program-trans | --program-tran \
  1078. | --progr-tra | --program-tr | --program-t)
  1079. ac_prev=program_transform_name ;;
  1080. -program-transform-name=* | --program-transform-name=* \
  1081. | --program-transform-nam=* | --program-transform-na=* \
  1082. | --program-transform-n=* | --program-transform-=* \
  1083. | --program-transform=* | --program-transfor=* \
  1084. | --program-transfo=* | --program-transf=* \
  1085. | --program-trans=* | --program-tran=* \
  1086. | --progr-tra=* | --program-tr=* | --program-t=*)
  1087. program_transform_name=$ac_optarg ;;
  1088. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1089. ac_prev=pdfdir ;;
  1090. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1091. pdfdir=$ac_optarg ;;
  1092. -psdir | --psdir | --psdi | --psd | --ps)
  1093. ac_prev=psdir ;;
  1094. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1095. psdir=$ac_optarg ;;
  1096. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1097. | -silent | --silent | --silen | --sile | --sil)
  1098. silent=yes ;;
  1099. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1100. ac_prev=sbindir ;;
  1101. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1102. | --sbi=* | --sb=*)
  1103. sbindir=$ac_optarg ;;
  1104. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1105. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1106. | --sharedst | --shareds | --shared | --share | --shar \
  1107. | --sha | --sh)
  1108. ac_prev=sharedstatedir ;;
  1109. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1110. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1111. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1112. | --sha=* | --sh=*)
  1113. sharedstatedir=$ac_optarg ;;
  1114. -site | --site | --sit)
  1115. ac_prev=site ;;
  1116. -site=* | --site=* | --sit=*)
  1117. site=$ac_optarg ;;
  1118. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1119. ac_prev=srcdir ;;
  1120. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1121. srcdir=$ac_optarg ;;
  1122. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1123. | --syscon | --sysco | --sysc | --sys | --sy)
  1124. ac_prev=sysconfdir ;;
  1125. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1126. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1127. sysconfdir=$ac_optarg ;;
  1128. -target | --target | --targe | --targ | --tar | --ta | --t)
  1129. ac_prev=target_alias ;;
  1130. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1131. target_alias=$ac_optarg ;;
  1132. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1133. verbose=yes ;;
  1134. -version | --version | --versio | --versi | --vers | -V)
  1135. ac_init_version=: ;;
  1136. -with-* | --with-*)
  1137. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1138. # Reject names that are not valid shell variable names.
  1139. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1140. as_fn_error $? "invalid package name: $ac_useropt"
  1141. ac_useropt_orig=$ac_useropt
  1142. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1143. case $ac_user_opts in
  1144. *"
  1145. "with_$ac_useropt"
  1146. "*) ;;
  1147. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1148. ac_unrecognized_sep=', ';;
  1149. esac
  1150. eval with_$ac_useropt=\$ac_optarg ;;
  1151. -without-* | --without-*)
  1152. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1153. # Reject names that are not valid shell variable names.
  1154. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1155. as_fn_error $? "invalid package name: $ac_useropt"
  1156. ac_useropt_orig=$ac_useropt
  1157. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1158. case $ac_user_opts in
  1159. *"
  1160. "with_$ac_useropt"
  1161. "*) ;;
  1162. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1163. ac_unrecognized_sep=', ';;
  1164. esac
  1165. eval with_$ac_useropt=no ;;
  1166. --x)
  1167. # Obsolete; use --with-x.
  1168. with_x=yes ;;
  1169. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1170. | --x-incl | --x-inc | --x-in | --x-i)
  1171. ac_prev=x_includes ;;
  1172. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1173. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1174. x_includes=$ac_optarg ;;
  1175. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1176. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1177. ac_prev=x_libraries ;;
  1178. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1179. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1180. x_libraries=$ac_optarg ;;
  1181. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1182. Try \`$0 --help' for more information"
  1183. ;;
  1184. *=*)
  1185. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1186. # Reject names that are not valid shell variable names.
  1187. case $ac_envvar in #(
  1188. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1189. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1190. esac
  1191. eval $ac_envvar=\$ac_optarg
  1192. export $ac_envvar ;;
  1193. *)
  1194. # FIXME: should be removed in autoconf 3.0.
  1195. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1196. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1197. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1198. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1199. ;;
  1200. esac
  1201. done
  1202. if test -n "$ac_prev"; then
  1203. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1204. as_fn_error $? "missing argument to $ac_option"
  1205. fi
  1206. if test -n "$ac_unrecognized_opts"; then
  1207. case $enable_option_checking in
  1208. no) ;;
  1209. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1210. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1211. esac
  1212. fi
  1213. # Check all directory arguments for consistency.
  1214. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1215. datadir sysconfdir sharedstatedir localstatedir includedir \
  1216. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1217. libdir localedir mandir
  1218. do
  1219. eval ac_val=\$$ac_var
  1220. # Remove trailing slashes.
  1221. case $ac_val in
  1222. */ )
  1223. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1224. eval $ac_var=\$ac_val;;
  1225. esac
  1226. # Be sure to have absolute directory names.
  1227. case $ac_val in
  1228. [\\/$]* | ?:[\\/]* ) continue;;
  1229. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1230. esac
  1231. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1232. done
  1233. # There might be people who depend on the old broken behavior: `$host'
  1234. # used to hold the argument of --host etc.
  1235. # FIXME: To remove some day.
  1236. build=$build_alias
  1237. host=$host_alias
  1238. target=$target_alias
  1239. # FIXME: To remove some day.
  1240. if test "x$host_alias" != x; then
  1241. if test "x$build_alias" = x; then
  1242. cross_compiling=maybe
  1243. elif test "x$build_alias" != "x$host_alias"; then
  1244. cross_compiling=yes
  1245. fi
  1246. fi
  1247. ac_tool_prefix=
  1248. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1249. test "$silent" = yes && exec 6>/dev/null
  1250. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1251. ac_ls_di=`ls -di .` &&
  1252. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1253. as_fn_error $? "working directory cannot be determined"
  1254. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255. as_fn_error $? "pwd does not report name of working directory"
  1256. # Find the source files, if location was not specified.
  1257. if test -z "$srcdir"; then
  1258. ac_srcdir_defaulted=yes
  1259. # Try the directory containing this script, then the parent directory.
  1260. ac_confdir=`$as_dirname -- "$as_myself" ||
  1261. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1262. X"$as_myself" : 'X\(//\)[^/]' \| \
  1263. X"$as_myself" : 'X\(//\)$' \| \
  1264. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1265. $as_echo X"$as_myself" |
  1266. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\/\)[^/].*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. /^X\(\/\/\)$/{
  1275. s//\1/
  1276. q
  1277. }
  1278. /^X\(\/\).*/{
  1279. s//\1/
  1280. q
  1281. }
  1282. s/.*/./; q'`
  1283. srcdir=$ac_confdir
  1284. if test ! -r "$srcdir/$ac_unique_file"; then
  1285. srcdir=..
  1286. fi
  1287. else
  1288. ac_srcdir_defaulted=no
  1289. fi
  1290. if test ! -r "$srcdir/$ac_unique_file"; then
  1291. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1292. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1293. fi
  1294. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1295. ac_abs_confdir=`(
  1296. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1297. pwd)`
  1298. # When building in place, set srcdir=.
  1299. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1300. srcdir=.
  1301. fi
  1302. # Remove unnecessary trailing slashes from srcdir.
  1303. # Double slashes in file names in object file debugging info
  1304. # mess up M-x gdb in Emacs.
  1305. case $srcdir in
  1306. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1307. esac
  1308. case $srcdir in
  1309. *" "*)
  1310. as_fn_error $? "path to source, $srcdir, contains spaces"
  1311. ;;
  1312. esac
  1313. ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
  1314. for ac_var in $ac_precious_vars; do
  1315. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1316. eval ac_env_${ac_var}_value=\$${ac_var}
  1317. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1318. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1319. done
  1320. #
  1321. # Report the --help message.
  1322. #
  1323. if test "$ac_init_help" = "long"; then
  1324. # Omit some internal or obsolete options to make the list less imposing.
  1325. # This message is too long to be a string in the A/UX 3.1 sh.
  1326. cat <<_ACEOF
  1327. \`configure' configures this package to adapt to many kinds of systems.
  1328. Usage: $0 [OPTION]... [VAR=VALUE]...
  1329. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1330. VAR=VALUE. See below for descriptions of some of the useful variables.
  1331. Defaults for the options are specified in brackets.
  1332. Configuration:
  1333. -h, --help display this help and exit
  1334. --help=short display options specific to this package
  1335. --help=recursive display the short help of all the included packages
  1336. -V, --version display version information and exit
  1337. -q, --quiet, --silent do not print \`checking ...' messages
  1338. --cache-file=FILE cache test results in FILE [disabled]
  1339. -C, --config-cache alias for \`--cache-file=config.cache'
  1340. -n, --no-create do not create output files
  1341. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1342. Installation directories:
  1343. --prefix=PREFIX install architecture-independent files in PREFIX
  1344. [$ac_default_prefix]
  1345. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1346. [PREFIX]
  1347. By default, \`make install' will install all the files in
  1348. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1349. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1350. for instance \`--prefix=\$HOME'.
  1351. For better control, use the options below.
  1352. Fine tuning of the installation directories:
  1353. --bindir=DIR user executables [EPREFIX/bin]
  1354. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1355. --libexecdir=DIR program executables [EPREFIX/libexec]
  1356. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1357. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1358. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1359. --libdir=DIR object code libraries [EPREFIX/lib]
  1360. --includedir=DIR C header files [PREFIX/include]
  1361. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1362. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1363. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1364. --infodir=DIR info documentation [DATAROOTDIR/info]
  1365. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1366. --mandir=DIR man documentation [DATAROOTDIR/man]
  1367. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1368. --htmldir=DIR html documentation [DOCDIR]
  1369. --dvidir=DIR dvi documentation [DOCDIR]
  1370. --pdfdir=DIR pdf documentation [DOCDIR]
  1371. --psdir=DIR ps documentation [DOCDIR]
  1372. _ACEOF
  1373. cat <<\_ACEOF
  1374. Program names:
  1375. --program-prefix=PREFIX prepend PREFIX to installed program names
  1376. --program-suffix=SUFFIX append SUFFIX to installed program names
  1377. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1378. System types:
  1379. --build=BUILD configure for building on BUILD [guessed]
  1380. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1381. --target=TARGET configure for building compilers for TARGET [HOST]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. cat <<\_ACEOF
  1386. Optional Features:
  1387. --disable-option-checking ignore unrecognized --enable/--with options
  1388. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1389. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1390. --enable-as-accelerator-for=ARG
  1391. build as offload target compiler. Specify offload
  1392. host triple by ARG
  1393. --enable-offload-targets=LIST
  1394. enable offloading to devices from comma-separated
  1395. LIST of TARGET[=DIR]. Use optional path to find
  1396. offload target compiler during the build
  1397. --enable-offload-defaulted
  1398. If enabled, configured but not installed offload compilers and
  1399. libgomp plugins are silently ignored. Useful for distribution
  1400. compilers where those are in separate optional packages.
  1401. --enable-gold[=ARG] build gold [ARG={default,yes,no}]
  1402. --enable-ld[=ARG] build ld [ARG={default,yes,no}]
  1403. --enable-compressed-debug-sections={all,gas,gold,ld,none}
  1404. Enable compressed debug sections for gas, gold or ld
  1405. by default
  1406. --disable-libquadmath do not build libquadmath directory
  1407. --disable-libquadmath-support
  1408. disable libquadmath support for Fortran
  1409. --enable-libada build libada directory
  1410. --enable-libssp build libssp directory
  1411. --disable-libstdcxx do not build libstdc++-v3 directory
  1412. --enable-liboffloadmic=ARG
  1413. build liboffloadmic [ARG={no,host,target}]
  1414. --enable-bootstrap enable bootstrapping [yes if native build]
  1415. --enable-pgo-build[=lto]
  1416. enable the PGO build
  1417. --disable-isl-version-check
  1418. disable check for isl version
  1419. --enable-lto enable link time optimization support
  1420. --enable-linker-plugin-configure-flags=FLAGS
  1421. additional flags for configuring linker plugins
  1422. [none]
  1423. --enable-linker-plugin-flags=FLAGS
  1424. additional flags for configuring and building linker
  1425. plugins [none]
  1426. --enable-host-shared build host code as shared libraries
  1427. --enable-stage1-languages[=all]
  1428. choose additional languages to build during stage1.
  1429. Mostly useful for compiler development
  1430. --enable-objc-gc enable use of Boehm's garbage collector with the GNU
  1431. Objective-C runtime
  1432. --enable-vtable-verify Enable vtable verification feature
  1433. --enable-serial-[{host,target,build}-]configure
  1434. force sequential configuration of sub-packages for
  1435. the host, target or build machine, or all
  1436. sub-packages
  1437. --enable-maintainer-mode
  1438. enable make rules and dependencies not useful (and
  1439. sometimes confusing) to the casual installer
  1440. --enable-stage1-checking[=all]
  1441. choose additional checking for stage1 of the
  1442. compiler
  1443. --enable-werror enable -Werror in bootstrap stage2 and later
  1444. Optional Packages:
  1445. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1446. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1447. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1448. --with-system-zlib use installed libz
  1449. --with-mpc=PATH specify prefix directory for installed MPC package.
  1450. Equivalent to --with-mpc-include=PATH/include plus
  1451. --with-mpc-lib=PATH/lib
  1452. --with-mpc-include=PATH specify directory for installed MPC include files
  1453. --with-mpc-lib=PATH specify directory for the installed MPC library
  1454. --with-mpfr=PATH specify prefix directory for installed MPFR package.
  1455. Equivalent to --with-mpfr-include=PATH/include plus
  1456. --with-mpfr-lib=PATH/lib
  1457. --with-mpfr-include=PATH
  1458. specify directory for installed MPFR include files
  1459. --with-mpfr-lib=PATH specify directory for the installed MPFR library
  1460. --with-gmp=PATH specify prefix directory for the installed GMP
  1461. package. Equivalent to
  1462. --with-gmp-include=PATH/include plus
  1463. --with-gmp-lib=PATH/lib
  1464. --with-gmp-include=PATH specify directory for installed GMP include files
  1465. --with-gmp-lib=PATH specify directory for the installed GMP library
  1466. --with-stage1-libs=LIBS libraries for stage1
  1467. --with-static-standard-libraries
  1468. use -static-libstdc++ and -static-libgcc
  1469. (default=auto)
  1470. --with-stage1-ldflags=FLAGS
  1471. linker flags for stage1
  1472. --with-boot-libs=LIBS libraries for stage2 and later
  1473. --with-boot-ldflags=FLAGS
  1474. linker flags for stage2 and later
  1475. --with-isl=PATH Specify prefix directory for the installed isl
  1476. package. Equivalent to
  1477. --with-isl-include=PATH/include plus
  1478. --with-isl-lib=PATH/lib
  1479. --with-isl-include=PATH Specify directory for installed isl include files
  1480. --with-isl-lib=PATH Specify the directory for the installed isl library
  1481. --with-target-bdw-gc=PATHLIST
  1482. specify prefix directory for installed bdw-gc
  1483. package. Equivalent to
  1484. --with-target-bdw-gc-include=PATH/include plus
  1485. --with-target-bdw-gc-lib=PATH/lib
  1486. --with-target-bdw-gc-include=PATHLIST
  1487. specify directories for installed bdw-gc include
  1488. files
  1489. --with-target-bdw-gc-lib=PATHLIST
  1490. specify directories for installed bdw-gc library
  1491. --with-gcc-major-version-only
  1492. use only GCC major number in filesystem paths
  1493. --with-build-sysroot=SYSROOT
  1494. use sysroot as the system root during the build
  1495. --with-debug-prefix-map='A=B C=D ...'
  1496. map A to B, C to D ... in debug information
  1497. --with-build-config='NAME NAME2...'
  1498. use config/NAME.mk build configuration
  1499. --with-build-time-tools=PATH
  1500. use given path to find target tools during the build
  1501. Some influential environment variables:
  1502. CC C compiler command
  1503. CFLAGS C compiler flags
  1504. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1505. nonstandard directory <lib dir>
  1506. LIBS libraries to pass to the linker, e.g. -l<library>
  1507. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1508. you have headers in a nonstandard directory <include dir>
  1509. CXX C++ compiler command
  1510. CXXFLAGS C++ compiler flags
  1511. build_configargs
  1512. additional configure arguments for build directories
  1513. host_configargs
  1514. additional configure arguments for host directories
  1515. target_configargs
  1516. additional configure arguments for target directories
  1517. AR AR for the host
  1518. AS AS for the host
  1519. DLLTOOL DLLTOOL for the host
  1520. DSYMUTIL DSYMUTIL for the host
  1521. LD LD for the host
  1522. LIPO LIPO for the host
  1523. NM NM for the host
  1524. RANLIB RANLIB for the host
  1525. STRIP STRIP for the host
  1526. WINDRES WINDRES for the host
  1527. WINDMC WINDMC for the host
  1528. OBJCOPY OBJCOPY for the host
  1529. OBJDUMP OBJDUMP for the host
  1530. OTOOL OTOOL for the host
  1531. READELF READELF for the host
  1532. CC_FOR_TARGET
  1533. CC for the target
  1534. CXX_FOR_TARGET
  1535. CXX for the target
  1536. GCC_FOR_TARGET
  1537. GCC for the target
  1538. GFORTRAN_FOR_TARGET
  1539. GFORTRAN for the target
  1540. GOC_FOR_TARGET
  1541. GOC for the target
  1542. GDC_FOR_TARGET
  1543. GDC for the target
  1544. AR_FOR_TARGET
  1545. AR for the target
  1546. AS_FOR_TARGET
  1547. AS for the target
  1548. DLLTOOL_FOR_TARGET
  1549. DLLTOOL for the target
  1550. DSYMUTIL_FOR_TARGET
  1551. DSYMUTIL for the target
  1552. LD_FOR_TARGET
  1553. LD for the target
  1554. LIPO_FOR_TARGET
  1555. LIPO for the target
  1556. NM_FOR_TARGET
  1557. NM for the target
  1558. OBJCOPY_FOR_TARGET
  1559. OBJCOPY for the target
  1560. OBJDUMP_FOR_TARGET
  1561. OBJDUMP for the target
  1562. OTOOL_FOR_TARGET
  1563. OTOOL for the target
  1564. RANLIB_FOR_TARGET
  1565. RANLIB for the target
  1566. READELF_FOR_TARGET
  1567. READELF for the target
  1568. STRIP_FOR_TARGET
  1569. STRIP for the target
  1570. WINDRES_FOR_TARGET
  1571. WINDRES for the target
  1572. WINDMC_FOR_TARGET
  1573. WINDMC for the target
  1574. Use these variables to override the choices made by `configure' or to help
  1575. it to find libraries and programs with nonstandard names/locations.
  1576. Report bugs to the package provider.
  1577. _ACEOF
  1578. ac_status=$?
  1579. fi
  1580. if test "$ac_init_help" = "recursive"; then
  1581. # If there are subdirs, report their specific --help.
  1582. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1583. test -d "$ac_dir" ||
  1584. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1585. continue
  1586. ac_builddir=.
  1587. case "$ac_dir" in
  1588. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1589. *)
  1590. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1591. # A ".." for each directory in $ac_dir_suffix.
  1592. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1593. case $ac_top_builddir_sub in
  1594. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1595. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1596. esac ;;
  1597. esac
  1598. ac_abs_top_builddir=$ac_pwd
  1599. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1600. # for backward compatibility:
  1601. ac_top_builddir=$ac_top_build_prefix
  1602. case $srcdir in
  1603. .) # We are building in place.
  1604. ac_srcdir=.
  1605. ac_top_srcdir=$ac_top_builddir_sub
  1606. ac_abs_top_srcdir=$ac_pwd ;;
  1607. [\\/]* | ?:[\\/]* ) # Absolute name.
  1608. ac_srcdir=$srcdir$ac_dir_suffix;
  1609. ac_top_srcdir=$srcdir
  1610. ac_abs_top_srcdir=$srcdir ;;
  1611. *) # Relative name.
  1612. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1613. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1614. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1615. esac
  1616. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1617. cd "$ac_dir" || { ac_status=$?; continue; }
  1618. # Check for guested configure.
  1619. if test -f "$ac_srcdir/configure.gnu"; then
  1620. echo &&
  1621. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1622. elif test -f "$ac_srcdir/configure"; then
  1623. echo &&
  1624. $SHELL "$ac_srcdir/configure" --help=recursive
  1625. else
  1626. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1627. fi || ac_status=$?
  1628. cd "$ac_pwd" || { ac_status=$?; break; }
  1629. done
  1630. fi
  1631. test -n "$ac_init_help" && exit $ac_status
  1632. if $ac_init_version; then
  1633. cat <<\_ACEOF
  1634. configure
  1635. generated by GNU Autoconf 2.69
  1636. Copyright (C) 2012 Free Software Foundation, Inc.
  1637. This configure script is free software; the Free Software Foundation
  1638. gives unlimited permission to copy, distribute and modify it.
  1639. _ACEOF
  1640. exit
  1641. fi
  1642. ## ------------------------ ##
  1643. ## Autoconf initialization. ##
  1644. ## ------------------------ ##
  1645. # ac_fn_c_try_compile LINENO
  1646. # --------------------------
  1647. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1648. ac_fn_c_try_compile ()
  1649. {
  1650. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1651. rm -f conftest.$ac_objext
  1652. if { { ac_try="$ac_compile"
  1653. case "(($ac_try" in
  1654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1655. *) ac_try_echo=$ac_try;;
  1656. esac
  1657. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1658. $as_echo "$ac_try_echo"; } >&5
  1659. (eval "$ac_compile") 2>conftest.err
  1660. ac_status=$?
  1661. if test -s conftest.err; then
  1662. grep -v '^ *+' conftest.err >conftest.er1
  1663. cat conftest.er1 >&5
  1664. mv -f conftest.er1 conftest.err
  1665. fi
  1666. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1667. test $ac_status = 0; } && {
  1668. test -z "$ac_c_werror_flag" ||
  1669. test ! -s conftest.err
  1670. } && test -s conftest.$ac_objext; then :
  1671. ac_retval=0
  1672. else
  1673. $as_echo "$as_me: failed program was:" >&5
  1674. sed 's/^/| /' conftest.$ac_ext >&5
  1675. ac_retval=1
  1676. fi
  1677. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1678. as_fn_set_status $ac_retval
  1679. } # ac_fn_c_try_compile
  1680. # ac_fn_cxx_try_compile LINENO
  1681. # ----------------------------
  1682. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1683. ac_fn_cxx_try_compile ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. rm -f conftest.$ac_objext
  1687. if { { ac_try="$ac_compile"
  1688. case "(($ac_try" in
  1689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1690. *) ac_try_echo=$ac_try;;
  1691. esac
  1692. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1693. $as_echo "$ac_try_echo"; } >&5
  1694. (eval "$ac_compile") 2>conftest.err
  1695. ac_status=$?
  1696. if test -s conftest.err; then
  1697. grep -v '^ *+' conftest.err >conftest.er1
  1698. cat conftest.er1 >&5
  1699. mv -f conftest.er1 conftest.err
  1700. fi
  1701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1702. test $ac_status = 0; } && {
  1703. test -z "$ac_cxx_werror_flag" ||
  1704. test ! -s conftest.err
  1705. } && test -s conftest.$ac_objext; then :
  1706. ac_retval=0
  1707. else
  1708. $as_echo "$as_me: failed program was:" >&5
  1709. sed 's/^/| /' conftest.$ac_ext >&5
  1710. ac_retval=1
  1711. fi
  1712. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1713. as_fn_set_status $ac_retval
  1714. } # ac_fn_cxx_try_compile
  1715. # ac_fn_cxx_try_link LINENO
  1716. # -------------------------
  1717. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1718. ac_fn_cxx_try_link ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. rm -f conftest.$ac_objext conftest$ac_exeext
  1722. if { { ac_try="$ac_link"
  1723. case "(($ac_try" in
  1724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1725. *) ac_try_echo=$ac_try;;
  1726. esac
  1727. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1728. $as_echo "$ac_try_echo"; } >&5
  1729. (eval "$ac_link") 2>conftest.err
  1730. ac_status=$?
  1731. if test -s conftest.err; then
  1732. grep -v '^ *+' conftest.err >conftest.er1
  1733. cat conftest.er1 >&5
  1734. mv -f conftest.er1 conftest.err
  1735. fi
  1736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1737. test $ac_status = 0; } && {
  1738. test -z "$ac_cxx_werror_flag" ||
  1739. test ! -s conftest.err
  1740. } && test -s conftest$ac_exeext && {
  1741. test "$cross_compiling" = yes ||
  1742. test -x conftest$ac_exeext
  1743. }; then :
  1744. ac_retval=0
  1745. else
  1746. $as_echo "$as_me: failed program was:" >&5
  1747. sed 's/^/| /' conftest.$ac_ext >&5
  1748. ac_retval=1
  1749. fi
  1750. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1751. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1752. # interfere with the next link command; also delete a directory that is
  1753. # left behind by Apple's compiler. We do this before executing the actions.
  1754. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1755. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1756. as_fn_set_status $ac_retval
  1757. } # ac_fn_cxx_try_link
  1758. # ac_fn_c_try_link LINENO
  1759. # -----------------------
  1760. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1761. ac_fn_c_try_link ()
  1762. {
  1763. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1764. rm -f conftest.$ac_objext conftest$ac_exeext
  1765. if { { ac_try="$ac_link"
  1766. case "(($ac_try" in
  1767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1768. *) ac_try_echo=$ac_try;;
  1769. esac
  1770. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1771. $as_echo "$ac_try_echo"; } >&5
  1772. (eval "$ac_link") 2>conftest.err
  1773. ac_status=$?
  1774. if test -s conftest.err; then
  1775. grep -v '^ *+' conftest.err >conftest.er1
  1776. cat conftest.er1 >&5
  1777. mv -f conftest.er1 conftest.err
  1778. fi
  1779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1780. test $ac_status = 0; } && {
  1781. test -z "$ac_c_werror_flag" ||
  1782. test ! -s conftest.err
  1783. } && test -s conftest$ac_exeext && {
  1784. test "$cross_compiling" = yes ||
  1785. test -x conftest$ac_exeext
  1786. }; then :
  1787. ac_retval=0
  1788. else
  1789. $as_echo "$as_me: failed program was:" >&5
  1790. sed 's/^/| /' conftest.$ac_ext >&5
  1791. ac_retval=1
  1792. fi
  1793. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1794. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1795. # interfere with the next link command; also delete a directory that is
  1796. # left behind by Apple's compiler. We do this before executing the actions.
  1797. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1798. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1799. as_fn_set_status $ac_retval
  1800. } # ac_fn_c_try_link
  1801. cat >config.log <<_ACEOF
  1802. This file contains any messages produced by compilers while
  1803. running configure, to aid debugging if configure makes a mistake.
  1804. It was created by $as_me, which was
  1805. generated by GNU Autoconf 2.69. Invocation command line was
  1806. $ $0 $@
  1807. _ACEOF
  1808. exec 5>>config.log
  1809. {
  1810. cat <<_ASUNAME
  1811. ## --------- ##
  1812. ## Platform. ##
  1813. ## --------- ##
  1814. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1815. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1816. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1817. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1818. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1819. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1820. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1821. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1822. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1823. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1824. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1825. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1826. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1827. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1828. _ASUNAME
  1829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1830. for as_dir in $PATH
  1831. do
  1832. IFS=$as_save_IFS
  1833. test -z "$as_dir" && as_dir=.
  1834. $as_echo "PATH: $as_dir"
  1835. done
  1836. IFS=$as_save_IFS
  1837. } >&5
  1838. cat >&5 <<_ACEOF
  1839. ## ----------- ##
  1840. ## Core tests. ##
  1841. ## ----------- ##
  1842. _ACEOF
  1843. # Keep a trace of the command line.
  1844. # Strip out --no-create and --no-recursion so they do not pile up.
  1845. # Strip out --silent because we don't want to record it for future runs.
  1846. # Also quote any args containing shell meta-characters.
  1847. # Make two passes to allow for proper duplicate-argument suppression.
  1848. ac_configure_args=
  1849. ac_configure_args0=
  1850. ac_configure_args1=
  1851. ac_must_keep_next=false
  1852. for ac_pass in 1 2
  1853. do
  1854. for ac_arg
  1855. do
  1856. case $ac_arg in
  1857. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1858. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1859. | -silent | --silent | --silen | --sile | --sil)
  1860. continue ;;
  1861. *\'*)
  1862. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1863. esac
  1864. case $ac_pass in
  1865. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1866. 2)
  1867. as_fn_append ac_configure_args1 " '$ac_arg'"
  1868. if test $ac_must_keep_next = true; then
  1869. ac_must_keep_next=false # Got value, back to normal.
  1870. else
  1871. case $ac_arg in
  1872. *=* | --config-cache | -C | -disable-* | --disable-* \
  1873. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1874. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1875. | -with-* | --with-* | -without-* | --without-* | --x)
  1876. case "$ac_configure_args0 " in
  1877. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1878. esac
  1879. ;;
  1880. -* ) ac_must_keep_next=true ;;
  1881. esac
  1882. fi
  1883. as_fn_append ac_configure_args " '$ac_arg'"
  1884. ;;
  1885. esac
  1886. done
  1887. done
  1888. { ac_configure_args0=; unset ac_configure_args0;}
  1889. { ac_configure_args1=; unset ac_configure_args1;}
  1890. # When interrupted or exit'd, cleanup temporary files, and complete
  1891. # config.log. We remove comments because anyway the quotes in there
  1892. # would cause problems or look ugly.
  1893. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1894. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1895. trap 'exit_status=$?
  1896. # Save into config.log some information that might help in debugging.
  1897. {
  1898. echo
  1899. $as_echo "## ---------------- ##
  1900. ## Cache variables. ##
  1901. ## ---------------- ##"
  1902. echo
  1903. # The following way of writing the cache mishandles newlines in values,
  1904. (
  1905. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1906. eval ac_val=\$$ac_var
  1907. case $ac_val in #(
  1908. *${as_nl}*)
  1909. case $ac_var in #(
  1910. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1911. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1912. esac
  1913. case $ac_var in #(
  1914. _ | IFS | as_nl) ;; #(
  1915. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1916. *) { eval $ac_var=; unset $ac_var;} ;;
  1917. esac ;;
  1918. esac
  1919. done
  1920. (set) 2>&1 |
  1921. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1922. *${as_nl}ac_space=\ *)
  1923. sed -n \
  1924. "s/'\''/'\''\\\\'\'''\''/g;
  1925. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1926. ;; #(
  1927. *)
  1928. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1929. ;;
  1930. esac |
  1931. sort
  1932. )
  1933. echo
  1934. $as_echo "## ----------------- ##
  1935. ## Output variables. ##
  1936. ## ----------------- ##"
  1937. echo
  1938. for ac_var in $ac_subst_vars
  1939. do
  1940. eval ac_val=\$$ac_var
  1941. case $ac_val in
  1942. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1943. esac
  1944. $as_echo "$ac_var='\''$ac_val'\''"
  1945. done | sort
  1946. echo
  1947. if test -n "$ac_subst_files"; then
  1948. $as_echo "## ------------------- ##
  1949. ## File substitutions. ##
  1950. ## ------------------- ##"
  1951. echo
  1952. for ac_var in $ac_subst_files
  1953. do
  1954. eval ac_val=\$$ac_var
  1955. case $ac_val in
  1956. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1957. esac
  1958. $as_echo "$ac_var='\''$ac_val'\''"
  1959. done | sort
  1960. echo
  1961. fi
  1962. if test -s confdefs.h; then
  1963. $as_echo "## ----------- ##
  1964. ## confdefs.h. ##
  1965. ## ----------- ##"
  1966. echo
  1967. cat confdefs.h
  1968. echo
  1969. fi
  1970. test "$ac_signal" != 0 &&
  1971. $as_echo "$as_me: caught signal $ac_signal"
  1972. $as_echo "$as_me: exit $exit_status"
  1973. } >&5
  1974. rm -f core *.core core.conftest.* &&
  1975. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1976. exit $exit_status
  1977. ' 0
  1978. for ac_signal in 1 2 13 15; do
  1979. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1980. done
  1981. ac_signal=0
  1982. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1983. rm -f -r conftest* confdefs.h
  1984. $as_echo "/* confdefs.h */" > confdefs.h
  1985. # Predefined preprocessor variables.
  1986. cat >>confdefs.h <<_ACEOF
  1987. #define PACKAGE_NAME "$PACKAGE_NAME"
  1988. _ACEOF
  1989. cat >>confdefs.h <<_ACEOF
  1990. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1991. _ACEOF
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_STRING "$PACKAGE_STRING"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2000. _ACEOF
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE_URL "$PACKAGE_URL"
  2003. _ACEOF
  2004. # Let the site file select an alternate cache file if it wants to.
  2005. # Prefer an explicitly selected file to automatically selected ones.
  2006. ac_site_file1=NONE
  2007. ac_site_file2=NONE
  2008. if test -n "$CONFIG_SITE"; then
  2009. # We do not want a PATH search for config.site.
  2010. case $CONFIG_SITE in #((
  2011. -*) ac_site_file1=./$CONFIG_SITE;;
  2012. */*) ac_site_file1=$CONFIG_SITE;;
  2013. *) ac_site_file1=./$CONFIG_SITE;;
  2014. esac
  2015. elif test "x$prefix" != xNONE; then
  2016. ac_site_file1=$prefix/share/config.site
  2017. ac_site_file2=$prefix/etc/config.site
  2018. else
  2019. ac_site_file1=$ac_default_prefix/share/config.site
  2020. ac_site_file2=$ac_default_prefix/etc/config.site
  2021. fi
  2022. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2023. do
  2024. test "x$ac_site_file" = xNONE && continue
  2025. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2027. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2028. sed 's/^/| /' "$ac_site_file" >&5
  2029. . "$ac_site_file" \
  2030. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2031. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2032. as_fn_error $? "failed to load site script $ac_site_file
  2033. See \`config.log' for more details" "$LINENO" 5; }
  2034. fi
  2035. done
  2036. if test -r "$cache_file"; then
  2037. # Some versions of bash will fail to source /dev/null (special files
  2038. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2039. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2040. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2041. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2042. case $cache_file in
  2043. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2044. *) . "./$cache_file";;
  2045. esac
  2046. fi
  2047. else
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2049. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2050. >$cache_file
  2051. fi
  2052. # Check that the precious variables saved in the cache have kept the same
  2053. # value.
  2054. ac_cache_corrupted=false
  2055. for ac_var in $ac_precious_vars; do
  2056. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2057. eval ac_new_set=\$ac_env_${ac_var}_set
  2058. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2059. eval ac_new_val=\$ac_env_${ac_var}_value
  2060. case $ac_old_set,$ac_new_set in
  2061. set,)
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2063. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2064. ac_cache_corrupted=: ;;
  2065. ,set)
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2067. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2068. ac_cache_corrupted=: ;;
  2069. ,);;
  2070. *)
  2071. if test "x$ac_old_val" != "x$ac_new_val"; then
  2072. # differences in whitespace do not lead to failure.
  2073. ac_old_val_w=`echo x $ac_old_val`
  2074. ac_new_val_w=`echo x $ac_new_val`
  2075. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2076. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2077. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2078. ac_cache_corrupted=:
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2081. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2082. eval $ac_var=\$ac_old_val
  2083. fi
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2085. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2087. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2088. fi;;
  2089. esac
  2090. # Pass precious variables to config.status.
  2091. if test "$ac_new_set" = set; then
  2092. case $ac_new_val in
  2093. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2094. *) ac_arg=$ac_var=$ac_new_val ;;
  2095. esac
  2096. case " $ac_configure_args " in
  2097. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2098. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2099. esac
  2100. fi
  2101. done
  2102. if $ac_cache_corrupted; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2104. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2105. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2106. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2107. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2108. fi
  2109. ## -------------------- ##
  2110. ## Main body of script. ##
  2111. ## -------------------- ##
  2112. ac_ext=c
  2113. ac_cpp='$CPP $CPPFLAGS'
  2114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2117. progname=$0
  2118. # if PWD already has a value, it is probably wrong.
  2119. if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
  2120. # Export original configure arguments for use by sub-configures.
  2121. # Quote arguments with shell meta charatcers.
  2122. TOPLEVEL_CONFIGURE_ARGUMENTS=
  2123. set -- "$progname" "$@"
  2124. for ac_arg
  2125. do
  2126. case "$ac_arg" in
  2127. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
  2128. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
  2129. # if the argument is of the form -foo=baz, quote the baz part only
  2130. ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
  2131. *) ;;
  2132. esac
  2133. # Add the quoted argument to the list.
  2134. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
  2135. done
  2136. if test "$silent" = yes; then
  2137. TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
  2138. fi
  2139. # Remove the initial space we just introduced and, as these will be
  2140. # expanded by make, quote '$'.
  2141. TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  2142. # Find the build, host, and target systems.
  2143. ac_aux_dir=
  2144. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2145. if test -f "$ac_dir/install-sh"; then
  2146. ac_aux_dir=$ac_dir
  2147. ac_install_sh="$ac_aux_dir/install-sh -c"
  2148. break
  2149. elif test -f "$ac_dir/install.sh"; then
  2150. ac_aux_dir=$ac_dir
  2151. ac_install_sh="$ac_aux_dir/install.sh -c"
  2152. break
  2153. elif test -f "$ac_dir/shtool"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/shtool install -c"
  2156. break
  2157. fi
  2158. done
  2159. if test -z "$ac_aux_dir"; then
  2160. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2161. fi
  2162. # These three variables are undocumented and unsupported,
  2163. # and are intended to be withdrawn in a future Autoconf release.
  2164. # They can cause serious problems if a builder's source tree is in a directory
  2165. # whose full name contains unusual characters.
  2166. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2167. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2168. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2169. # Make sure we can run config.sub.
  2170. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2171. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2173. $as_echo_n "checking build system type... " >&6; }
  2174. if ${ac_cv_build+:} false; then :
  2175. $as_echo_n "(cached) " >&6
  2176. else
  2177. ac_build_alias=$build_alias
  2178. test "x$ac_build_alias" = x &&
  2179. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2180. test "x$ac_build_alias" = x &&
  2181. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2182. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2183. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2184. fi
  2185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2186. $as_echo "$ac_cv_build" >&6; }
  2187. case $ac_cv_build in
  2188. *-*-*) ;;
  2189. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2190. esac
  2191. build=$ac_cv_build
  2192. ac_save_IFS=$IFS; IFS='-'
  2193. set x $ac_cv_build
  2194. shift
  2195. build_cpu=$1
  2196. build_vendor=$2
  2197. shift; shift
  2198. # Remember, the first character of IFS is used to create $*,
  2199. # except with old shells:
  2200. build_os=$*
  2201. IFS=$ac_save_IFS
  2202. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2203. case ${build_alias} in
  2204. "") build_noncanonical=${build} ;;
  2205. *) build_noncanonical=${build_alias} ;;
  2206. esac
  2207. case ${host_alias} in
  2208. "") host_noncanonical=${build_noncanonical} ;;
  2209. *) host_noncanonical=${host_alias} ;;
  2210. esac
  2211. case ${target_alias} in
  2212. "") target_noncanonical=${host_noncanonical} ;;
  2213. *) target_noncanonical=${target_alias} ;;
  2214. esac
  2215. test "$host_noncanonical" = "$target_noncanonical" &&
  2216. test "$program_prefix$program_suffix$program_transform_name" = \
  2217. NONENONEs,x,x, &&
  2218. program_transform_name=s,y,y,
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2220. $as_echo_n "checking host system type... " >&6; }
  2221. if ${ac_cv_host+:} false; then :
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. if test "x$host_alias" = x; then
  2225. ac_cv_host=$ac_cv_build
  2226. else
  2227. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2228. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2229. fi
  2230. fi
  2231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2232. $as_echo "$ac_cv_host" >&6; }
  2233. case $ac_cv_host in
  2234. *-*-*) ;;
  2235. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2236. esac
  2237. host=$ac_cv_host
  2238. ac_save_IFS=$IFS; IFS='-'
  2239. set x $ac_cv_host
  2240. shift
  2241. host_cpu=$1
  2242. host_vendor=$2
  2243. shift; shift
  2244. # Remember, the first character of IFS is used to create $*,
  2245. # except with old shells:
  2246. host_os=$*
  2247. IFS=$ac_save_IFS
  2248. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2250. $as_echo_n "checking target system type... " >&6; }
  2251. if ${ac_cv_target+:} false; then :
  2252. $as_echo_n "(cached) " >&6
  2253. else
  2254. if test "x$target_alias" = x; then
  2255. ac_cv_target=$ac_cv_host
  2256. else
  2257. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2258. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2259. fi
  2260. fi
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2262. $as_echo "$ac_cv_target" >&6; }
  2263. case $ac_cv_target in
  2264. *-*-*) ;;
  2265. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2266. esac
  2267. target=$ac_cv_target
  2268. ac_save_IFS=$IFS; IFS='-'
  2269. set x $ac_cv_target
  2270. shift
  2271. target_cpu=$1
  2272. target_vendor=$2
  2273. shift; shift
  2274. # Remember, the first character of IFS is used to create $*,
  2275. # except with old shells:
  2276. target_os=$*
  2277. IFS=$ac_save_IFS
  2278. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2279. # The aliases save the names the user supplied, while $host etc.
  2280. # will get canonicalized.
  2281. test -n "$target_alias" &&
  2282. test "$program_prefix$program_suffix$program_transform_name" = \
  2283. NONENONEs,x,x, &&
  2284. program_prefix=${target_alias}-
  2285. test "$program_prefix" != NONE &&
  2286. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2287. # Use a double $ so make ignores it.
  2288. test "$program_suffix" != NONE &&
  2289. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2290. # Double any \ or $.
  2291. # By default was `s,x,x', remove it if useless.
  2292. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2293. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2294. # Get 'install' or 'install-sh' and its variants.
  2295. # Find a good install program. We prefer a C program (faster),
  2296. # so one script is as good as another. But avoid the broken or
  2297. # incompatible versions:
  2298. # SysV /etc/install, /usr/sbin/install
  2299. # SunOS /usr/etc/install
  2300. # IRIX /sbin/install
  2301. # AIX /bin/install
  2302. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2303. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2304. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2305. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2306. # OS/2's system install, which has a completely different semantic
  2307. # ./install, which can be erroneously created by make from ./install.sh.
  2308. # Reject install programs that cannot install multiple files.
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2310. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2311. if test -z "$INSTALL"; then
  2312. if ${ac_cv_path_install+:} false; then :
  2313. $as_echo_n "(cached) " >&6
  2314. else
  2315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2316. for as_dir in $PATH
  2317. do
  2318. IFS=$as_save_IFS
  2319. test -z "$as_dir" && as_dir=.
  2320. # Account for people who put trailing slashes in PATH elements.
  2321. case $as_dir/ in #((
  2322. ./ | .// | /[cC]/* | \
  2323. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2324. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2325. /usr/ucb/* ) ;;
  2326. *)
  2327. # OSF1 and SCO ODT 3.0 have their own names for install.
  2328. # Don't use installbsd from OSF since it installs stuff as root
  2329. # by default.
  2330. for ac_prog in ginstall scoinst install; do
  2331. for ac_exec_ext in '' $ac_executable_extensions; do
  2332. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2333. if test $ac_prog = install &&
  2334. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2335. # AIX install. It has an incompatible calling convention.
  2336. :
  2337. elif test $ac_prog = install &&
  2338. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2339. # program-specific install script used by HP pwplus--don't use.
  2340. :
  2341. else
  2342. rm -rf conftest.one conftest.two conftest.dir
  2343. echo one > conftest.one
  2344. echo two > conftest.two
  2345. mkdir conftest.dir
  2346. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2347. test -s conftest.one && test -s conftest.two &&
  2348. test -s conftest.dir/conftest.one &&
  2349. test -s conftest.dir/conftest.two
  2350. then
  2351. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2352. break 3
  2353. fi
  2354. fi
  2355. fi
  2356. done
  2357. done
  2358. ;;
  2359. esac
  2360. done
  2361. IFS=$as_save_IFS
  2362. rm -rf conftest.one conftest.two conftest.dir
  2363. fi
  2364. if test "${ac_cv_path_install+set}" = set; then
  2365. INSTALL=$ac_cv_path_install
  2366. else
  2367. # As a last resort, use the slow shell script. Don't cache a
  2368. # value for INSTALL within a source directory, because that will
  2369. # break other packages using the cache if that directory is
  2370. # removed, or if the value is a relative name.
  2371. INSTALL=$ac_install_sh
  2372. fi
  2373. fi
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2375. $as_echo "$INSTALL" >&6; }
  2376. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2377. # It thinks the first close brace ends the variable substitution.
  2378. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2379. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2380. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
  2382. $as_echo_n "checking whether ln works... " >&6; }
  2383. if ${acx_cv_prog_LN+:} false; then :
  2384. $as_echo_n "(cached) " >&6
  2385. else
  2386. rm -f conftestdata_t
  2387. echo >conftestdata_f
  2388. if ln conftestdata_f conftestdata_t 2>/dev/null
  2389. then
  2390. acx_cv_prog_LN=ln
  2391. else
  2392. acx_cv_prog_LN=no
  2393. fi
  2394. rm -f conftestdata_f conftestdata_t
  2395. fi
  2396. if test $acx_cv_prog_LN = no; then
  2397. LN="cp"
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
  2399. $as_echo "no, using $LN" >&6; }
  2400. else
  2401. LN="$acx_cv_prog_LN"
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2403. $as_echo "yes" >&6; }
  2404. fi
  2405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2406. $as_echo_n "checking whether ln -s works... " >&6; }
  2407. LN_S=$as_ln_s
  2408. if test "$LN_S" = "ln -s"; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2410. $as_echo "yes" >&6; }
  2411. else
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2413. $as_echo "no, using $LN_S" >&6; }
  2414. fi
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  2416. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  2417. if ${ac_cv_path_SED+:} false; then :
  2418. $as_echo_n "(cached) " >&6
  2419. else
  2420. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  2421. for ac_i in 1 2 3 4 5 6 7; do
  2422. ac_script="$ac_script$as_nl$ac_script"
  2423. done
  2424. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  2425. { ac_script=; unset ac_script;}
  2426. if test -z "$SED"; then
  2427. ac_path_SED_found=false
  2428. # Loop through the user's path and test for each of PROGNAME-LIST
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_prog in sed gsed; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  2437. as_fn_executable_p "$ac_path_SED" || continue
  2438. # Check for GNU ac_path_SED and select it if it is found.
  2439. # Check for GNU $ac_path_SED
  2440. case `"$ac_path_SED" --version 2>&1` in
  2441. *GNU*)
  2442. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  2443. *)
  2444. ac_count=0
  2445. $as_echo_n 0123456789 >"conftest.in"
  2446. while :
  2447. do
  2448. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2449. mv "conftest.tmp" "conftest.in"
  2450. cp "conftest.in" "conftest.nl"
  2451. $as_echo '' >> "conftest.nl"
  2452. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2453. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2454. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2455. if test $ac_count -gt ${ac_path_SED_max-0}; then
  2456. # Best one so far, save it but keep looking for a better one
  2457. ac_cv_path_SED="$ac_path_SED"
  2458. ac_path_SED_max=$ac_count
  2459. fi
  2460. # 10*(2^10) chars as input seems more than enough
  2461. test $ac_count -gt 10 && break
  2462. done
  2463. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2464. esac
  2465. $ac_path_SED_found && break 3
  2466. done
  2467. done
  2468. done
  2469. IFS=$as_save_IFS
  2470. if test -z "$ac_cv_path_SED"; then
  2471. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  2472. fi
  2473. else
  2474. ac_cv_path_SED=$SED
  2475. fi
  2476. fi
  2477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  2478. $as_echo "$ac_cv_path_SED" >&6; }
  2479. SED="$ac_cv_path_SED"
  2480. rm -f conftest.sed
  2481. for ac_prog in gawk mawk nawk awk
  2482. do
  2483. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2484. set dummy $ac_prog; ac_word=$2
  2485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2486. $as_echo_n "checking for $ac_word... " >&6; }
  2487. if ${ac_cv_prog_AWK+:} false; then :
  2488. $as_echo_n "(cached) " >&6
  2489. else
  2490. if test -n "$AWK"; then
  2491. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2492. else
  2493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2494. for as_dir in $PATH
  2495. do
  2496. IFS=$as_save_IFS
  2497. test -z "$as_dir" && as_dir=.
  2498. for ac_exec_ext in '' $ac_executable_extensions; do
  2499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2500. ac_cv_prog_AWK="$ac_prog"
  2501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2502. break 2
  2503. fi
  2504. done
  2505. done
  2506. IFS=$as_save_IFS
  2507. fi
  2508. fi
  2509. AWK=$ac_cv_prog_AWK
  2510. if test -n "$AWK"; then
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2512. $as_echo "$AWK" >&6; }
  2513. else
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2515. $as_echo "no" >&6; }
  2516. fi
  2517. test -n "$AWK" && break
  2518. done
  2519. srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
  2520. # We pass INSTALL explicitly to sub-makes. Make sure that it is not
  2521. # a relative path.
  2522. if test "$INSTALL" = "${srcdir}/install-sh -c"; then
  2523. INSTALL="${srcpwd}/install-sh -c"
  2524. fi
  2525. # Set srcdir to "." if that's what it is.
  2526. # This is important for multilib support.
  2527. pwd=`${PWDCMD-pwd}`
  2528. if test "${pwd}" = "${srcpwd}" ; then
  2529. srcdir=.
  2530. fi
  2531. topsrcdir=$srcpwd
  2532. extra_host_args=
  2533. ### To add a new directory to the tree, first choose whether it is a target
  2534. ### or a host dependent tool. Then put it into the appropriate list
  2535. ### (library or tools, host or target), doing a dependency sort.
  2536. # Subdirs will be configured in the order listed in build_configdirs,
  2537. # configdirs, or target_configdirs; see the serialization section below.
  2538. # Dependency sorting is only needed when *configuration* must be done in
  2539. # a particular order. In all cases a dependency should be specified in
  2540. # the Makefile, whether or not it's implicitly specified here.
  2541. # Double entries in build_configdirs, configdirs, or target_configdirs may
  2542. # cause circular dependencies and break everything horribly.
  2543. # these library is used by various programs built for the build
  2544. # environment
  2545. #
  2546. build_libs="build-libiberty build-libcpp"
  2547. # these tools are built for the build environment
  2548. build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
  2549. # these libraries are used by various programs built for the host environment
  2550. #f
  2551. host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
  2552. # these tools are built for the host environment
  2553. # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
  2554. # know that we are building the simulator.
  2555. # binutils, gas and ld appear in that order because it makes sense to run
  2556. # "make check" in that particular order.
  2557. # If --enable-gold is used, "gold" may replace "ld".
  2558. host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
  2559. # these libraries are built for the target environment, and are built after
  2560. # the host libraries and the host tools (which may be a cross compiler)
  2561. # Note that libiberty is not a target library.
  2562. target_libraries="target-libgcc \
  2563. target-libbacktrace \
  2564. target-libgloss \
  2565. target-newlib \
  2566. target-libgomp \
  2567. target-liboffloadmic \
  2568. target-libatomic \
  2569. target-libitm \
  2570. target-libstdc++-v3 \
  2571. target-libsanitizer \
  2572. target-libvtv \
  2573. target-libssp \
  2574. target-libquadmath \
  2575. target-libgfortran \
  2576. target-libffi \
  2577. target-libobjc \
  2578. target-libada \
  2579. target-libgo \
  2580. target-libphobos \
  2581. target-zlib"
  2582. # these tools are built using the target libraries, and are intended to
  2583. # run only in the target environment
  2584. #
  2585. # note: any program that *uses* libraries that are in the "target_libraries"
  2586. # list belongs in this list.
  2587. #
  2588. target_tools="target-rda"
  2589. ################################################################################
  2590. ## All tools belong in one of the four categories, and are assigned above
  2591. ## We assign ${configdirs} this way to remove all embedded newlines. This
  2592. ## is important because configure will choke if they ever get through.
  2593. ## ${configdirs} is directories we build using the host tools.
  2594. ## ${target_configdirs} is directories we build using the target tools.
  2595. configdirs=`echo ${host_libs} ${host_tools}`
  2596. target_configdirs=`echo ${target_libraries} ${target_tools}`
  2597. build_configdirs=`echo ${build_libs} ${build_tools}`
  2598. ################################################################################
  2599. srcname="gnu development package"
  2600. # This gets set non-empty for some net releases of packages.
  2601. appdirs=""
  2602. # Define is_cross_compiler to save on calls to 'test'.
  2603. is_cross_compiler=
  2604. if test x"${host}" = x"${target}" ; then
  2605. is_cross_compiler=no
  2606. else
  2607. is_cross_compiler=yes
  2608. fi
  2609. # Find the build and target subdir names.
  2610. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2611. # have matching libraries, they should use host libraries: Makefile.tpl
  2612. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2613. # However, they still use the build modules, because the corresponding
  2614. # host modules (e.g. bison) are only built for the host when bootstrap
  2615. # finishes. So:
  2616. # - build_subdir is where we find build modules, and never changes.
  2617. # - build_libsubdir is where we find build libraries, and can be overridden.
  2618. # Prefix 'build-' so this never conflicts with target_subdir.
  2619. build_subdir="build-${build_noncanonical}"
  2620. # Check whether --with-build-libsubdir was given.
  2621. if test "${with_build_libsubdir+set}" = set; then :
  2622. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2623. else
  2624. build_libsubdir="$build_subdir"
  2625. fi
  2626. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2627. if ( test $srcdir = . && test -d gcc ) \
  2628. || test -d $srcdir/../host-${host_noncanonical}; then
  2629. host_subdir="host-${host_noncanonical}"
  2630. else
  2631. host_subdir=.
  2632. fi
  2633. # No prefix.
  2634. target_subdir=${target_noncanonical}
  2635. # Be sure to cover against remnants of an in-tree build.
  2636. if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
  2637. as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
  2638. Use a pristine source tree when building in a separate tree" "$LINENO" 5
  2639. fi
  2640. # Skipdirs are removed silently.
  2641. skipdirs=
  2642. # Noconfigdirs are removed loudly.
  2643. noconfigdirs=""
  2644. use_gnu_ld=
  2645. # Make sure we don't let GNU ld be added if we didn't want it.
  2646. if test x$with_gnu_ld = xno ; then
  2647. use_gnu_ld=no
  2648. noconfigdirs="$noconfigdirs ld gold"
  2649. fi
  2650. use_gnu_as=
  2651. # Make sure we don't let GNU as be added if we didn't want it.
  2652. if test x$with_gnu_as = xno ; then
  2653. use_gnu_as=no
  2654. noconfigdirs="$noconfigdirs gas"
  2655. fi
  2656. use_included_zlib=
  2657. # Check whether --with-system-zlib was given.
  2658. if test "${with_system_zlib+set}" = set; then :
  2659. withval=$with_system_zlib;
  2660. fi
  2661. # Make sure we don't let ZLIB be added if we didn't want it.
  2662. if test x$with_system_zlib = xyes ; then
  2663. use_included_zlib=no
  2664. noconfigdirs="$noconfigdirs zlib"
  2665. fi
  2666. # some tools are so dependent upon X11 that if we're not building with X,
  2667. # it's not even worth trying to configure, much less build, that tool.
  2668. case ${with_x} in
  2669. yes | "") ;; # the default value for this tree is that X11 is available
  2670. no)
  2671. skipdirs="${skipdirs} tk itcl libgui"
  2672. # We won't be able to build gdbtk without X.
  2673. enable_gdbtk=no
  2674. ;;
  2675. *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
  2676. esac
  2677. # Some are only suitable for cross toolchains.
  2678. # Remove these if host=target.
  2679. cross_only="target-libgloss target-newlib target-opcodes"
  2680. case $is_cross_compiler in
  2681. no) skipdirs="${skipdirs} ${cross_only}" ;;
  2682. esac
  2683. # If both --with-headers and --with-libs are specified, default to
  2684. # --without-newlib.
  2685. if test x"${with_headers}" != x && test x"${with_headers}" != xno \
  2686. && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  2687. if test x"${with_newlib}" = x ; then
  2688. with_newlib=no
  2689. fi
  2690. fi
  2691. # Recognize --with-newlib/--without-newlib.
  2692. case ${with_newlib} in
  2693. no) skipdirs="${skipdirs} target-newlib" ;;
  2694. yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
  2695. esac
  2696. # Check whether --enable-as-accelerator-for was given.
  2697. if test "${enable_as_accelerator_for+set}" = set; then :
  2698. enableval=$enable_as_accelerator_for;
  2699. fi
  2700. # Check whether --enable-offload-targets was given.
  2701. if test "${enable_offload_targets+set}" = set; then :
  2702. enableval=$enable_offload_targets;
  2703. if test x"$enable_offload_targets" = x; then
  2704. as_fn_error $? "no offload targets specified" "$LINENO" 5
  2705. fi
  2706. else
  2707. enable_offload_targets=
  2708. fi
  2709. # Check whether --enable-offload-defaulted was given.
  2710. if test "${enable_offload_defaulted+set}" = set; then :
  2711. enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
  2712. else
  2713. enable_offload_defaulted=
  2714. fi
  2715. # Handle --enable-gold, --enable-ld.
  2716. # --disable-gold [--enable-ld]
  2717. # Build only ld. Default option.
  2718. # --enable-gold [--enable-ld]
  2719. # Build both gold and ld. Install gold as "ld.gold", install ld
  2720. # as "ld.bfd" and "ld".
  2721. # --enable-gold=default [--enable-ld]
  2722. # Build both gold and ld. Install gold as "ld.gold" and "ld",
  2723. # install ld as "ld.bfd".
  2724. # --enable-gold[=default] --disable-ld
  2725. # Build only gold, which is then installed as both "ld.gold" and "ld".
  2726. # --enable-gold --enable-ld=default
  2727. # Build both gold (installed as "ld.gold") and ld (installed as "ld"
  2728. # and ld.bfd).
  2729. # In other words, ld is default
  2730. # --enable-gold=default --enable-ld=default
  2731. # Error.
  2732. default_ld=
  2733. # Check whether --enable-gold was given.
  2734. if test "${enable_gold+set}" = set; then :
  2735. enableval=$enable_gold; ENABLE_GOLD=$enableval
  2736. else
  2737. ENABLE_GOLD=no
  2738. fi
  2739. case "${ENABLE_GOLD}" in
  2740. yes|default)
  2741. # Check for ELF target.
  2742. is_elf=no
  2743. case "${target}" in
  2744. *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
  2745. | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
  2746. | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
  2747. | *-*-solaris2* | *-*-nto* | *-*-nacl*)
  2748. case "${target}" in
  2749. *-*-linux*aout* | *-*-linux*oldld*)
  2750. ;;
  2751. *)
  2752. is_elf=yes
  2753. ;;
  2754. esac
  2755. esac
  2756. if test "$is_elf" = "yes"; then
  2757. # Check for target supported by gold.
  2758. case "${target}" in
  2759. i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
  2760. | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-* | loongarch*-*-*)
  2761. configdirs="$configdirs gold"
  2762. if test x${ENABLE_GOLD} = xdefault; then
  2763. default_ld=gold
  2764. fi
  2765. ENABLE_GOLD=yes
  2766. ;;
  2767. esac
  2768. fi
  2769. ;;
  2770. no)
  2771. ;;
  2772. *)
  2773. as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
  2774. ;;
  2775. esac
  2776. # Check whether --enable-ld was given.
  2777. if test "${enable_ld+set}" = set; then :
  2778. enableval=$enable_ld; ENABLE_LD=$enableval
  2779. else
  2780. ENABLE_LD=yes
  2781. fi
  2782. case "${ENABLE_LD}" in
  2783. default)
  2784. if test x${default_ld} != x; then
  2785. as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
  2786. fi
  2787. ;;
  2788. yes)
  2789. ;;
  2790. no)
  2791. if test x${ENABLE_GOLD} != xyes; then
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
  2793. $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
  2794. fi
  2795. configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
  2796. ;;
  2797. *)
  2798. as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
  2799. ;;
  2800. esac
  2801. # PR gas/19109
  2802. # Decide the default method for compressing debug sections.
  2803. # Provide a configure time option to override our default.
  2804. # Check whether --enable-compressed_debug_sections was given.
  2805. if test "${enable_compressed_debug_sections+set}" = set; then :
  2806. enableval=$enable_compressed_debug_sections;
  2807. if test x"$enable_compressed_debug_sections" = xyes; then
  2808. as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
  2809. fi
  2810. else
  2811. enable_compressed_debug_sections=
  2812. fi
  2813. # Configure extra directories which are host specific
  2814. case "${host}" in
  2815. *-cygwin*)
  2816. configdirs="$configdirs libtermcap" ;;
  2817. esac
  2818. # A target can indicate whether a language isn't supported for some reason.
  2819. # Only spaces may be used in this macro; not newlines or tabs.
  2820. unsupported_languages=
  2821. # Remove more programs from consideration, based on the host or
  2822. # target this usually means that a port of the program doesn't
  2823. # exist yet.
  2824. case "${host}" in
  2825. i[3456789]86-*-msdosdjgpp*)
  2826. noconfigdirs="$noconfigdirs tcl tk itcl"
  2827. ;;
  2828. esac
  2829. # Check whether --enable-libquadmath was given.
  2830. if test "${enable_libquadmath+set}" = set; then :
  2831. enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
  2832. else
  2833. ENABLE_LIBQUADMATH=yes
  2834. fi
  2835. if test "${ENABLE_LIBQUADMATH}" = "no" ; then
  2836. noconfigdirs="$noconfigdirs target-libquadmath"
  2837. fi
  2838. # Check whether --enable-libquadmath-support was given.
  2839. if test "${enable_libquadmath_support+set}" = set; then :
  2840. enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
  2841. else
  2842. ENABLE_LIBQUADMATH_SUPPORT=yes
  2843. fi
  2844. enable_libquadmath_support=
  2845. if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
  2846. enable_libquadmath_support=no
  2847. fi
  2848. # Check whether --enable-libada was given.
  2849. if test "${enable_libada+set}" = set; then :
  2850. enableval=$enable_libada; ENABLE_LIBADA=$enableval
  2851. else
  2852. ENABLE_LIBADA=yes
  2853. fi
  2854. if test "${ENABLE_LIBADA}" != "yes" ; then
  2855. noconfigdirs="$noconfigdirs gnattools"
  2856. fi
  2857. # Check whether --enable-libssp was given.
  2858. if test "${enable_libssp+set}" = set; then :
  2859. enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
  2860. else
  2861. ENABLE_LIBSSP=yes
  2862. fi
  2863. # Check whether --enable-libstdcxx was given.
  2864. if test "${enable_libstdcxx+set}" = set; then :
  2865. enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
  2866. else
  2867. ENABLE_LIBSTDCXX=default
  2868. fi
  2869. if test "${ENABLE_LIBSTDCXX}" = "no" ; then
  2870. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  2871. fi
  2872. # If this is accelerator compiler and its target is intelmic we enable
  2873. # target liboffloadmic by default. If this is compiler with offloading
  2874. # for intelmic we enable host liboffloadmic by default. Otherwise
  2875. # liboffloadmic is disabled by default.
  2876. # Check whether --enable-liboffloadmic was given.
  2877. if test "${enable_liboffloadmic+set}" = set; then :
  2878. enableval=$enable_liboffloadmic; case "$enableval" in
  2879. no | host | target)
  2880. enable_liboffloadmic=$enableval ;;
  2881. *)
  2882. as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
  2883. esac
  2884. else
  2885. if test x"$enable_as_accelerator_for" != x; then
  2886. case "${target}" in
  2887. *-intelmic-* | *-intelmicemul-*)
  2888. enable_liboffloadmic=target
  2889. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
  2890. ;;
  2891. *)
  2892. enable_liboffloadmic=no
  2893. ;;
  2894. esac
  2895. else
  2896. case "${enable_offload_targets}" in
  2897. *-intelmic-* | *-intelmicemul-*)
  2898. enable_liboffloadmic=host
  2899. extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
  2900. ;;
  2901. *)
  2902. enable_liboffloadmic=no
  2903. ;;
  2904. esac
  2905. fi
  2906. fi
  2907. # Enable libgomp by default on hosted POSIX systems, and a few others.
  2908. if test x$enable_libgomp = x ; then
  2909. case "${target}" in
  2910. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  2911. ;;
  2912. *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
  2913. ;;
  2914. *-*-solaris2* | *-*-hpux11*)
  2915. ;;
  2916. *-*-darwin* | *-*-aix*)
  2917. ;;
  2918. nvptx*-*-* | amdgcn*-*-*)
  2919. ;;
  2920. *)
  2921. noconfigdirs="$noconfigdirs target-libgomp"
  2922. ;;
  2923. esac
  2924. fi
  2925. # Disable libatomic on unsupported systems.
  2926. if test -d ${srcdir}/libatomic; then
  2927. if test x$enable_libatomic = x; then
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
  2929. $as_echo_n "checking for libatomic support... " >&6; }
  2930. if (srcdir=${srcdir}/libatomic; \
  2931. . ${srcdir}/configure.tgt; \
  2932. test -n "$UNSUPPORTED")
  2933. then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2935. $as_echo "no" >&6; }
  2936. noconfigdirs="$noconfigdirs target-libatomic"
  2937. else
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2939. $as_echo "yes" >&6; }
  2940. fi
  2941. fi
  2942. fi
  2943. # Disable liboffloadmic on unsupported systems.
  2944. if test -d ${srcdir}/liboffloadmic; then
  2945. if test x$enable_liboffloadmic != xno; then
  2946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
  2947. $as_echo_n "checking for liboffloadmic support... " >&6; }
  2948. if (srcdir=${srcdir}/liboffloadmic; \
  2949. . ${srcdir}/configure.tgt; \
  2950. test -n "$UNSUPPORTED")
  2951. then
  2952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2953. $as_echo "no" >&6; }
  2954. noconfigdirs="$noconfigdirs target-liboffloadmic"
  2955. else
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2957. $as_echo "yes" >&6; }
  2958. fi
  2959. fi
  2960. fi
  2961. # Disable libitm on unsupported systems.
  2962. if test -d ${srcdir}/libitm; then
  2963. if test x$enable_libitm = x; then
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
  2965. $as_echo_n "checking for libitm support... " >&6; }
  2966. if (srcdir=${srcdir}/libitm; \
  2967. . ${srcdir}/configure.tgt; \
  2968. test -n "$UNSUPPORTED")
  2969. then
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2971. $as_echo "no" >&6; }
  2972. noconfigdirs="$noconfigdirs target-libitm"
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2975. $as_echo "yes" >&6; }
  2976. fi
  2977. fi
  2978. fi
  2979. # Disable libsanitizer on unsupported systems.
  2980. if test -d ${srcdir}/libsanitizer; then
  2981. if test x$enable_libsanitizer = x; then
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
  2983. $as_echo_n "checking for libsanitizer support... " >&6; }
  2984. if (srcdir=${srcdir}/libsanitizer; \
  2985. . ${srcdir}/configure.tgt; \
  2986. test -n "$UNSUPPORTED")
  2987. then
  2988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2989. $as_echo "no" >&6; }
  2990. noconfigdirs="$noconfigdirs target-libsanitizer"
  2991. else
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2993. $as_echo "yes" >&6; }
  2994. fi
  2995. fi
  2996. fi
  2997. # Disable libvtv on unsupported systems.
  2998. if test -d ${srcdir}/libvtv; then
  2999. if test x$enable_libvtv = x; then
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
  3001. $as_echo_n "checking for libvtv support... " >&6; }
  3002. if (srcdir=${srcdir}/libvtv; \
  3003. . ${srcdir}/configure.tgt; \
  3004. test "$VTV_SUPPORTED" != "yes")
  3005. then
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3007. $as_echo "no" >&6; }
  3008. noconfigdirs="$noconfigdirs target-libvtv"
  3009. else
  3010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3011. $as_echo "yes" >&6; }
  3012. fi
  3013. fi
  3014. fi
  3015. # Disable libquadmath for some systems.
  3016. case "${target}" in
  3017. avr-*-*)
  3018. noconfigdirs="$noconfigdirs target-libquadmath"
  3019. ;;
  3020. # libquadmath is unused on AIX and libquadmath build process use of
  3021. # LD_LIBRARY_PATH can break AIX bootstrap.
  3022. powerpc-*-aix* | rs6000-*-aix*)
  3023. noconfigdirs="$noconfigdirs target-libquadmath"
  3024. ;;
  3025. esac
  3026. # Disable libssp for some systems.
  3027. case "${target}" in
  3028. avr-*-*)
  3029. # No hosted I/O support.
  3030. noconfigdirs="$noconfigdirs target-libssp"
  3031. ;;
  3032. bpf-*-*)
  3033. noconfigdirs="$noconfigdirs target-libssp"
  3034. ;;
  3035. powerpc-*-aix* | rs6000-*-aix*)
  3036. noconfigdirs="$noconfigdirs target-libssp"
  3037. ;;
  3038. pru-*-*)
  3039. # No hosted I/O support.
  3040. noconfigdirs="$noconfigdirs target-libssp"
  3041. ;;
  3042. rl78-*-*)
  3043. # libssp uses a misaligned load to trigger a fault, but the RL78
  3044. # doesn't fault for those - instead, it gives a build-time error
  3045. # for explicit misaligned loads.
  3046. noconfigdirs="$noconfigdirs target-libssp"
  3047. ;;
  3048. visium-*-*)
  3049. # No hosted I/O support.
  3050. noconfigdirs="$noconfigdirs target-libssp"
  3051. ;;
  3052. esac
  3053. # Disable libstdc++-v3 for some systems.
  3054. # Allow user to override this if they pass --enable-libstdcxx
  3055. if test "${ENABLE_LIBSTDCXX}" = "default" ; then
  3056. case "${target}" in
  3057. *-*-vxworks*)
  3058. # VxWorks uses the Dinkumware C++ library.
  3059. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3060. ;;
  3061. amdgcn*-*-*)
  3062. # Not ported/fails to build when using newlib.
  3063. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3064. ;;
  3065. arm*-wince-pe*)
  3066. # the C++ libraries don't build on top of CE's C libraries
  3067. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3068. ;;
  3069. avr-*-*)
  3070. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3071. ;;
  3072. bpf-*-*)
  3073. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3074. ;;
  3075. ft32-*-*)
  3076. noconfigdirs="$noconfigdirs target-libstdc++-v3"
  3077. ;;
  3078. esac
  3079. fi
  3080. # Disable C++ on systems where it is known to not work.
  3081. # For testing, you can override this with --enable-languages=c++.
  3082. case ,${enable_languages}, in
  3083. *,c++,*)
  3084. ;;
  3085. *)
  3086. case "${target}" in
  3087. bpf-*-*)
  3088. unsupported_languages="$unsupported_languages c++"
  3089. ;;
  3090. esac
  3091. ;;
  3092. esac
  3093. # Disable Objc on systems where it is known to not work.
  3094. # For testing, you can override this with --enable-languages=objc.
  3095. case ,${enable_languages}, in
  3096. *,objc,*)
  3097. ;;
  3098. *)
  3099. case "${target}" in
  3100. bpf-*-*)
  3101. unsupported_languages="$unsupported_languages objc"
  3102. ;;
  3103. esac
  3104. ;;
  3105. esac
  3106. # Disable D on systems where it is known to not work.
  3107. # For testing, you can override this with --enable-languages=d.
  3108. case ,${enable_languages}, in
  3109. *,d,*)
  3110. ;;
  3111. *)
  3112. case "${target}" in
  3113. bpf-*-*)
  3114. unsupported_languages="$unsupported_languages d"
  3115. ;;
  3116. esac
  3117. ;;
  3118. esac
  3119. # Disable libphobos on unsupported systems.
  3120. # For testing, you can override this with --enable-libphobos.
  3121. if test -d ${srcdir}/libphobos; then
  3122. if test x$enable_libphobos = x; then
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
  3124. $as_echo_n "checking for libphobos support... " >&6; }
  3125. if (srcdir=${srcdir}/libphobos; \
  3126. . ${srcdir}/configure.tgt; \
  3127. test "$LIBPHOBOS_SUPPORTED" != "yes")
  3128. then
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3130. $as_echo "no" >&6; }
  3131. noconfigdirs="$noconfigdirs target-libphobos"
  3132. else
  3133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3134. $as_echo "yes" >&6; }
  3135. fi
  3136. fi
  3137. fi
  3138. # Disable Fortran for some systems.
  3139. case "${target}" in
  3140. mmix-*-*)
  3141. # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
  3142. unsupported_languages="$unsupported_languages fortran"
  3143. ;;
  3144. bpf-*-*)
  3145. unsupported_languages="$unsupported_languages fortran"
  3146. ;;
  3147. esac
  3148. # Disable libffi for some systems.
  3149. case "${target}" in
  3150. powerpc-*-darwin*)
  3151. ;;
  3152. i[3456789]86-*-darwin*)
  3153. ;;
  3154. x86_64-*-darwin[912]*)
  3155. ;;
  3156. *-*-darwin*)
  3157. noconfigdirs="$noconfigdirs target-libffi"
  3158. ;;
  3159. *-*-netware*)
  3160. noconfigdirs="$noconfigdirs target-libffi"
  3161. ;;
  3162. *-*-phoenix*)
  3163. noconfigdirs="$noconfigdirs target-libffi"
  3164. ;;
  3165. *-*-rtems*)
  3166. noconfigdirs="$noconfigdirs target-libffi"
  3167. ;;
  3168. *-*-tpf*)
  3169. noconfigdirs="$noconfigdirs target-libffi"
  3170. ;;
  3171. *-*-uclinux*)
  3172. noconfigdirs="$noconfigdirs target-libffi"
  3173. ;;
  3174. *-*-vxworks*)
  3175. noconfigdirs="$noconfigdirs target-libffi"
  3176. ;;
  3177. aarch64*-*-freebsd*)
  3178. noconfigdirs="$noconfigdirs target-libffi"
  3179. ;;
  3180. alpha*-*-*vms*)
  3181. noconfigdirs="$noconfigdirs target-libffi"
  3182. ;;
  3183. arm*-*-freebsd*)
  3184. noconfigdirs="$noconfigdirs target-libffi"
  3185. ;;
  3186. arm-wince-pe)
  3187. noconfigdirs="$noconfigdirs target-libffi"
  3188. ;;
  3189. arm*-*-symbianelf*)
  3190. noconfigdirs="$noconfigdirs target-libffi"
  3191. ;;
  3192. bpf-*-*)
  3193. noconfigdirs="$noconfigdirs target-libffi"
  3194. ;;
  3195. cris-*-* | crisv32-*-*)
  3196. case "${target}" in
  3197. *-*-linux*)
  3198. ;;
  3199. *) # See PR46792 regarding target-libffi.
  3200. noconfigdirs="$noconfigdirs target-libffi";;
  3201. esac
  3202. ;;
  3203. hppa*64*-*-hpux*)
  3204. noconfigdirs="$noconfigdirs target-libffi"
  3205. ;;
  3206. hppa*-hp-hpux11*)
  3207. ;;
  3208. hppa*-*-hpux*)
  3209. noconfigdirs="$noconfigdirs target-libffi"
  3210. ;;
  3211. ia64*-*-*vms*)
  3212. noconfigdirs="$noconfigdirs target-libffi"
  3213. ;;
  3214. i[3456789]86-w64-mingw*)
  3215. noconfigdirs="$noconfigdirs target-libffi"
  3216. ;;
  3217. i[3456789]86-*-mingw*)
  3218. noconfigdirs="$noconfigdirs target-libffi"
  3219. ;;
  3220. x86_64-*-mingw*)
  3221. noconfigdirs="$noconfigdirs target-libffi"
  3222. ;;
  3223. mmix-*-*)
  3224. noconfigdirs="$noconfigdirs target-libffi"
  3225. ;;
  3226. powerpc-*-aix*)
  3227. ;;
  3228. rs6000-*-aix*)
  3229. ;;
  3230. ft32-*-*)
  3231. noconfigdirs="$noconfigdirs target-libffi"
  3232. ;;
  3233. *-*-lynxos*)
  3234. noconfigdirs="$noconfigdirs target-libffi"
  3235. ;;
  3236. esac
  3237. # Disable the go frontend on systems where it is known to not work. Please keep
  3238. # this in sync with contrib/config-list.mk.
  3239. case "${target}" in
  3240. *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
  3241. unsupported_languages="$unsupported_languages go"
  3242. ;;
  3243. esac
  3244. # Only allow gdbserver on some systems.
  3245. if test -d ${srcdir}/gdbserver; then
  3246. if test x$enable_gdbserver = x; then
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
  3248. $as_echo_n "checking for gdbserver support... " >&6; }
  3249. if (srcdir=${srcdir}/gdbserver; \
  3250. . ${srcdir}/configure.srv; \
  3251. test -n "$UNSUPPORTED")
  3252. then
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3254. $as_echo "no" >&6; }
  3255. noconfigdirs="$noconfigdirs gdbserver"
  3256. else
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3258. $as_echo "yes" >&6; }
  3259. fi
  3260. fi
  3261. fi
  3262. # Disable libgo for some systems where it is known to not work.
  3263. # For testing, you can easily override this with --enable-libgo.
  3264. if test x$enable_libgo = x; then
  3265. case "${target}" in
  3266. *-*-darwin*)
  3267. # PR 46986
  3268. noconfigdirs="$noconfigdirs target-libgo"
  3269. ;;
  3270. *-*-cygwin* | *-*-mingw*)
  3271. noconfigdirs="$noconfigdirs target-libgo"
  3272. ;;
  3273. bpf-*-*)
  3274. noconfigdirs="$noconfigdirs target-libgo"
  3275. ;;
  3276. esac
  3277. fi
  3278. # Default libgloss CPU subdirectory.
  3279. libgloss_dir="$target_cpu"
  3280. case "${target}" in
  3281. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3282. libgloss_dir=wince
  3283. ;;
  3284. aarch64*-*-* )
  3285. libgloss_dir=aarch64
  3286. ;;
  3287. arm*-*-*)
  3288. libgloss_dir=arm
  3289. ;;
  3290. cris-*-* | crisv32-*-*)
  3291. libgloss_dir=cris
  3292. ;;
  3293. hppa*-*-*)
  3294. libgloss_dir=pa
  3295. ;;
  3296. i[3456789]86-*-*)
  3297. libgloss_dir=i386
  3298. ;;
  3299. loongarch*-*-*)
  3300. libgloss_dir=loongarch
  3301. ;;
  3302. m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
  3303. libgloss_dir=m68hc11
  3304. ;;
  3305. m68*-*-* | fido-*-*)
  3306. libgloss_dir=m68k
  3307. ;;
  3308. mips*-*-*)
  3309. libgloss_dir=mips
  3310. ;;
  3311. powerpc*-*-*)
  3312. libgloss_dir=rs6000
  3313. ;;
  3314. pru-*-*)
  3315. libgloss_dir=pru
  3316. ;;
  3317. sparc*-*-*)
  3318. libgloss_dir=sparc
  3319. ;;
  3320. esac
  3321. # Disable newlib and libgloss for various target OSes.
  3322. case "${target}" in
  3323. alpha*-dec-osf*)
  3324. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3325. ;;
  3326. i[3456789]86-*-linux*)
  3327. # This section makes it possible to build newlib natively on linux.
  3328. # If we are using a cross compiler then don't configure newlib.
  3329. if test x${is_cross_compiler} != xno ; then
  3330. noconfigdirs="$noconfigdirs target-newlib"
  3331. fi
  3332. noconfigdirs="$noconfigdirs target-libgloss"
  3333. # If we are not using a cross compiler, do configure newlib.
  3334. # Note however, that newlib will only be configured in this situation
  3335. # if the --with-newlib option has been given, because otherwise
  3336. # 'target-newlib' will appear in skipdirs.
  3337. ;;
  3338. i[3456789]86-*-rdos*)
  3339. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3340. ;;
  3341. sh*-*-pe|mips*-*-pe|arm-wince-pe)
  3342. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3343. ;;
  3344. sparc-*-sunos4*)
  3345. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3346. ;;
  3347. bpf-*-*)
  3348. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3349. ;;
  3350. *-*-aix*)
  3351. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3352. ;;
  3353. *-*-beos*)
  3354. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3355. ;;
  3356. *-*-chorusos)
  3357. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3358. ;;
  3359. *-*-dragonfly*)
  3360. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3361. ;;
  3362. *-*-freebsd*)
  3363. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3364. ;;
  3365. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  3366. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3367. ;;
  3368. *-*-lynxos*)
  3369. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3370. ;;
  3371. *-*-mingw*)
  3372. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3373. ;;
  3374. *-*-netbsd*)
  3375. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3376. ;;
  3377. *-*-netware*)
  3378. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3379. ;;
  3380. *-*-tpf*)
  3381. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3382. ;;
  3383. *-*-uclinux*)
  3384. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3385. ;;
  3386. *-*-vxworks*)
  3387. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3388. ;;
  3389. esac
  3390. case "${target}" in
  3391. *-*-chorusos)
  3392. ;;
  3393. aarch64-*-darwin*)
  3394. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3395. noconfigdirs="$noconfigdirs sim target-rda"
  3396. ;;
  3397. amdgcn*-*-*)
  3398. ;;
  3399. arm-*-darwin*)
  3400. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3401. noconfigdirs="$noconfigdirs sim target-rda"
  3402. ;;
  3403. powerpc-*-darwin*)
  3404. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3405. noconfigdirs="$noconfigdirs sim target-rda"
  3406. ;;
  3407. i[3456789]86-*-darwin*)
  3408. noconfigdirs="$noconfigdirs ld gprof"
  3409. noconfigdirs="$noconfigdirs sim target-rda"
  3410. ;;
  3411. x86_64-*-darwin[912]*)
  3412. noconfigdirs="$noconfigdirs ld gas gprof"
  3413. noconfigdirs="$noconfigdirs sim target-rda"
  3414. ;;
  3415. *-*-darwin*)
  3416. noconfigdirs="$noconfigdirs ld gas gdb gprof"
  3417. noconfigdirs="$noconfigdirs sim target-rda"
  3418. ;;
  3419. *-*-dragonfly*)
  3420. ;;
  3421. *-*-freebsd*)
  3422. if test "x$with_gmp" = x \
  3423. && ! test -d ${srcdir}/gmp \
  3424. && test -f /usr/local/include/gmp.h; then
  3425. with_gmp=/usr/local
  3426. fi
  3427. ;;
  3428. *-*-kaos*)
  3429. # Remove unsupported stuff on all kaOS configurations.
  3430. noconfigdirs="$noconfigdirs target-libgloss"
  3431. ;;
  3432. *-*-netbsd*)
  3433. ;;
  3434. *-*-netware*)
  3435. ;;
  3436. *-*-phoenix*)
  3437. noconfigdirs="$noconfigdirs target-libgloss"
  3438. ;;
  3439. *-*-rtems*)
  3440. noconfigdirs="$noconfigdirs target-libgloss"
  3441. ;;
  3442. # The tpf target doesn't support gdb yet.
  3443. *-*-tpf*)
  3444. noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
  3445. ;;
  3446. *-*-uclinux*)
  3447. noconfigdirs="$noconfigdirs target-rda"
  3448. ;;
  3449. *-*-vxworks*)
  3450. ;;
  3451. alpha*-dec-osf*)
  3452. # ld works, but does not support shared libraries.
  3453. # gas doesn't generate exception information.
  3454. noconfigdirs="$noconfigdirs gas ld"
  3455. ;;
  3456. alpha*-*-*vms*)
  3457. noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
  3458. ;;
  3459. alpha*-*-*)
  3460. # newlib is not 64 bit ready
  3461. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3462. ;;
  3463. bpf-*-*)
  3464. noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
  3465. ;;
  3466. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  3467. noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
  3468. ;;
  3469. arc*-*-*)
  3470. noconfigdirs="$noconfigdirs sim"
  3471. ;;
  3472. arm-*-pe*)
  3473. noconfigdirs="$noconfigdirs target-libgloss"
  3474. ;;
  3475. arm-*-riscix*)
  3476. noconfigdirs="$noconfigdirs ld target-libgloss"
  3477. ;;
  3478. avr-*-*)
  3479. if test x${with_avrlibc} != xno; then
  3480. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3481. fi
  3482. ;;
  3483. c4x-*-* | tic4x-*-*)
  3484. noconfigdirs="$noconfigdirs target-libgloss"
  3485. ;;
  3486. tic54x-*-*)
  3487. noconfigdirs="$noconfigdirs target-libgloss gdb"
  3488. ;;
  3489. d10v-*-*)
  3490. noconfigdirs="$noconfigdirs target-libgloss"
  3491. ;;
  3492. d30v-*-*)
  3493. noconfigdirs="$noconfigdirs gdb"
  3494. ;;
  3495. fr30-*-elf*)
  3496. noconfigdirs="$noconfigdirs gdb"
  3497. ;;
  3498. ft32-*-*)
  3499. noconfigdirs="$noconfigdirs target-rda gprof"
  3500. ;;
  3501. moxie-*-*)
  3502. noconfigdirs="$noconfigdirs"
  3503. ;;
  3504. h8300*-*-*)
  3505. noconfigdirs="$noconfigdirs target-libgloss"
  3506. ;;
  3507. h8500-*-*)
  3508. noconfigdirs="$noconfigdirs target-libgloss"
  3509. ;;
  3510. hppa1.1-*-osf* | hppa1.1-*-bsd* )
  3511. ;;
  3512. hppa*64*-*-hpux*)
  3513. noconfigdirs="$noconfigdirs gdb"
  3514. ;;
  3515. hppa*-*-hpux11*)
  3516. noconfigdirs="$noconfigdirs gdb ld"
  3517. ;;
  3518. hppa*64*-*-linux*)
  3519. ;;
  3520. hppa*-*-linux*)
  3521. ;;
  3522. hppa*-*-*elf* | \
  3523. hppa*-*-lites* | \
  3524. hppa*-*-openbsd* | \
  3525. hppa*64*-*-*)
  3526. ;;
  3527. hppa*-*-pro*)
  3528. ;;
  3529. hppa*-*-*)
  3530. noconfigdirs="$noconfigdirs ld"
  3531. ;;
  3532. i960-*-*)
  3533. noconfigdirs="$noconfigdirs gdb"
  3534. ;;
  3535. ia64*-*-elf*)
  3536. # No gdb support yet.
  3537. noconfigdirs="$noconfigdirs readline libgui itcl gdb"
  3538. ;;
  3539. ia64*-**-hpux*)
  3540. # No ld support yet.
  3541. noconfigdirs="$noconfigdirs gdb libgui itcl ld"
  3542. ;;
  3543. ia64*-*-*vms*)
  3544. # No ld support yet.
  3545. noconfigdirs="$noconfigdirs libgui itcl ld"
  3546. ;;
  3547. i[3456789]86-w64-mingw*)
  3548. ;;
  3549. i[3456789]86-*-mingw*)
  3550. target_configdirs="$target_configdirs target-winsup"
  3551. ;;
  3552. *-*-cygwin*)
  3553. target_configdirs="$target_configdirs target-libtermcap target-winsup"
  3554. noconfigdirs="$noconfigdirs target-libgloss"
  3555. # always build newlib if winsup directory is present.
  3556. if test -d "$srcdir/winsup/cygwin"; then
  3557. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3558. elif test -d "$srcdir/newlib"; then
  3559. echo "Warning: winsup/cygwin is missing so newlib can't be built."
  3560. fi
  3561. ;;
  3562. i[3456789]86-*-pe)
  3563. noconfigdirs="$noconfigdirs target-libgloss"
  3564. ;;
  3565. i[3456789]86-*-sco3.2v5*)
  3566. # The linker does not yet know about weak symbols in COFF,
  3567. # and is not configured to handle mixed ELF and COFF.
  3568. noconfigdirs="$noconfigdirs ld target-libgloss"
  3569. ;;
  3570. i[3456789]86-*-sco*)
  3571. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3572. ;;
  3573. i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
  3574. noconfigdirs="$noconfigdirs target-libgloss"
  3575. ;;
  3576. i[3456789]86-*-sysv4*)
  3577. noconfigdirs="$noconfigdirs target-libgloss"
  3578. ;;
  3579. i[3456789]86-*-beos*)
  3580. noconfigdirs="$noconfigdirs gdb"
  3581. ;;
  3582. i[3456789]86-*-rdos*)
  3583. noconfigdirs="$noconfigdirs gdb"
  3584. ;;
  3585. mmix-*-*)
  3586. noconfigdirs="$noconfigdirs gdb"
  3587. ;;
  3588. mt-*-*)
  3589. noconfigdirs="$noconfigdirs sim"
  3590. ;;
  3591. nfp-*-*)
  3592. noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
  3593. noconfigdirs="$noconfigdirs $target_libraries"
  3594. ;;
  3595. pdp11-*-*)
  3596. noconfigdirs="$noconfigdirs gdb gprof"
  3597. ;;
  3598. powerpc-*-aix*)
  3599. # copied from rs6000-*-* entry
  3600. noconfigdirs="$noconfigdirs gprof"
  3601. ;;
  3602. powerpc*-*-winnt* | powerpc*-*-pe*)
  3603. target_configdirs="$target_configdirs target-winsup"
  3604. noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
  3605. # always build newlib.
  3606. skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
  3607. ;;
  3608. # This is temporary until we can link against shared libraries
  3609. powerpcle-*-solaris*)
  3610. noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
  3611. ;;
  3612. powerpc-*-beos*)
  3613. noconfigdirs="$noconfigdirs gdb"
  3614. ;;
  3615. rs6000-*-lynxos*)
  3616. noconfigdirs="$noconfigdirs gprof"
  3617. ;;
  3618. rs6000-*-aix*)
  3619. noconfigdirs="$noconfigdirs gprof"
  3620. ;;
  3621. rs6000-*-*)
  3622. noconfigdirs="$noconfigdirs gprof"
  3623. ;;
  3624. m68k-apollo-*)
  3625. noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
  3626. ;;
  3627. microblaze*)
  3628. noconfigdirs="$noconfigdirs gprof"
  3629. ;;
  3630. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  3631. if test x$with_newlib = xyes; then
  3632. noconfigdirs="$noconfigdirs gprof"
  3633. fi
  3634. ;;
  3635. mips*-*-irix5*)
  3636. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3637. ;;
  3638. mips*-*-irix6*)
  3639. noconfigdirs="$noconfigdirs gprof target-libgloss"
  3640. ;;
  3641. mips*-*-bsd*)
  3642. noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
  3643. ;;
  3644. mips*-*-linux*)
  3645. ;;
  3646. mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
  3647. | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
  3648. noconfigdirs="$noconfigdirs ld gas gprof"
  3649. ;;
  3650. mips*-*-*)
  3651. noconfigdirs="$noconfigdirs gprof"
  3652. ;;
  3653. nvptx*-*-*)
  3654. noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
  3655. ;;
  3656. sh-*-*)
  3657. case "${target}" in
  3658. sh*-*-elf)
  3659. ;;
  3660. *)
  3661. noconfigdirs="$noconfigdirs target-libgloss" ;;
  3662. esac
  3663. ;;
  3664. sparc-*-sunos4*)
  3665. if test x${is_cross_compiler} = xno ; then
  3666. use_gnu_ld=no
  3667. fi
  3668. ;;
  3669. tic6x-*-*)
  3670. noconfigdirs="$noconfigdirs sim"
  3671. ;;
  3672. tilepro*-*-* | tilegx*-*-*)
  3673. noconfigdirs="$noconfigdirs sim"
  3674. ;;
  3675. v810-*-*)
  3676. noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
  3677. ;;
  3678. vax-*-*)
  3679. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  3680. ;;
  3681. wasm32-*-*)
  3682. noconfigdirs="$noconfigdirs ld"
  3683. ;;
  3684. loongarch*-*-linux*)
  3685. ;;
  3686. loongarch*-*-*)
  3687. noconfigdirs="$noconfigdirs gprof"
  3688. ;;
  3689. esac
  3690. # If we aren't building newlib, then don't build libgloss, since libgloss
  3691. # depends upon some newlib header files.
  3692. case "${noconfigdirs}" in
  3693. *target-libgloss*) ;;
  3694. *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
  3695. esac
  3696. # Work in distributions that contain no compiler tools, like Autoconf.
  3697. host_makefile_frag=/dev/null
  3698. if test -d ${srcdir}/config ; then
  3699. case "${host}" in
  3700. i[3456789]86-*-msdosdjgpp*)
  3701. host_makefile_frag="config/mh-djgpp"
  3702. ;;
  3703. *-cygwin*)
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
  3705. $as_echo_n "checking to see if cat works as expected... " >&6; }
  3706. echo a >cygwin-cat-check
  3707. if test `cat cygwin-cat-check` = a ; then
  3708. rm cygwin-cat-check
  3709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3710. $as_echo "yes" >&6; }
  3711. else
  3712. rm cygwin-cat-check
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3714. $as_echo "no" >&6; }
  3715. as_fn_error $? "The cat command does not ignore carriage return characters.
  3716. Please either mount the build directory in binary mode or run the following
  3717. commands before running any configure script:
  3718. set -o igncr
  3719. export SHELLOPTS
  3720. " "$LINENO" 5
  3721. fi
  3722. host_makefile_frag="config/mh-cygwin"
  3723. ;;
  3724. *-mingw*)
  3725. host_makefile_frag="config/mh-mingw"
  3726. ;;
  3727. alpha*-linux*)
  3728. host_makefile_frag="config/mh-alpha-linux"
  3729. ;;
  3730. hppa*-hp-hpux10*)
  3731. host_makefile_frag="config/mh-pa-hpux10"
  3732. ;;
  3733. hppa*-hp-hpux*)
  3734. host_makefile_frag="config/mh-pa"
  3735. ;;
  3736. hppa*-*)
  3737. host_makefile_frag="config/mh-pa"
  3738. ;;
  3739. i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
  3740. host_makefile_frag="config/mh-darwin"
  3741. ;;
  3742. powerpc-*-aix*)
  3743. host_makefile_frag="config/mh-ppc-aix"
  3744. ;;
  3745. rs6000-*-aix*)
  3746. host_makefile_frag="config/mh-ppc-aix"
  3747. ;;
  3748. esac
  3749. fi
  3750. if test "${build}" != "${host}" ; then
  3751. AR_FOR_BUILD=${AR_FOR_BUILD-ar}
  3752. AS_FOR_BUILD=${AS_FOR_BUILD-as}
  3753. CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
  3754. CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
  3755. CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
  3756. DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
  3757. GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
  3758. GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
  3759. GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
  3760. DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
  3761. LD_FOR_BUILD=${LD_FOR_BUILD-ld}
  3762. NM_FOR_BUILD=${NM_FOR_BUILD-nm}
  3763. RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
  3764. WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
  3765. WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
  3766. else
  3767. AR_FOR_BUILD="\$(AR)"
  3768. AS_FOR_BUILD="\$(AS)"
  3769. CC_FOR_BUILD="\$(CC)"
  3770. CXX_FOR_BUILD="\$(CXX)"
  3771. DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
  3772. GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
  3773. GOC_FOR_BUILD="\$(GOC)"
  3774. GDC_FOR_BUILD="\$(GDC)"
  3775. DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
  3776. LD_FOR_BUILD="\$(LD)"
  3777. NM_FOR_BUILD="\$(NM)"
  3778. RANLIB_FOR_BUILD="\$(RANLIB)"
  3779. WINDRES_FOR_BUILD="\$(WINDRES)"
  3780. WINDMC_FOR_BUILD="\$(WINDMC)"
  3781. fi
  3782. ac_ext=c
  3783. ac_cpp='$CPP $CPPFLAGS'
  3784. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3785. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3786. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3787. if test -n "$ac_tool_prefix"; then
  3788. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3789. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3791. $as_echo_n "checking for $ac_word... " >&6; }
  3792. if ${ac_cv_prog_CC+:} false; then :
  3793. $as_echo_n "(cached) " >&6
  3794. else
  3795. if test -n "$CC"; then
  3796. ac_cv_prog_CC="$CC" # Let the user override the test.
  3797. else
  3798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3799. for as_dir in $PATH
  3800. do
  3801. IFS=$as_save_IFS
  3802. test -z "$as_dir" && as_dir=.
  3803. for ac_exec_ext in '' $ac_executable_extensions; do
  3804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3805. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3807. break 2
  3808. fi
  3809. done
  3810. done
  3811. IFS=$as_save_IFS
  3812. fi
  3813. fi
  3814. CC=$ac_cv_prog_CC
  3815. if test -n "$CC"; then
  3816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3817. $as_echo "$CC" >&6; }
  3818. else
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3820. $as_echo "no" >&6; }
  3821. fi
  3822. fi
  3823. if test -z "$ac_cv_prog_CC"; then
  3824. ac_ct_CC=$CC
  3825. # Extract the first word of "gcc", so it can be a program name with args.
  3826. set dummy gcc; ac_word=$2
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3828. $as_echo_n "checking for $ac_word... " >&6; }
  3829. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -n "$ac_ct_CC"; then
  3833. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3834. else
  3835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836. for as_dir in $PATH
  3837. do
  3838. IFS=$as_save_IFS
  3839. test -z "$as_dir" && as_dir=.
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3842. ac_cv_prog_ac_ct_CC="gcc"
  3843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3844. break 2
  3845. fi
  3846. done
  3847. done
  3848. IFS=$as_save_IFS
  3849. fi
  3850. fi
  3851. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3852. if test -n "$ac_ct_CC"; then
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3854. $as_echo "$ac_ct_CC" >&6; }
  3855. else
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3857. $as_echo "no" >&6; }
  3858. fi
  3859. if test "x$ac_ct_CC" = x; then
  3860. CC=""
  3861. else
  3862. case $cross_compiling:$ac_tool_warned in
  3863. yes:)
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3866. ac_tool_warned=yes ;;
  3867. esac
  3868. CC=$ac_ct_CC
  3869. fi
  3870. else
  3871. CC="$ac_cv_prog_CC"
  3872. fi
  3873. if test -z "$CC"; then
  3874. if test -n "$ac_tool_prefix"; then
  3875. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3876. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3878. $as_echo_n "checking for $ac_word... " >&6; }
  3879. if ${ac_cv_prog_CC+:} false; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$CC"; then
  3883. ac_cv_prog_CC="$CC" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3892. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. fi
  3900. fi
  3901. CC=$ac_cv_prog_CC
  3902. if test -n "$CC"; then
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3904. $as_echo "$CC" >&6; }
  3905. else
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3907. $as_echo "no" >&6; }
  3908. fi
  3909. fi
  3910. fi
  3911. if test -z "$CC"; then
  3912. # Extract the first word of "cc", so it can be a program name with args.
  3913. set dummy cc; ac_word=$2
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3915. $as_echo_n "checking for $ac_word... " >&6; }
  3916. if ${ac_cv_prog_CC+:} false; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test -n "$CC"; then
  3920. ac_cv_prog_CC="$CC" # Let the user override the test.
  3921. else
  3922. ac_prog_rejected=no
  3923. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3924. for as_dir in $PATH
  3925. do
  3926. IFS=$as_save_IFS
  3927. test -z "$as_dir" && as_dir=.
  3928. for ac_exec_ext in '' $ac_executable_extensions; do
  3929. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3930. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3931. ac_prog_rejected=yes
  3932. continue
  3933. fi
  3934. ac_cv_prog_CC="cc"
  3935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. if test $ac_prog_rejected = yes; then
  3942. # We found a bogon in the path, so make sure we never use it.
  3943. set dummy $ac_cv_prog_CC
  3944. shift
  3945. if test $# != 0; then
  3946. # We chose a different compiler from the bogus one.
  3947. # However, it has the same basename, so the bogon will be chosen
  3948. # first if we set CC to just the basename; use the full file name.
  3949. shift
  3950. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3951. fi
  3952. fi
  3953. fi
  3954. fi
  3955. CC=$ac_cv_prog_CC
  3956. if test -n "$CC"; then
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3958. $as_echo "$CC" >&6; }
  3959. else
  3960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3961. $as_echo "no" >&6; }
  3962. fi
  3963. fi
  3964. if test -z "$CC"; then
  3965. if test -n "$ac_tool_prefix"; then
  3966. for ac_prog in cl.exe
  3967. do
  3968. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3969. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3971. $as_echo_n "checking for $ac_word... " >&6; }
  3972. if ${ac_cv_prog_CC+:} false; then :
  3973. $as_echo_n "(cached) " >&6
  3974. else
  3975. if test -n "$CC"; then
  3976. ac_cv_prog_CC="$CC" # Let the user override the test.
  3977. else
  3978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3979. for as_dir in $PATH
  3980. do
  3981. IFS=$as_save_IFS
  3982. test -z "$as_dir" && as_dir=.
  3983. for ac_exec_ext in '' $ac_executable_extensions; do
  3984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3985. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3987. break 2
  3988. fi
  3989. done
  3990. done
  3991. IFS=$as_save_IFS
  3992. fi
  3993. fi
  3994. CC=$ac_cv_prog_CC
  3995. if test -n "$CC"; then
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3997. $as_echo "$CC" >&6; }
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4000. $as_echo "no" >&6; }
  4001. fi
  4002. test -n "$CC" && break
  4003. done
  4004. fi
  4005. if test -z "$CC"; then
  4006. ac_ct_CC=$CC
  4007. for ac_prog in cl.exe
  4008. do
  4009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4010. set dummy $ac_prog; ac_word=$2
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4012. $as_echo_n "checking for $ac_word... " >&6; }
  4013. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4014. $as_echo_n "(cached) " >&6
  4015. else
  4016. if test -n "$ac_ct_CC"; then
  4017. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4018. else
  4019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4020. for as_dir in $PATH
  4021. do
  4022. IFS=$as_save_IFS
  4023. test -z "$as_dir" && as_dir=.
  4024. for ac_exec_ext in '' $ac_executable_extensions; do
  4025. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4026. ac_cv_prog_ac_ct_CC="$ac_prog"
  4027. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4028. break 2
  4029. fi
  4030. done
  4031. done
  4032. IFS=$as_save_IFS
  4033. fi
  4034. fi
  4035. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4036. if test -n "$ac_ct_CC"; then
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4038. $as_echo "$ac_ct_CC" >&6; }
  4039. else
  4040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4041. $as_echo "no" >&6; }
  4042. fi
  4043. test -n "$ac_ct_CC" && break
  4044. done
  4045. if test "x$ac_ct_CC" = x; then
  4046. CC=""
  4047. else
  4048. case $cross_compiling:$ac_tool_warned in
  4049. yes:)
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4051. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4052. ac_tool_warned=yes ;;
  4053. esac
  4054. CC=$ac_ct_CC
  4055. fi
  4056. fi
  4057. fi
  4058. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4059. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4060. as_fn_error $? "no acceptable C compiler found in \$PATH
  4061. See \`config.log' for more details" "$LINENO" 5; }
  4062. # Provide some information about the compiler.
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4064. set X $ac_compile
  4065. ac_compiler=$2
  4066. for ac_option in --version -v -V -qversion; do
  4067. { { ac_try="$ac_compiler $ac_option >&5"
  4068. case "(($ac_try" in
  4069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4070. *) ac_try_echo=$ac_try;;
  4071. esac
  4072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4073. $as_echo "$ac_try_echo"; } >&5
  4074. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4075. ac_status=$?
  4076. if test -s conftest.err; then
  4077. sed '10a\
  4078. ... rest of stderr output deleted ...
  4079. 10q' conftest.err >conftest.er1
  4080. cat conftest.er1 >&5
  4081. fi
  4082. rm -f conftest.er1 conftest.err
  4083. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4084. test $ac_status = 0; }
  4085. done
  4086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4087. /* end confdefs.h. */
  4088. int
  4089. main ()
  4090. {
  4091. ;
  4092. return 0;
  4093. }
  4094. _ACEOF
  4095. ac_clean_files_save=$ac_clean_files
  4096. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  4097. # Try to create an executable without -o first, disregard a.out.
  4098. # It will help us diagnose broken compilers, and finding out an intuition
  4099. # of exeext.
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  4101. $as_echo_n "checking whether the C compiler works... " >&6; }
  4102. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  4103. # The possible output files:
  4104. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  4105. ac_rmfiles=
  4106. for ac_file in $ac_files
  4107. do
  4108. case $ac_file in
  4109. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4110. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  4111. esac
  4112. done
  4113. rm -f $ac_rmfiles
  4114. if { { ac_try="$ac_link_default"
  4115. case "(($ac_try" in
  4116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4117. *) ac_try_echo=$ac_try;;
  4118. esac
  4119. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4120. $as_echo "$ac_try_echo"; } >&5
  4121. (eval "$ac_link_default") 2>&5
  4122. ac_status=$?
  4123. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4124. test $ac_status = 0; }; then :
  4125. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  4126. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  4127. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  4128. # so that the user can short-circuit this test for compilers unknown to
  4129. # Autoconf.
  4130. for ac_file in $ac_files ''
  4131. do
  4132. test -f "$ac_file" || continue
  4133. case $ac_file in
  4134. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  4135. ;;
  4136. [ab].out )
  4137. # We found the default executable, but exeext='' is most
  4138. # certainly right.
  4139. break;;
  4140. *.* )
  4141. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  4142. then :; else
  4143. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4144. fi
  4145. # We set ac_cv_exeext here because the later test for it is not
  4146. # safe: cross compilers may not add the suffix if given an `-o'
  4147. # argument, so we may need to know it at that point already.
  4148. # Even if this section looks crufty: it has the advantage of
  4149. # actually working.
  4150. break;;
  4151. * )
  4152. break;;
  4153. esac
  4154. done
  4155. test "$ac_cv_exeext" = no && ac_cv_exeext=
  4156. else
  4157. ac_file=''
  4158. fi
  4159. if test -z "$ac_file"; then :
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4161. $as_echo "no" >&6; }
  4162. $as_echo "$as_me: failed program was:" >&5
  4163. sed 's/^/| /' conftest.$ac_ext >&5
  4164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4166. as_fn_error 77 "C compiler cannot create executables
  4167. See \`config.log' for more details" "$LINENO" 5; }
  4168. else
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4170. $as_echo "yes" >&6; }
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  4173. $as_echo_n "checking for C compiler default output file name... " >&6; }
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  4175. $as_echo "$ac_file" >&6; }
  4176. ac_exeext=$ac_cv_exeext
  4177. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  4178. ac_clean_files=$ac_clean_files_save
  4179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  4180. $as_echo_n "checking for suffix of executables... " >&6; }
  4181. if { { ac_try="$ac_link"
  4182. case "(($ac_try" in
  4183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4184. *) ac_try_echo=$ac_try;;
  4185. esac
  4186. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4187. $as_echo "$ac_try_echo"; } >&5
  4188. (eval "$ac_link") 2>&5
  4189. ac_status=$?
  4190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4191. test $ac_status = 0; }; then :
  4192. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  4193. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  4194. # work properly (i.e., refer to `conftest.exe'), while it won't with
  4195. # `rm'.
  4196. for ac_file in conftest.exe conftest conftest.*; do
  4197. test -f "$ac_file" || continue
  4198. case $ac_file in
  4199. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  4200. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  4201. break;;
  4202. * ) break;;
  4203. esac
  4204. done
  4205. else
  4206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4208. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  4209. See \`config.log' for more details" "$LINENO" 5; }
  4210. fi
  4211. rm -f conftest conftest$ac_cv_exeext
  4212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  4213. $as_echo "$ac_cv_exeext" >&6; }
  4214. rm -f conftest.$ac_ext
  4215. EXEEXT=$ac_cv_exeext
  4216. ac_exeext=$EXEEXT
  4217. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4218. /* end confdefs.h. */
  4219. #include <stdio.h>
  4220. int
  4221. main ()
  4222. {
  4223. FILE *f = fopen ("conftest.out", "w");
  4224. return ferror (f) || fclose (f) != 0;
  4225. ;
  4226. return 0;
  4227. }
  4228. _ACEOF
  4229. ac_clean_files="$ac_clean_files conftest.out"
  4230. # Check that the compiler produces executables we can run. If not, either
  4231. # the compiler is broken, or we cross compile.
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  4233. $as_echo_n "checking whether we are cross compiling... " >&6; }
  4234. if test "$cross_compiling" != yes; then
  4235. { { ac_try="$ac_link"
  4236. case "(($ac_try" in
  4237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4238. *) ac_try_echo=$ac_try;;
  4239. esac
  4240. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4241. $as_echo "$ac_try_echo"; } >&5
  4242. (eval "$ac_link") 2>&5
  4243. ac_status=$?
  4244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4245. test $ac_status = 0; }
  4246. if { ac_try='./conftest$ac_cv_exeext'
  4247. { { case "(($ac_try" in
  4248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4249. *) ac_try_echo=$ac_try;;
  4250. esac
  4251. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4252. $as_echo "$ac_try_echo"; } >&5
  4253. (eval "$ac_try") 2>&5
  4254. ac_status=$?
  4255. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4256. test $ac_status = 0; }; }; then
  4257. cross_compiling=no
  4258. else
  4259. if test "$cross_compiling" = maybe; then
  4260. cross_compiling=yes
  4261. else
  4262. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4263. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4264. as_fn_error $? "cannot run C compiled programs.
  4265. If you meant to cross compile, use \`--host'.
  4266. See \`config.log' for more details" "$LINENO" 5; }
  4267. fi
  4268. fi
  4269. fi
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  4271. $as_echo "$cross_compiling" >&6; }
  4272. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  4273. ac_clean_files=$ac_clean_files_save
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  4275. $as_echo_n "checking for suffix of object files... " >&6; }
  4276. if ${ac_cv_objext+:} false; then :
  4277. $as_echo_n "(cached) " >&6
  4278. else
  4279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4280. /* end confdefs.h. */
  4281. int
  4282. main ()
  4283. {
  4284. ;
  4285. return 0;
  4286. }
  4287. _ACEOF
  4288. rm -f conftest.o conftest.obj
  4289. if { { ac_try="$ac_compile"
  4290. case "(($ac_try" in
  4291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4292. *) ac_try_echo=$ac_try;;
  4293. esac
  4294. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4295. $as_echo "$ac_try_echo"; } >&5
  4296. (eval "$ac_compile") 2>&5
  4297. ac_status=$?
  4298. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4299. test $ac_status = 0; }; then :
  4300. for ac_file in conftest.o conftest.obj conftest.*; do
  4301. test -f "$ac_file" || continue;
  4302. case $ac_file in
  4303. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  4304. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  4305. break;;
  4306. esac
  4307. done
  4308. else
  4309. $as_echo "$as_me: failed program was:" >&5
  4310. sed 's/^/| /' conftest.$ac_ext >&5
  4311. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4312. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4313. as_fn_error $? "cannot compute suffix of object files: cannot compile
  4314. See \`config.log' for more details" "$LINENO" 5; }
  4315. fi
  4316. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  4317. fi
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  4319. $as_echo "$ac_cv_objext" >&6; }
  4320. OBJEXT=$ac_cv_objext
  4321. ac_objext=$OBJEXT
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4323. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4324. if ${ac_cv_c_compiler_gnu+:} false; then :
  4325. $as_echo_n "(cached) " >&6
  4326. else
  4327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4328. /* end confdefs.h. */
  4329. int
  4330. main ()
  4331. {
  4332. #ifndef __GNUC__
  4333. choke me
  4334. #endif
  4335. ;
  4336. return 0;
  4337. }
  4338. _ACEOF
  4339. if ac_fn_c_try_compile "$LINENO"; then :
  4340. ac_compiler_gnu=yes
  4341. else
  4342. ac_compiler_gnu=no
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4345. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4348. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4349. if test $ac_compiler_gnu = yes; then
  4350. GCC=yes
  4351. else
  4352. GCC=
  4353. fi
  4354. ac_test_CFLAGS=${CFLAGS+set}
  4355. ac_save_CFLAGS=$CFLAGS
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4357. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4358. if ${ac_cv_prog_cc_g+:} false; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. ac_save_c_werror_flag=$ac_c_werror_flag
  4362. ac_c_werror_flag=yes
  4363. ac_cv_prog_cc_g=no
  4364. CFLAGS="-g"
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. int
  4368. main ()
  4369. {
  4370. ;
  4371. return 0;
  4372. }
  4373. _ACEOF
  4374. if ac_fn_c_try_compile "$LINENO"; then :
  4375. ac_cv_prog_cc_g=yes
  4376. else
  4377. CFLAGS=""
  4378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4379. /* end confdefs.h. */
  4380. int
  4381. main ()
  4382. {
  4383. ;
  4384. return 0;
  4385. }
  4386. _ACEOF
  4387. if ac_fn_c_try_compile "$LINENO"; then :
  4388. else
  4389. ac_c_werror_flag=$ac_save_c_werror_flag
  4390. CFLAGS="-g"
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. int
  4394. main ()
  4395. {
  4396. ;
  4397. return 0;
  4398. }
  4399. _ACEOF
  4400. if ac_fn_c_try_compile "$LINENO"; then :
  4401. ac_cv_prog_cc_g=yes
  4402. fi
  4403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4404. fi
  4405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4406. fi
  4407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4408. ac_c_werror_flag=$ac_save_c_werror_flag
  4409. fi
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4411. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4412. if test "$ac_test_CFLAGS" = set; then
  4413. CFLAGS=$ac_save_CFLAGS
  4414. elif test $ac_cv_prog_cc_g = yes; then
  4415. if test "$GCC" = yes; then
  4416. CFLAGS="-g -O2"
  4417. else
  4418. CFLAGS="-g"
  4419. fi
  4420. else
  4421. if test "$GCC" = yes; then
  4422. CFLAGS="-O2"
  4423. else
  4424. CFLAGS=
  4425. fi
  4426. fi
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4428. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4429. if ${ac_cv_prog_cc_c89+:} false; then :
  4430. $as_echo_n "(cached) " >&6
  4431. else
  4432. ac_cv_prog_cc_c89=no
  4433. ac_save_CC=$CC
  4434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4435. /* end confdefs.h. */
  4436. #include <stdarg.h>
  4437. #include <stdio.h>
  4438. struct stat;
  4439. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4440. struct buf { int x; };
  4441. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4442. static char *e (p, i)
  4443. char **p;
  4444. int i;
  4445. {
  4446. return p[i];
  4447. }
  4448. static char *f (char * (*g) (char **, int), char **p, ...)
  4449. {
  4450. char *s;
  4451. va_list v;
  4452. va_start (v,p);
  4453. s = g (p, va_arg (v,int));
  4454. va_end (v);
  4455. return s;
  4456. }
  4457. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4458. function prototypes and stuff, but not '\xHH' hex character constants.
  4459. These don't provoke an error unfortunately, instead are silently treated
  4460. as 'x'. The following induces an error, until -std is added to get
  4461. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4462. array size at least. It's necessary to write '\x00'==0 to get something
  4463. that's true only with -std. */
  4464. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4465. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4466. inside strings and character constants. */
  4467. #define FOO(x) 'x'
  4468. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4469. int test (int i, double x);
  4470. struct s1 {int (*f) (int a);};
  4471. struct s2 {int (*f) (double a);};
  4472. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4473. int argc;
  4474. char **argv;
  4475. int
  4476. main ()
  4477. {
  4478. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4479. ;
  4480. return 0;
  4481. }
  4482. _ACEOF
  4483. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4484. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4485. do
  4486. CC="$ac_save_CC $ac_arg"
  4487. if ac_fn_c_try_compile "$LINENO"; then :
  4488. ac_cv_prog_cc_c89=$ac_arg
  4489. fi
  4490. rm -f core conftest.err conftest.$ac_objext
  4491. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4492. done
  4493. rm -f conftest.$ac_ext
  4494. CC=$ac_save_CC
  4495. fi
  4496. # AC_CACHE_VAL
  4497. case "x$ac_cv_prog_cc_c89" in
  4498. x)
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4500. $as_echo "none needed" >&6; } ;;
  4501. xno)
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4503. $as_echo "unsupported" >&6; } ;;
  4504. *)
  4505. CC="$CC $ac_cv_prog_cc_c89"
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4507. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4508. esac
  4509. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4510. fi
  4511. ac_ext=c
  4512. ac_cpp='$CPP $CPPFLAGS'
  4513. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4514. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4515. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  4517. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  4518. if ${ac_cv_prog_cc_c99+:} false; then :
  4519. $as_echo_n "(cached) " >&6
  4520. else
  4521. ac_cv_prog_cc_c99=no
  4522. ac_save_CC=$CC
  4523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4524. /* end confdefs.h. */
  4525. #include <stdarg.h>
  4526. #include <stdbool.h>
  4527. #include <stdlib.h>
  4528. #include <wchar.h>
  4529. #include <stdio.h>
  4530. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  4531. #define debug(...) fprintf (stderr, __VA_ARGS__)
  4532. #define showlist(...) puts (#__VA_ARGS__)
  4533. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  4534. static void
  4535. test_varargs_macros (void)
  4536. {
  4537. int x = 1234;
  4538. int y = 5678;
  4539. debug ("Flag");
  4540. debug ("X = %d\n", x);
  4541. showlist (The first, second, and third items.);
  4542. report (x>y, "x is %d but y is %d", x, y);
  4543. }
  4544. // Check long long types.
  4545. #define BIG64 18446744073709551615ull
  4546. #define BIG32 4294967295ul
  4547. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  4548. #if !BIG_OK
  4549. your preprocessor is broken;
  4550. #endif
  4551. #if BIG_OK
  4552. #else
  4553. your preprocessor is broken;
  4554. #endif
  4555. static long long int bignum = -9223372036854775807LL;
  4556. static unsigned long long int ubignum = BIG64;
  4557. struct incomplete_array
  4558. {
  4559. int datasize;
  4560. double data[];
  4561. };
  4562. struct named_init {
  4563. int number;
  4564. const wchar_t *name;
  4565. double average;
  4566. };
  4567. typedef const char *ccp;
  4568. static inline int
  4569. test_restrict (ccp restrict text)
  4570. {
  4571. // See if C++-style comments work.
  4572. // Iterate through items via the restricted pointer.
  4573. // Also check for declarations in for loops.
  4574. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  4575. continue;
  4576. return 0;
  4577. }
  4578. // Check varargs and va_copy.
  4579. static void
  4580. test_varargs (const char *format, ...)
  4581. {
  4582. va_list args;
  4583. va_start (args, format);
  4584. va_list args_copy;
  4585. va_copy (args_copy, args);
  4586. const char *str;
  4587. int number;
  4588. float fnumber;
  4589. while (*format)
  4590. {
  4591. switch (*format++)
  4592. {
  4593. case 's': // string
  4594. str = va_arg (args_copy, const char *);
  4595. break;
  4596. case 'd': // int
  4597. number = va_arg (args_copy, int);
  4598. break;
  4599. case 'f': // float
  4600. fnumber = va_arg (args_copy, double);
  4601. break;
  4602. default:
  4603. break;
  4604. }
  4605. }
  4606. va_end (args_copy);
  4607. va_end (args);
  4608. }
  4609. int
  4610. main ()
  4611. {
  4612. // Check bool.
  4613. _Bool success = false;
  4614. // Check restrict.
  4615. if (test_restrict ("String literal") == 0)
  4616. success = true;
  4617. char *restrict newvar = "Another string";
  4618. // Check varargs.
  4619. test_varargs ("s, d' f .", "string", 65, 34.234);
  4620. test_varargs_macros ();
  4621. // Check flexible array members.
  4622. struct incomplete_array *ia =
  4623. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4624. ia->datasize = 10;
  4625. for (int i = 0; i < ia->datasize; ++i)
  4626. ia->data[i] = i * 1.234;
  4627. // Check named initializers.
  4628. struct named_init ni = {
  4629. .number = 34,
  4630. .name = L"Test wide string",
  4631. .average = 543.34343,
  4632. };
  4633. ni.number = 58;
  4634. int dynamic_array[ni.number];
  4635. dynamic_array[ni.number - 1] = 543;
  4636. // work around unused variable warnings
  4637. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4638. || dynamic_array[ni.number - 1] != 543);
  4639. ;
  4640. return 0;
  4641. }
  4642. _ACEOF
  4643. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4644. do
  4645. CC="$ac_save_CC $ac_arg"
  4646. if ac_fn_c_try_compile "$LINENO"; then :
  4647. ac_cv_prog_cc_c99=$ac_arg
  4648. fi
  4649. rm -f core conftest.err conftest.$ac_objext
  4650. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4651. done
  4652. rm -f conftest.$ac_ext
  4653. CC=$ac_save_CC
  4654. fi
  4655. # AC_CACHE_VAL
  4656. case "x$ac_cv_prog_cc_c99" in
  4657. x)
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4659. $as_echo "none needed" >&6; } ;;
  4660. xno)
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4662. $as_echo "unsupported" >&6; } ;;
  4663. *)
  4664. CC="$CC $ac_cv_prog_cc_c99"
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4666. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4667. esac
  4668. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4669. fi
  4670. ac_ext=cpp
  4671. ac_cpp='$CXXCPP $CPPFLAGS'
  4672. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4673. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4674. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4675. if test -z "$CXX"; then
  4676. if test -n "$CCC"; then
  4677. CXX=$CCC
  4678. else
  4679. if test -n "$ac_tool_prefix"; then
  4680. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4681. do
  4682. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4683. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4685. $as_echo_n "checking for $ac_word... " >&6; }
  4686. if ${ac_cv_prog_CXX+:} false; then :
  4687. $as_echo_n "(cached) " >&6
  4688. else
  4689. if test -n "$CXX"; then
  4690. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4691. else
  4692. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4693. for as_dir in $PATH
  4694. do
  4695. IFS=$as_save_IFS
  4696. test -z "$as_dir" && as_dir=.
  4697. for ac_exec_ext in '' $ac_executable_extensions; do
  4698. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4699. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4700. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4701. break 2
  4702. fi
  4703. done
  4704. done
  4705. IFS=$as_save_IFS
  4706. fi
  4707. fi
  4708. CXX=$ac_cv_prog_CXX
  4709. if test -n "$CXX"; then
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4711. $as_echo "$CXX" >&6; }
  4712. else
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4714. $as_echo "no" >&6; }
  4715. fi
  4716. test -n "$CXX" && break
  4717. done
  4718. fi
  4719. if test -z "$CXX"; then
  4720. ac_ct_CXX=$CXX
  4721. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4722. do
  4723. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4724. set dummy $ac_prog; ac_word=$2
  4725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4726. $as_echo_n "checking for $ac_word... " >&6; }
  4727. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4728. $as_echo_n "(cached) " >&6
  4729. else
  4730. if test -n "$ac_ct_CXX"; then
  4731. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4732. else
  4733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4734. for as_dir in $PATH
  4735. do
  4736. IFS=$as_save_IFS
  4737. test -z "$as_dir" && as_dir=.
  4738. for ac_exec_ext in '' $ac_executable_extensions; do
  4739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4740. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4742. break 2
  4743. fi
  4744. done
  4745. done
  4746. IFS=$as_save_IFS
  4747. fi
  4748. fi
  4749. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4750. if test -n "$ac_ct_CXX"; then
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4752. $as_echo "$ac_ct_CXX" >&6; }
  4753. else
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4755. $as_echo "no" >&6; }
  4756. fi
  4757. test -n "$ac_ct_CXX" && break
  4758. done
  4759. if test "x$ac_ct_CXX" = x; then
  4760. CXX="g++"
  4761. else
  4762. case $cross_compiling:$ac_tool_warned in
  4763. yes:)
  4764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4766. ac_tool_warned=yes ;;
  4767. esac
  4768. CXX=$ac_ct_CXX
  4769. fi
  4770. fi
  4771. fi
  4772. fi
  4773. # Provide some information about the compiler.
  4774. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4775. set X $ac_compile
  4776. ac_compiler=$2
  4777. for ac_option in --version -v -V -qversion; do
  4778. { { ac_try="$ac_compiler $ac_option >&5"
  4779. case "(($ac_try" in
  4780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4781. *) ac_try_echo=$ac_try;;
  4782. esac
  4783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4784. $as_echo "$ac_try_echo"; } >&5
  4785. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4786. ac_status=$?
  4787. if test -s conftest.err; then
  4788. sed '10a\
  4789. ... rest of stderr output deleted ...
  4790. 10q' conftest.err >conftest.er1
  4791. cat conftest.er1 >&5
  4792. fi
  4793. rm -f conftest.er1 conftest.err
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4795. test $ac_status = 0; }
  4796. done
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4798. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4799. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4803. /* end confdefs.h. */
  4804. int
  4805. main ()
  4806. {
  4807. #ifndef __GNUC__
  4808. choke me
  4809. #endif
  4810. ;
  4811. return 0;
  4812. }
  4813. _ACEOF
  4814. if ac_fn_cxx_try_compile "$LINENO"; then :
  4815. ac_compiler_gnu=yes
  4816. else
  4817. ac_compiler_gnu=no
  4818. fi
  4819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4820. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4823. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4824. if test $ac_compiler_gnu = yes; then
  4825. GXX=yes
  4826. else
  4827. GXX=
  4828. fi
  4829. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4830. ac_save_CXXFLAGS=$CXXFLAGS
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4832. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4833. if ${ac_cv_prog_cxx_g+:} false; then :
  4834. $as_echo_n "(cached) " >&6
  4835. else
  4836. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4837. ac_cxx_werror_flag=yes
  4838. ac_cv_prog_cxx_g=no
  4839. CXXFLAGS="-g"
  4840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4841. /* end confdefs.h. */
  4842. int
  4843. main ()
  4844. {
  4845. ;
  4846. return 0;
  4847. }
  4848. _ACEOF
  4849. if ac_fn_cxx_try_compile "$LINENO"; then :
  4850. ac_cv_prog_cxx_g=yes
  4851. else
  4852. CXXFLAGS=""
  4853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4854. /* end confdefs.h. */
  4855. int
  4856. main ()
  4857. {
  4858. ;
  4859. return 0;
  4860. }
  4861. _ACEOF
  4862. if ac_fn_cxx_try_compile "$LINENO"; then :
  4863. else
  4864. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4865. CXXFLAGS="-g"
  4866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end confdefs.h. */
  4868. int
  4869. main ()
  4870. {
  4871. ;
  4872. return 0;
  4873. }
  4874. _ACEOF
  4875. if ac_fn_cxx_try_compile "$LINENO"; then :
  4876. ac_cv_prog_cxx_g=yes
  4877. fi
  4878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4879. fi
  4880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4881. fi
  4882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4883. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4884. fi
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4886. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4887. if test "$ac_test_CXXFLAGS" = set; then
  4888. CXXFLAGS=$ac_save_CXXFLAGS
  4889. elif test $ac_cv_prog_cxx_g = yes; then
  4890. if test "$GXX" = yes; then
  4891. CXXFLAGS="-g -O2"
  4892. else
  4893. CXXFLAGS="-g"
  4894. fi
  4895. else
  4896. if test "$GXX" = yes; then
  4897. CXXFLAGS="-O2"
  4898. else
  4899. CXXFLAGS=
  4900. fi
  4901. fi
  4902. ac_ext=c
  4903. ac_cpp='$CPP $CPPFLAGS'
  4904. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4905. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4906. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4907. # We must set the default linker to the linker used by gcc for the correct
  4908. # operation of libtool. If LD is not defined and we are using gcc, try to
  4909. # set the LD default to the ld used by gcc.
  4910. if test -z "$LD"; then
  4911. if test "$GCC" = yes; then
  4912. case $build in
  4913. *-*-mingw*)
  4914. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
  4915. *)
  4916. gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
  4917. esac
  4918. case $gcc_prog_ld in
  4919. # Accept absolute paths.
  4920. [\\/]* | [A-Za-z]:[\\/]*)
  4921. LD="$gcc_prog_ld" ;;
  4922. esac
  4923. fi
  4924. fi
  4925. # Check whether -static-libstdc++ -static-libgcc is supported.
  4926. have_static_libs=no
  4927. if test "$GCC" = yes; then
  4928. saved_LDFLAGS="$LDFLAGS"
  4929. LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
  4931. $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
  4932. ac_ext=cpp
  4933. ac_cpp='$CXXCPP $CPPFLAGS'
  4934. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4935. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4936. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4938. /* end confdefs.h. */
  4939. #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
  4940. #error -static-libstdc++ not implemented
  4941. #endif
  4942. int main() {}
  4943. _ACEOF
  4944. if ac_fn_cxx_try_link "$LINENO"; then :
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4946. $as_echo "yes" >&6; }; have_static_libs=yes
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4949. $as_echo "no" >&6; }
  4950. fi
  4951. rm -f core conftest.err conftest.$ac_objext \
  4952. conftest$ac_exeext conftest.$ac_ext
  4953. ac_ext=c
  4954. ac_cpp='$CPP $CPPFLAGS'
  4955. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4956. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4957. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4958. LDFLAGS="$saved_LDFLAGS"
  4959. fi
  4960. if test -n "$ac_tool_prefix"; then
  4961. # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
  4962. set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4964. $as_echo_n "checking for $ac_word... " >&6; }
  4965. if ${ac_cv_prog_GNATBIND+:} false; then :
  4966. $as_echo_n "(cached) " >&6
  4967. else
  4968. if test -n "$GNATBIND"; then
  4969. ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
  4970. else
  4971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4972. for as_dir in $PATH
  4973. do
  4974. IFS=$as_save_IFS
  4975. test -z "$as_dir" && as_dir=.
  4976. for ac_exec_ext in '' $ac_executable_extensions; do
  4977. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4978. ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
  4979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4980. break 2
  4981. fi
  4982. done
  4983. done
  4984. IFS=$as_save_IFS
  4985. fi
  4986. fi
  4987. GNATBIND=$ac_cv_prog_GNATBIND
  4988. if test -n "$GNATBIND"; then
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
  4990. $as_echo "$GNATBIND" >&6; }
  4991. else
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4993. $as_echo "no" >&6; }
  4994. fi
  4995. fi
  4996. if test -z "$ac_cv_prog_GNATBIND"; then
  4997. ac_ct_GNATBIND=$GNATBIND
  4998. # Extract the first word of "gnatbind", so it can be a program name with args.
  4999. set dummy gnatbind; ac_word=$2
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5001. $as_echo_n "checking for $ac_word... " >&6; }
  5002. if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
  5003. $as_echo_n "(cached) " >&6
  5004. else
  5005. if test -n "$ac_ct_GNATBIND"; then
  5006. ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
  5007. else
  5008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5009. for as_dir in $PATH
  5010. do
  5011. IFS=$as_save_IFS
  5012. test -z "$as_dir" && as_dir=.
  5013. for ac_exec_ext in '' $ac_executable_extensions; do
  5014. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5015. ac_cv_prog_ac_ct_GNATBIND="gnatbind"
  5016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5017. break 2
  5018. fi
  5019. done
  5020. done
  5021. IFS=$as_save_IFS
  5022. fi
  5023. fi
  5024. ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
  5025. if test -n "$ac_ct_GNATBIND"; then
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
  5027. $as_echo "$ac_ct_GNATBIND" >&6; }
  5028. else
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5030. $as_echo "no" >&6; }
  5031. fi
  5032. if test "x$ac_ct_GNATBIND" = x; then
  5033. GNATBIND="no"
  5034. else
  5035. case $cross_compiling:$ac_tool_warned in
  5036. yes:)
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5039. ac_tool_warned=yes ;;
  5040. esac
  5041. GNATBIND=$ac_ct_GNATBIND
  5042. fi
  5043. else
  5044. GNATBIND="$ac_cv_prog_GNATBIND"
  5045. fi
  5046. if test -n "$ac_tool_prefix"; then
  5047. # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
  5048. set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5050. $as_echo_n "checking for $ac_word... " >&6; }
  5051. if ${ac_cv_prog_GNATMAKE+:} false; then :
  5052. $as_echo_n "(cached) " >&6
  5053. else
  5054. if test -n "$GNATMAKE"; then
  5055. ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
  5056. else
  5057. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5058. for as_dir in $PATH
  5059. do
  5060. IFS=$as_save_IFS
  5061. test -z "$as_dir" && as_dir=.
  5062. for ac_exec_ext in '' $ac_executable_extensions; do
  5063. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5064. ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
  5065. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5066. break 2
  5067. fi
  5068. done
  5069. done
  5070. IFS=$as_save_IFS
  5071. fi
  5072. fi
  5073. GNATMAKE=$ac_cv_prog_GNATMAKE
  5074. if test -n "$GNATMAKE"; then
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
  5076. $as_echo "$GNATMAKE" >&6; }
  5077. else
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5079. $as_echo "no" >&6; }
  5080. fi
  5081. fi
  5082. if test -z "$ac_cv_prog_GNATMAKE"; then
  5083. ac_ct_GNATMAKE=$GNATMAKE
  5084. # Extract the first word of "gnatmake", so it can be a program name with args.
  5085. set dummy gnatmake; ac_word=$2
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5087. $as_echo_n "checking for $ac_word... " >&6; }
  5088. if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
  5089. $as_echo_n "(cached) " >&6
  5090. else
  5091. if test -n "$ac_ct_GNATMAKE"; then
  5092. ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
  5093. else
  5094. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5095. for as_dir in $PATH
  5096. do
  5097. IFS=$as_save_IFS
  5098. test -z "$as_dir" && as_dir=.
  5099. for ac_exec_ext in '' $ac_executable_extensions; do
  5100. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5101. ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
  5102. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5103. break 2
  5104. fi
  5105. done
  5106. done
  5107. IFS=$as_save_IFS
  5108. fi
  5109. fi
  5110. ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
  5111. if test -n "$ac_ct_GNATMAKE"; then
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
  5113. $as_echo "$ac_ct_GNATMAKE" >&6; }
  5114. else
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5116. $as_echo "no" >&6; }
  5117. fi
  5118. if test "x$ac_ct_GNATMAKE" = x; then
  5119. GNATMAKE="no"
  5120. else
  5121. case $cross_compiling:$ac_tool_warned in
  5122. yes:)
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5124. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5125. ac_tool_warned=yes ;;
  5126. esac
  5127. GNATMAKE=$ac_ct_GNATMAKE
  5128. fi
  5129. else
  5130. GNATMAKE="$ac_cv_prog_GNATMAKE"
  5131. fi
  5132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
  5133. $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
  5134. if ${acx_cv_cc_gcc_supports_ada+:} false; then :
  5135. $as_echo_n "(cached) " >&6
  5136. else
  5137. cat >conftest.adb <<EOF
  5138. procedure conftest is begin null; end conftest;
  5139. EOF
  5140. acx_cv_cc_gcc_supports_ada=no
  5141. # There is a bug in old released versions of GCC which causes the
  5142. # driver to exit successfully when the appropriate language module
  5143. # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
  5144. # Therefore we must check for the error message as well as an
  5145. # unsuccessful exit.
  5146. # Other compilers, like HP Tru64 UNIX cc, exit successfully when
  5147. # given a .adb file, but produce no object file. So we must check
  5148. # if an object file was really produced to guard against this.
  5149. errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
  5150. if test x"$errors" = x && test -f conftest.$ac_objext; then
  5151. acx_cv_cc_gcc_supports_ada=yes
  5152. fi
  5153. rm -f conftest.*
  5154. fi
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
  5156. $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
  5157. if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
  5158. have_gnat=yes
  5159. else
  5160. have_gnat=no
  5161. fi
  5162. if test -n "$ac_tool_prefix"; then
  5163. # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
  5164. set dummy ${ac_tool_prefix}gdc; ac_word=$2
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5166. $as_echo_n "checking for $ac_word... " >&6; }
  5167. if ${ac_cv_prog_GDC+:} false; then :
  5168. $as_echo_n "(cached) " >&6
  5169. else
  5170. if test -n "$GDC"; then
  5171. ac_cv_prog_GDC="$GDC" # Let the user override the test.
  5172. else
  5173. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5174. for as_dir in $PATH
  5175. do
  5176. IFS=$as_save_IFS
  5177. test -z "$as_dir" && as_dir=.
  5178. for ac_exec_ext in '' $ac_executable_extensions; do
  5179. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5180. ac_cv_prog_GDC="${ac_tool_prefix}gdc"
  5181. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5182. break 2
  5183. fi
  5184. done
  5185. done
  5186. IFS=$as_save_IFS
  5187. fi
  5188. fi
  5189. GDC=$ac_cv_prog_GDC
  5190. if test -n "$GDC"; then
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
  5192. $as_echo "$GDC" >&6; }
  5193. else
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5195. $as_echo "no" >&6; }
  5196. fi
  5197. fi
  5198. if test -z "$ac_cv_prog_GDC"; then
  5199. ac_ct_GDC=$GDC
  5200. # Extract the first word of "gdc", so it can be a program name with args.
  5201. set dummy gdc; ac_word=$2
  5202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5203. $as_echo_n "checking for $ac_word... " >&6; }
  5204. if ${ac_cv_prog_ac_ct_GDC+:} false; then :
  5205. $as_echo_n "(cached) " >&6
  5206. else
  5207. if test -n "$ac_ct_GDC"; then
  5208. ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
  5209. else
  5210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5211. for as_dir in $PATH
  5212. do
  5213. IFS=$as_save_IFS
  5214. test -z "$as_dir" && as_dir=.
  5215. for ac_exec_ext in '' $ac_executable_extensions; do
  5216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5217. ac_cv_prog_ac_ct_GDC="gdc"
  5218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5219. break 2
  5220. fi
  5221. done
  5222. done
  5223. IFS=$as_save_IFS
  5224. fi
  5225. fi
  5226. ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
  5227. if test -n "$ac_ct_GDC"; then
  5228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
  5229. $as_echo "$ac_ct_GDC" >&6; }
  5230. else
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5232. $as_echo "no" >&6; }
  5233. fi
  5234. if test "x$ac_ct_GDC" = x; then
  5235. GDC="no"
  5236. else
  5237. case $cross_compiling:$ac_tool_warned in
  5238. yes:)
  5239. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5240. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5241. ac_tool_warned=yes ;;
  5242. esac
  5243. GDC=$ac_ct_GDC
  5244. fi
  5245. else
  5246. GDC="$ac_cv_prog_GDC"
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
  5249. $as_echo_n "checking whether the D compiler works... " >&6; }
  5250. if ${acx_cv_d_compiler_works+:} false; then :
  5251. $as_echo_n "(cached) " >&6
  5252. else
  5253. cat >conftest.d <<EOF
  5254. module conftest; int main() { return 0; }
  5255. EOF
  5256. acx_cv_d_compiler_works=no
  5257. if test "x$GDC" != xno; then
  5258. errors=`(${GDC} -c conftest.d) 2>&1 || echo failure`
  5259. if test x"$errors" = x && test -f conftest.$ac_objext; then
  5260. acx_cv_d_compiler_works=yes
  5261. fi
  5262. rm -f conftest.*
  5263. fi
  5264. fi
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
  5266. $as_echo "$acx_cv_d_compiler_works" >&6; }
  5267. if test "x$GDC" != xno && test x$acx_cv_d_compiler_works != xno; then
  5268. have_gdc=yes
  5269. else
  5270. have_gdc=no
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
  5273. $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
  5274. if ${gcc_cv_prog_cmp_skip+:} false; then :
  5275. $as_echo_n "(cached) " >&6
  5276. else
  5277. echo abfoo >t1
  5278. echo cdfoo >t2
  5279. gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
  5280. if cmp t1 t2 2 2 > /dev/null 2>&1; then
  5281. if cmp t1 t2 1 1 > /dev/null 2>&1; then
  5282. :
  5283. else
  5284. gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
  5285. fi
  5286. fi
  5287. if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
  5288. if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
  5289. :
  5290. else
  5291. gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
  5292. fi
  5293. fi
  5294. rm t1 t2
  5295. fi
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
  5297. $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
  5298. do_compare="$gcc_cv_prog_cmp_skip"
  5299. # Check whether --enable-bootstrap was given.
  5300. if test "${enable_bootstrap+set}" = set; then :
  5301. enableval=$enable_bootstrap;
  5302. else
  5303. enable_bootstrap=default
  5304. fi
  5305. # Issue errors and warnings for invalid/strange bootstrap combinations.
  5306. if test -r $srcdir/gcc/configure; then
  5307. have_compiler=yes
  5308. else
  5309. have_compiler=no
  5310. fi
  5311. case "$have_compiler:$host:$target:$enable_bootstrap" in
  5312. *:*:*:no) ;;
  5313. # Default behavior. Enable bootstrap if we have a compiler
  5314. # and we are in a native configuration.
  5315. yes:$build:$build:default)
  5316. enable_bootstrap=yes ;;
  5317. *:*:*:default)
  5318. enable_bootstrap=no ;;
  5319. # We have a compiler and we are in a native configuration, bootstrap is ok
  5320. yes:$build:$build:yes)
  5321. ;;
  5322. # Other configurations, but we have a compiler. Assume the user knows
  5323. # what he's doing.
  5324. yes:*:*:yes)
  5325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
  5326. $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
  5327. ;;
  5328. # No compiler: if they passed --enable-bootstrap explicitly, fail
  5329. no:*:*:yes)
  5330. as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
  5331. # Fail if wrong command line
  5332. *)
  5333. as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
  5334. ;;
  5335. esac
  5336. # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
  5337. # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
  5338. # require C++11 (or higher).
  5339. if test "$enable_bootstrap:$GXX" = "yes:yes"; then
  5340. CXX="$CXX -std=c++11"
  5341. elif test "$have_compiler" = yes; then
  5342. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  5343. ac_ext=cpp
  5344. ac_cpp='$CXXCPP $CPPFLAGS'
  5345. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5346. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5347. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5348. ac_success=no
  5349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  5350. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  5351. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  5352. $as_echo_n "(cached) " >&6
  5353. else
  5354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5355. /* end confdefs.h. */
  5356. // If the compiler admits that it is not ready for C++11, why torture it?
  5357. // Hopefully, this will speed up the test.
  5358. #ifndef __cplusplus
  5359. #error "This is not a C++ compiler"
  5360. #elif __cplusplus < 201103L
  5361. #error "This is not a C++11 compiler"
  5362. #else
  5363. namespace cxx11
  5364. {
  5365. namespace test_static_assert
  5366. {
  5367. template <typename T>
  5368. struct check
  5369. {
  5370. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5371. };
  5372. }
  5373. namespace test_final_override
  5374. {
  5375. struct Base
  5376. {
  5377. virtual ~Base() {}
  5378. virtual void f() {}
  5379. };
  5380. struct Derived : public Base
  5381. {
  5382. virtual ~Derived() override {}
  5383. virtual void f() override {}
  5384. };
  5385. }
  5386. namespace test_double_right_angle_brackets
  5387. {
  5388. template < typename T >
  5389. struct check {};
  5390. typedef check<void> single_type;
  5391. typedef check<check<void>> double_type;
  5392. typedef check<check<check<void>>> triple_type;
  5393. typedef check<check<check<check<void>>>> quadruple_type;
  5394. }
  5395. namespace test_decltype
  5396. {
  5397. int
  5398. f()
  5399. {
  5400. int a = 1;
  5401. decltype(a) b = 2;
  5402. return a + b;
  5403. }
  5404. }
  5405. namespace test_type_deduction
  5406. {
  5407. template < typename T1, typename T2 >
  5408. struct is_same
  5409. {
  5410. static const bool value = false;
  5411. };
  5412. template < typename T >
  5413. struct is_same<T, T>
  5414. {
  5415. static const bool value = true;
  5416. };
  5417. template < typename T1, typename T2 >
  5418. auto
  5419. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5420. {
  5421. return a1 + a2;
  5422. }
  5423. int
  5424. test(const int c, volatile int v)
  5425. {
  5426. static_assert(is_same<int, decltype(0)>::value == true, "");
  5427. static_assert(is_same<int, decltype(c)>::value == false, "");
  5428. static_assert(is_same<int, decltype(v)>::value == false, "");
  5429. auto ac = c;
  5430. auto av = v;
  5431. auto sumi = ac + av + 'x';
  5432. auto sumf = ac + av + 1.0;
  5433. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5434. static_assert(is_same<int, decltype(av)>::value == true, "");
  5435. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5436. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5437. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5438. return (sumf > 0.0) ? sumi : add(c, v);
  5439. }
  5440. }
  5441. namespace test_noexcept
  5442. {
  5443. int f() { return 0; }
  5444. int g() noexcept { return 0; }
  5445. static_assert(noexcept(f()) == false, "");
  5446. static_assert(noexcept(g()) == true, "");
  5447. }
  5448. namespace test_constexpr
  5449. {
  5450. template < typename CharT >
  5451. unsigned long constexpr
  5452. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5453. {
  5454. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5455. }
  5456. template < typename CharT >
  5457. unsigned long constexpr
  5458. strlen_c(const CharT *const s) noexcept
  5459. {
  5460. return strlen_c_r(s, 0UL);
  5461. }
  5462. static_assert(strlen_c("") == 0UL, "");
  5463. static_assert(strlen_c("1") == 1UL, "");
  5464. static_assert(strlen_c("example") == 7UL, "");
  5465. static_assert(strlen_c("another\0example") == 7UL, "");
  5466. }
  5467. namespace test_rvalue_references
  5468. {
  5469. template < int N >
  5470. struct answer
  5471. {
  5472. static constexpr int value = N;
  5473. };
  5474. answer<1> f(int&) { return answer<1>(); }
  5475. answer<2> f(const int&) { return answer<2>(); }
  5476. answer<3> f(int&&) { return answer<3>(); }
  5477. void
  5478. test()
  5479. {
  5480. int i = 0;
  5481. const int c = 0;
  5482. static_assert(decltype(f(i))::value == 1, "");
  5483. static_assert(decltype(f(c))::value == 2, "");
  5484. static_assert(decltype(f(0))::value == 3, "");
  5485. }
  5486. }
  5487. namespace test_uniform_initialization
  5488. {
  5489. struct test
  5490. {
  5491. static const int zero {};
  5492. static const int one {1};
  5493. };
  5494. static_assert(test::zero == 0, "");
  5495. static_assert(test::one == 1, "");
  5496. }
  5497. namespace test_lambdas
  5498. {
  5499. void
  5500. test1()
  5501. {
  5502. auto lambda1 = [](){};
  5503. auto lambda2 = lambda1;
  5504. lambda1();
  5505. lambda2();
  5506. }
  5507. int
  5508. test2()
  5509. {
  5510. auto a = [](int i, int j){ return i + j; }(1, 2);
  5511. auto b = []() -> int { return '0'; }();
  5512. auto c = [=](){ return a + b; }();
  5513. auto d = [&](){ return c; }();
  5514. auto e = [a, &b](int x) mutable {
  5515. const auto identity = [](int y){ return y; };
  5516. for (auto i = 0; i < a; ++i)
  5517. a += b--;
  5518. return x + identity(a + b);
  5519. }(0);
  5520. return a + b + c + d + e;
  5521. }
  5522. int
  5523. test3()
  5524. {
  5525. const auto nullary = [](){ return 0; };
  5526. const auto unary = [](int x){ return x; };
  5527. using nullary_t = decltype(nullary);
  5528. using unary_t = decltype(unary);
  5529. const auto higher1st = [](nullary_t f){ return f(); };
  5530. const auto higher2nd = [unary](nullary_t f1){
  5531. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5532. };
  5533. return higher1st(nullary) + higher2nd(nullary)(unary);
  5534. }
  5535. }
  5536. namespace test_variadic_templates
  5537. {
  5538. template <int...>
  5539. struct sum;
  5540. template <int N0, int... N1toN>
  5541. struct sum<N0, N1toN...>
  5542. {
  5543. static constexpr auto value = N0 + sum<N1toN...>::value;
  5544. };
  5545. template <>
  5546. struct sum<>
  5547. {
  5548. static constexpr auto value = 0;
  5549. };
  5550. static_assert(sum<>::value == 0, "");
  5551. static_assert(sum<1>::value == 1, "");
  5552. static_assert(sum<23>::value == 23, "");
  5553. static_assert(sum<1, 2>::value == 3, "");
  5554. static_assert(sum<5, 5, 11>::value == 21, "");
  5555. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5556. }
  5557. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5558. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5559. // because of this.
  5560. namespace test_template_alias_sfinae
  5561. {
  5562. struct foo {};
  5563. template<typename T>
  5564. using member = typename T::member_type;
  5565. template<typename T>
  5566. void func(...) {}
  5567. template<typename T>
  5568. void func(member<T>*) {}
  5569. void test();
  5570. void test() { func<foo>(0); }
  5571. }
  5572. } // namespace cxx11
  5573. #endif // __cplusplus >= 201103L
  5574. _ACEOF
  5575. if ac_fn_cxx_try_compile "$LINENO"; then :
  5576. ax_cv_cxx_compile_cxx11=yes
  5577. else
  5578. ax_cv_cxx_compile_cxx11=no
  5579. fi
  5580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5581. fi
  5582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  5583. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  5584. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  5585. ac_success=yes
  5586. fi
  5587. if test x$ac_success = xno; then
  5588. for alternative in ${ax_cxx_compile_alternatives}; do
  5589. switch="-std=gnu++${alternative}"
  5590. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5592. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5593. if eval \${$cachevar+:} false; then :
  5594. $as_echo_n "(cached) " >&6
  5595. else
  5596. ac_save_CXX="$CXX"
  5597. CXX="$CXX $switch"
  5598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5599. /* end confdefs.h. */
  5600. // If the compiler admits that it is not ready for C++11, why torture it?
  5601. // Hopefully, this will speed up the test.
  5602. #ifndef __cplusplus
  5603. #error "This is not a C++ compiler"
  5604. #elif __cplusplus < 201103L
  5605. #error "This is not a C++11 compiler"
  5606. #else
  5607. namespace cxx11
  5608. {
  5609. namespace test_static_assert
  5610. {
  5611. template <typename T>
  5612. struct check
  5613. {
  5614. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5615. };
  5616. }
  5617. namespace test_final_override
  5618. {
  5619. struct Base
  5620. {
  5621. virtual ~Base() {}
  5622. virtual void f() {}
  5623. };
  5624. struct Derived : public Base
  5625. {
  5626. virtual ~Derived() override {}
  5627. virtual void f() override {}
  5628. };
  5629. }
  5630. namespace test_double_right_angle_brackets
  5631. {
  5632. template < typename T >
  5633. struct check {};
  5634. typedef check<void> single_type;
  5635. typedef check<check<void>> double_type;
  5636. typedef check<check<check<void>>> triple_type;
  5637. typedef check<check<check<check<void>>>> quadruple_type;
  5638. }
  5639. namespace test_decltype
  5640. {
  5641. int
  5642. f()
  5643. {
  5644. int a = 1;
  5645. decltype(a) b = 2;
  5646. return a + b;
  5647. }
  5648. }
  5649. namespace test_type_deduction
  5650. {
  5651. template < typename T1, typename T2 >
  5652. struct is_same
  5653. {
  5654. static const bool value = false;
  5655. };
  5656. template < typename T >
  5657. struct is_same<T, T>
  5658. {
  5659. static const bool value = true;
  5660. };
  5661. template < typename T1, typename T2 >
  5662. auto
  5663. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5664. {
  5665. return a1 + a2;
  5666. }
  5667. int
  5668. test(const int c, volatile int v)
  5669. {
  5670. static_assert(is_same<int, decltype(0)>::value == true, "");
  5671. static_assert(is_same<int, decltype(c)>::value == false, "");
  5672. static_assert(is_same<int, decltype(v)>::value == false, "");
  5673. auto ac = c;
  5674. auto av = v;
  5675. auto sumi = ac + av + 'x';
  5676. auto sumf = ac + av + 1.0;
  5677. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5678. static_assert(is_same<int, decltype(av)>::value == true, "");
  5679. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5680. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5681. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5682. return (sumf > 0.0) ? sumi : add(c, v);
  5683. }
  5684. }
  5685. namespace test_noexcept
  5686. {
  5687. int f() { return 0; }
  5688. int g() noexcept { return 0; }
  5689. static_assert(noexcept(f()) == false, "");
  5690. static_assert(noexcept(g()) == true, "");
  5691. }
  5692. namespace test_constexpr
  5693. {
  5694. template < typename CharT >
  5695. unsigned long constexpr
  5696. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5697. {
  5698. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5699. }
  5700. template < typename CharT >
  5701. unsigned long constexpr
  5702. strlen_c(const CharT *const s) noexcept
  5703. {
  5704. return strlen_c_r(s, 0UL);
  5705. }
  5706. static_assert(strlen_c("") == 0UL, "");
  5707. static_assert(strlen_c("1") == 1UL, "");
  5708. static_assert(strlen_c("example") == 7UL, "");
  5709. static_assert(strlen_c("another\0example") == 7UL, "");
  5710. }
  5711. namespace test_rvalue_references
  5712. {
  5713. template < int N >
  5714. struct answer
  5715. {
  5716. static constexpr int value = N;
  5717. };
  5718. answer<1> f(int&) { return answer<1>(); }
  5719. answer<2> f(const int&) { return answer<2>(); }
  5720. answer<3> f(int&&) { return answer<3>(); }
  5721. void
  5722. test()
  5723. {
  5724. int i = 0;
  5725. const int c = 0;
  5726. static_assert(decltype(f(i))::value == 1, "");
  5727. static_assert(decltype(f(c))::value == 2, "");
  5728. static_assert(decltype(f(0))::value == 3, "");
  5729. }
  5730. }
  5731. namespace test_uniform_initialization
  5732. {
  5733. struct test
  5734. {
  5735. static const int zero {};
  5736. static const int one {1};
  5737. };
  5738. static_assert(test::zero == 0, "");
  5739. static_assert(test::one == 1, "");
  5740. }
  5741. namespace test_lambdas
  5742. {
  5743. void
  5744. test1()
  5745. {
  5746. auto lambda1 = [](){};
  5747. auto lambda2 = lambda1;
  5748. lambda1();
  5749. lambda2();
  5750. }
  5751. int
  5752. test2()
  5753. {
  5754. auto a = [](int i, int j){ return i + j; }(1, 2);
  5755. auto b = []() -> int { return '0'; }();
  5756. auto c = [=](){ return a + b; }();
  5757. auto d = [&](){ return c; }();
  5758. auto e = [a, &b](int x) mutable {
  5759. const auto identity = [](int y){ return y; };
  5760. for (auto i = 0; i < a; ++i)
  5761. a += b--;
  5762. return x + identity(a + b);
  5763. }(0);
  5764. return a + b + c + d + e;
  5765. }
  5766. int
  5767. test3()
  5768. {
  5769. const auto nullary = [](){ return 0; };
  5770. const auto unary = [](int x){ return x; };
  5771. using nullary_t = decltype(nullary);
  5772. using unary_t = decltype(unary);
  5773. const auto higher1st = [](nullary_t f){ return f(); };
  5774. const auto higher2nd = [unary](nullary_t f1){
  5775. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  5776. };
  5777. return higher1st(nullary) + higher2nd(nullary)(unary);
  5778. }
  5779. }
  5780. namespace test_variadic_templates
  5781. {
  5782. template <int...>
  5783. struct sum;
  5784. template <int N0, int... N1toN>
  5785. struct sum<N0, N1toN...>
  5786. {
  5787. static constexpr auto value = N0 + sum<N1toN...>::value;
  5788. };
  5789. template <>
  5790. struct sum<>
  5791. {
  5792. static constexpr auto value = 0;
  5793. };
  5794. static_assert(sum<>::value == 0, "");
  5795. static_assert(sum<1>::value == 1, "");
  5796. static_assert(sum<23>::value == 23, "");
  5797. static_assert(sum<1, 2>::value == 3, "");
  5798. static_assert(sum<5, 5, 11>::value == 21, "");
  5799. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  5800. }
  5801. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  5802. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  5803. // because of this.
  5804. namespace test_template_alias_sfinae
  5805. {
  5806. struct foo {};
  5807. template<typename T>
  5808. using member = typename T::member_type;
  5809. template<typename T>
  5810. void func(...) {}
  5811. template<typename T>
  5812. void func(member<T>*) {}
  5813. void test();
  5814. void test() { func<foo>(0); }
  5815. }
  5816. } // namespace cxx11
  5817. #endif // __cplusplus >= 201103L
  5818. _ACEOF
  5819. if ac_fn_cxx_try_compile "$LINENO"; then :
  5820. eval $cachevar=yes
  5821. else
  5822. eval $cachevar=no
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5825. CXX="$ac_save_CXX"
  5826. fi
  5827. eval ac_res=\$$cachevar
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5829. $as_echo "$ac_res" >&6; }
  5830. if eval test x\$$cachevar = xyes; then
  5831. CXX="$CXX $switch"
  5832. if test -n "$CXXCPP" ; then
  5833. CXXCPP="$CXXCPP $switch"
  5834. fi
  5835. ac_success=yes
  5836. break
  5837. fi
  5838. done
  5839. fi
  5840. if test x$ac_success = xno; then
  5841. for alternative in ${ax_cxx_compile_alternatives}; do
  5842. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  5843. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  5845. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  5846. if eval \${$cachevar+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. ac_save_CXX="$CXX"
  5850. CXX="$CXX $switch"
  5851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5852. /* end confdefs.h. */
  5853. // If the compiler admits that it is not ready for C++11, why torture it?
  5854. // Hopefully, this will speed up the test.
  5855. #ifndef __cplusplus
  5856. #error "This is not a C++ compiler"
  5857. #elif __cplusplus < 201103L
  5858. #error "This is not a C++11 compiler"
  5859. #else
  5860. namespace cxx11
  5861. {
  5862. namespace test_static_assert
  5863. {
  5864. template <typename T>
  5865. struct check
  5866. {
  5867. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  5868. };
  5869. }
  5870. namespace test_final_override
  5871. {
  5872. struct Base
  5873. {
  5874. virtual ~Base() {}
  5875. virtual void f() {}
  5876. };
  5877. struct Derived : public Base
  5878. {
  5879. virtual ~Derived() override {}
  5880. virtual void f() override {}
  5881. };
  5882. }
  5883. namespace test_double_right_angle_brackets
  5884. {
  5885. template < typename T >
  5886. struct check {};
  5887. typedef check<void> single_type;
  5888. typedef check<check<void>> double_type;
  5889. typedef check<check<check<void>>> triple_type;
  5890. typedef check<check<check<check<void>>>> quadruple_type;
  5891. }
  5892. namespace test_decltype
  5893. {
  5894. int
  5895. f()
  5896. {
  5897. int a = 1;
  5898. decltype(a) b = 2;
  5899. return a + b;
  5900. }
  5901. }
  5902. namespace test_type_deduction
  5903. {
  5904. template < typename T1, typename T2 >
  5905. struct is_same
  5906. {
  5907. static const bool value = false;
  5908. };
  5909. template < typename T >
  5910. struct is_same<T, T>
  5911. {
  5912. static const bool value = true;
  5913. };
  5914. template < typename T1, typename T2 >
  5915. auto
  5916. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  5917. {
  5918. return a1 + a2;
  5919. }
  5920. int
  5921. test(const int c, volatile int v)
  5922. {
  5923. static_assert(is_same<int, decltype(0)>::value == true, "");
  5924. static_assert(is_same<int, decltype(c)>::value == false, "");
  5925. static_assert(is_same<int, decltype(v)>::value == false, "");
  5926. auto ac = c;
  5927. auto av = v;
  5928. auto sumi = ac + av + 'x';
  5929. auto sumf = ac + av + 1.0;
  5930. static_assert(is_same<int, decltype(ac)>::value == true, "");
  5931. static_assert(is_same<int, decltype(av)>::value == true, "");
  5932. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  5933. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  5934. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  5935. return (sumf > 0.0) ? sumi : add(c, v);
  5936. }
  5937. }
  5938. namespace test_noexcept
  5939. {
  5940. int f() { return 0; }
  5941. int g() noexcept { return 0; }
  5942. static_assert(noexcept(f()) == false, "");
  5943. static_assert(noexcept(g()) == true, "");
  5944. }
  5945. namespace test_constexpr
  5946. {
  5947. template < typename CharT >
  5948. unsigned long constexpr
  5949. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  5950. {
  5951. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  5952. }
  5953. template < typename CharT >
  5954. unsigned long constexpr
  5955. strlen_c(const CharT *const s) noexcept
  5956. {
  5957. return strlen_c_r(s, 0UL);
  5958. }
  5959. static_assert(strlen_c("") == 0UL, "");
  5960. static_assert(strlen_c("1") == 1UL, "");
  5961. static_assert(strlen_c("example") == 7UL, "");
  5962. static_assert(strlen_c("another\0example") == 7UL, "");
  5963. }
  5964. namespace test_rvalue_references
  5965. {
  5966. template < int N >
  5967. struct answer
  5968. {
  5969. static constexpr int value = N;
  5970. };
  5971. answer<1> f(int&) { return answer<1>(); }
  5972. answer<2> f(const int&) { return answer<2>(); }
  5973. answer<3> f(int&&) { return answer<3>(); }
  5974. void
  5975. test()
  5976. {
  5977. int i = 0;
  5978. const int c = 0;
  5979. static_assert(decltype(f(i))::value == 1, "");
  5980. static_assert(decltype(f(c))::value == 2, "");
  5981. static_assert(decltype(f(0))::value == 3, "");
  5982. }
  5983. }
  5984. namespace test_uniform_initialization
  5985. {
  5986. struct test
  5987. {
  5988. static const int zero {};
  5989. static const int one {1};
  5990. };
  5991. static_assert(test::zero == 0, "");
  5992. static_assert(test::one == 1, "");
  5993. }
  5994. namespace test_lambdas
  5995. {
  5996. void
  5997. test1()
  5998. {
  5999. auto lambda1 = [](){};
  6000. auto lambda2 = lambda1;
  6001. lambda1();
  6002. lambda2();
  6003. }
  6004. int
  6005. test2()
  6006. {
  6007. auto a = [](int i, int j){ return i + j; }(1, 2);
  6008. auto b = []() -> int { return '0'; }();
  6009. auto c = [=](){ return a + b; }();
  6010. auto d = [&](){ return c; }();
  6011. auto e = [a, &b](int x) mutable {
  6012. const auto identity = [](int y){ return y; };
  6013. for (auto i = 0; i < a; ++i)
  6014. a += b--;
  6015. return x + identity(a + b);
  6016. }(0);
  6017. return a + b + c + d + e;
  6018. }
  6019. int
  6020. test3()
  6021. {
  6022. const auto nullary = [](){ return 0; };
  6023. const auto unary = [](int x){ return x; };
  6024. using nullary_t = decltype(nullary);
  6025. using unary_t = decltype(unary);
  6026. const auto higher1st = [](nullary_t f){ return f(); };
  6027. const auto higher2nd = [unary](nullary_t f1){
  6028. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6029. };
  6030. return higher1st(nullary) + higher2nd(nullary)(unary);
  6031. }
  6032. }
  6033. namespace test_variadic_templates
  6034. {
  6035. template <int...>
  6036. struct sum;
  6037. template <int N0, int... N1toN>
  6038. struct sum<N0, N1toN...>
  6039. {
  6040. static constexpr auto value = N0 + sum<N1toN...>::value;
  6041. };
  6042. template <>
  6043. struct sum<>
  6044. {
  6045. static constexpr auto value = 0;
  6046. };
  6047. static_assert(sum<>::value == 0, "");
  6048. static_assert(sum<1>::value == 1, "");
  6049. static_assert(sum<23>::value == 23, "");
  6050. static_assert(sum<1, 2>::value == 3, "");
  6051. static_assert(sum<5, 5, 11>::value == 21, "");
  6052. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6053. }
  6054. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6055. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6056. // because of this.
  6057. namespace test_template_alias_sfinae
  6058. {
  6059. struct foo {};
  6060. template<typename T>
  6061. using member = typename T::member_type;
  6062. template<typename T>
  6063. void func(...) {}
  6064. template<typename T>
  6065. void func(member<T>*) {}
  6066. void test();
  6067. void test() { func<foo>(0); }
  6068. }
  6069. } // namespace cxx11
  6070. #endif // __cplusplus >= 201103L
  6071. _ACEOF
  6072. if ac_fn_cxx_try_compile "$LINENO"; then :
  6073. eval $cachevar=yes
  6074. else
  6075. eval $cachevar=no
  6076. fi
  6077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6078. CXX="$ac_save_CXX"
  6079. fi
  6080. eval ac_res=\$$cachevar
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6082. $as_echo "$ac_res" >&6; }
  6083. if eval test x\$$cachevar = xyes; then
  6084. CXX="$CXX $switch"
  6085. if test -n "$CXXCPP" ; then
  6086. CXXCPP="$CXXCPP $switch"
  6087. fi
  6088. ac_success=yes
  6089. break
  6090. fi
  6091. done
  6092. if test x$ac_success = xyes; then
  6093. break
  6094. fi
  6095. done
  6096. fi
  6097. ac_ext=c
  6098. ac_cpp='$CPP $CPPFLAGS'
  6099. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6100. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6101. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6102. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  6103. if test x$ac_success = xno; then
  6104. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  6105. fi
  6106. fi
  6107. if test x$ac_success = xno; then
  6108. HAVE_CXX11=0
  6109. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  6110. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  6111. else
  6112. HAVE_CXX11=1
  6113. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  6114. fi
  6115. if test "${build}" != "${host}"; then
  6116. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  6117. ac_ext=cpp
  6118. ac_cpp='$CXXCPP $CPPFLAGS'
  6119. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6120. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6121. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6122. ac_success=no
  6123. ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
  6124. ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
  6125. ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
  6126. CXX="$CXX_FOR_BUILD"
  6127. CXXFLAGS="$CXXFLAGS_FOR_BUILD"
  6128. CPPFLAGS="$CPPFLAGS_FOR_BUILD"
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  6130. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  6131. if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6135. /* end confdefs.h. */
  6136. // If the compiler admits that it is not ready for C++11, why torture it?
  6137. // Hopefully, this will speed up the test.
  6138. #ifndef __cplusplus
  6139. #error "This is not a C++ compiler"
  6140. #elif __cplusplus < 201103L
  6141. #error "This is not a C++11 compiler"
  6142. #else
  6143. namespace cxx11
  6144. {
  6145. namespace test_static_assert
  6146. {
  6147. template <typename T>
  6148. struct check
  6149. {
  6150. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6151. };
  6152. }
  6153. namespace test_final_override
  6154. {
  6155. struct Base
  6156. {
  6157. virtual ~Base() {}
  6158. virtual void f() {}
  6159. };
  6160. struct Derived : public Base
  6161. {
  6162. virtual ~Derived() override {}
  6163. virtual void f() override {}
  6164. };
  6165. }
  6166. namespace test_double_right_angle_brackets
  6167. {
  6168. template < typename T >
  6169. struct check {};
  6170. typedef check<void> single_type;
  6171. typedef check<check<void>> double_type;
  6172. typedef check<check<check<void>>> triple_type;
  6173. typedef check<check<check<check<void>>>> quadruple_type;
  6174. }
  6175. namespace test_decltype
  6176. {
  6177. int
  6178. f()
  6179. {
  6180. int a = 1;
  6181. decltype(a) b = 2;
  6182. return a + b;
  6183. }
  6184. }
  6185. namespace test_type_deduction
  6186. {
  6187. template < typename T1, typename T2 >
  6188. struct is_same
  6189. {
  6190. static const bool value = false;
  6191. };
  6192. template < typename T >
  6193. struct is_same<T, T>
  6194. {
  6195. static const bool value = true;
  6196. };
  6197. template < typename T1, typename T2 >
  6198. auto
  6199. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6200. {
  6201. return a1 + a2;
  6202. }
  6203. int
  6204. test(const int c, volatile int v)
  6205. {
  6206. static_assert(is_same<int, decltype(0)>::value == true, "");
  6207. static_assert(is_same<int, decltype(c)>::value == false, "");
  6208. static_assert(is_same<int, decltype(v)>::value == false, "");
  6209. auto ac = c;
  6210. auto av = v;
  6211. auto sumi = ac + av + 'x';
  6212. auto sumf = ac + av + 1.0;
  6213. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6214. static_assert(is_same<int, decltype(av)>::value == true, "");
  6215. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6216. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6217. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6218. return (sumf > 0.0) ? sumi : add(c, v);
  6219. }
  6220. }
  6221. namespace test_noexcept
  6222. {
  6223. int f() { return 0; }
  6224. int g() noexcept { return 0; }
  6225. static_assert(noexcept(f()) == false, "");
  6226. static_assert(noexcept(g()) == true, "");
  6227. }
  6228. namespace test_constexpr
  6229. {
  6230. template < typename CharT >
  6231. unsigned long constexpr
  6232. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6233. {
  6234. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6235. }
  6236. template < typename CharT >
  6237. unsigned long constexpr
  6238. strlen_c(const CharT *const s) noexcept
  6239. {
  6240. return strlen_c_r(s, 0UL);
  6241. }
  6242. static_assert(strlen_c("") == 0UL, "");
  6243. static_assert(strlen_c("1") == 1UL, "");
  6244. static_assert(strlen_c("example") == 7UL, "");
  6245. static_assert(strlen_c("another\0example") == 7UL, "");
  6246. }
  6247. namespace test_rvalue_references
  6248. {
  6249. template < int N >
  6250. struct answer
  6251. {
  6252. static constexpr int value = N;
  6253. };
  6254. answer<1> f(int&) { return answer<1>(); }
  6255. answer<2> f(const int&) { return answer<2>(); }
  6256. answer<3> f(int&&) { return answer<3>(); }
  6257. void
  6258. test()
  6259. {
  6260. int i = 0;
  6261. const int c = 0;
  6262. static_assert(decltype(f(i))::value == 1, "");
  6263. static_assert(decltype(f(c))::value == 2, "");
  6264. static_assert(decltype(f(0))::value == 3, "");
  6265. }
  6266. }
  6267. namespace test_uniform_initialization
  6268. {
  6269. struct test
  6270. {
  6271. static const int zero {};
  6272. static const int one {1};
  6273. };
  6274. static_assert(test::zero == 0, "");
  6275. static_assert(test::one == 1, "");
  6276. }
  6277. namespace test_lambdas
  6278. {
  6279. void
  6280. test1()
  6281. {
  6282. auto lambda1 = [](){};
  6283. auto lambda2 = lambda1;
  6284. lambda1();
  6285. lambda2();
  6286. }
  6287. int
  6288. test2()
  6289. {
  6290. auto a = [](int i, int j){ return i + j; }(1, 2);
  6291. auto b = []() -> int { return '0'; }();
  6292. auto c = [=](){ return a + b; }();
  6293. auto d = [&](){ return c; }();
  6294. auto e = [a, &b](int x) mutable {
  6295. const auto identity = [](int y){ return y; };
  6296. for (auto i = 0; i < a; ++i)
  6297. a += b--;
  6298. return x + identity(a + b);
  6299. }(0);
  6300. return a + b + c + d + e;
  6301. }
  6302. int
  6303. test3()
  6304. {
  6305. const auto nullary = [](){ return 0; };
  6306. const auto unary = [](int x){ return x; };
  6307. using nullary_t = decltype(nullary);
  6308. using unary_t = decltype(unary);
  6309. const auto higher1st = [](nullary_t f){ return f(); };
  6310. const auto higher2nd = [unary](nullary_t f1){
  6311. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6312. };
  6313. return higher1st(nullary) + higher2nd(nullary)(unary);
  6314. }
  6315. }
  6316. namespace test_variadic_templates
  6317. {
  6318. template <int...>
  6319. struct sum;
  6320. template <int N0, int... N1toN>
  6321. struct sum<N0, N1toN...>
  6322. {
  6323. static constexpr auto value = N0 + sum<N1toN...>::value;
  6324. };
  6325. template <>
  6326. struct sum<>
  6327. {
  6328. static constexpr auto value = 0;
  6329. };
  6330. static_assert(sum<>::value == 0, "");
  6331. static_assert(sum<1>::value == 1, "");
  6332. static_assert(sum<23>::value == 23, "");
  6333. static_assert(sum<1, 2>::value == 3, "");
  6334. static_assert(sum<5, 5, 11>::value == 21, "");
  6335. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6336. }
  6337. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6338. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6339. // because of this.
  6340. namespace test_template_alias_sfinae
  6341. {
  6342. struct foo {};
  6343. template<typename T>
  6344. using member = typename T::member_type;
  6345. template<typename T>
  6346. void func(...) {}
  6347. template<typename T>
  6348. void func(member<T>*) {}
  6349. void test();
  6350. void test() { func<foo>(0); }
  6351. }
  6352. } // namespace cxx11
  6353. #endif // __cplusplus >= 201103L
  6354. _ACEOF
  6355. if ac_fn_cxx_try_compile "$LINENO"; then :
  6356. ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
  6357. else
  6358. ax_cv_cxx_compile_cxx11_FOR_BUILD=no
  6359. fi
  6360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6361. fi
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
  6363. $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
  6364. if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
  6365. ac_success=yes
  6366. fi
  6367. if test x$ac_success = xno; then
  6368. for alternative in ${ax_cxx_compile_alternatives}; do
  6369. switch="-std=gnu++${alternative}"
  6370. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  6372. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  6373. if eval \${$cachevar+:} false; then :
  6374. $as_echo_n "(cached) " >&6
  6375. else
  6376. ac_save_CXX="$CXX"
  6377. CXX="$CXX $switch"
  6378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6379. /* end confdefs.h. */
  6380. // If the compiler admits that it is not ready for C++11, why torture it?
  6381. // Hopefully, this will speed up the test.
  6382. #ifndef __cplusplus
  6383. #error "This is not a C++ compiler"
  6384. #elif __cplusplus < 201103L
  6385. #error "This is not a C++11 compiler"
  6386. #else
  6387. namespace cxx11
  6388. {
  6389. namespace test_static_assert
  6390. {
  6391. template <typename T>
  6392. struct check
  6393. {
  6394. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6395. };
  6396. }
  6397. namespace test_final_override
  6398. {
  6399. struct Base
  6400. {
  6401. virtual ~Base() {}
  6402. virtual void f() {}
  6403. };
  6404. struct Derived : public Base
  6405. {
  6406. virtual ~Derived() override {}
  6407. virtual void f() override {}
  6408. };
  6409. }
  6410. namespace test_double_right_angle_brackets
  6411. {
  6412. template < typename T >
  6413. struct check {};
  6414. typedef check<void> single_type;
  6415. typedef check<check<void>> double_type;
  6416. typedef check<check<check<void>>> triple_type;
  6417. typedef check<check<check<check<void>>>> quadruple_type;
  6418. }
  6419. namespace test_decltype
  6420. {
  6421. int
  6422. f()
  6423. {
  6424. int a = 1;
  6425. decltype(a) b = 2;
  6426. return a + b;
  6427. }
  6428. }
  6429. namespace test_type_deduction
  6430. {
  6431. template < typename T1, typename T2 >
  6432. struct is_same
  6433. {
  6434. static const bool value = false;
  6435. };
  6436. template < typename T >
  6437. struct is_same<T, T>
  6438. {
  6439. static const bool value = true;
  6440. };
  6441. template < typename T1, typename T2 >
  6442. auto
  6443. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6444. {
  6445. return a1 + a2;
  6446. }
  6447. int
  6448. test(const int c, volatile int v)
  6449. {
  6450. static_assert(is_same<int, decltype(0)>::value == true, "");
  6451. static_assert(is_same<int, decltype(c)>::value == false, "");
  6452. static_assert(is_same<int, decltype(v)>::value == false, "");
  6453. auto ac = c;
  6454. auto av = v;
  6455. auto sumi = ac + av + 'x';
  6456. auto sumf = ac + av + 1.0;
  6457. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6458. static_assert(is_same<int, decltype(av)>::value == true, "");
  6459. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6460. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6461. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6462. return (sumf > 0.0) ? sumi : add(c, v);
  6463. }
  6464. }
  6465. namespace test_noexcept
  6466. {
  6467. int f() { return 0; }
  6468. int g() noexcept { return 0; }
  6469. static_assert(noexcept(f()) == false, "");
  6470. static_assert(noexcept(g()) == true, "");
  6471. }
  6472. namespace test_constexpr
  6473. {
  6474. template < typename CharT >
  6475. unsigned long constexpr
  6476. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6477. {
  6478. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6479. }
  6480. template < typename CharT >
  6481. unsigned long constexpr
  6482. strlen_c(const CharT *const s) noexcept
  6483. {
  6484. return strlen_c_r(s, 0UL);
  6485. }
  6486. static_assert(strlen_c("") == 0UL, "");
  6487. static_assert(strlen_c("1") == 1UL, "");
  6488. static_assert(strlen_c("example") == 7UL, "");
  6489. static_assert(strlen_c("another\0example") == 7UL, "");
  6490. }
  6491. namespace test_rvalue_references
  6492. {
  6493. template < int N >
  6494. struct answer
  6495. {
  6496. static constexpr int value = N;
  6497. };
  6498. answer<1> f(int&) { return answer<1>(); }
  6499. answer<2> f(const int&) { return answer<2>(); }
  6500. answer<3> f(int&&) { return answer<3>(); }
  6501. void
  6502. test()
  6503. {
  6504. int i = 0;
  6505. const int c = 0;
  6506. static_assert(decltype(f(i))::value == 1, "");
  6507. static_assert(decltype(f(c))::value == 2, "");
  6508. static_assert(decltype(f(0))::value == 3, "");
  6509. }
  6510. }
  6511. namespace test_uniform_initialization
  6512. {
  6513. struct test
  6514. {
  6515. static const int zero {};
  6516. static const int one {1};
  6517. };
  6518. static_assert(test::zero == 0, "");
  6519. static_assert(test::one == 1, "");
  6520. }
  6521. namespace test_lambdas
  6522. {
  6523. void
  6524. test1()
  6525. {
  6526. auto lambda1 = [](){};
  6527. auto lambda2 = lambda1;
  6528. lambda1();
  6529. lambda2();
  6530. }
  6531. int
  6532. test2()
  6533. {
  6534. auto a = [](int i, int j){ return i + j; }(1, 2);
  6535. auto b = []() -> int { return '0'; }();
  6536. auto c = [=](){ return a + b; }();
  6537. auto d = [&](){ return c; }();
  6538. auto e = [a, &b](int x) mutable {
  6539. const auto identity = [](int y){ return y; };
  6540. for (auto i = 0; i < a; ++i)
  6541. a += b--;
  6542. return x + identity(a + b);
  6543. }(0);
  6544. return a + b + c + d + e;
  6545. }
  6546. int
  6547. test3()
  6548. {
  6549. const auto nullary = [](){ return 0; };
  6550. const auto unary = [](int x){ return x; };
  6551. using nullary_t = decltype(nullary);
  6552. using unary_t = decltype(unary);
  6553. const auto higher1st = [](nullary_t f){ return f(); };
  6554. const auto higher2nd = [unary](nullary_t f1){
  6555. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6556. };
  6557. return higher1st(nullary) + higher2nd(nullary)(unary);
  6558. }
  6559. }
  6560. namespace test_variadic_templates
  6561. {
  6562. template <int...>
  6563. struct sum;
  6564. template <int N0, int... N1toN>
  6565. struct sum<N0, N1toN...>
  6566. {
  6567. static constexpr auto value = N0 + sum<N1toN...>::value;
  6568. };
  6569. template <>
  6570. struct sum<>
  6571. {
  6572. static constexpr auto value = 0;
  6573. };
  6574. static_assert(sum<>::value == 0, "");
  6575. static_assert(sum<1>::value == 1, "");
  6576. static_assert(sum<23>::value == 23, "");
  6577. static_assert(sum<1, 2>::value == 3, "");
  6578. static_assert(sum<5, 5, 11>::value == 21, "");
  6579. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6580. }
  6581. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6582. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6583. // because of this.
  6584. namespace test_template_alias_sfinae
  6585. {
  6586. struct foo {};
  6587. template<typename T>
  6588. using member = typename T::member_type;
  6589. template<typename T>
  6590. void func(...) {}
  6591. template<typename T>
  6592. void func(member<T>*) {}
  6593. void test();
  6594. void test() { func<foo>(0); }
  6595. }
  6596. } // namespace cxx11
  6597. #endif // __cplusplus >= 201103L
  6598. _ACEOF
  6599. if ac_fn_cxx_try_compile "$LINENO"; then :
  6600. eval $cachevar=yes
  6601. else
  6602. eval $cachevar=no
  6603. fi
  6604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6605. CXX="$ac_save_CXX"
  6606. fi
  6607. eval ac_res=\$$cachevar
  6608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6609. $as_echo "$ac_res" >&6; }
  6610. if eval test x\$$cachevar = xyes; then
  6611. CXX="$CXX $switch"
  6612. if test -n "$CXXCPP" ; then
  6613. CXXCPP="$CXXCPP $switch"
  6614. fi
  6615. ac_success=yes
  6616. break
  6617. fi
  6618. done
  6619. fi
  6620. if test x$ac_success = xno; then
  6621. for alternative in ${ax_cxx_compile_alternatives}; do
  6622. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  6623. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  6625. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  6626. if eval \${$cachevar+:} false; then :
  6627. $as_echo_n "(cached) " >&6
  6628. else
  6629. ac_save_CXX="$CXX"
  6630. CXX="$CXX $switch"
  6631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6632. /* end confdefs.h. */
  6633. // If the compiler admits that it is not ready for C++11, why torture it?
  6634. // Hopefully, this will speed up the test.
  6635. #ifndef __cplusplus
  6636. #error "This is not a C++ compiler"
  6637. #elif __cplusplus < 201103L
  6638. #error "This is not a C++11 compiler"
  6639. #else
  6640. namespace cxx11
  6641. {
  6642. namespace test_static_assert
  6643. {
  6644. template <typename T>
  6645. struct check
  6646. {
  6647. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6648. };
  6649. }
  6650. namespace test_final_override
  6651. {
  6652. struct Base
  6653. {
  6654. virtual ~Base() {}
  6655. virtual void f() {}
  6656. };
  6657. struct Derived : public Base
  6658. {
  6659. virtual ~Derived() override {}
  6660. virtual void f() override {}
  6661. };
  6662. }
  6663. namespace test_double_right_angle_brackets
  6664. {
  6665. template < typename T >
  6666. struct check {};
  6667. typedef check<void> single_type;
  6668. typedef check<check<void>> double_type;
  6669. typedef check<check<check<void>>> triple_type;
  6670. typedef check<check<check<check<void>>>> quadruple_type;
  6671. }
  6672. namespace test_decltype
  6673. {
  6674. int
  6675. f()
  6676. {
  6677. int a = 1;
  6678. decltype(a) b = 2;
  6679. return a + b;
  6680. }
  6681. }
  6682. namespace test_type_deduction
  6683. {
  6684. template < typename T1, typename T2 >
  6685. struct is_same
  6686. {
  6687. static const bool value = false;
  6688. };
  6689. template < typename T >
  6690. struct is_same<T, T>
  6691. {
  6692. static const bool value = true;
  6693. };
  6694. template < typename T1, typename T2 >
  6695. auto
  6696. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6697. {
  6698. return a1 + a2;
  6699. }
  6700. int
  6701. test(const int c, volatile int v)
  6702. {
  6703. static_assert(is_same<int, decltype(0)>::value == true, "");
  6704. static_assert(is_same<int, decltype(c)>::value == false, "");
  6705. static_assert(is_same<int, decltype(v)>::value == false, "");
  6706. auto ac = c;
  6707. auto av = v;
  6708. auto sumi = ac + av + 'x';
  6709. auto sumf = ac + av + 1.0;
  6710. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6711. static_assert(is_same<int, decltype(av)>::value == true, "");
  6712. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6713. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6714. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6715. return (sumf > 0.0) ? sumi : add(c, v);
  6716. }
  6717. }
  6718. namespace test_noexcept
  6719. {
  6720. int f() { return 0; }
  6721. int g() noexcept { return 0; }
  6722. static_assert(noexcept(f()) == false, "");
  6723. static_assert(noexcept(g()) == true, "");
  6724. }
  6725. namespace test_constexpr
  6726. {
  6727. template < typename CharT >
  6728. unsigned long constexpr
  6729. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6730. {
  6731. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6732. }
  6733. template < typename CharT >
  6734. unsigned long constexpr
  6735. strlen_c(const CharT *const s) noexcept
  6736. {
  6737. return strlen_c_r(s, 0UL);
  6738. }
  6739. static_assert(strlen_c("") == 0UL, "");
  6740. static_assert(strlen_c("1") == 1UL, "");
  6741. static_assert(strlen_c("example") == 7UL, "");
  6742. static_assert(strlen_c("another\0example") == 7UL, "");
  6743. }
  6744. namespace test_rvalue_references
  6745. {
  6746. template < int N >
  6747. struct answer
  6748. {
  6749. static constexpr int value = N;
  6750. };
  6751. answer<1> f(int&) { return answer<1>(); }
  6752. answer<2> f(const int&) { return answer<2>(); }
  6753. answer<3> f(int&&) { return answer<3>(); }
  6754. void
  6755. test()
  6756. {
  6757. int i = 0;
  6758. const int c = 0;
  6759. static_assert(decltype(f(i))::value == 1, "");
  6760. static_assert(decltype(f(c))::value == 2, "");
  6761. static_assert(decltype(f(0))::value == 3, "");
  6762. }
  6763. }
  6764. namespace test_uniform_initialization
  6765. {
  6766. struct test
  6767. {
  6768. static const int zero {};
  6769. static const int one {1};
  6770. };
  6771. static_assert(test::zero == 0, "");
  6772. static_assert(test::one == 1, "");
  6773. }
  6774. namespace test_lambdas
  6775. {
  6776. void
  6777. test1()
  6778. {
  6779. auto lambda1 = [](){};
  6780. auto lambda2 = lambda1;
  6781. lambda1();
  6782. lambda2();
  6783. }
  6784. int
  6785. test2()
  6786. {
  6787. auto a = [](int i, int j){ return i + j; }(1, 2);
  6788. auto b = []() -> int { return '0'; }();
  6789. auto c = [=](){ return a + b; }();
  6790. auto d = [&](){ return c; }();
  6791. auto e = [a, &b](int x) mutable {
  6792. const auto identity = [](int y){ return y; };
  6793. for (auto i = 0; i < a; ++i)
  6794. a += b--;
  6795. return x + identity(a + b);
  6796. }(0);
  6797. return a + b + c + d + e;
  6798. }
  6799. int
  6800. test3()
  6801. {
  6802. const auto nullary = [](){ return 0; };
  6803. const auto unary = [](int x){ return x; };
  6804. using nullary_t = decltype(nullary);
  6805. using unary_t = decltype(unary);
  6806. const auto higher1st = [](nullary_t f){ return f(); };
  6807. const auto higher2nd = [unary](nullary_t f1){
  6808. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6809. };
  6810. return higher1st(nullary) + higher2nd(nullary)(unary);
  6811. }
  6812. }
  6813. namespace test_variadic_templates
  6814. {
  6815. template <int...>
  6816. struct sum;
  6817. template <int N0, int... N1toN>
  6818. struct sum<N0, N1toN...>
  6819. {
  6820. static constexpr auto value = N0 + sum<N1toN...>::value;
  6821. };
  6822. template <>
  6823. struct sum<>
  6824. {
  6825. static constexpr auto value = 0;
  6826. };
  6827. static_assert(sum<>::value == 0, "");
  6828. static_assert(sum<1>::value == 1, "");
  6829. static_assert(sum<23>::value == 23, "");
  6830. static_assert(sum<1, 2>::value == 3, "");
  6831. static_assert(sum<5, 5, 11>::value == 21, "");
  6832. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6833. }
  6834. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6835. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6836. // because of this.
  6837. namespace test_template_alias_sfinae
  6838. {
  6839. struct foo {};
  6840. template<typename T>
  6841. using member = typename T::member_type;
  6842. template<typename T>
  6843. void func(...) {}
  6844. template<typename T>
  6845. void func(member<T>*) {}
  6846. void test();
  6847. void test() { func<foo>(0); }
  6848. }
  6849. } // namespace cxx11
  6850. #endif // __cplusplus >= 201103L
  6851. _ACEOF
  6852. if ac_fn_cxx_try_compile "$LINENO"; then :
  6853. eval $cachevar=yes
  6854. else
  6855. eval $cachevar=no
  6856. fi
  6857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6858. CXX="$ac_save_CXX"
  6859. fi
  6860. eval ac_res=\$$cachevar
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6862. $as_echo "$ac_res" >&6; }
  6863. if eval test x\$$cachevar = xyes; then
  6864. CXX="$CXX $switch"
  6865. if test -n "$CXXCPP" ; then
  6866. CXXCPP="$CXXCPP $switch"
  6867. fi
  6868. ac_success=yes
  6869. break
  6870. fi
  6871. done
  6872. if test x$ac_success = xyes; then
  6873. break
  6874. fi
  6875. done
  6876. fi
  6877. CXX_FOR_BUILD="$CXX"
  6878. CXXFLAGS_FOR_BUILD="$CXXFLAGS"
  6879. CPPFLAGS_FOR_BUILD="$CPPFLAGS"
  6880. CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
  6881. CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
  6882. CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
  6883. ac_ext=c
  6884. ac_cpp='$CPP $CPPFLAGS'
  6885. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6886. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6887. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6888. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  6889. if test x$ac_success = xno; then
  6890. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  6891. fi
  6892. fi
  6893. if test x$ac_success = xno; then
  6894. HAVE_CXX11_FOR_BUILD=0
  6895. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  6896. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  6897. else
  6898. HAVE_CXX11_FOR_BUILD=1
  6899. $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
  6900. fi
  6901. fi
  6902. fi
  6903. # Check whether --enable-pgo-build was given.
  6904. if test "${enable_pgo_build+set}" = set; then :
  6905. enableval=$enable_pgo_build; enable_pgo_build=$enableval
  6906. else
  6907. enable_pgo_build=no
  6908. fi
  6909. # Issue errors and warnings for invalid/strange PGO build combinations.
  6910. case "$have_compiler:$host:$target:$enable_pgo_build" in
  6911. *:*:*:no) ;;
  6912. # Allow the PGO build only if we aren't building a compiler and
  6913. # we are in a native configuration.
  6914. no:$build:$build:yes | no:$build:$build:lto) ;;
  6915. # Disallow the PGO bootstrap if we are building a compiler.
  6916. yes:*:*:yes | yes:*:*:lto)
  6917. as_fn_error $? "cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
  6918. *)
  6919. as_fn_error $? "invalid option for --enable-pgo-build" "$LINENO" 5
  6920. ;;
  6921. esac
  6922. if test "$enable_pgo_build" != "no"; then
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
  6924. $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
  6925. old_CFLAGS="$CFLAGS"
  6926. PGO_BUILD_GEN_CFLAGS="-fprofile-generate"
  6927. CFLAGS="$CFLAGS $PGO_BUILD_CFLAGS"
  6928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6929. /* end confdefs.h. */
  6930. int foo;
  6931. _ACEOF
  6932. if ac_fn_c_try_compile "$LINENO"; then :
  6933. else
  6934. PGO_BUILD_GEN_CFLAGS=
  6935. fi
  6936. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6937. CFLAGS="$old_CFLAGS"
  6938. if test -n "$PGO_BUILD_GEN_CFLAGS"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6940. $as_echo "yes" >&6; }
  6941. PGO_BUILD_USE_CFLAGS="-fprofile-use"
  6942. else
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6944. $as_echo "no" >&6; }
  6945. as_fn_error $? "cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
  6946. fi
  6947. if test "$enable_pgo_build" = "lto"; then
  6948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
  6949. $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
  6950. old_CFLAGS="$CFLAGS"
  6951. PGO_BUILD_LTO_CFLAGS="-flto=jobserver -ffat-lto-objects"
  6952. CFLAGS="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
  6953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6954. /* end confdefs.h. */
  6955. int foo;
  6956. _ACEOF
  6957. if ac_fn_c_try_compile "$LINENO"; then :
  6958. else
  6959. PGO_BUILD_LTO_CFLAGS=
  6960. fi
  6961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6962. CFLAGS="$old_CFLAGS"
  6963. if test -n "$PGO_BUILD_LTO_CFLAGS"; then
  6964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6965. $as_echo "yes" >&6; }
  6966. else
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6968. $as_echo "no" >&6; }
  6969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
  6970. $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
  6971. fi
  6972. fi
  6973. fi
  6974. # Used for setting $lt_cv_objdir
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6976. $as_echo_n "checking for objdir... " >&6; }
  6977. if ${lt_cv_objdir+:} false; then :
  6978. $as_echo_n "(cached) " >&6
  6979. else
  6980. rm -f .libs 2>/dev/null
  6981. mkdir .libs 2>/dev/null
  6982. if test -d .libs; then
  6983. lt_cv_objdir=.libs
  6984. else
  6985. # MS-DOS does not allow filenames that begin with a dot.
  6986. lt_cv_objdir=_libs
  6987. fi
  6988. rmdir .libs 2>/dev/null
  6989. fi
  6990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6991. $as_echo "$lt_cv_objdir" >&6; }
  6992. objdir=$lt_cv_objdir
  6993. cat >>confdefs.h <<_ACEOF
  6994. #define LT_OBJDIR "$lt_cv_objdir/"
  6995. _ACEOF
  6996. # Check for GMP, MPFR and MPC
  6997. gmplibs="-lmpc -lmpfr -lgmp"
  6998. gmpinc=
  6999. have_gmp=no
  7000. # Specify a location for mpc
  7001. # check for this first so it ends up on the link line before mpfr.
  7002. # Check whether --with-mpc was given.
  7003. if test "${with_mpc+set}" = set; then :
  7004. withval=$with_mpc;
  7005. fi
  7006. # Check whether --with-mpc-include was given.
  7007. if test "${with_mpc_include+set}" = set; then :
  7008. withval=$with_mpc_include;
  7009. fi
  7010. # Check whether --with-mpc-lib was given.
  7011. if test "${with_mpc_lib+set}" = set; then :
  7012. withval=$with_mpc_lib;
  7013. fi
  7014. if test "x$with_mpc" != x; then
  7015. gmplibs="-L$with_mpc/lib $gmplibs"
  7016. gmpinc="-I$with_mpc/include $gmpinc"
  7017. fi
  7018. if test "x$with_mpc_include" != x; then
  7019. gmpinc="-I$with_mpc_include $gmpinc"
  7020. fi
  7021. if test "x$with_mpc_lib" != x; then
  7022. gmplibs="-L$with_mpc_lib $gmplibs"
  7023. fi
  7024. if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
  7025. gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
  7026. gmpinc='-I$$s/mpc/src '"$gmpinc"
  7027. # Do not test the mpc version. Assume that it is sufficient, since
  7028. # it is in the source tree, and the library has not been built yet
  7029. # but it would be included on the link line in the version check below
  7030. # hence making the test fail.
  7031. have_gmp=yes
  7032. fi
  7033. # Specify a location for mpfr
  7034. # check for this first so it ends up on the link line before gmp.
  7035. # Check whether --with-mpfr was given.
  7036. if test "${with_mpfr+set}" = set; then :
  7037. withval=$with_mpfr;
  7038. fi
  7039. # Check whether --with-mpfr-include was given.
  7040. if test "${with_mpfr_include+set}" = set; then :
  7041. withval=$with_mpfr_include;
  7042. fi
  7043. # Check whether --with-mpfr-lib was given.
  7044. if test "${with_mpfr_lib+set}" = set; then :
  7045. withval=$with_mpfr_lib;
  7046. fi
  7047. if test "x$with_mpfr" != x; then
  7048. gmplibs="-L$with_mpfr/lib $gmplibs"
  7049. gmpinc="-I$with_mpfr/include $gmpinc"
  7050. fi
  7051. if test "x$with_mpfr_include" != x; then
  7052. gmpinc="-I$with_mpfr_include $gmpinc"
  7053. fi
  7054. if test "x$with_mpfr_lib" != x; then
  7055. gmplibs="-L$with_mpfr_lib $gmplibs"
  7056. fi
  7057. if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
  7058. # MPFR v3.1.0 moved the sources into a src sub-directory.
  7059. if ! test -d ${srcdir}/mpfr/src; then
  7060. as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
  7061. fi
  7062. gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
  7063. gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
  7064. extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
  7065. # Do not test the mpfr version. Assume that it is sufficient, since
  7066. # it is in the source tree, and the library has not been built yet
  7067. # but it would be included on the link line in the version check below
  7068. # hence making the test fail.
  7069. have_gmp=yes
  7070. fi
  7071. # Specify a location for gmp
  7072. # Check whether --with-gmp was given.
  7073. if test "${with_gmp+set}" = set; then :
  7074. withval=$with_gmp;
  7075. fi
  7076. # Check whether --with-gmp-include was given.
  7077. if test "${with_gmp_include+set}" = set; then :
  7078. withval=$with_gmp_include;
  7079. fi
  7080. # Check whether --with-gmp-lib was given.
  7081. if test "${with_gmp_lib+set}" = set; then :
  7082. withval=$with_gmp_lib;
  7083. fi
  7084. if test "x$with_gmp" != x; then
  7085. gmplibs="-L$with_gmp/lib $gmplibs"
  7086. gmpinc="-I$with_gmp/include $gmpinc"
  7087. fi
  7088. if test "x$with_gmp_include" != x; then
  7089. gmpinc="-I$with_gmp_include $gmpinc"
  7090. fi
  7091. if test "x$with_gmp_lib" != x; then
  7092. gmplibs="-L$with_gmp_lib $gmplibs"
  7093. fi
  7094. if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
  7095. gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
  7096. gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
  7097. extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  7098. extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
  7099. extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
  7100. # Do not test the gmp version. Assume that it is sufficient, since
  7101. # it is in the source tree, and the library has not been built yet
  7102. # but it would be included on the link line in the version check below
  7103. # hence making the test fail.
  7104. have_gmp=yes
  7105. fi
  7106. if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
  7107. have_gmp=yes
  7108. saved_CFLAGS="$CFLAGS"
  7109. CFLAGS="$CFLAGS $gmpinc"
  7110. # Check for the recommended and required versions of GMP.
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
  7112. $as_echo_n "checking for the correct version of gmp.h... " >&6; }
  7113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7114. /* end confdefs.h. */
  7115. #include "gmp.h"
  7116. int
  7117. main ()
  7118. {
  7119. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  7120. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  7121. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
  7122. choke me
  7123. #endif
  7124. ;
  7125. return 0;
  7126. }
  7127. _ACEOF
  7128. if ac_fn_c_try_compile "$LINENO"; then :
  7129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7130. /* end confdefs.h. */
  7131. #include <gmp.h>
  7132. int
  7133. main ()
  7134. {
  7135. #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
  7136. #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
  7137. #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
  7138. choke me
  7139. #endif
  7140. ;
  7141. return 0;
  7142. }
  7143. _ACEOF
  7144. if ac_fn_c_try_compile "$LINENO"; then :
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7146. $as_echo "yes" >&6; }
  7147. else
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  7149. $as_echo "buggy but acceptable" >&6; }
  7150. fi
  7151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7152. else
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7154. $as_echo "no" >&6; }; have_gmp=no
  7155. fi
  7156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7157. # If we have GMP, check the MPFR version.
  7158. if test x"$have_gmp" = xyes; then
  7159. # Check for the recommended and required versions of MPFR.
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
  7161. $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
  7162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7163. /* end confdefs.h. */
  7164. #include <gmp.h>
  7165. #include <mpfr.h>
  7166. int
  7167. main ()
  7168. {
  7169. #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
  7170. choke me
  7171. #endif
  7172. ;
  7173. return 0;
  7174. }
  7175. _ACEOF
  7176. if ac_fn_c_try_compile "$LINENO"; then :
  7177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7178. /* end confdefs.h. */
  7179. #include <gmp.h>
  7180. #include <mpfr.h>
  7181. int
  7182. main ()
  7183. {
  7184. #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
  7185. choke me
  7186. #endif
  7187. ;
  7188. return 0;
  7189. }
  7190. _ACEOF
  7191. if ac_fn_c_try_compile "$LINENO"; then :
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7193. $as_echo "yes" >&6; }
  7194. else
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  7196. $as_echo "buggy but acceptable" >&6; }
  7197. fi
  7198. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7199. else
  7200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7201. $as_echo "no" >&6; }; have_gmp=no
  7202. fi
  7203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7204. fi
  7205. # Check for the MPC header version.
  7206. if test x"$have_gmp" = xyes ; then
  7207. # Check for the recommended and required versions of MPC.
  7208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
  7209. $as_echo_n "checking for the correct version of mpc.h... " >&6; }
  7210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7211. /* end confdefs.h. */
  7212. #include <mpc.h>
  7213. int
  7214. main ()
  7215. {
  7216. #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
  7217. choke me
  7218. #endif
  7219. ;
  7220. return 0;
  7221. }
  7222. _ACEOF
  7223. if ac_fn_c_try_compile "$LINENO"; then :
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. #include <mpc.h>
  7227. int
  7228. main ()
  7229. {
  7230. #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
  7231. choke me
  7232. #endif
  7233. ;
  7234. return 0;
  7235. }
  7236. _ACEOF
  7237. if ac_fn_c_try_compile "$LINENO"; then :
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7239. $as_echo "yes" >&6; }
  7240. else
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
  7242. $as_echo "buggy but acceptable" >&6; }
  7243. fi
  7244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7245. else
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7247. $as_echo "no" >&6; }; have_gmp=no
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7250. fi
  7251. # Now check the MPFR library.
  7252. if test x"$have_gmp" = xyes; then
  7253. saved_LIBS="$LIBS"
  7254. LIBS="$LIBS $gmplibs"
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
  7256. $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
  7257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7258. /* end confdefs.h. */
  7259. #include <mpc.h>
  7260. int
  7261. main ()
  7262. {
  7263. mpfr_t n;
  7264. mpfr_t x;
  7265. mpc_t c;
  7266. int t;
  7267. mpfr_init (n);
  7268. mpfr_init (x);
  7269. mpfr_atan2 (n, n, x, MPFR_RNDN);
  7270. mpfr_erfc (n, x, MPFR_RNDN);
  7271. mpfr_subnormalize (x, t, MPFR_RNDN);
  7272. mpfr_clear(n);
  7273. mpfr_clear(x);
  7274. mpc_init2 (c, 53);
  7275. mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
  7276. mpc_cosh (c, c, MPC_RNDNN);
  7277. mpc_pow (c, c, c, MPC_RNDNN);
  7278. mpc_acosh (c, c, MPC_RNDNN);
  7279. mpc_clear (c);
  7280. ;
  7281. return 0;
  7282. }
  7283. _ACEOF
  7284. if ac_fn_c_try_link "$LINENO"; then :
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7286. $as_echo "yes" >&6; }
  7287. else
  7288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7289. $as_echo "no" >&6; }; have_gmp=no
  7290. fi
  7291. rm -f core conftest.err conftest.$ac_objext \
  7292. conftest$ac_exeext conftest.$ac_ext
  7293. LIBS="$saved_LIBS"
  7294. fi
  7295. CFLAGS="$saved_CFLAGS"
  7296. # The library versions listed in the error message below should match
  7297. # the HARD-minimums enforced above.
  7298. if test x$have_gmp != xyes; then
  7299. as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
  7300. Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
  7301. their locations. Source code for these libraries can be found at
  7302. their respective hosting sites as well as at
  7303. https://gcc.gnu.org/pub/gcc/infrastructure/. See also
  7304. http://gcc.gnu.org/install/prerequisites.html for additional info. If
  7305. you obtained GMP, MPFR and/or MPC from a vendor distribution package,
  7306. make sure that you have installed both the libraries and the header
  7307. files. They may be located in separate packages." "$LINENO" 5
  7308. fi
  7309. fi
  7310. # Flags needed for both GMP, MPFR and/or MPC.
  7311. # Libraries to use for stage1 or when not bootstrapping.
  7312. # Check whether --with-stage1-libs was given.
  7313. if test "${with_stage1_libs+set}" = set; then :
  7314. withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  7315. stage1_libs=
  7316. else
  7317. stage1_libs=$withval
  7318. fi
  7319. else
  7320. stage1_libs=
  7321. fi
  7322. # Whether or not to use -static-libstdc++ and -static-libgcc. The
  7323. # default is yes if gcc is being built; no otherwise. The reason for
  7324. # this default is that gdb is sometimes linked against GNU Source
  7325. # Highlight, which is a shared library that uses C++ exceptions. In
  7326. # this case, -static-libstdc++ will cause crashes.
  7327. # Check whether --with-static-standard-libraries was given.
  7328. if test "${with_static_standard_libraries+set}" = set; then :
  7329. withval=$with_static_standard_libraries;
  7330. else
  7331. with_static_standard_libraries=auto
  7332. fi
  7333. if test "$with_static_standard_libraries" = auto; then
  7334. with_static_standard_libraries=$have_compiler
  7335. fi
  7336. # Linker flags to use for stage1 or when not bootstrapping.
  7337. # Check whether --with-stage1-ldflags was given.
  7338. if test "${with_stage1_ldflags+set}" = set; then :
  7339. withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  7340. stage1_ldflags=
  7341. else
  7342. stage1_ldflags=$withval
  7343. fi
  7344. else
  7345. stage1_ldflags=
  7346. # In stage 1, default to linking libstdc++ and libgcc statically with GCC
  7347. # if supported. But if the user explicitly specified the libraries to use,
  7348. # trust that they are doing what they want.
  7349. if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
  7350. -a "$have_static_libs" = yes; then
  7351. stage1_ldflags="-static-libstdc++ -static-libgcc"
  7352. fi
  7353. fi
  7354. # Libraries to use for stage2 and later builds.
  7355. # Check whether --with-boot-libs was given.
  7356. if test "${with_boot_libs+set}" = set; then :
  7357. withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
  7358. poststage1_libs=
  7359. else
  7360. poststage1_libs=$withval
  7361. fi
  7362. else
  7363. poststage1_libs=
  7364. fi
  7365. # Linker flags to use for stage2 and later builds.
  7366. # Check whether --with-boot-ldflags was given.
  7367. if test "${with_boot_ldflags+set}" = set; then :
  7368. withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
  7369. poststage1_ldflags=
  7370. else
  7371. poststage1_ldflags=$withval
  7372. fi
  7373. else
  7374. poststage1_ldflags=
  7375. # In stages 2 and 3, default to linking libstdc++ and libgcc
  7376. # statically. But if the user explicitly specified the libraries to
  7377. # use, trust that they are doing what they want.
  7378. if test "$poststage1_libs" = ""; then
  7379. poststage1_ldflags="-static-libstdc++ -static-libgcc"
  7380. fi
  7381. fi
  7382. # GCC GRAPHITE dependency isl.
  7383. # Basic setup is inlined here, actual checks are in config/isl.m4
  7384. # Check whether --with-isl was given.
  7385. if test "${with_isl+set}" = set; then :
  7386. withval=$with_isl;
  7387. fi
  7388. # Treat --without-isl as a request to disable
  7389. # GRAPHITE support and skip all following checks.
  7390. if test "x$with_isl" != "xno"; then
  7391. # Check for isl
  7392. # Check whether --with-isl-include was given.
  7393. if test "${with_isl_include+set}" = set; then :
  7394. withval=$with_isl_include;
  7395. fi
  7396. # Check whether --with-isl-lib was given.
  7397. if test "${with_isl_lib+set}" = set; then :
  7398. withval=$with_isl_lib;
  7399. fi
  7400. # Check whether --enable-isl-version-check was given.
  7401. if test "${enable_isl_version_check+set}" = set; then :
  7402. enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
  7403. else
  7404. ENABLE_ISL_CHECK=yes
  7405. fi
  7406. # Initialize isllibs and islinc.
  7407. case $with_isl in
  7408. no)
  7409. isllibs=
  7410. islinc=
  7411. ;;
  7412. "" | yes)
  7413. ;;
  7414. *)
  7415. isllibs="-L$with_isl/lib"
  7416. islinc="-I$with_isl/include"
  7417. ;;
  7418. esac
  7419. if test "x${with_isl_include}" != x ; then
  7420. islinc="-I$with_isl_include"
  7421. fi
  7422. if test "x${with_isl_lib}" != x; then
  7423. isllibs="-L$with_isl_lib"
  7424. fi
  7425. if test "x${islinc}" = x && test "x${isllibs}" = x \
  7426. && test -d ${srcdir}/isl; then
  7427. isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
  7428. islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
  7429. ENABLE_ISL_CHECK=no
  7430. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
  7431. $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
  7432. fi
  7433. isllibs="${isllibs} -lisl"
  7434. if test "${ENABLE_ISL_CHECK}" = yes ; then
  7435. _isl_saved_CFLAGS=$CFLAGS
  7436. _isl_saved_LDFLAGS=$LDFLAGS
  7437. _isl_saved_LIBS=$LIBS
  7438. CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
  7439. LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
  7440. LIBS="${_isl_saved_LIBS} -lisl -lgmp"
  7441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
  7442. $as_echo_n "checking for isl 0.15 or later... " >&6; }
  7443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7444. /* end confdefs.h. */
  7445. #include <isl/schedule.h>
  7446. int
  7447. main ()
  7448. {
  7449. isl_options_set_schedule_serialize_sccs (NULL, 0);
  7450. ;
  7451. return 0;
  7452. }
  7453. _ACEOF
  7454. if ac_fn_c_try_link "$LINENO"; then :
  7455. gcc_cv_isl=yes
  7456. else
  7457. gcc_cv_isl=no
  7458. fi
  7459. rm -f core conftest.err conftest.$ac_objext \
  7460. conftest$ac_exeext conftest.$ac_ext
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
  7462. $as_echo "$gcc_cv_isl" >&6; }
  7463. if test "${gcc_cv_isl}" = no ; then
  7464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
  7465. $as_echo "required isl version is 0.15 or later" >&6; }
  7466. fi
  7467. CFLAGS=$_isl_saved_CFLAGS
  7468. LDFLAGS=$_isl_saved_LDFLAGS
  7469. LIBS=$_isl_saved_LIBS
  7470. fi
  7471. if test "x${with_isl}" = xno; then
  7472. graphite_requested=no
  7473. elif test "x${with_isl}" != x \
  7474. || test "x${with_isl_include}" != x \
  7475. || test "x${with_isl_lib}" != x ; then
  7476. graphite_requested=yes
  7477. else
  7478. graphite_requested=no
  7479. fi
  7480. if test "${gcc_cv_isl}" = no ; then
  7481. isllibs=
  7482. islinc=
  7483. fi
  7484. if test "${graphite_requested}" = yes \
  7485. && test "x${isllibs}" = x \
  7486. && test "x${islinc}" = x ; then
  7487. as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
  7488. fi
  7489. fi
  7490. # If the isl check failed, disable builds of in-tree variant of isl
  7491. if test "x$with_isl" = xno ||
  7492. test "x$gcc_cv_isl" = xno; then
  7493. noconfigdirs="$noconfigdirs isl"
  7494. islinc=
  7495. fi
  7496. # Check for LTO support.
  7497. # Check whether --enable-lto was given.
  7498. if test "${enable_lto+set}" = set; then :
  7499. enableval=$enable_lto; enable_lto=$enableval
  7500. else
  7501. enable_lto=yes; default_enable_lto=yes
  7502. fi
  7503. target_elf=no
  7504. case $target in
  7505. *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
  7506. *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
  7507. alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
  7508. nvptx-*-none)
  7509. target_elf=no
  7510. ;;
  7511. *)
  7512. target_elf=yes
  7513. ;;
  7514. esac
  7515. if test $target_elf = yes; then :
  7516. # ELF platforms build the lto-plugin always.
  7517. build_lto_plugin=yes
  7518. else
  7519. if test x"$default_enable_lto" = x"yes" ; then
  7520. case $target in
  7521. *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
  7522. # On other non-ELF platforms, LTO has yet to be validated.
  7523. *) enable_lto=no ;;
  7524. esac
  7525. else
  7526. # Apart from ELF platforms, only Windows and Darwin support LTO so far.
  7527. # It would also be nice to check the binutils support, but we don't
  7528. # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
  7529. # warn during gcc/ subconfigure; unless you're bootstrapping with
  7530. # -flto it won't be needed until after installation anyway.
  7531. case $target in
  7532. *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
  7533. *) if test x"$enable_lto" = x"yes"; then
  7534. as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
  7535. fi
  7536. ;;
  7537. esac
  7538. fi
  7539. # Among non-ELF, only Windows platforms support the lto-plugin so far.
  7540. # Build it unless LTO was explicitly disabled.
  7541. case $target in
  7542. *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
  7543. *) ;;
  7544. esac
  7545. fi
  7546. # Check whether --enable-linker-plugin-configure-flags was given.
  7547. if test "${enable_linker_plugin_configure_flags+set}" = set; then :
  7548. enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
  7549. else
  7550. extra_linker_plugin_configure_flags=
  7551. fi
  7552. # Check whether --enable-linker-plugin-flags was given.
  7553. if test "${enable_linker_plugin_flags+set}" = set; then :
  7554. enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
  7555. else
  7556. extra_linker_plugin_flags=
  7557. fi
  7558. # Enable --enable-host-shared.
  7559. # Checked early to determine whether jit is an 'all' language
  7560. # Check whether --enable-host-shared was given.
  7561. if test "${enable_host_shared+set}" = set; then :
  7562. enableval=$enable_host_shared; host_shared=$enableval
  7563. case $target in
  7564. x86_64-*-darwin* | aarch64-*-darwin*)
  7565. if test x$host_shared != xyes ; then
  7566. # PIC is the default, and actually cannot be switched off.
  7567. echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
  7568. host_shared=yes
  7569. fi ;;
  7570. *) ;;
  7571. esac
  7572. else
  7573. case $target in
  7574. x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
  7575. *) host_shared=no ;;
  7576. esac
  7577. fi
  7578. # By default, C and C++ are the only stage 1 languages.
  7579. stage1_languages=,c,
  7580. # Target libraries that we bootstrap.
  7581. bootstrap_target_libs=,target-libgcc,
  7582. # Figure out what language subdirectories are present.
  7583. # Look if the user specified --enable-languages="..."; if not, use
  7584. # the environment variable $LANGUAGES if defined. $LANGUAGES might
  7585. # go away some day.
  7586. # NB: embedded tabs in this IF block -- do not untabify
  7587. if test -d ${srcdir}/gcc; then
  7588. if test x"${enable_languages+set}" != xset; then
  7589. if test x"${LANGUAGES+set}" = xset; then
  7590. enable_languages="${LANGUAGES}"
  7591. echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
  7592. else
  7593. enable_languages=default
  7594. fi
  7595. else
  7596. if test x"${enable_languages}" = x ||
  7597. test x"${enable_languages}" = xyes;
  7598. then
  7599. echo configure.ac: --enable-languages needs at least one language argument 1>&2
  7600. exit 1
  7601. fi
  7602. fi
  7603. enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
  7604. # 'f95' is the old name for the 'fortran' language. We issue a warning
  7605. # and make the substitution.
  7606. case ,${enable_languages}, in
  7607. *,f95,*)
  7608. echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
  7609. enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
  7610. ;;
  7611. esac
  7612. # If bootstrapping, C++ must be enabled.
  7613. case ",$enable_languages,:$enable_bootstrap" in
  7614. *,c++,*:*) ;;
  7615. *:yes)
  7616. if test -f ${srcdir}/gcc/cp/config-lang.in; then
  7617. enable_languages="${enable_languages},c++"
  7618. else
  7619. as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
  7620. fi
  7621. ;;
  7622. esac
  7623. # First scan to see if an enabled language requires some other language.
  7624. # We assume that a given config-lang.in will list all the language
  7625. # front ends it requires, even if some are required indirectly.
  7626. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  7627. case ${lang_frag} in
  7628. ..) ;;
  7629. # The odd quoting in the next line works around
  7630. # an apparent bug in bash 1.12 on linux.
  7631. ${srcdir}/gcc/[*]/config-lang.in) ;;
  7632. *)
  7633. # From the config-lang.in, get $language, $lang_requires, and
  7634. # $lang_requires_boot_languages.
  7635. language=
  7636. lang_requires=
  7637. lang_requires_boot_languages=
  7638. # set srcdir during sourcing lang_frag to the gcc dir.
  7639. # Sadly overriding srcdir on the . line doesn't work in plain sh as it
  7640. # polutes this shell
  7641. saved_srcdir=${srcdir}
  7642. srcdir=${srcdir}/gcc . ${lang_frag}
  7643. srcdir=${saved_srcdir}
  7644. for other in ${lang_requires} ${lang_requires_boot_languages}; do
  7645. case ,${enable_languages}, in
  7646. *,$other,*) ;;
  7647. *,default,*) ;;
  7648. *,all,*) ;;
  7649. *,$language,*)
  7650. echo " \`$other' language required by \`$language'; enabling" 1>&2
  7651. enable_languages="${enable_languages},${other}"
  7652. ;;
  7653. esac
  7654. done
  7655. for other in ${lang_requires_boot_languages} ; do
  7656. if test "$other" != "c"; then
  7657. case ,${enable_stage1_languages}, in
  7658. *,$other,*) ;;
  7659. *,default,*) ;;
  7660. *,all,*) ;;
  7661. *)
  7662. case ,${enable_languages}, in
  7663. *,$language,*)
  7664. echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
  7665. enable_stage1_languages="$enable_stage1_languages,${other}"
  7666. ;;
  7667. esac
  7668. ;;
  7669. esac
  7670. fi
  7671. done
  7672. ;;
  7673. esac
  7674. done
  7675. new_enable_languages=,c,
  7676. # If LTO is enabled, add the LTO front end.
  7677. if test "$enable_lto" = "yes" ; then
  7678. case ,${enable_languages}, in
  7679. *,lto,*) ;;
  7680. *) enable_languages="${enable_languages},lto" ;;
  7681. esac
  7682. if test "${build_lto_plugin}" = "yes" ; then
  7683. configdirs="$configdirs lto-plugin"
  7684. fi
  7685. fi
  7686. # If we're building an offloading compiler, add the LTO front end.
  7687. if test x"$enable_as_accelerator_for" != x ; then
  7688. case ,${enable_languages}, in
  7689. *,lto,*) ;;
  7690. *) enable_languages="${enable_languages},lto" ;;
  7691. esac
  7692. fi
  7693. missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
  7694. potential_languages=,c,
  7695. enabled_target_libs=
  7696. disabled_target_libs=
  7697. for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
  7698. case ${lang_frag} in
  7699. ..) ;;
  7700. # The odd quoting in the next line works around
  7701. # an apparent bug in bash 1.12 on linux.
  7702. ${srcdir}/gcc/[*]/config-lang.in) ;;
  7703. *)
  7704. # From the config-lang.in, get $language, $target_libs,
  7705. # $lang_dirs, $boot_language, and $build_by_default
  7706. language=
  7707. target_libs=
  7708. lang_dirs=
  7709. subdir_requires=
  7710. boot_language=no
  7711. build_by_default=yes
  7712. # set srcdir during sourcing. See above about save & restore
  7713. saved_srcdir=${srcdir}
  7714. srcdir=${srcdir}/gcc . ${lang_frag}
  7715. srcdir=${saved_srcdir}
  7716. if test x${language} = x; then
  7717. echo "${lang_frag} doesn't set \$language." 1>&2
  7718. exit 1
  7719. fi
  7720. if test "$language" = "c++"; then
  7721. boot_language=yes
  7722. fi
  7723. add_this_lang=no
  7724. # C is always enabled, so no need to add it again
  7725. if test "$language" != "c"; then
  7726. case ,${enable_languages}, in
  7727. *,${language},*)
  7728. # Language was explicitly selected; include it
  7729. add_this_lang=yes
  7730. ;;
  7731. *,all,*)
  7732. # All languages are enabled
  7733. add_this_lang=all
  7734. ;;
  7735. *,default,*)
  7736. # 'default' was selected, select it if it is a default language
  7737. add_this_lang=${build_by_default}
  7738. ;;
  7739. esac
  7740. fi
  7741. # Disable languages that need other directories if these aren't available.
  7742. for i in $subdir_requires; do
  7743. test -f "$srcdir/gcc/$i/config-lang.in" && continue
  7744. case ${add_this_lang} in
  7745. yes)
  7746. # Specifically requested language; tell them.
  7747. as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
  7748. ;;
  7749. all)
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
  7751. $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
  7752. add_this_lang=unsupported
  7753. ;;
  7754. *)
  7755. # Silently disable.
  7756. add_this_lang=unsupported
  7757. ;;
  7758. esac
  7759. done
  7760. # Disable Ada if no preexisting GNAT is available.
  7761. case ${add_this_lang}:${language}:${have_gnat} in
  7762. yes:ada:no)
  7763. # Specifically requested language; tell them.
  7764. as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
  7765. ;;
  7766. all:ada:no)
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
  7768. $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
  7769. add_this_lang=unsupported
  7770. ;;
  7771. *:ada:no)
  7772. # Silently disable.
  7773. add_this_lang=unsupported
  7774. ;;
  7775. esac
  7776. # Disable D if no preexisting GDC is available.
  7777. case ${add_this_lang}:${language}:${have_gdc} in
  7778. yes:d:no)
  7779. # Specifically requested language; tell them.
  7780. as_fn_error $? "GDC is required to build $language" "$LINENO" 5
  7781. ;;
  7782. all:d:no)
  7783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
  7784. $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
  7785. add_this_lang=unsupported
  7786. ;;
  7787. *:d:no)
  7788. # Silently disable.
  7789. add_this_lang=unsupported
  7790. ;;
  7791. esac
  7792. # Disable jit if -enable-host-shared not specified
  7793. # but not if building for Mingw. All code in Windows
  7794. # is position independent code (PIC).
  7795. case $target in
  7796. *mingw*) ;;
  7797. *)
  7798. case ${add_this_lang}:${language}:${host_shared} in
  7799. yes:jit:no)
  7800. # PR jit/64780: explicitly specify --enable-host-shared
  7801. as_fn_error $? "
  7802. Enabling language \"jit\" requires --enable-host-shared.
  7803. --enable-host-shared typically slows the rest of the compiler down by
  7804. a few %, so you must explicitly enable it.
  7805. If you want to build both the jit and the regular compiler, it is often
  7806. best to do this via two separate configure/builds, in separate
  7807. directories, to avoid imposing the performance cost of
  7808. --enable-host-shared on the regular compiler." "$LINENO" 5
  7809. ;;
  7810. all:jit:no)
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
  7812. $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
  7813. add_this_lang=unsupported
  7814. ;;
  7815. *:jit:no)
  7816. # Silently disable.
  7817. add_this_lang=unsupported
  7818. ;;
  7819. esac
  7820. ;;
  7821. esac
  7822. # Disable a language that is unsupported by the target.
  7823. case "${add_this_lang}: $unsupported_languages " in
  7824. no:*) ;;
  7825. unsupported:*) ;;
  7826. *:*" $language "*)
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
  7828. $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
  7829. add_this_lang=unsupported
  7830. ;;
  7831. esac
  7832. case $add_this_lang in
  7833. unsupported)
  7834. # Remove language-dependent dirs.
  7835. disabled_target_libs="$disabled_target_libs $target_libs"
  7836. noconfigdirs="$noconfigdirs $lang_dirs"
  7837. ;;
  7838. no)
  7839. # Remove language-dependent dirs; still show language as supported.
  7840. disabled_target_libs="$disabled_target_libs $target_libs"
  7841. noconfigdirs="$noconfigdirs $lang_dirs"
  7842. potential_languages="${potential_languages}${language},"
  7843. ;;
  7844. all|yes)
  7845. new_enable_languages="${new_enable_languages}${language},"
  7846. potential_languages="${potential_languages}${language},"
  7847. missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
  7848. enabled_target_libs="$enabled_target_libs $target_libs"
  7849. case "${boot_language}:,$enable_stage1_languages," in
  7850. yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
  7851. # Add to (comma-separated) list of stage 1 languages.
  7852. case ",$stage1_languages," in
  7853. *,$language,* | ,yes, | ,all,) ;;
  7854. *) stage1_languages="${stage1_languages}${language}," ;;
  7855. esac
  7856. # We need to bootstrap any supporting libraries.
  7857. bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
  7858. ;;
  7859. esac
  7860. ;;
  7861. esac
  7862. ;;
  7863. esac
  7864. done
  7865. # Add target libraries which are only needed for disabled languages
  7866. # to noconfigdirs.
  7867. if test -n "$disabled_target_libs"; then
  7868. for dir in $disabled_target_libs; do
  7869. case " $enabled_target_libs " in
  7870. *" ${dir} "*) ;;
  7871. *) noconfigdirs="$noconfigdirs $dir" ;;
  7872. esac
  7873. done
  7874. fi
  7875. # Check whether --enable-stage1-languages was given.
  7876. if test "${enable_stage1_languages+set}" = set; then :
  7877. enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
  7878. ,no,|,,)
  7879. # Set it to something that will have no effect in the loop below
  7880. enable_stage1_languages=c ;;
  7881. ,yes,)
  7882. enable_stage1_languages=`echo $new_enable_languages | \
  7883. sed -e "s/^,//" -e "s/,$//" ` ;;
  7884. *,all,*)
  7885. enable_stage1_languages=`echo ,$enable_stage1_languages, | \
  7886. sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
  7887. esac
  7888. # Add "good" languages from enable_stage1_languages to stage1_languages,
  7889. # while "bad" languages go in missing_languages. Leave no duplicates.
  7890. for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
  7891. case $potential_languages in
  7892. *,$i,*)
  7893. case $stage1_languages in
  7894. *,$i,*) ;;
  7895. *) stage1_languages="$stage1_languages$i," ;;
  7896. esac ;;
  7897. *)
  7898. case $missing_languages in
  7899. *,$i,*) ;;
  7900. *) missing_languages="$missing_languages$i," ;;
  7901. esac ;;
  7902. esac
  7903. done
  7904. fi
  7905. # Remove leading/trailing commas that were added for simplicity
  7906. potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
  7907. missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
  7908. stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
  7909. new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
  7910. if test "x$missing_languages" != x; then
  7911. as_fn_error $? "
  7912. The following requested languages could not be built: ${missing_languages}
  7913. Supported languages are: ${potential_languages}" "$LINENO" 5
  7914. fi
  7915. if test "x$new_enable_languages" != "x$enable_languages"; then
  7916. echo The following languages will be built: ${new_enable_languages}
  7917. enable_languages="$new_enable_languages"
  7918. fi
  7919. ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
  7920. fi
  7921. # Handle --disable-<component> generically.
  7922. for dir in $configdirs $build_configdirs $target_configdirs ; do
  7923. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
  7924. varname=`echo $dirname | sed -e s/+/_/g`
  7925. if eval test x\${enable_${varname}} "=" xno ; then
  7926. noconfigdirs="$noconfigdirs $dir"
  7927. fi
  7928. done
  7929. # Check for Boehm's garbage collector
  7930. # Check whether --enable-objc-gc was given.
  7931. if test "${enable_objc_gc+set}" = set; then :
  7932. enableval=$enable_objc_gc;
  7933. fi
  7934. # Check whether --with-target-bdw-gc was given.
  7935. if test "${with_target_bdw_gc+set}" = set; then :
  7936. withval=$with_target_bdw_gc;
  7937. fi
  7938. # Check whether --with-target-bdw-gc-include was given.
  7939. if test "${with_target_bdw_gc_include+set}" = set; then :
  7940. withval=$with_target_bdw_gc_include;
  7941. fi
  7942. # Check whether --with-target-bdw-gc-lib was given.
  7943. if test "${with_target_bdw_gc_lib+set}" = set; then :
  7944. withval=$with_target_bdw_gc_lib;
  7945. fi
  7946. case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
  7948. $as_echo_n "checking for bdw garbage collector... " >&6; }
  7949. if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
  7950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
  7951. $as_echo "using bdw-gc in default locations" >&6; }
  7952. else
  7953. if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
  7954. as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
  7955. elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
  7956. as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
  7957. else
  7958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
  7959. $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
  7960. fi
  7961. fi
  7962. esac
  7963. # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
  7964. case ,${enable_languages}, in
  7965. *,c++,*)
  7966. # Disable libitm, libsanitizer if we're not building libstdc++
  7967. case "${noconfigdirs}" in
  7968. *target-libstdc++-v3*)
  7969. noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
  7970. ;;
  7971. *) ;;
  7972. esac
  7973. ;;
  7974. *)
  7975. noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
  7976. ;;
  7977. esac
  7978. # If gcc/ is not in the source tree then we'll not be building a
  7979. # target compiler, assume in that case we don't want to build any
  7980. # target libraries or tools.
  7981. #
  7982. # This was added primarily for the benefit for binutils-gdb who reuse
  7983. # this configure script, but don't always have target tools available.
  7984. if test ! -d ${srcdir}/gcc; then
  7985. skipdirs="${skipdirs} ${target_configdirs}"
  7986. fi
  7987. # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
  7988. # $build_configdirs and $target_configdirs.
  7989. # If we have the source for $noconfigdirs entries, add them to $notsupp.
  7990. notsupp=""
  7991. for dir in . $skipdirs $noconfigdirs ; do
  7992. dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
  7993. if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  7994. configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
  7995. if test -r $srcdir/$dirname/configure ; then
  7996. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  7997. true
  7998. else
  7999. notsupp="$notsupp $dir"
  8000. fi
  8001. fi
  8002. fi
  8003. if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  8004. build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
  8005. if test -r $srcdir/$dirname/configure ; then
  8006. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  8007. true
  8008. else
  8009. notsupp="$notsupp $dir"
  8010. fi
  8011. fi
  8012. fi
  8013. if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  8014. target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
  8015. if test -r $srcdir/$dirname/configure ; then
  8016. if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  8017. true
  8018. else
  8019. notsupp="$notsupp $dir"
  8020. fi
  8021. fi
  8022. fi
  8023. done
  8024. # Quietly strip out all directories which aren't configurable in this tree.
  8025. # This relies on all configurable subdirectories being autoconfiscated, which
  8026. # is now the case.
  8027. build_configdirs_all="$build_configdirs"
  8028. build_configdirs=
  8029. for i in ${build_configdirs_all} ; do
  8030. j=`echo $i | sed -e s/build-//g`
  8031. if test -f ${srcdir}/$j/configure ; then
  8032. build_configdirs="${build_configdirs} $i"
  8033. fi
  8034. done
  8035. configdirs_all="$configdirs"
  8036. configdirs=
  8037. for i in ${configdirs_all} ; do
  8038. if test -f ${srcdir}/$i/configure ; then
  8039. configdirs="${configdirs} $i"
  8040. fi
  8041. done
  8042. target_configdirs_all="$target_configdirs"
  8043. target_configdirs=
  8044. for i in ${target_configdirs_all} ; do
  8045. j=`echo $i | sed -e s/target-//g`
  8046. if test -f ${srcdir}/$j/configure ; then
  8047. target_configdirs="${target_configdirs} $i"
  8048. fi
  8049. done
  8050. # libiberty-linker-plugin is special: it doesn't have its own source directory,
  8051. # so we have to add it after the preceding checks.
  8052. if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
  8053. then
  8054. case " $configdirs " in
  8055. *" libiberty "*)
  8056. # If we can build libiberty, we can also build libiberty-linker-plugin.
  8057. configdirs="$configdirs libiberty-linker-plugin"
  8058. extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
  8059. --with-libiberty=../libiberty-linker-plugin";;
  8060. *)
  8061. as_fn_error $? "libiberty missing" "$LINENO" 5;;
  8062. esac
  8063. fi
  8064. # Sometimes we have special requirements for the host libiberty.
  8065. extra_host_libiberty_configure_flags=
  8066. extra_host_zlib_configure_flags=
  8067. case " $configdirs " in
  8068. *" lto-plugin "* | *" libcc1 "*)
  8069. # When these are to be built as shared libraries, the same applies to
  8070. # libiberty.
  8071. extra_host_libiberty_configure_flags=--enable-shared
  8072. ;;
  8073. *" bfd "*)
  8074. # When bfd is to be built as a shared library, the same applies to
  8075. # zlib.
  8076. if test "$enable_shared" = "yes"; then
  8077. extra_host_zlib_configure_flags=--enable-host-shared
  8078. fi
  8079. ;;
  8080. esac
  8081. # Produce a warning message for the subdirs we can't configure.
  8082. # This isn't especially interesting in the Cygnus tree, but in the individual
  8083. # FSF releases, it's important to let people know when their machine isn't
  8084. # supported by the one or two programs in a package.
  8085. if test -n "${notsupp}" && test -z "${norecursion}" ; then
  8086. # If $appdirs is non-empty, at least one of those directories must still
  8087. # be configured, or we error out. (E.g., if the gas release supports a
  8088. # specified target in some subdirs but not the gas subdir, we shouldn't
  8089. # pretend that all is well.)
  8090. if test -n "$appdirs" ; then
  8091. for dir in $appdirs ; do
  8092. if test -r $dir/Makefile.in ; then
  8093. if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
  8094. appdirs=""
  8095. break
  8096. fi
  8097. if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
  8098. appdirs=""
  8099. break
  8100. fi
  8101. fi
  8102. done
  8103. if test -n "$appdirs" ; then
  8104. echo "*** This configuration is not supported by this package." 1>&2
  8105. exit 1
  8106. fi
  8107. fi
  8108. # Okay, some application will build, or we don't care to check. Still
  8109. # notify of subdirs not getting built.
  8110. echo "*** This configuration is not supported in the following subdirectories:" 1>&2
  8111. echo " ${notsupp}" 1>&2
  8112. echo " (Any other directories should still work fine.)" 1>&2
  8113. fi
  8114. case "$host" in
  8115. *msdosdjgpp*)
  8116. enable_gdbtk=no ;;
  8117. esac
  8118. # To find our prefix, in gcc_cv_tool_prefix.
  8119. # The user is always right.
  8120. if test "${PATH_SEPARATOR+set}" != set; then
  8121. echo "#! /bin/sh" >conf$$.sh
  8122. echo "exit 0" >>conf$$.sh
  8123. chmod +x conf$$.sh
  8124. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8125. PATH_SEPARATOR=';'
  8126. else
  8127. PATH_SEPARATOR=:
  8128. fi
  8129. rm -f conf$$.sh
  8130. fi
  8131. get_gcc_base_ver="cat"
  8132. # Check whether --with-gcc-major-version-only was given.
  8133. if test "${with_gcc_major_version_only+set}" = set; then :
  8134. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  8135. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  8136. fi
  8137. fi
  8138. if test "x$exec_prefix" = xNONE; then
  8139. if test "x$prefix" = xNONE; then
  8140. gcc_cv_tool_prefix=$ac_default_prefix
  8141. else
  8142. gcc_cv_tool_prefix=$prefix
  8143. fi
  8144. else
  8145. gcc_cv_tool_prefix=$exec_prefix
  8146. fi
  8147. # If there is no compiler in the tree, use the PATH only. In any
  8148. # case, if there is no compiler in the tree nobody should use
  8149. # AS_FOR_TARGET and LD_FOR_TARGET.
  8150. if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
  8151. if test x$with_gcc_major_version_only = xyes ; then
  8152. gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
  8153. else
  8154. gcc_version=`cat $srcdir/gcc/BASE-VER`
  8155. fi
  8156. gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  8157. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
  8158. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  8159. gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
  8160. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
  8161. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
  8162. else
  8163. gcc_cv_tool_dirs=
  8164. fi
  8165. if test x$build = x$target && test -n "$md_exec_prefix"; then
  8166. gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
  8167. fi
  8168. copy_dirs=
  8169. # Check whether --with-build-sysroot was given.
  8170. if test "${with_build_sysroot+set}" = set; then :
  8171. withval=$with_build_sysroot; if test x"$withval" != x ; then
  8172. SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
  8173. fi
  8174. else
  8175. SYSROOT_CFLAGS_FOR_TARGET=
  8176. fi
  8177. # Check whether --with-debug-prefix-map was given.
  8178. if test "${with_debug_prefix_map+set}" = set; then :
  8179. withval=$with_debug_prefix_map; if test x"$withval" != x; then
  8180. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  8181. for debug_map in $withval; do
  8182. DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
  8183. done
  8184. fi
  8185. else
  8186. DEBUG_PREFIX_CFLAGS_FOR_TARGET=
  8187. fi
  8188. # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
  8189. # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
  8190. # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
  8191. # We want to ensure that TARGET libraries (which we know are built with
  8192. # gcc) are built with "-O2 -g", so include those options when setting
  8193. # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
  8194. if test "x$CFLAGS_FOR_TARGET" = x; then
  8195. if test "x${is_cross_compiler}" = xyes; then
  8196. CFLAGS_FOR_TARGET="-g -O2"
  8197. else
  8198. CFLAGS_FOR_TARGET=$CFLAGS
  8199. case " $CFLAGS " in
  8200. *" -O2 "*) ;;
  8201. *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
  8202. esac
  8203. case " $CFLAGS " in
  8204. *" -g "* | *" -g3 "*) ;;
  8205. *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
  8206. esac
  8207. fi
  8208. fi
  8209. if test "x$CXXFLAGS_FOR_TARGET" = x; then
  8210. if test "x${is_cross_compiler}" = xyes; then
  8211. CXXFLAGS_FOR_TARGET="-g -O2"
  8212. else
  8213. CXXFLAGS_FOR_TARGET=$CXXFLAGS
  8214. case " $CXXFLAGS " in
  8215. *" -O2 "*) ;;
  8216. *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
  8217. esac
  8218. case " $CXXFLAGS " in
  8219. *" -g "* | *" -g3 "*) ;;
  8220. *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
  8221. esac
  8222. fi
  8223. fi
  8224. # Handle --with-headers=XXX. If the value is not "yes", the contents of
  8225. # the named directory are copied to $(tooldir)/sys-include.
  8226. if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
  8227. if test x${is_cross_compiler} = xno ; then
  8228. echo 1>&2 '***' --with-headers is only supported when cross compiling
  8229. exit 1
  8230. fi
  8231. if test x"${with_headers}" != xyes ; then
  8232. x=${gcc_cv_tool_prefix}
  8233. copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
  8234. fi
  8235. fi
  8236. # Handle --with-libs=XXX. If the value is not "yes", the contents of
  8237. # the name directories are copied to $(tooldir)/lib. Multiple directories
  8238. # are permitted.
  8239. if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
  8240. if test x${is_cross_compiler} = xno ; then
  8241. echo 1>&2 '***' --with-libs is only supported when cross compiling
  8242. exit 1
  8243. fi
  8244. if test x"${with_libs}" != xyes ; then
  8245. # Copy the libraries in reverse order, so that files in the first named
  8246. # library override files in subsequent libraries.
  8247. x=${gcc_cv_tool_prefix}
  8248. for l in ${with_libs}; do
  8249. copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
  8250. done
  8251. fi
  8252. fi
  8253. # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
  8254. #
  8255. # This is done by determining whether or not the appropriate directory
  8256. # is available, and by checking whether or not specific configurations
  8257. # have requested that this magic not happen.
  8258. #
  8259. # The command line options always override the explicit settings in
  8260. # configure.ac, and the settings in configure.ac override this magic.
  8261. #
  8262. # If the default for a toolchain is to use GNU as and ld, and you don't
  8263. # want to do that, then you should use the --without-gnu-as and
  8264. # --without-gnu-ld options for the configure script. Similarly, if
  8265. # the default is to use the included zlib and you don't want to do that,
  8266. # you should use the --with-system-zlib option for the configure script.
  8267. if test x${use_gnu_as} = x &&
  8268. echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
  8269. with_gnu_as=yes
  8270. extra_host_args="$extra_host_args --with-gnu-as"
  8271. fi
  8272. if test x${use_gnu_ld} = x &&
  8273. echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
  8274. with_gnu_ld=yes
  8275. extra_host_args="$extra_host_args --with-gnu-ld"
  8276. fi
  8277. if test x${use_included_zlib} = x &&
  8278. echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
  8279. :
  8280. else
  8281. with_system_zlib=yes
  8282. extra_host_args="$extra_host_args --with-system-zlib"
  8283. fi
  8284. # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
  8285. # can detect this case.
  8286. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
  8287. with_newlib=yes
  8288. extra_host_args="$extra_host_args --with-newlib"
  8289. fi
  8290. # Handle ${copy_dirs}
  8291. set fnord ${copy_dirs}
  8292. shift
  8293. while test $# != 0 ; do
  8294. if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
  8295. :
  8296. else
  8297. echo Copying $1 to $2
  8298. # Use the install script to create the directory and all required
  8299. # parent directories.
  8300. if test -d $2 ; then
  8301. :
  8302. else
  8303. echo >config.temp
  8304. ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
  8305. fi
  8306. # Copy the directory, assuming we have tar.
  8307. # FIXME: Should we use B in the second tar? Not all systems support it.
  8308. (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
  8309. # It is the responsibility of the user to correctly adjust all
  8310. # symlinks. If somebody can figure out how to handle them correctly
  8311. # here, feel free to add the code.
  8312. echo $1 > $2/COPIED
  8313. fi
  8314. shift; shift
  8315. done
  8316. # Determine a target-dependent exec_prefix that the installed
  8317. # gcc will search in. Keep this list sorted by triplet, with
  8318. # the *-*-osname triplets last.
  8319. md_exec_prefix=
  8320. case "${target}" in
  8321. i[34567]86-pc-msdosdjgpp*)
  8322. md_exec_prefix=/dev/env/DJDIR/bin
  8323. ;;
  8324. *-*-hpux* | \
  8325. *-*-nto-qnx* | \
  8326. *-*-solaris2*)
  8327. md_exec_prefix=/usr/ccs/bin
  8328. ;;
  8329. esac
  8330. extra_arflags_for_target=
  8331. extra_nmflags_for_target=
  8332. extra_ranlibflags_for_target=
  8333. target_makefile_frag=/dev/null
  8334. case "${target}" in
  8335. spu-*-*)
  8336. target_makefile_frag="config/mt-spu"
  8337. ;;
  8338. mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
  8339. target_makefile_frag="config/mt-sde"
  8340. ;;
  8341. mipsisa*-*-elfoabi*)
  8342. target_makefile_frag="config/mt-mips-elfoabi"
  8343. ;;
  8344. mips*-*-*linux* | mips*-*-gnu*)
  8345. target_makefile_frag="config/mt-mips-gnu"
  8346. ;;
  8347. nios2-*-elf*)
  8348. target_makefile_frag="config/mt-nios2-elf"
  8349. ;;
  8350. *-*-linux-android*)
  8351. target_makefile_frag="config/mt-android"
  8352. ;;
  8353. *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
  8354. target_makefile_frag="config/mt-gnu"
  8355. ;;
  8356. *-*-aix4.[3456789]* | *-*-aix[56789].*)
  8357. # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
  8358. # commands to handle both 32-bit and 64-bit objects. These flags are
  8359. # harmless if we're using GNU nm or ar.
  8360. extra_arflags_for_target=" -X32_64"
  8361. extra_nmflags_for_target=" -B -X32_64"
  8362. ;;
  8363. esac
  8364. alphaieee_frag=/dev/null
  8365. case $target in
  8366. alpha*-*-*)
  8367. # This just makes sure to use the -mieee option to build target libs.
  8368. # This should probably be set individually by each library.
  8369. alphaieee_frag="config/mt-alphaieee"
  8370. ;;
  8371. esac
  8372. # If --enable-target-optspace always use -Os instead of -O2 to build
  8373. # the target libraries, similarly if it is not specified, use -Os
  8374. # on selected platforms.
  8375. ospace_frag=/dev/null
  8376. case "${enable_target_optspace}:${target}" in
  8377. yes:*)
  8378. ospace_frag="config/mt-ospace"
  8379. ;;
  8380. :d30v-*)
  8381. ospace_frag="config/mt-d30v"
  8382. ;;
  8383. :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
  8384. ospace_frag="config/mt-ospace"
  8385. ;;
  8386. no:* | :*)
  8387. ;;
  8388. *)
  8389. echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
  8390. ;;
  8391. esac
  8392. # Some systems (e.g., one of the i386-aix systems the gas testers are
  8393. # using) don't handle "\$" correctly, so don't use it here.
  8394. tooldir='${exec_prefix}'/${target_noncanonical}
  8395. build_tooldir=${tooldir}
  8396. # Create a .gdbinit file which runs the one in srcdir
  8397. # and tells GDB to look there for source files.
  8398. if test -r ${srcdir}/.gdbinit ; then
  8399. case ${srcdir} in
  8400. .) ;;
  8401. *) cat > ./.gdbinit <<EOF
  8402. # ${NO_EDIT}
  8403. dir ${srcdir}
  8404. dir .
  8405. source ${srcdir}/.gdbinit
  8406. EOF
  8407. ;;
  8408. esac
  8409. fi
  8410. # Make sure that the compiler is able to generate an executable. If it
  8411. # can't, we are probably in trouble. We don't care whether we can run the
  8412. # executable--we might be using a cross compiler--we only care whether it
  8413. # can be created. At this point the main configure script has set CC.
  8414. we_are_ok=no
  8415. echo "int main () { return 0; }" > conftest.c
  8416. ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  8417. if test $? = 0 ; then
  8418. if test -s conftest || test -s conftest.exe ; then
  8419. we_are_ok=yes
  8420. fi
  8421. fi
  8422. case $we_are_ok in
  8423. no)
  8424. echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
  8425. echo 1>&2 "*** You must set the environment variable CC to a working compiler."
  8426. rm -f conftest*
  8427. exit 1
  8428. ;;
  8429. esac
  8430. rm -f conftest*
  8431. # Decide which environment variable is used to find dynamic libraries.
  8432. case "${host}" in
  8433. *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
  8434. *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
  8435. *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
  8436. *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
  8437. esac
  8438. # On systems where the dynamic library environment variable is PATH,
  8439. # gcc/ will put dynamic libraries into a subdirectory to avoid adding
  8440. # built executables to PATH.
  8441. if test "$RPATH_ENVVAR" = PATH; then
  8442. GCC_SHLIB_SUBDIR=/shlib
  8443. else
  8444. GCC_SHLIB_SUBDIR=
  8445. fi
  8446. # Adjust the toplevel makefile according to whether bootstrap was selected.
  8447. case $enable_bootstrap in
  8448. yes)
  8449. bootstrap_suffix=bootstrap
  8450. BUILD_CONFIG=bootstrap-debug
  8451. ;;
  8452. no)
  8453. bootstrap_suffix=no-bootstrap
  8454. BUILD_CONFIG=
  8455. ;;
  8456. esac
  8457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
  8458. $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
  8459. # Check whether --with-build-config was given.
  8460. if test "${with_build_config+set}" = set; then :
  8461. withval=$with_build_config; case $with_build_config in
  8462. yes) with_build_config= ;;
  8463. no) with_build_config= BUILD_CONFIG= ;;
  8464. esac
  8465. fi
  8466. if test "x${with_build_config}" != x; then
  8467. BUILD_CONFIG=$with_build_config
  8468. else
  8469. case $BUILD_CONFIG in
  8470. bootstrap-debug)
  8471. if echo "int f (void) { return 0; }" > conftest.c &&
  8472. ${CC} -c conftest.c &&
  8473. mv conftest.o conftest.o.g0 &&
  8474. ${CC} -c -g conftest.c &&
  8475. mv conftest.o conftest.o.g &&
  8476. ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
  8477. :
  8478. else
  8479. BUILD_CONFIG=
  8480. fi
  8481. rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
  8482. ;;
  8483. esac
  8484. fi
  8485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
  8486. $as_echo "$BUILD_CONFIG" >&6; }
  8487. # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
  8488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
  8489. $as_echo_n "checking for --enable-vtable-verify... " >&6; }
  8490. # Check whether --enable-vtable-verify was given.
  8491. if test "${enable_vtable_verify+set}" = set; then :
  8492. enableval=$enable_vtable_verify; case "$enableval" in
  8493. yes) enable_vtable_verify=yes ;;
  8494. no) enable_vtable_verify=no ;;
  8495. *) enable_vtable_verify=no;;
  8496. esac
  8497. else
  8498. enable_vtable_verify=no
  8499. fi
  8500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
  8501. $as_echo "$enable_vtable_verify" >&6; }
  8502. # Record target_configdirs and the configure arguments for target and
  8503. # build configuration in Makefile.
  8504. target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
  8505. build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
  8506. bootstrap_fixincludes=no
  8507. # If we are building libgomp, bootstrap it.
  8508. if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
  8509. bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
  8510. fi
  8511. # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
  8512. # or bootstrap-ubsan, bootstrap it.
  8513. if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
  8514. case "$BUILD_CONFIG" in
  8515. *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
  8516. bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
  8517. bootstrap_fixincludes=yes
  8518. ;;
  8519. esac
  8520. fi
  8521. # If we are building libvtv and --enable-vtable-verify, bootstrap it.
  8522. if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
  8523. test "$enable_vtable_verify" != no; then
  8524. bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
  8525. fi
  8526. # If we are building libatomic and the list of enabled languages includes the
  8527. # D frontend, bootstrap it.
  8528. if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
  8529. case ,${enable_languages}, in
  8530. *,d,*)
  8531. bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
  8532. ;;
  8533. esac
  8534. fi
  8535. # Determine whether gdb needs tk/tcl or not.
  8536. # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
  8537. # and in that case we want gdb to be built without tk. Ugh!
  8538. # In fact I believe gdb is the *only* package directly dependent on tk,
  8539. # so we should be able to put the 'maybe's in unconditionally and
  8540. # leave out the maybe dependencies when enable_gdbtk is false. I'm not
  8541. # 100% sure that that's safe though.
  8542. gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
  8543. case "$enable_gdbtk" in
  8544. no)
  8545. GDB_TK="" ;;
  8546. yes)
  8547. GDB_TK="${gdb_tk}" ;;
  8548. *)
  8549. # Only add the dependency on gdbtk when GDBtk is part of the gdb
  8550. # distro. Eventually someone will fix this and move Insight, nee
  8551. # gdbtk to a separate directory.
  8552. if test -d ${srcdir}/gdb/gdbtk ; then
  8553. GDB_TK="${gdb_tk}"
  8554. else
  8555. GDB_TK=""
  8556. fi
  8557. ;;
  8558. esac
  8559. CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
  8560. INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
  8561. # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
  8562. # else does, only include them if one of these is built. The Makefile
  8563. # provides the ordering, so it's enough here to add to the list.
  8564. case " ${configdirs} " in
  8565. *\ gdb\ *)
  8566. configdirs="${configdirs} gnulib gdbsupport"
  8567. ;;
  8568. *\ gdbserver\ *)
  8569. configdirs="${configdirs} gnulib gdbsupport"
  8570. ;;
  8571. *\ sim\ *)
  8572. configdirs="${configdirs} gnulib"
  8573. ;;
  8574. esac
  8575. # Strip out unwanted targets.
  8576. # While at that, we remove Makefiles if we were started for recursive
  8577. # configuration, so that the top-level Makefile reconfigures them,
  8578. # like we used to do when configure itself was recursive.
  8579. # Loop over modules. We used to use the "$extrasub" feature from Autoconf
  8580. # but now we're fixing up the Makefile ourselves with the additional
  8581. # commands passed to AC_CONFIG_FILES. Use separate variables
  8582. # extrasub-{build,host,target} not because there is any reason to split
  8583. # the substitutions up that way, but only to remain below the limit of
  8584. # 99 commands in a script, for HP-UX sed.
  8585. # Do not nest @if/@endif or @unless/@endunless pairs, because
  8586. # configure will not warn you at all.
  8587. case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
  8588. yes:yes:*\ gold\ *:*,c++,*) ;;
  8589. yes:yes:*\ gold\ *:*)
  8590. as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
  8591. ;;
  8592. esac
  8593. extrasub_build=
  8594. for module in ${build_configdirs} ; do
  8595. if test -z "${no_recursion}" \
  8596. && test -f ${build_subdir}/${module}/Makefile; then
  8597. echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
  8598. rm -f ${build_subdir}/${module}/Makefile
  8599. fi
  8600. extrasub_build="$extrasub_build
  8601. /^@if build-$module\$/d
  8602. /^@endif build-$module\$/d
  8603. /^@unless build-$module\$/,/^@endunless build-$module\$/d
  8604. /^@if build-$module-$bootstrap_suffix\$/d
  8605. /^@endif build-$module-$bootstrap_suffix\$/d
  8606. /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
  8607. done
  8608. extrasub_host=
  8609. for module in ${configdirs} ; do
  8610. if test -z "${no_recursion}"; then
  8611. for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
  8612. if test -f ${file}; then
  8613. echo 1>&2 "*** removing ${file} to force reconfigure"
  8614. rm -f ${file}
  8615. fi
  8616. done
  8617. fi
  8618. case ${module},${bootstrap_fixincludes} in
  8619. fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
  8620. *) host_bootstrap_suffix=$bootstrap_suffix ;;
  8621. esac
  8622. extrasub_host="$extrasub_host
  8623. /^@if $module\$/d
  8624. /^@endif $module\$/d
  8625. /^@unless $module\$/,/^@endunless $module\$/d
  8626. /^@if $module-$host_bootstrap_suffix\$/d
  8627. /^@endif $module-$host_bootstrap_suffix\$/d
  8628. /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
  8629. done
  8630. extrasub_target=
  8631. for module in ${target_configdirs} ; do
  8632. if test -z "${no_recursion}" \
  8633. && test -f ${target_subdir}/${module}/Makefile; then
  8634. echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
  8635. rm -f ${target_subdir}/${module}/Makefile
  8636. fi
  8637. # We only bootstrap target libraries listed in bootstrap_target_libs.
  8638. case $bootstrap_target_libs in
  8639. *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
  8640. *) target_bootstrap_suffix=no-bootstrap ;;
  8641. esac
  8642. extrasub_target="$extrasub_target
  8643. /^@if target-$module\$/d
  8644. /^@endif target-$module\$/d
  8645. /^@unless target-$module\$/,/^@endunless target-$module\$/d
  8646. /^@if target-$module-$target_bootstrap_suffix\$/d
  8647. /^@endif target-$module-$target_bootstrap_suffix\$/d
  8648. /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
  8649. done
  8650. # Do the final fixup along with target modules.
  8651. extrasub_target="$extrasub_target
  8652. /^@if /,/^@endif /d
  8653. /^@unless /d
  8654. /^@endunless /d"
  8655. if test "$enable_pgo_build" != "no"; then
  8656. extrasub_build="$extrasub_build
  8657. /^@if pgo-build\$/d
  8658. /^@endif pgo-build\$/d"
  8659. fi
  8660. # Create the serialization dependencies. This uses a temporary file.
  8661. # Check whether --enable-serial-configure was given.
  8662. if test "${enable_serial_configure+set}" = set; then :
  8663. enableval=$enable_serial_configure;
  8664. fi
  8665. case ${enable_serial_configure} in
  8666. yes)
  8667. enable_serial_build_configure=yes
  8668. enable_serial_host_configure=yes
  8669. enable_serial_target_configure=yes
  8670. ;;
  8671. esac
  8672. # These force 'configure's to be done one at a time, to avoid problems
  8673. # with contention over a shared config.cache.
  8674. rm -f serdep.tmp
  8675. echo '# serdep.tmp' > serdep.tmp
  8676. olditem=
  8677. test "x${enable_serial_build_configure}" = xyes &&
  8678. for item in ${build_configdirs} ; do
  8679. case ${olditem} in
  8680. "") ;;
  8681. *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
  8682. esac
  8683. olditem=${item}
  8684. done
  8685. olditem=
  8686. test "x${enable_serial_host_configure}" = xyes &&
  8687. for item in ${configdirs} ; do
  8688. case ${olditem} in
  8689. "") ;;
  8690. *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
  8691. esac
  8692. olditem=${item}
  8693. done
  8694. olditem=
  8695. test "x${enable_serial_target_configure}" = xyes &&
  8696. for item in ${target_configdirs} ; do
  8697. case ${olditem} in
  8698. "") ;;
  8699. *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
  8700. esac
  8701. olditem=${item}
  8702. done
  8703. serialization_dependencies=serdep.tmp
  8704. # Base args. Strip norecursion, cache-file, srcdir, host, build,
  8705. # target, nonopt, and variable assignments. These are the ones we
  8706. # might not want to pass down to subconfigures. The exception being
  8707. # --cache-file=/dev/null, which is used to turn off the use of cache
  8708. # files altogether, and which should be passed on to subconfigures.
  8709. # Also strip program-prefix, program-suffix, and program-transform-name,
  8710. # so that we can pass down a consistent program-transform-name.
  8711. baseargs=
  8712. tbaseargs=
  8713. keep_next=no
  8714. skip_next=no
  8715. eval "set -- $ac_configure_args"
  8716. for ac_arg
  8717. do
  8718. if test X"$skip_next" = X"yes"; then
  8719. skip_next=no
  8720. continue
  8721. fi
  8722. if test X"$keep_next" = X"yes"; then
  8723. case $ac_arg in
  8724. *\'*)
  8725. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8726. esac
  8727. baseargs="$baseargs '$ac_arg'"
  8728. tbaseargs="$tbaseargs '$ac_arg'"
  8729. keep_next=no
  8730. continue
  8731. fi
  8732. # Handle separated arguments. Based on the logic generated by
  8733. # autoconf 2.59.
  8734. case $ac_arg in
  8735. *=* | --config-cache | -C | -disable-* | --disable-* \
  8736. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  8737. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  8738. | -with-* | --with-* | -without-* | --without-* | --x)
  8739. separate_arg=no
  8740. ;;
  8741. -*)
  8742. separate_arg=yes
  8743. ;;
  8744. *)
  8745. separate_arg=no
  8746. ;;
  8747. esac
  8748. skip_targ=no
  8749. case $ac_arg in
  8750. --with-* | --without-*)
  8751. libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
  8752. case $libopt in
  8753. *[-_]include)
  8754. lib=`echo "$libopt" | sed 's,[-_]include$,,'`
  8755. ;;
  8756. *[-_]lib)
  8757. lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
  8758. ;;
  8759. *)
  8760. lib=$libopt
  8761. ;;
  8762. esac
  8763. case $lib in
  8764. mpc | mpfr | gmp | isl)
  8765. # If we're processing --with-$lib, --with-$lib-include or
  8766. # --with-$lib-lib, for one of the libs above, and target is
  8767. # different from host, don't pass the current argument to any
  8768. # target library's configure.
  8769. if test x$is_cross_compiler = xyes; then
  8770. skip_targ=yes
  8771. fi
  8772. ;;
  8773. esac
  8774. ;;
  8775. esac
  8776. case "$ac_arg" in
  8777. --cache-file=/dev/null | \
  8778. -cache-file=/dev/null )
  8779. # Handled here to avoid the test to skip args below.
  8780. baseargs="$baseargs '$ac_arg'"
  8781. tbaseargs="$tbaseargs '$ac_arg'"
  8782. # Assert: $separate_arg should always be no.
  8783. keep_next=$separate_arg
  8784. ;;
  8785. --no*)
  8786. continue
  8787. ;;
  8788. --c* | \
  8789. --sr* | \
  8790. --ho* | \
  8791. --bu* | \
  8792. --t* | \
  8793. --program-* | \
  8794. -cache_file* | \
  8795. -srcdir* | \
  8796. -host* | \
  8797. -build* | \
  8798. -target* | \
  8799. -program-prefix* | \
  8800. -program-suffix* | \
  8801. -program-transform-name* )
  8802. skip_next=$separate_arg
  8803. continue
  8804. ;;
  8805. -*)
  8806. # An option. Add it.
  8807. case $ac_arg in
  8808. *\'*)
  8809. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8810. esac
  8811. baseargs="$baseargs '$ac_arg'"
  8812. if test X"$skip_targ" = Xno; then
  8813. tbaseargs="$tbaseargs '$ac_arg'"
  8814. fi
  8815. keep_next=$separate_arg
  8816. ;;
  8817. *)
  8818. # Either a variable assignment, or a nonopt (triplet). Don't
  8819. # pass it down; let the Makefile handle this.
  8820. continue
  8821. ;;
  8822. esac
  8823. done
  8824. # Remove the initial space we just introduced and, as these will be
  8825. # expanded by make, quote '$'.
  8826. baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
  8827. # Add in --program-transform-name, after --program-prefix and
  8828. # --program-suffix have been applied to it. Autoconf has already
  8829. # doubled dollar signs and backslashes in program_transform_name; we want
  8830. # the backslashes un-doubled, and then the entire thing wrapped in single
  8831. # quotes, because this will be expanded first by make and then by the shell.
  8832. # Also, because we want to override the logic in subdir configure scripts to
  8833. # choose program_transform_name, replace any s,x,x, with s,y,y,.
  8834. sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
  8835. ${program_transform_name}
  8836. EOF_SED
  8837. gcc_transform_name=`cat conftestsed.out`
  8838. rm -f conftestsed.out
  8839. baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
  8840. tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
  8841. if test "$silent" = yes; then
  8842. baseargs="$baseargs --silent"
  8843. tbaseargs="$tbaseargs --silent"
  8844. fi
  8845. baseargs="$baseargs --disable-option-checking"
  8846. tbaseargs="$tbaseargs --disable-option-checking"
  8847. # Record and document user additions to sub configure arguments.
  8848. # For the build-side libraries, we just need to pretend we're native,
  8849. # and not use the same cache file. Multilibs are neither needed nor
  8850. # desired. We can't even use the same cache file for all build-side
  8851. # libraries, as they're compiled differently; some with C, some with
  8852. # C++ or with different feature-enabling options.
  8853. build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
  8854. # For host modules, accept cache file option, or specification as blank.
  8855. case "${cache_file}" in
  8856. "") # empty
  8857. cache_file_option="" ;;
  8858. /* | [A-Za-z]:[\\/]* ) # absolute path
  8859. cache_file_option="--cache-file=${cache_file}" ;;
  8860. *) # relative path
  8861. cache_file_option="--cache-file=../${cache_file}" ;;
  8862. esac
  8863. # Host dirs don't like to share a cache file either, horribly enough.
  8864. # This seems to be due to autoconf 2.5x stupidity.
  8865. host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
  8866. target_configargs="$target_configargs ${tbaseargs}"
  8867. # Passing a --with-cross-host argument lets the target libraries know
  8868. # whether they are being built with a cross-compiler or being built
  8869. # native. However, it would be better to use other mechanisms to make the
  8870. # sorts of decisions they want to make on this basis. Please consider
  8871. # this option to be deprecated. FIXME.
  8872. if test x${is_cross_compiler} = xyes ; then
  8873. target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
  8874. fi
  8875. # Special user-friendly check for native x86_64-linux build, if
  8876. # multilib is not explicitly enabled.
  8877. case "$target:$have_compiler:$host:$target:$enable_multilib" in
  8878. x86_64-*linux*:yes:$build:$build:)
  8879. # Make sure we have a development environment that handles 32-bit
  8880. dev64=no
  8881. echo "int main () { return 0; }" > conftest.c
  8882. ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
  8883. if test $? = 0 ; then
  8884. if test -s conftest || test -s conftest.exe ; then
  8885. dev64=yes
  8886. fi
  8887. fi
  8888. rm -f conftest*
  8889. if test x${dev64} != xyes ; then
  8890. 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
  8891. fi
  8892. ;;
  8893. esac
  8894. # Default to --enable-multilib.
  8895. if test x${enable_multilib} = x ; then
  8896. target_configargs="--enable-multilib ${target_configargs}"
  8897. fi
  8898. # Pass --with-newlib if appropriate. Note that target_configdirs has
  8899. # changed from the earlier setting of with_newlib.
  8900. if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
  8901. target_configargs="--with-newlib ${target_configargs}"
  8902. fi
  8903. # Different target subdirs use different values of certain variables
  8904. # (notably CXX). Worse, multilibs use *lots* of different values.
  8905. # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
  8906. # it doesn't automatically accept command-line overrides of them.
  8907. # This means it's not safe for target subdirs to share a cache file,
  8908. # which is disgusting, but there you have it. Hopefully this can be
  8909. # fixed in future. It's still worthwhile to use a cache file for each
  8910. # directory. I think.
  8911. # Pass the appropriate --build, --host, --target and --cache-file arguments.
  8912. # We need to pass --target, as newer autoconf's requires consistency
  8913. # for target_alias and gcc doesn't manage it consistently.
  8914. target_configargs="--cache-file=./config.cache ${target_configargs}"
  8915. FLAGS_FOR_TARGET=
  8916. case " $target_configdirs " in
  8917. *" newlib "*)
  8918. case " $target_configargs " in
  8919. *" --with-newlib "*)
  8920. case "$target" in
  8921. *-cygwin*)
  8922. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
  8923. ;;
  8924. esac
  8925. # If we're not building GCC, don't discard standard headers.
  8926. if test -d ${srcdir}/gcc; then
  8927. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
  8928. if test "${build}" != "${host}"; then
  8929. # On Canadian crosses, CC_FOR_TARGET will have already been set
  8930. # by `configure', so we won't have an opportunity to add -Bgcc/
  8931. # to it. This is right: we don't want to search that directory
  8932. # for binaries, but we want the header files in there, so add
  8933. # them explicitly.
  8934. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
  8935. # Someone might think of using the pre-installed headers on
  8936. # Canadian crosses, in case the installed compiler is not fully
  8937. # compatible with the compiler being built. In this case, it
  8938. # would be better to flag an error than risking having
  8939. # incompatible object files being constructed. We can't
  8940. # guarantee that an error will be flagged, but let's hope the
  8941. # compiler will do it, when presented with incompatible header
  8942. # files.
  8943. fi
  8944. fi
  8945. case "${target}-${is_cross_compiler}" in
  8946. i[3456789]86-*-linux*-no)
  8947. # Here host == target, so we don't need to build gcc,
  8948. # so we don't want to discard standard headers.
  8949. FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
  8950. ;;
  8951. *)
  8952. # If we're building newlib, use its generic headers last, but search
  8953. # for any libc-related directories first (so make it the last -B
  8954. # switch).
  8955. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
  8956. # If we're building libgloss, find the startup file, simulator library
  8957. # and linker script.
  8958. case " $target_configdirs " in
  8959. *" libgloss "*)
  8960. # Look for startup file, simulator library and maybe linker script.
  8961. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
  8962. # Look for libnosys.a in case the target needs it.
  8963. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
  8964. # Most targets have the linker script in the source directory.
  8965. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
  8966. ;;
  8967. esac
  8968. ;;
  8969. esac
  8970. ;;
  8971. esac
  8972. ;;
  8973. esac
  8974. case "$target" in
  8975. x86_64-*mingw* | *-w64-mingw*)
  8976. # MinGW-w64 does not use newlib, nor does it use winsup. It may,
  8977. # however, use a symlink named 'mingw' in ${prefix} .
  8978. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
  8979. ;;
  8980. *-mingw*)
  8981. # MinGW can't be handled as Cygwin above since it does not use newlib.
  8982. 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'
  8983. ;;
  8984. esac
  8985. # Allow the user to override the flags for
  8986. # our build compiler if desired.
  8987. if test x"${build}" = x"${host}" ; then
  8988. CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
  8989. CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
  8990. CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
  8991. LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
  8992. fi
  8993. # On Canadian crosses, we'll be searching the right directories for
  8994. # the previously-installed cross compiler, so don't bother to add
  8995. # flags for directories within the install tree of the compiler
  8996. # being built; programs in there won't even run.
  8997. if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
  8998. # Search for pre-installed headers if nothing else fits.
  8999. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
  9000. fi
  9001. if test "x${use_gnu_ld}" = x &&
  9002. echo " ${configdirs} " | grep " ld " > /dev/null ; then
  9003. # Arrange for us to find uninstalled linker scripts.
  9004. FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
  9005. fi
  9006. # Search for other target-specific linker scripts and such.
  9007. case "${target}" in
  9008. mep*)
  9009. FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
  9010. ;;
  9011. esac
  9012. # Makefile fragments.
  9013. for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
  9014. do
  9015. eval fragval=\$$frag
  9016. if test $fragval != /dev/null; then
  9017. eval $frag=${srcdir}/$fragval
  9018. fi
  9019. done
  9020. # Miscellanea: directories, flags, etc.
  9021. # Build module lists & subconfigure args.
  9022. # Host module lists & subconfigure args.
  9023. # Target module lists & subconfigure args.
  9024. # Build tools.
  9025. # Generate default definitions for YACC, M4, LEX and other programs that run
  9026. # on the build machine. These are used if the Makefile can't locate these
  9027. # programs in objdir.
  9028. MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
  9029. for ac_prog in 'bison -y' byacc yacc
  9030. do
  9031. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9032. set dummy $ac_prog; ac_word=$2
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9034. $as_echo_n "checking for $ac_word... " >&6; }
  9035. if ${ac_cv_prog_YACC+:} false; then :
  9036. $as_echo_n "(cached) " >&6
  9037. else
  9038. if test -n "$YACC"; then
  9039. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  9040. else
  9041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9042. for as_dir in $PATH
  9043. do
  9044. IFS=$as_save_IFS
  9045. test -z "$as_dir" && as_dir=.
  9046. for ac_exec_ext in '' $ac_executable_extensions; do
  9047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9048. ac_cv_prog_YACC="$ac_prog"
  9049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9050. break 2
  9051. fi
  9052. done
  9053. done
  9054. IFS=$as_save_IFS
  9055. fi
  9056. fi
  9057. YACC=$ac_cv_prog_YACC
  9058. if test -n "$YACC"; then
  9059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  9060. $as_echo "$YACC" >&6; }
  9061. else
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9063. $as_echo "no" >&6; }
  9064. fi
  9065. test -n "$YACC" && break
  9066. done
  9067. test -n "$YACC" || YACC="$MISSING bison -y"
  9068. case " $build_configdirs " in
  9069. *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
  9070. esac
  9071. for ac_prog in bison
  9072. do
  9073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9074. set dummy $ac_prog; ac_word=$2
  9075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9076. $as_echo_n "checking for $ac_word... " >&6; }
  9077. if ${ac_cv_prog_BISON+:} false; then :
  9078. $as_echo_n "(cached) " >&6
  9079. else
  9080. if test -n "$BISON"; then
  9081. ac_cv_prog_BISON="$BISON" # Let the user override the test.
  9082. else
  9083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9084. for as_dir in $PATH
  9085. do
  9086. IFS=$as_save_IFS
  9087. test -z "$as_dir" && as_dir=.
  9088. for ac_exec_ext in '' $ac_executable_extensions; do
  9089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9090. ac_cv_prog_BISON="$ac_prog"
  9091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9092. break 2
  9093. fi
  9094. done
  9095. done
  9096. IFS=$as_save_IFS
  9097. fi
  9098. fi
  9099. BISON=$ac_cv_prog_BISON
  9100. if test -n "$BISON"; then
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
  9102. $as_echo "$BISON" >&6; }
  9103. else
  9104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9105. $as_echo "no" >&6; }
  9106. fi
  9107. test -n "$BISON" && break
  9108. done
  9109. test -n "$BISON" || BISON="$MISSING bison"
  9110. case " $build_configdirs " in
  9111. *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
  9112. esac
  9113. for ac_prog in gm4 gnum4 m4
  9114. do
  9115. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9116. set dummy $ac_prog; ac_word=$2
  9117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9118. $as_echo_n "checking for $ac_word... " >&6; }
  9119. if ${ac_cv_prog_M4+:} false; then :
  9120. $as_echo_n "(cached) " >&6
  9121. else
  9122. if test -n "$M4"; then
  9123. ac_cv_prog_M4="$M4" # Let the user override the test.
  9124. else
  9125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9126. for as_dir in $PATH
  9127. do
  9128. IFS=$as_save_IFS
  9129. test -z "$as_dir" && as_dir=.
  9130. for ac_exec_ext in '' $ac_executable_extensions; do
  9131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9132. ac_cv_prog_M4="$ac_prog"
  9133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9134. break 2
  9135. fi
  9136. done
  9137. done
  9138. IFS=$as_save_IFS
  9139. fi
  9140. fi
  9141. M4=$ac_cv_prog_M4
  9142. if test -n "$M4"; then
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
  9144. $as_echo "$M4" >&6; }
  9145. else
  9146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9147. $as_echo "no" >&6; }
  9148. fi
  9149. test -n "$M4" && break
  9150. done
  9151. test -n "$M4" || M4="$MISSING m4"
  9152. case " $build_configdirs " in
  9153. *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
  9154. esac
  9155. for ac_prog in flex lex
  9156. do
  9157. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9158. set dummy $ac_prog; ac_word=$2
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9160. $as_echo_n "checking for $ac_word... " >&6; }
  9161. if ${ac_cv_prog_LEX+:} false; then :
  9162. $as_echo_n "(cached) " >&6
  9163. else
  9164. if test -n "$LEX"; then
  9165. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  9166. else
  9167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9168. for as_dir in $PATH
  9169. do
  9170. IFS=$as_save_IFS
  9171. test -z "$as_dir" && as_dir=.
  9172. for ac_exec_ext in '' $ac_executable_extensions; do
  9173. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9174. ac_cv_prog_LEX="$ac_prog"
  9175. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9176. break 2
  9177. fi
  9178. done
  9179. done
  9180. IFS=$as_save_IFS
  9181. fi
  9182. fi
  9183. LEX=$ac_cv_prog_LEX
  9184. if test -n "$LEX"; then
  9185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  9186. $as_echo "$LEX" >&6; }
  9187. else
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9189. $as_echo "no" >&6; }
  9190. fi
  9191. test -n "$LEX" && break
  9192. done
  9193. test -n "$LEX" || LEX="$MISSING flex"
  9194. case " $build_configdirs " in
  9195. *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  9196. *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
  9197. esac
  9198. for ac_prog in flex
  9199. do
  9200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9201. set dummy $ac_prog; ac_word=$2
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9203. $as_echo_n "checking for $ac_word... " >&6; }
  9204. if ${ac_cv_prog_FLEX+:} false; then :
  9205. $as_echo_n "(cached) " >&6
  9206. else
  9207. if test -n "$FLEX"; then
  9208. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  9209. else
  9210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9211. for as_dir in $PATH
  9212. do
  9213. IFS=$as_save_IFS
  9214. test -z "$as_dir" && as_dir=.
  9215. for ac_exec_ext in '' $ac_executable_extensions; do
  9216. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9217. ac_cv_prog_FLEX="$ac_prog"
  9218. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9219. break 2
  9220. fi
  9221. done
  9222. done
  9223. IFS=$as_save_IFS
  9224. fi
  9225. fi
  9226. FLEX=$ac_cv_prog_FLEX
  9227. if test -n "$FLEX"; then
  9228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  9229. $as_echo "$FLEX" >&6; }
  9230. else
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9232. $as_echo "no" >&6; }
  9233. fi
  9234. test -n "$FLEX" && break
  9235. done
  9236. test -n "$FLEX" || FLEX="$MISSING flex"
  9237. case " $build_configdirs " in
  9238. *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
  9239. esac
  9240. for ac_prog in makeinfo
  9241. do
  9242. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9243. set dummy $ac_prog; ac_word=$2
  9244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9245. $as_echo_n "checking for $ac_word... " >&6; }
  9246. if ${ac_cv_prog_MAKEINFO+:} false; then :
  9247. $as_echo_n "(cached) " >&6
  9248. else
  9249. if test -n "$MAKEINFO"; then
  9250. ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
  9251. else
  9252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9253. for as_dir in $PATH
  9254. do
  9255. IFS=$as_save_IFS
  9256. test -z "$as_dir" && as_dir=.
  9257. for ac_exec_ext in '' $ac_executable_extensions; do
  9258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9259. ac_cv_prog_MAKEINFO="$ac_prog"
  9260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9261. break 2
  9262. fi
  9263. done
  9264. done
  9265. IFS=$as_save_IFS
  9266. fi
  9267. fi
  9268. MAKEINFO=$ac_cv_prog_MAKEINFO
  9269. if test -n "$MAKEINFO"; then
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
  9271. $as_echo "$MAKEINFO" >&6; }
  9272. else
  9273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9274. $as_echo "no" >&6; }
  9275. fi
  9276. test -n "$MAKEINFO" && break
  9277. done
  9278. test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
  9279. case " $build_configdirs " in
  9280. *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
  9281. *)
  9282. # For an installed makeinfo, we require it to be from texinfo 4.7 or
  9283. # higher, else we use the "missing" dummy.
  9284. if ${MAKEINFO} --version \
  9285. | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
  9286. :
  9287. else
  9288. MAKEINFO="$MISSING makeinfo"
  9289. fi
  9290. ;;
  9291. esac
  9292. # FIXME: expect and dejagnu may become build tools?
  9293. for ac_prog in expect
  9294. do
  9295. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9296. set dummy $ac_prog; ac_word=$2
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9298. $as_echo_n "checking for $ac_word... " >&6; }
  9299. if ${ac_cv_prog_EXPECT+:} false; then :
  9300. $as_echo_n "(cached) " >&6
  9301. else
  9302. if test -n "$EXPECT"; then
  9303. ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
  9304. else
  9305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9306. for as_dir in $PATH
  9307. do
  9308. IFS=$as_save_IFS
  9309. test -z "$as_dir" && as_dir=.
  9310. for ac_exec_ext in '' $ac_executable_extensions; do
  9311. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9312. ac_cv_prog_EXPECT="$ac_prog"
  9313. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9314. break 2
  9315. fi
  9316. done
  9317. done
  9318. IFS=$as_save_IFS
  9319. fi
  9320. fi
  9321. EXPECT=$ac_cv_prog_EXPECT
  9322. if test -n "$EXPECT"; then
  9323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
  9324. $as_echo "$EXPECT" >&6; }
  9325. else
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9327. $as_echo "no" >&6; }
  9328. fi
  9329. test -n "$EXPECT" && break
  9330. done
  9331. test -n "$EXPECT" || EXPECT="expect"
  9332. case " $configdirs " in
  9333. *" expect "*)
  9334. test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
  9335. ;;
  9336. esac
  9337. for ac_prog in runtest
  9338. do
  9339. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9340. set dummy $ac_prog; ac_word=$2
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9342. $as_echo_n "checking for $ac_word... " >&6; }
  9343. if ${ac_cv_prog_RUNTEST+:} false; then :
  9344. $as_echo_n "(cached) " >&6
  9345. else
  9346. if test -n "$RUNTEST"; then
  9347. ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
  9348. else
  9349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9350. for as_dir in $PATH
  9351. do
  9352. IFS=$as_save_IFS
  9353. test -z "$as_dir" && as_dir=.
  9354. for ac_exec_ext in '' $ac_executable_extensions; do
  9355. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9356. ac_cv_prog_RUNTEST="$ac_prog"
  9357. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9358. break 2
  9359. fi
  9360. done
  9361. done
  9362. IFS=$as_save_IFS
  9363. fi
  9364. fi
  9365. RUNTEST=$ac_cv_prog_RUNTEST
  9366. if test -n "$RUNTEST"; then
  9367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
  9368. $as_echo "$RUNTEST" >&6; }
  9369. else
  9370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9371. $as_echo "no" >&6; }
  9372. fi
  9373. test -n "$RUNTEST" && break
  9374. done
  9375. test -n "$RUNTEST" || RUNTEST="runtest"
  9376. case " $configdirs " in
  9377. *" dejagnu "*)
  9378. test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
  9379. ;;
  9380. esac
  9381. # Host tools.
  9382. ncn_tool_prefix=
  9383. test -n "$host_alias" && ncn_tool_prefix=$host_alias-
  9384. ncn_target_tool_prefix=
  9385. test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
  9386. if test -n "$AR"; then
  9387. ac_cv_prog_AR=$AR
  9388. elif test -n "$ac_cv_prog_AR"; then
  9389. AR=$ac_cv_prog_AR
  9390. fi
  9391. if test -n "$ac_cv_prog_AR"; then
  9392. for ncn_progname in ar; do
  9393. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9394. set dummy ${ncn_progname}; ac_word=$2
  9395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9396. $as_echo_n "checking for $ac_word... " >&6; }
  9397. if ${ac_cv_prog_AR+:} false; then :
  9398. $as_echo_n "(cached) " >&6
  9399. else
  9400. if test -n "$AR"; then
  9401. ac_cv_prog_AR="$AR" # Let the user override the test.
  9402. else
  9403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9404. for as_dir in $PATH
  9405. do
  9406. IFS=$as_save_IFS
  9407. test -z "$as_dir" && as_dir=.
  9408. for ac_exec_ext in '' $ac_executable_extensions; do
  9409. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9410. ac_cv_prog_AR="${ncn_progname}"
  9411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9412. break 2
  9413. fi
  9414. done
  9415. done
  9416. IFS=$as_save_IFS
  9417. fi
  9418. fi
  9419. AR=$ac_cv_prog_AR
  9420. if test -n "$AR"; then
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9422. $as_echo "$AR" >&6; }
  9423. else
  9424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9425. $as_echo "no" >&6; }
  9426. fi
  9427. done
  9428. fi
  9429. for ncn_progname in ar; do
  9430. if test -n "$ncn_tool_prefix"; then
  9431. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9432. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9434. $as_echo_n "checking for $ac_word... " >&6; }
  9435. if ${ac_cv_prog_AR+:} false; then :
  9436. $as_echo_n "(cached) " >&6
  9437. else
  9438. if test -n "$AR"; then
  9439. ac_cv_prog_AR="$AR" # Let the user override the test.
  9440. else
  9441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9442. for as_dir in $PATH
  9443. do
  9444. IFS=$as_save_IFS
  9445. test -z "$as_dir" && as_dir=.
  9446. for ac_exec_ext in '' $ac_executable_extensions; do
  9447. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9448. ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
  9449. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9450. break 2
  9451. fi
  9452. done
  9453. done
  9454. IFS=$as_save_IFS
  9455. fi
  9456. fi
  9457. AR=$ac_cv_prog_AR
  9458. if test -n "$AR"; then
  9459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9460. $as_echo "$AR" >&6; }
  9461. else
  9462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9463. $as_echo "no" >&6; }
  9464. fi
  9465. fi
  9466. if test -z "$ac_cv_prog_AR" && test $build = $host ; then
  9467. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9468. set dummy ${ncn_progname}; ac_word=$2
  9469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9470. $as_echo_n "checking for $ac_word... " >&6; }
  9471. if ${ac_cv_prog_AR+:} false; then :
  9472. $as_echo_n "(cached) " >&6
  9473. else
  9474. if test -n "$AR"; then
  9475. ac_cv_prog_AR="$AR" # Let the user override the test.
  9476. else
  9477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9478. for as_dir in $PATH
  9479. do
  9480. IFS=$as_save_IFS
  9481. test -z "$as_dir" && as_dir=.
  9482. for ac_exec_ext in '' $ac_executable_extensions; do
  9483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9484. ac_cv_prog_AR="${ncn_progname}"
  9485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9486. break 2
  9487. fi
  9488. done
  9489. done
  9490. IFS=$as_save_IFS
  9491. fi
  9492. fi
  9493. AR=$ac_cv_prog_AR
  9494. if test -n "$AR"; then
  9495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  9496. $as_echo "$AR" >&6; }
  9497. else
  9498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9499. $as_echo "no" >&6; }
  9500. fi
  9501. fi
  9502. test -n "$ac_cv_prog_AR" && break
  9503. done
  9504. if test -z "$ac_cv_prog_AR" ; then
  9505. set dummy ar
  9506. if test $build = $host ; then
  9507. AR="$2"
  9508. else
  9509. AR="${ncn_tool_prefix}$2"
  9510. fi
  9511. fi
  9512. if test -n "$AS"; then
  9513. ac_cv_prog_AS=$AS
  9514. elif test -n "$ac_cv_prog_AS"; then
  9515. AS=$ac_cv_prog_AS
  9516. fi
  9517. if test -n "$ac_cv_prog_AS"; then
  9518. for ncn_progname in as; do
  9519. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9520. set dummy ${ncn_progname}; ac_word=$2
  9521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9522. $as_echo_n "checking for $ac_word... " >&6; }
  9523. if ${ac_cv_prog_AS+:} false; then :
  9524. $as_echo_n "(cached) " >&6
  9525. else
  9526. if test -n "$AS"; then
  9527. ac_cv_prog_AS="$AS" # Let the user override the test.
  9528. else
  9529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9530. for as_dir in $PATH
  9531. do
  9532. IFS=$as_save_IFS
  9533. test -z "$as_dir" && as_dir=.
  9534. for ac_exec_ext in '' $ac_executable_extensions; do
  9535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9536. ac_cv_prog_AS="${ncn_progname}"
  9537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9538. break 2
  9539. fi
  9540. done
  9541. done
  9542. IFS=$as_save_IFS
  9543. fi
  9544. fi
  9545. AS=$ac_cv_prog_AS
  9546. if test -n "$AS"; then
  9547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9548. $as_echo "$AS" >&6; }
  9549. else
  9550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9551. $as_echo "no" >&6; }
  9552. fi
  9553. done
  9554. fi
  9555. for ncn_progname in as; do
  9556. if test -n "$ncn_tool_prefix"; then
  9557. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9558. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9560. $as_echo_n "checking for $ac_word... " >&6; }
  9561. if ${ac_cv_prog_AS+:} false; then :
  9562. $as_echo_n "(cached) " >&6
  9563. else
  9564. if test -n "$AS"; then
  9565. ac_cv_prog_AS="$AS" # Let the user override the test.
  9566. else
  9567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9568. for as_dir in $PATH
  9569. do
  9570. IFS=$as_save_IFS
  9571. test -z "$as_dir" && as_dir=.
  9572. for ac_exec_ext in '' $ac_executable_extensions; do
  9573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9574. ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
  9575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9576. break 2
  9577. fi
  9578. done
  9579. done
  9580. IFS=$as_save_IFS
  9581. fi
  9582. fi
  9583. AS=$ac_cv_prog_AS
  9584. if test -n "$AS"; then
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9586. $as_echo "$AS" >&6; }
  9587. else
  9588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9589. $as_echo "no" >&6; }
  9590. fi
  9591. fi
  9592. if test -z "$ac_cv_prog_AS" && test $build = $host ; then
  9593. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9594. set dummy ${ncn_progname}; ac_word=$2
  9595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9596. $as_echo_n "checking for $ac_word... " >&6; }
  9597. if ${ac_cv_prog_AS+:} false; then :
  9598. $as_echo_n "(cached) " >&6
  9599. else
  9600. if test -n "$AS"; then
  9601. ac_cv_prog_AS="$AS" # Let the user override the test.
  9602. else
  9603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9604. for as_dir in $PATH
  9605. do
  9606. IFS=$as_save_IFS
  9607. test -z "$as_dir" && as_dir=.
  9608. for ac_exec_ext in '' $ac_executable_extensions; do
  9609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9610. ac_cv_prog_AS="${ncn_progname}"
  9611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9612. break 2
  9613. fi
  9614. done
  9615. done
  9616. IFS=$as_save_IFS
  9617. fi
  9618. fi
  9619. AS=$ac_cv_prog_AS
  9620. if test -n "$AS"; then
  9621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  9622. $as_echo "$AS" >&6; }
  9623. else
  9624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9625. $as_echo "no" >&6; }
  9626. fi
  9627. fi
  9628. test -n "$ac_cv_prog_AS" && break
  9629. done
  9630. if test -z "$ac_cv_prog_AS" ; then
  9631. set dummy as
  9632. if test $build = $host ; then
  9633. AS="$2"
  9634. else
  9635. AS="${ncn_tool_prefix}$2"
  9636. fi
  9637. fi
  9638. if test -n "$DLLTOOL"; then
  9639. ac_cv_prog_DLLTOOL=$DLLTOOL
  9640. elif test -n "$ac_cv_prog_DLLTOOL"; then
  9641. DLLTOOL=$ac_cv_prog_DLLTOOL
  9642. fi
  9643. if test -n "$ac_cv_prog_DLLTOOL"; then
  9644. for ncn_progname in dlltool; do
  9645. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9646. set dummy ${ncn_progname}; ac_word=$2
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9648. $as_echo_n "checking for $ac_word... " >&6; }
  9649. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9650. $as_echo_n "(cached) " >&6
  9651. else
  9652. if test -n "$DLLTOOL"; then
  9653. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9654. else
  9655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9656. for as_dir in $PATH
  9657. do
  9658. IFS=$as_save_IFS
  9659. test -z "$as_dir" && as_dir=.
  9660. for ac_exec_ext in '' $ac_executable_extensions; do
  9661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9662. ac_cv_prog_DLLTOOL="${ncn_progname}"
  9663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9664. break 2
  9665. fi
  9666. done
  9667. done
  9668. IFS=$as_save_IFS
  9669. fi
  9670. fi
  9671. DLLTOOL=$ac_cv_prog_DLLTOOL
  9672. if test -n "$DLLTOOL"; then
  9673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9674. $as_echo "$DLLTOOL" >&6; }
  9675. else
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9677. $as_echo "no" >&6; }
  9678. fi
  9679. done
  9680. fi
  9681. for ncn_progname in dlltool; do
  9682. if test -n "$ncn_tool_prefix"; then
  9683. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9684. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9686. $as_echo_n "checking for $ac_word... " >&6; }
  9687. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9688. $as_echo_n "(cached) " >&6
  9689. else
  9690. if test -n "$DLLTOOL"; then
  9691. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9692. else
  9693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9694. for as_dir in $PATH
  9695. do
  9696. IFS=$as_save_IFS
  9697. test -z "$as_dir" && as_dir=.
  9698. for ac_exec_ext in '' $ac_executable_extensions; do
  9699. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9700. ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
  9701. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9702. break 2
  9703. fi
  9704. done
  9705. done
  9706. IFS=$as_save_IFS
  9707. fi
  9708. fi
  9709. DLLTOOL=$ac_cv_prog_DLLTOOL
  9710. if test -n "$DLLTOOL"; then
  9711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9712. $as_echo "$DLLTOOL" >&6; }
  9713. else
  9714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9715. $as_echo "no" >&6; }
  9716. fi
  9717. fi
  9718. if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
  9719. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9720. set dummy ${ncn_progname}; ac_word=$2
  9721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9722. $as_echo_n "checking for $ac_word... " >&6; }
  9723. if ${ac_cv_prog_DLLTOOL+:} false; then :
  9724. $as_echo_n "(cached) " >&6
  9725. else
  9726. if test -n "$DLLTOOL"; then
  9727. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  9728. else
  9729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9730. for as_dir in $PATH
  9731. do
  9732. IFS=$as_save_IFS
  9733. test -z "$as_dir" && as_dir=.
  9734. for ac_exec_ext in '' $ac_executable_extensions; do
  9735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9736. ac_cv_prog_DLLTOOL="${ncn_progname}"
  9737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9738. break 2
  9739. fi
  9740. done
  9741. done
  9742. IFS=$as_save_IFS
  9743. fi
  9744. fi
  9745. DLLTOOL=$ac_cv_prog_DLLTOOL
  9746. if test -n "$DLLTOOL"; then
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  9748. $as_echo "$DLLTOOL" >&6; }
  9749. else
  9750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9751. $as_echo "no" >&6; }
  9752. fi
  9753. fi
  9754. test -n "$ac_cv_prog_DLLTOOL" && break
  9755. done
  9756. if test -z "$ac_cv_prog_DLLTOOL" ; then
  9757. set dummy dlltool
  9758. if test $build = $host ; then
  9759. DLLTOOL="$2"
  9760. else
  9761. DLLTOOL="${ncn_tool_prefix}$2"
  9762. fi
  9763. fi
  9764. if test -n "$DSYMUTIL"; then
  9765. ac_cv_prog_DSYMUTIL=$DSYMUTIL
  9766. elif test -n "$ac_cv_prog_DSYMUTIL"; then
  9767. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9768. fi
  9769. if test -n "$ac_cv_prog_DSYMUTIL"; then
  9770. for ncn_progname in dsymutil; do
  9771. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9772. set dummy ${ncn_progname}; ac_word=$2
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9774. $as_echo_n "checking for $ac_word... " >&6; }
  9775. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9776. $as_echo_n "(cached) " >&6
  9777. else
  9778. if test -n "$DSYMUTIL"; then
  9779. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9780. else
  9781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9782. for as_dir in $PATH
  9783. do
  9784. IFS=$as_save_IFS
  9785. test -z "$as_dir" && as_dir=.
  9786. for ac_exec_ext in '' $ac_executable_extensions; do
  9787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9788. ac_cv_prog_DSYMUTIL="${ncn_progname}"
  9789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9790. break 2
  9791. fi
  9792. done
  9793. done
  9794. IFS=$as_save_IFS
  9795. fi
  9796. fi
  9797. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9798. if test -n "$DSYMUTIL"; then
  9799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9800. $as_echo "$DSYMUTIL" >&6; }
  9801. else
  9802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9803. $as_echo "no" >&6; }
  9804. fi
  9805. done
  9806. fi
  9807. for ncn_progname in dsymutil; do
  9808. if test -n "$ncn_tool_prefix"; then
  9809. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9810. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9812. $as_echo_n "checking for $ac_word... " >&6; }
  9813. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9814. $as_echo_n "(cached) " >&6
  9815. else
  9816. if test -n "$DSYMUTIL"; then
  9817. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9818. else
  9819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9820. for as_dir in $PATH
  9821. do
  9822. IFS=$as_save_IFS
  9823. test -z "$as_dir" && as_dir=.
  9824. for ac_exec_ext in '' $ac_executable_extensions; do
  9825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9826. ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
  9827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9828. break 2
  9829. fi
  9830. done
  9831. done
  9832. IFS=$as_save_IFS
  9833. fi
  9834. fi
  9835. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9836. if test -n "$DSYMUTIL"; then
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9838. $as_echo "$DSYMUTIL" >&6; }
  9839. else
  9840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9841. $as_echo "no" >&6; }
  9842. fi
  9843. fi
  9844. if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
  9845. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9846. set dummy ${ncn_progname}; ac_word=$2
  9847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9848. $as_echo_n "checking for $ac_word... " >&6; }
  9849. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  9850. $as_echo_n "(cached) " >&6
  9851. else
  9852. if test -n "$DSYMUTIL"; then
  9853. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  9854. else
  9855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9856. for as_dir in $PATH
  9857. do
  9858. IFS=$as_save_IFS
  9859. test -z "$as_dir" && as_dir=.
  9860. for ac_exec_ext in '' $ac_executable_extensions; do
  9861. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9862. ac_cv_prog_DSYMUTIL="${ncn_progname}"
  9863. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9864. break 2
  9865. fi
  9866. done
  9867. done
  9868. IFS=$as_save_IFS
  9869. fi
  9870. fi
  9871. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  9872. if test -n "$DSYMUTIL"; then
  9873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  9874. $as_echo "$DSYMUTIL" >&6; }
  9875. else
  9876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9877. $as_echo "no" >&6; }
  9878. fi
  9879. fi
  9880. test -n "$ac_cv_prog_DSYMUTIL" && break
  9881. done
  9882. if test -z "$ac_cv_prog_DSYMUTIL" ; then
  9883. set dummy dsymutil
  9884. if test $build = $host ; then
  9885. DSYMUTIL="$2"
  9886. else
  9887. DSYMUTIL="${ncn_tool_prefix}$2"
  9888. fi
  9889. fi
  9890. if test -n "$LD"; then
  9891. ac_cv_prog_LD=$LD
  9892. elif test -n "$ac_cv_prog_LD"; then
  9893. LD=$ac_cv_prog_LD
  9894. fi
  9895. if test -n "$ac_cv_prog_LD"; then
  9896. for ncn_progname in ld; do
  9897. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9898. set dummy ${ncn_progname}; ac_word=$2
  9899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9900. $as_echo_n "checking for $ac_word... " >&6; }
  9901. if ${ac_cv_prog_LD+:} false; then :
  9902. $as_echo_n "(cached) " >&6
  9903. else
  9904. if test -n "$LD"; then
  9905. ac_cv_prog_LD="$LD" # Let the user override the test.
  9906. else
  9907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9908. for as_dir in $PATH
  9909. do
  9910. IFS=$as_save_IFS
  9911. test -z "$as_dir" && as_dir=.
  9912. for ac_exec_ext in '' $ac_executable_extensions; do
  9913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9914. ac_cv_prog_LD="${ncn_progname}"
  9915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9916. break 2
  9917. fi
  9918. done
  9919. done
  9920. IFS=$as_save_IFS
  9921. fi
  9922. fi
  9923. LD=$ac_cv_prog_LD
  9924. if test -n "$LD"; then
  9925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9926. $as_echo "$LD" >&6; }
  9927. else
  9928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9929. $as_echo "no" >&6; }
  9930. fi
  9931. done
  9932. fi
  9933. for ncn_progname in ld; do
  9934. if test -n "$ncn_tool_prefix"; then
  9935. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  9936. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  9937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9938. $as_echo_n "checking for $ac_word... " >&6; }
  9939. if ${ac_cv_prog_LD+:} false; then :
  9940. $as_echo_n "(cached) " >&6
  9941. else
  9942. if test -n "$LD"; then
  9943. ac_cv_prog_LD="$LD" # Let the user override the test.
  9944. else
  9945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9946. for as_dir in $PATH
  9947. do
  9948. IFS=$as_save_IFS
  9949. test -z "$as_dir" && as_dir=.
  9950. for ac_exec_ext in '' $ac_executable_extensions; do
  9951. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9952. ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
  9953. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9954. break 2
  9955. fi
  9956. done
  9957. done
  9958. IFS=$as_save_IFS
  9959. fi
  9960. fi
  9961. LD=$ac_cv_prog_LD
  9962. if test -n "$LD"; then
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9964. $as_echo "$LD" >&6; }
  9965. else
  9966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9967. $as_echo "no" >&6; }
  9968. fi
  9969. fi
  9970. if test -z "$ac_cv_prog_LD" && test $build = $host ; then
  9971. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  9972. set dummy ${ncn_progname}; ac_word=$2
  9973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9974. $as_echo_n "checking for $ac_word... " >&6; }
  9975. if ${ac_cv_prog_LD+:} false; then :
  9976. $as_echo_n "(cached) " >&6
  9977. else
  9978. if test -n "$LD"; then
  9979. ac_cv_prog_LD="$LD" # Let the user override the test.
  9980. else
  9981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9982. for as_dir in $PATH
  9983. do
  9984. IFS=$as_save_IFS
  9985. test -z "$as_dir" && as_dir=.
  9986. for ac_exec_ext in '' $ac_executable_extensions; do
  9987. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9988. ac_cv_prog_LD="${ncn_progname}"
  9989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9990. break 2
  9991. fi
  9992. done
  9993. done
  9994. IFS=$as_save_IFS
  9995. fi
  9996. fi
  9997. LD=$ac_cv_prog_LD
  9998. if test -n "$LD"; then
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10000. $as_echo "$LD" >&6; }
  10001. else
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10003. $as_echo "no" >&6; }
  10004. fi
  10005. fi
  10006. test -n "$ac_cv_prog_LD" && break
  10007. done
  10008. if test -z "$ac_cv_prog_LD" ; then
  10009. set dummy ld
  10010. if test $build = $host ; then
  10011. LD="$2"
  10012. else
  10013. LD="${ncn_tool_prefix}$2"
  10014. fi
  10015. fi
  10016. if test -n "$LIPO"; then
  10017. ac_cv_prog_LIPO=$LIPO
  10018. elif test -n "$ac_cv_prog_LIPO"; then
  10019. LIPO=$ac_cv_prog_LIPO
  10020. fi
  10021. if test -n "$ac_cv_prog_LIPO"; then
  10022. for ncn_progname in lipo; do
  10023. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10024. set dummy ${ncn_progname}; ac_word=$2
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10026. $as_echo_n "checking for $ac_word... " >&6; }
  10027. if ${ac_cv_prog_LIPO+:} false; then :
  10028. $as_echo_n "(cached) " >&6
  10029. else
  10030. if test -n "$LIPO"; then
  10031. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  10032. else
  10033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10034. for as_dir in $PATH
  10035. do
  10036. IFS=$as_save_IFS
  10037. test -z "$as_dir" && as_dir=.
  10038. for ac_exec_ext in '' $ac_executable_extensions; do
  10039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10040. ac_cv_prog_LIPO="${ncn_progname}"
  10041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10042. break 2
  10043. fi
  10044. done
  10045. done
  10046. IFS=$as_save_IFS
  10047. fi
  10048. fi
  10049. LIPO=$ac_cv_prog_LIPO
  10050. if test -n "$LIPO"; then
  10051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  10052. $as_echo "$LIPO" >&6; }
  10053. else
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10055. $as_echo "no" >&6; }
  10056. fi
  10057. done
  10058. fi
  10059. for ncn_progname in lipo; do
  10060. if test -n "$ncn_tool_prefix"; then
  10061. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10062. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10064. $as_echo_n "checking for $ac_word... " >&6; }
  10065. if ${ac_cv_prog_LIPO+:} false; then :
  10066. $as_echo_n "(cached) " >&6
  10067. else
  10068. if test -n "$LIPO"; then
  10069. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  10070. else
  10071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10072. for as_dir in $PATH
  10073. do
  10074. IFS=$as_save_IFS
  10075. test -z "$as_dir" && as_dir=.
  10076. for ac_exec_ext in '' $ac_executable_extensions; do
  10077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10078. ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
  10079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10080. break 2
  10081. fi
  10082. done
  10083. done
  10084. IFS=$as_save_IFS
  10085. fi
  10086. fi
  10087. LIPO=$ac_cv_prog_LIPO
  10088. if test -n "$LIPO"; then
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  10090. $as_echo "$LIPO" >&6; }
  10091. else
  10092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10093. $as_echo "no" >&6; }
  10094. fi
  10095. fi
  10096. if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
  10097. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10098. set dummy ${ncn_progname}; ac_word=$2
  10099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10100. $as_echo_n "checking for $ac_word... " >&6; }
  10101. if ${ac_cv_prog_LIPO+:} false; then :
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. if test -n "$LIPO"; then
  10105. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  10106. else
  10107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10108. for as_dir in $PATH
  10109. do
  10110. IFS=$as_save_IFS
  10111. test -z "$as_dir" && as_dir=.
  10112. for ac_exec_ext in '' $ac_executable_extensions; do
  10113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10114. ac_cv_prog_LIPO="${ncn_progname}"
  10115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10116. break 2
  10117. fi
  10118. done
  10119. done
  10120. IFS=$as_save_IFS
  10121. fi
  10122. fi
  10123. LIPO=$ac_cv_prog_LIPO
  10124. if test -n "$LIPO"; then
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  10126. $as_echo "$LIPO" >&6; }
  10127. else
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10129. $as_echo "no" >&6; }
  10130. fi
  10131. fi
  10132. test -n "$ac_cv_prog_LIPO" && break
  10133. done
  10134. if test -z "$ac_cv_prog_LIPO" ; then
  10135. set dummy lipo
  10136. if test $build = $host ; then
  10137. LIPO="$2"
  10138. else
  10139. LIPO="${ncn_tool_prefix}$2"
  10140. fi
  10141. fi
  10142. if test -n "$NM"; then
  10143. ac_cv_prog_NM=$NM
  10144. elif test -n "$ac_cv_prog_NM"; then
  10145. NM=$ac_cv_prog_NM
  10146. fi
  10147. if test -n "$ac_cv_prog_NM"; then
  10148. for ncn_progname in nm; do
  10149. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10150. set dummy ${ncn_progname}; ac_word=$2
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10152. $as_echo_n "checking for $ac_word... " >&6; }
  10153. if ${ac_cv_prog_NM+:} false; then :
  10154. $as_echo_n "(cached) " >&6
  10155. else
  10156. if test -n "$NM"; then
  10157. ac_cv_prog_NM="$NM" # Let the user override the test.
  10158. else
  10159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10160. for as_dir in $PATH
  10161. do
  10162. IFS=$as_save_IFS
  10163. test -z "$as_dir" && as_dir=.
  10164. for ac_exec_ext in '' $ac_executable_extensions; do
  10165. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10166. ac_cv_prog_NM="${ncn_progname}"
  10167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10168. break 2
  10169. fi
  10170. done
  10171. done
  10172. IFS=$as_save_IFS
  10173. fi
  10174. fi
  10175. NM=$ac_cv_prog_NM
  10176. if test -n "$NM"; then
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  10178. $as_echo "$NM" >&6; }
  10179. else
  10180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10181. $as_echo "no" >&6; }
  10182. fi
  10183. done
  10184. fi
  10185. for ncn_progname in nm; do
  10186. if test -n "$ncn_tool_prefix"; then
  10187. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10188. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10190. $as_echo_n "checking for $ac_word... " >&6; }
  10191. if ${ac_cv_prog_NM+:} false; then :
  10192. $as_echo_n "(cached) " >&6
  10193. else
  10194. if test -n "$NM"; then
  10195. ac_cv_prog_NM="$NM" # Let the user override the test.
  10196. else
  10197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10198. for as_dir in $PATH
  10199. do
  10200. IFS=$as_save_IFS
  10201. test -z "$as_dir" && as_dir=.
  10202. for ac_exec_ext in '' $ac_executable_extensions; do
  10203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10204. ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
  10205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10206. break 2
  10207. fi
  10208. done
  10209. done
  10210. IFS=$as_save_IFS
  10211. fi
  10212. fi
  10213. NM=$ac_cv_prog_NM
  10214. if test -n "$NM"; then
  10215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  10216. $as_echo "$NM" >&6; }
  10217. else
  10218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10219. $as_echo "no" >&6; }
  10220. fi
  10221. fi
  10222. if test -z "$ac_cv_prog_NM" && test $build = $host ; then
  10223. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10224. set dummy ${ncn_progname}; ac_word=$2
  10225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10226. $as_echo_n "checking for $ac_word... " >&6; }
  10227. if ${ac_cv_prog_NM+:} false; then :
  10228. $as_echo_n "(cached) " >&6
  10229. else
  10230. if test -n "$NM"; then
  10231. ac_cv_prog_NM="$NM" # Let the user override the test.
  10232. else
  10233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10234. for as_dir in $PATH
  10235. do
  10236. IFS=$as_save_IFS
  10237. test -z "$as_dir" && as_dir=.
  10238. for ac_exec_ext in '' $ac_executable_extensions; do
  10239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10240. ac_cv_prog_NM="${ncn_progname}"
  10241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10242. break 2
  10243. fi
  10244. done
  10245. done
  10246. IFS=$as_save_IFS
  10247. fi
  10248. fi
  10249. NM=$ac_cv_prog_NM
  10250. if test -n "$NM"; then
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
  10252. $as_echo "$NM" >&6; }
  10253. else
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10255. $as_echo "no" >&6; }
  10256. fi
  10257. fi
  10258. test -n "$ac_cv_prog_NM" && break
  10259. done
  10260. if test -z "$ac_cv_prog_NM" ; then
  10261. set dummy nm
  10262. if test $build = $host ; then
  10263. NM="$2"
  10264. else
  10265. NM="${ncn_tool_prefix}$2"
  10266. fi
  10267. fi
  10268. if test -n "$RANLIB"; then
  10269. ac_cv_prog_RANLIB=$RANLIB
  10270. elif test -n "$ac_cv_prog_RANLIB"; then
  10271. RANLIB=$ac_cv_prog_RANLIB
  10272. fi
  10273. if test -n "$ac_cv_prog_RANLIB"; then
  10274. for ncn_progname in ranlib; do
  10275. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10276. set dummy ${ncn_progname}; ac_word=$2
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10278. $as_echo_n "checking for $ac_word... " >&6; }
  10279. if ${ac_cv_prog_RANLIB+:} false; then :
  10280. $as_echo_n "(cached) " >&6
  10281. else
  10282. if test -n "$RANLIB"; then
  10283. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10284. else
  10285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10286. for as_dir in $PATH
  10287. do
  10288. IFS=$as_save_IFS
  10289. test -z "$as_dir" && as_dir=.
  10290. for ac_exec_ext in '' $ac_executable_extensions; do
  10291. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10292. ac_cv_prog_RANLIB="${ncn_progname}"
  10293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10294. break 2
  10295. fi
  10296. done
  10297. done
  10298. IFS=$as_save_IFS
  10299. fi
  10300. fi
  10301. RANLIB=$ac_cv_prog_RANLIB
  10302. if test -n "$RANLIB"; then
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10304. $as_echo "$RANLIB" >&6; }
  10305. else
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10307. $as_echo "no" >&6; }
  10308. fi
  10309. done
  10310. fi
  10311. for ncn_progname in ranlib; do
  10312. if test -n "$ncn_tool_prefix"; then
  10313. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10314. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10316. $as_echo_n "checking for $ac_word... " >&6; }
  10317. if ${ac_cv_prog_RANLIB+:} false; then :
  10318. $as_echo_n "(cached) " >&6
  10319. else
  10320. if test -n "$RANLIB"; then
  10321. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10322. else
  10323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10324. for as_dir in $PATH
  10325. do
  10326. IFS=$as_save_IFS
  10327. test -z "$as_dir" && as_dir=.
  10328. for ac_exec_ext in '' $ac_executable_extensions; do
  10329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10330. ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
  10331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10332. break 2
  10333. fi
  10334. done
  10335. done
  10336. IFS=$as_save_IFS
  10337. fi
  10338. fi
  10339. RANLIB=$ac_cv_prog_RANLIB
  10340. if test -n "$RANLIB"; then
  10341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10342. $as_echo "$RANLIB" >&6; }
  10343. else
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10345. $as_echo "no" >&6; }
  10346. fi
  10347. fi
  10348. if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
  10349. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10350. set dummy ${ncn_progname}; ac_word=$2
  10351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10352. $as_echo_n "checking for $ac_word... " >&6; }
  10353. if ${ac_cv_prog_RANLIB+:} false; then :
  10354. $as_echo_n "(cached) " >&6
  10355. else
  10356. if test -n "$RANLIB"; then
  10357. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10358. else
  10359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10360. for as_dir in $PATH
  10361. do
  10362. IFS=$as_save_IFS
  10363. test -z "$as_dir" && as_dir=.
  10364. for ac_exec_ext in '' $ac_executable_extensions; do
  10365. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10366. ac_cv_prog_RANLIB="${ncn_progname}"
  10367. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10368. break 2
  10369. fi
  10370. done
  10371. done
  10372. IFS=$as_save_IFS
  10373. fi
  10374. fi
  10375. RANLIB=$ac_cv_prog_RANLIB
  10376. if test -n "$RANLIB"; then
  10377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10378. $as_echo "$RANLIB" >&6; }
  10379. else
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10381. $as_echo "no" >&6; }
  10382. fi
  10383. fi
  10384. test -n "$ac_cv_prog_RANLIB" && break
  10385. done
  10386. if test -z "$ac_cv_prog_RANLIB" ; then
  10387. RANLIB="true"
  10388. fi
  10389. if test -n "$STRIP"; then
  10390. ac_cv_prog_STRIP=$STRIP
  10391. elif test -n "$ac_cv_prog_STRIP"; then
  10392. STRIP=$ac_cv_prog_STRIP
  10393. fi
  10394. if test -n "$ac_cv_prog_STRIP"; then
  10395. for ncn_progname in strip; do
  10396. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10397. set dummy ${ncn_progname}; 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 ${ac_cv_prog_STRIP+:} false; then :
  10401. $as_echo_n "(cached) " >&6
  10402. else
  10403. if test -n "$STRIP"; then
  10404. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10405. else
  10406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10407. for as_dir in $PATH
  10408. do
  10409. IFS=$as_save_IFS
  10410. test -z "$as_dir" && as_dir=.
  10411. for ac_exec_ext in '' $ac_executable_extensions; do
  10412. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10413. ac_cv_prog_STRIP="${ncn_progname}"
  10414. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10415. break 2
  10416. fi
  10417. done
  10418. done
  10419. IFS=$as_save_IFS
  10420. fi
  10421. fi
  10422. STRIP=$ac_cv_prog_STRIP
  10423. if test -n "$STRIP"; then
  10424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10425. $as_echo "$STRIP" >&6; }
  10426. else
  10427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10428. $as_echo "no" >&6; }
  10429. fi
  10430. done
  10431. fi
  10432. for ncn_progname in strip; do
  10433. if test -n "$ncn_tool_prefix"; then
  10434. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10435. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10437. $as_echo_n "checking for $ac_word... " >&6; }
  10438. if ${ac_cv_prog_STRIP+:} false; then :
  10439. $as_echo_n "(cached) " >&6
  10440. else
  10441. if test -n "$STRIP"; then
  10442. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10443. else
  10444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10445. for as_dir in $PATH
  10446. do
  10447. IFS=$as_save_IFS
  10448. test -z "$as_dir" && as_dir=.
  10449. for ac_exec_ext in '' $ac_executable_extensions; do
  10450. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10451. ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
  10452. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10453. break 2
  10454. fi
  10455. done
  10456. done
  10457. IFS=$as_save_IFS
  10458. fi
  10459. fi
  10460. STRIP=$ac_cv_prog_STRIP
  10461. if test -n "$STRIP"; then
  10462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10463. $as_echo "$STRIP" >&6; }
  10464. else
  10465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10466. $as_echo "no" >&6; }
  10467. fi
  10468. fi
  10469. if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
  10470. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10471. set dummy ${ncn_progname}; ac_word=$2
  10472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10473. $as_echo_n "checking for $ac_word... " >&6; }
  10474. if ${ac_cv_prog_STRIP+:} false; then :
  10475. $as_echo_n "(cached) " >&6
  10476. else
  10477. if test -n "$STRIP"; then
  10478. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10479. else
  10480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10481. for as_dir in $PATH
  10482. do
  10483. IFS=$as_save_IFS
  10484. test -z "$as_dir" && as_dir=.
  10485. for ac_exec_ext in '' $ac_executable_extensions; do
  10486. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10487. ac_cv_prog_STRIP="${ncn_progname}"
  10488. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10489. break 2
  10490. fi
  10491. done
  10492. done
  10493. IFS=$as_save_IFS
  10494. fi
  10495. fi
  10496. STRIP=$ac_cv_prog_STRIP
  10497. if test -n "$STRIP"; then
  10498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10499. $as_echo "$STRIP" >&6; }
  10500. else
  10501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10502. $as_echo "no" >&6; }
  10503. fi
  10504. fi
  10505. test -n "$ac_cv_prog_STRIP" && break
  10506. done
  10507. if test -z "$ac_cv_prog_STRIP" ; then
  10508. STRIP="true"
  10509. fi
  10510. if test -n "$WINDRES"; then
  10511. ac_cv_prog_WINDRES=$WINDRES
  10512. elif test -n "$ac_cv_prog_WINDRES"; then
  10513. WINDRES=$ac_cv_prog_WINDRES
  10514. fi
  10515. if test -n "$ac_cv_prog_WINDRES"; then
  10516. for ncn_progname in windres; do
  10517. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10518. set dummy ${ncn_progname}; ac_word=$2
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10520. $as_echo_n "checking for $ac_word... " >&6; }
  10521. if ${ac_cv_prog_WINDRES+:} false; then :
  10522. $as_echo_n "(cached) " >&6
  10523. else
  10524. if test -n "$WINDRES"; then
  10525. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10526. else
  10527. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10528. for as_dir in $PATH
  10529. do
  10530. IFS=$as_save_IFS
  10531. test -z "$as_dir" && as_dir=.
  10532. for ac_exec_ext in '' $ac_executable_extensions; do
  10533. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10534. ac_cv_prog_WINDRES="${ncn_progname}"
  10535. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10536. break 2
  10537. fi
  10538. done
  10539. done
  10540. IFS=$as_save_IFS
  10541. fi
  10542. fi
  10543. WINDRES=$ac_cv_prog_WINDRES
  10544. if test -n "$WINDRES"; then
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10546. $as_echo "$WINDRES" >&6; }
  10547. else
  10548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10549. $as_echo "no" >&6; }
  10550. fi
  10551. done
  10552. fi
  10553. for ncn_progname in windres; do
  10554. if test -n "$ncn_tool_prefix"; then
  10555. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10556. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10558. $as_echo_n "checking for $ac_word... " >&6; }
  10559. if ${ac_cv_prog_WINDRES+:} false; then :
  10560. $as_echo_n "(cached) " >&6
  10561. else
  10562. if test -n "$WINDRES"; then
  10563. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10564. else
  10565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10566. for as_dir in $PATH
  10567. do
  10568. IFS=$as_save_IFS
  10569. test -z "$as_dir" && as_dir=.
  10570. for ac_exec_ext in '' $ac_executable_extensions; do
  10571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10572. ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
  10573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10574. break 2
  10575. fi
  10576. done
  10577. done
  10578. IFS=$as_save_IFS
  10579. fi
  10580. fi
  10581. WINDRES=$ac_cv_prog_WINDRES
  10582. if test -n "$WINDRES"; then
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10584. $as_echo "$WINDRES" >&6; }
  10585. else
  10586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10587. $as_echo "no" >&6; }
  10588. fi
  10589. fi
  10590. if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
  10591. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10592. set dummy ${ncn_progname}; ac_word=$2
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10594. $as_echo_n "checking for $ac_word... " >&6; }
  10595. if ${ac_cv_prog_WINDRES+:} false; then :
  10596. $as_echo_n "(cached) " >&6
  10597. else
  10598. if test -n "$WINDRES"; then
  10599. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  10600. else
  10601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10602. for as_dir in $PATH
  10603. do
  10604. IFS=$as_save_IFS
  10605. test -z "$as_dir" && as_dir=.
  10606. for ac_exec_ext in '' $ac_executable_extensions; do
  10607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10608. ac_cv_prog_WINDRES="${ncn_progname}"
  10609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10610. break 2
  10611. fi
  10612. done
  10613. done
  10614. IFS=$as_save_IFS
  10615. fi
  10616. fi
  10617. WINDRES=$ac_cv_prog_WINDRES
  10618. if test -n "$WINDRES"; then
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  10620. $as_echo "$WINDRES" >&6; }
  10621. else
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10623. $as_echo "no" >&6; }
  10624. fi
  10625. fi
  10626. test -n "$ac_cv_prog_WINDRES" && break
  10627. done
  10628. if test -z "$ac_cv_prog_WINDRES" ; then
  10629. set dummy windres
  10630. if test $build = $host ; then
  10631. WINDRES="$2"
  10632. else
  10633. WINDRES="${ncn_tool_prefix}$2"
  10634. fi
  10635. fi
  10636. if test -n "$WINDMC"; then
  10637. ac_cv_prog_WINDMC=$WINDMC
  10638. elif test -n "$ac_cv_prog_WINDMC"; then
  10639. WINDMC=$ac_cv_prog_WINDMC
  10640. fi
  10641. if test -n "$ac_cv_prog_WINDMC"; then
  10642. for ncn_progname in windmc; do
  10643. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10644. set dummy ${ncn_progname}; ac_word=$2
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10646. $as_echo_n "checking for $ac_word... " >&6; }
  10647. if ${ac_cv_prog_WINDMC+:} false; then :
  10648. $as_echo_n "(cached) " >&6
  10649. else
  10650. if test -n "$WINDMC"; then
  10651. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  10652. else
  10653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10654. for as_dir in $PATH
  10655. do
  10656. IFS=$as_save_IFS
  10657. test -z "$as_dir" && as_dir=.
  10658. for ac_exec_ext in '' $ac_executable_extensions; do
  10659. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10660. ac_cv_prog_WINDMC="${ncn_progname}"
  10661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10662. break 2
  10663. fi
  10664. done
  10665. done
  10666. IFS=$as_save_IFS
  10667. fi
  10668. fi
  10669. WINDMC=$ac_cv_prog_WINDMC
  10670. if test -n "$WINDMC"; then
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  10672. $as_echo "$WINDMC" >&6; }
  10673. else
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10675. $as_echo "no" >&6; }
  10676. fi
  10677. done
  10678. fi
  10679. for ncn_progname in windmc; do
  10680. if test -n "$ncn_tool_prefix"; then
  10681. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10682. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10684. $as_echo_n "checking for $ac_word... " >&6; }
  10685. if ${ac_cv_prog_WINDMC+:} false; then :
  10686. $as_echo_n "(cached) " >&6
  10687. else
  10688. if test -n "$WINDMC"; then
  10689. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  10690. else
  10691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10692. for as_dir in $PATH
  10693. do
  10694. IFS=$as_save_IFS
  10695. test -z "$as_dir" && as_dir=.
  10696. for ac_exec_ext in '' $ac_executable_extensions; do
  10697. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10698. ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
  10699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10700. break 2
  10701. fi
  10702. done
  10703. done
  10704. IFS=$as_save_IFS
  10705. fi
  10706. fi
  10707. WINDMC=$ac_cv_prog_WINDMC
  10708. if test -n "$WINDMC"; then
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  10710. $as_echo "$WINDMC" >&6; }
  10711. else
  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10713. $as_echo "no" >&6; }
  10714. fi
  10715. fi
  10716. if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
  10717. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10718. set dummy ${ncn_progname}; ac_word=$2
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10720. $as_echo_n "checking for $ac_word... " >&6; }
  10721. if ${ac_cv_prog_WINDMC+:} false; then :
  10722. $as_echo_n "(cached) " >&6
  10723. else
  10724. if test -n "$WINDMC"; then
  10725. ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
  10726. else
  10727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10728. for as_dir in $PATH
  10729. do
  10730. IFS=$as_save_IFS
  10731. test -z "$as_dir" && as_dir=.
  10732. for ac_exec_ext in '' $ac_executable_extensions; do
  10733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10734. ac_cv_prog_WINDMC="${ncn_progname}"
  10735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10736. break 2
  10737. fi
  10738. done
  10739. done
  10740. IFS=$as_save_IFS
  10741. fi
  10742. fi
  10743. WINDMC=$ac_cv_prog_WINDMC
  10744. if test -n "$WINDMC"; then
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
  10746. $as_echo "$WINDMC" >&6; }
  10747. else
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10749. $as_echo "no" >&6; }
  10750. fi
  10751. fi
  10752. test -n "$ac_cv_prog_WINDMC" && break
  10753. done
  10754. if test -z "$ac_cv_prog_WINDMC" ; then
  10755. set dummy windmc
  10756. if test $build = $host ; then
  10757. WINDMC="$2"
  10758. else
  10759. WINDMC="${ncn_tool_prefix}$2"
  10760. fi
  10761. fi
  10762. if test -n "$OBJCOPY"; then
  10763. ac_cv_prog_OBJCOPY=$OBJCOPY
  10764. elif test -n "$ac_cv_prog_OBJCOPY"; then
  10765. OBJCOPY=$ac_cv_prog_OBJCOPY
  10766. fi
  10767. if test -n "$ac_cv_prog_OBJCOPY"; then
  10768. for ncn_progname in objcopy; do
  10769. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10770. set dummy ${ncn_progname}; ac_word=$2
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10772. $as_echo_n "checking for $ac_word... " >&6; }
  10773. if ${ac_cv_prog_OBJCOPY+:} false; then :
  10774. $as_echo_n "(cached) " >&6
  10775. else
  10776. if test -n "$OBJCOPY"; then
  10777. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  10778. else
  10779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10780. for as_dir in $PATH
  10781. do
  10782. IFS=$as_save_IFS
  10783. test -z "$as_dir" && as_dir=.
  10784. for ac_exec_ext in '' $ac_executable_extensions; do
  10785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10786. ac_cv_prog_OBJCOPY="${ncn_progname}"
  10787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10788. break 2
  10789. fi
  10790. done
  10791. done
  10792. IFS=$as_save_IFS
  10793. fi
  10794. fi
  10795. OBJCOPY=$ac_cv_prog_OBJCOPY
  10796. if test -n "$OBJCOPY"; then
  10797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  10798. $as_echo "$OBJCOPY" >&6; }
  10799. else
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10801. $as_echo "no" >&6; }
  10802. fi
  10803. done
  10804. fi
  10805. for ncn_progname in objcopy; do
  10806. if test -n "$ncn_tool_prefix"; then
  10807. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10808. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10810. $as_echo_n "checking for $ac_word... " >&6; }
  10811. if ${ac_cv_prog_OBJCOPY+:} false; then :
  10812. $as_echo_n "(cached) " >&6
  10813. else
  10814. if test -n "$OBJCOPY"; then
  10815. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  10816. else
  10817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10818. for as_dir in $PATH
  10819. do
  10820. IFS=$as_save_IFS
  10821. test -z "$as_dir" && as_dir=.
  10822. for ac_exec_ext in '' $ac_executable_extensions; do
  10823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10824. ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
  10825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10826. break 2
  10827. fi
  10828. done
  10829. done
  10830. IFS=$as_save_IFS
  10831. fi
  10832. fi
  10833. OBJCOPY=$ac_cv_prog_OBJCOPY
  10834. if test -n "$OBJCOPY"; then
  10835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  10836. $as_echo "$OBJCOPY" >&6; }
  10837. else
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10839. $as_echo "no" >&6; }
  10840. fi
  10841. fi
  10842. if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
  10843. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10844. set dummy ${ncn_progname}; ac_word=$2
  10845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10846. $as_echo_n "checking for $ac_word... " >&6; }
  10847. if ${ac_cv_prog_OBJCOPY+:} false; then :
  10848. $as_echo_n "(cached) " >&6
  10849. else
  10850. if test -n "$OBJCOPY"; then
  10851. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  10852. else
  10853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10854. for as_dir in $PATH
  10855. do
  10856. IFS=$as_save_IFS
  10857. test -z "$as_dir" && as_dir=.
  10858. for ac_exec_ext in '' $ac_executable_extensions; do
  10859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10860. ac_cv_prog_OBJCOPY="${ncn_progname}"
  10861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10862. break 2
  10863. fi
  10864. done
  10865. done
  10866. IFS=$as_save_IFS
  10867. fi
  10868. fi
  10869. OBJCOPY=$ac_cv_prog_OBJCOPY
  10870. if test -n "$OBJCOPY"; then
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  10872. $as_echo "$OBJCOPY" >&6; }
  10873. else
  10874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10875. $as_echo "no" >&6; }
  10876. fi
  10877. fi
  10878. test -n "$ac_cv_prog_OBJCOPY" && break
  10879. done
  10880. if test -z "$ac_cv_prog_OBJCOPY" ; then
  10881. set dummy objcopy
  10882. if test $build = $host ; then
  10883. OBJCOPY="$2"
  10884. else
  10885. OBJCOPY="${ncn_tool_prefix}$2"
  10886. fi
  10887. fi
  10888. if test -n "$OBJDUMP"; then
  10889. ac_cv_prog_OBJDUMP=$OBJDUMP
  10890. elif test -n "$ac_cv_prog_OBJDUMP"; then
  10891. OBJDUMP=$ac_cv_prog_OBJDUMP
  10892. fi
  10893. if test -n "$ac_cv_prog_OBJDUMP"; then
  10894. for ncn_progname in objdump; do
  10895. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10896. set dummy ${ncn_progname}; ac_word=$2
  10897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10898. $as_echo_n "checking for $ac_word... " >&6; }
  10899. if ${ac_cv_prog_OBJDUMP+:} false; then :
  10900. $as_echo_n "(cached) " >&6
  10901. else
  10902. if test -n "$OBJDUMP"; then
  10903. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10904. else
  10905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10906. for as_dir in $PATH
  10907. do
  10908. IFS=$as_save_IFS
  10909. test -z "$as_dir" && as_dir=.
  10910. for ac_exec_ext in '' $ac_executable_extensions; do
  10911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10912. ac_cv_prog_OBJDUMP="${ncn_progname}"
  10913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10914. break 2
  10915. fi
  10916. done
  10917. done
  10918. IFS=$as_save_IFS
  10919. fi
  10920. fi
  10921. OBJDUMP=$ac_cv_prog_OBJDUMP
  10922. if test -n "$OBJDUMP"; then
  10923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10924. $as_echo "$OBJDUMP" >&6; }
  10925. else
  10926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10927. $as_echo "no" >&6; }
  10928. fi
  10929. done
  10930. fi
  10931. for ncn_progname in objdump; do
  10932. if test -n "$ncn_tool_prefix"; then
  10933. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  10934. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10936. $as_echo_n "checking for $ac_word... " >&6; }
  10937. if ${ac_cv_prog_OBJDUMP+:} false; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. if test -n "$OBJDUMP"; then
  10941. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10942. else
  10943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10944. for as_dir in $PATH
  10945. do
  10946. IFS=$as_save_IFS
  10947. test -z "$as_dir" && as_dir=.
  10948. for ac_exec_ext in '' $ac_executable_extensions; do
  10949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10950. ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
  10951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10952. break 2
  10953. fi
  10954. done
  10955. done
  10956. IFS=$as_save_IFS
  10957. fi
  10958. fi
  10959. OBJDUMP=$ac_cv_prog_OBJDUMP
  10960. if test -n "$OBJDUMP"; then
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10962. $as_echo "$OBJDUMP" >&6; }
  10963. else
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10965. $as_echo "no" >&6; }
  10966. fi
  10967. fi
  10968. if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
  10969. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  10970. set dummy ${ncn_progname}; ac_word=$2
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10972. $as_echo_n "checking for $ac_word... " >&6; }
  10973. if ${ac_cv_prog_OBJDUMP+:} false; then :
  10974. $as_echo_n "(cached) " >&6
  10975. else
  10976. if test -n "$OBJDUMP"; then
  10977. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10978. else
  10979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10980. for as_dir in $PATH
  10981. do
  10982. IFS=$as_save_IFS
  10983. test -z "$as_dir" && as_dir=.
  10984. for ac_exec_ext in '' $ac_executable_extensions; do
  10985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10986. ac_cv_prog_OBJDUMP="${ncn_progname}"
  10987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10988. break 2
  10989. fi
  10990. done
  10991. done
  10992. IFS=$as_save_IFS
  10993. fi
  10994. fi
  10995. OBJDUMP=$ac_cv_prog_OBJDUMP
  10996. if test -n "$OBJDUMP"; then
  10997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10998. $as_echo "$OBJDUMP" >&6; }
  10999. else
  11000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11001. $as_echo "no" >&6; }
  11002. fi
  11003. fi
  11004. test -n "$ac_cv_prog_OBJDUMP" && break
  11005. done
  11006. if test -z "$ac_cv_prog_OBJDUMP" ; then
  11007. set dummy objdump
  11008. if test $build = $host ; then
  11009. OBJDUMP="$2"
  11010. else
  11011. OBJDUMP="${ncn_tool_prefix}$2"
  11012. fi
  11013. fi
  11014. if test -n "$OTOOL"; then
  11015. ac_cv_prog_OTOOL=$OTOOL
  11016. elif test -n "$ac_cv_prog_OTOOL"; then
  11017. OTOOL=$ac_cv_prog_OTOOL
  11018. fi
  11019. if test -n "$ac_cv_prog_OTOOL"; then
  11020. for ncn_progname in otool; do
  11021. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11022. set dummy ${ncn_progname}; ac_word=$2
  11023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11024. $as_echo_n "checking for $ac_word... " >&6; }
  11025. if ${ac_cv_prog_OTOOL+:} false; then :
  11026. $as_echo_n "(cached) " >&6
  11027. else
  11028. if test -n "$OTOOL"; then
  11029. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11030. else
  11031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11032. for as_dir in $PATH
  11033. do
  11034. IFS=$as_save_IFS
  11035. test -z "$as_dir" && as_dir=.
  11036. for ac_exec_ext in '' $ac_executable_extensions; do
  11037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11038. ac_cv_prog_OTOOL="${ncn_progname}"
  11039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11040. break 2
  11041. fi
  11042. done
  11043. done
  11044. IFS=$as_save_IFS
  11045. fi
  11046. fi
  11047. OTOOL=$ac_cv_prog_OTOOL
  11048. if test -n "$OTOOL"; then
  11049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11050. $as_echo "$OTOOL" >&6; }
  11051. else
  11052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11053. $as_echo "no" >&6; }
  11054. fi
  11055. done
  11056. fi
  11057. for ncn_progname in otool; do
  11058. if test -n "$ncn_tool_prefix"; then
  11059. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11060. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  11061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11062. $as_echo_n "checking for $ac_word... " >&6; }
  11063. if ${ac_cv_prog_OTOOL+:} false; then :
  11064. $as_echo_n "(cached) " >&6
  11065. else
  11066. if test -n "$OTOOL"; then
  11067. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11068. else
  11069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11070. for as_dir in $PATH
  11071. do
  11072. IFS=$as_save_IFS
  11073. test -z "$as_dir" && as_dir=.
  11074. for ac_exec_ext in '' $ac_executable_extensions; do
  11075. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11076. ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
  11077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11078. break 2
  11079. fi
  11080. done
  11081. done
  11082. IFS=$as_save_IFS
  11083. fi
  11084. fi
  11085. OTOOL=$ac_cv_prog_OTOOL
  11086. if test -n "$OTOOL"; then
  11087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11088. $as_echo "$OTOOL" >&6; }
  11089. else
  11090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11091. $as_echo "no" >&6; }
  11092. fi
  11093. fi
  11094. if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
  11095. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11096. set dummy ${ncn_progname}; ac_word=$2
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11098. $as_echo_n "checking for $ac_word... " >&6; }
  11099. if ${ac_cv_prog_OTOOL+:} false; then :
  11100. $as_echo_n "(cached) " >&6
  11101. else
  11102. if test -n "$OTOOL"; then
  11103. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11104. else
  11105. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11106. for as_dir in $PATH
  11107. do
  11108. IFS=$as_save_IFS
  11109. test -z "$as_dir" && as_dir=.
  11110. for ac_exec_ext in '' $ac_executable_extensions; do
  11111. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11112. ac_cv_prog_OTOOL="${ncn_progname}"
  11113. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11114. break 2
  11115. fi
  11116. done
  11117. done
  11118. IFS=$as_save_IFS
  11119. fi
  11120. fi
  11121. OTOOL=$ac_cv_prog_OTOOL
  11122. if test -n "$OTOOL"; then
  11123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11124. $as_echo "$OTOOL" >&6; }
  11125. else
  11126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11127. $as_echo "no" >&6; }
  11128. fi
  11129. fi
  11130. test -n "$ac_cv_prog_OTOOL" && break
  11131. done
  11132. if test -z "$ac_cv_prog_OTOOL" ; then
  11133. set dummy otool
  11134. if test $build = $host ; then
  11135. OTOOL="$2"
  11136. else
  11137. OTOOL="${ncn_tool_prefix}$2"
  11138. fi
  11139. fi
  11140. if test -n "$READELF"; then
  11141. ac_cv_prog_READELF=$READELF
  11142. elif test -n "$ac_cv_prog_READELF"; then
  11143. READELF=$ac_cv_prog_READELF
  11144. fi
  11145. if test -n "$ac_cv_prog_READELF"; then
  11146. for ncn_progname in readelf; do
  11147. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11148. set dummy ${ncn_progname}; ac_word=$2
  11149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11150. $as_echo_n "checking for $ac_word... " >&6; }
  11151. if ${ac_cv_prog_READELF+:} false; then :
  11152. $as_echo_n "(cached) " >&6
  11153. else
  11154. if test -n "$READELF"; then
  11155. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  11156. else
  11157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11158. for as_dir in $PATH
  11159. do
  11160. IFS=$as_save_IFS
  11161. test -z "$as_dir" && as_dir=.
  11162. for ac_exec_ext in '' $ac_executable_extensions; do
  11163. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11164. ac_cv_prog_READELF="${ncn_progname}"
  11165. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11166. break 2
  11167. fi
  11168. done
  11169. done
  11170. IFS=$as_save_IFS
  11171. fi
  11172. fi
  11173. READELF=$ac_cv_prog_READELF
  11174. if test -n "$READELF"; then
  11175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  11176. $as_echo "$READELF" >&6; }
  11177. else
  11178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11179. $as_echo "no" >&6; }
  11180. fi
  11181. done
  11182. fi
  11183. for ncn_progname in readelf; do
  11184. if test -n "$ncn_tool_prefix"; then
  11185. # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11186. set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11188. $as_echo_n "checking for $ac_word... " >&6; }
  11189. if ${ac_cv_prog_READELF+:} false; then :
  11190. $as_echo_n "(cached) " >&6
  11191. else
  11192. if test -n "$READELF"; then
  11193. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  11194. else
  11195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11196. for as_dir in $PATH
  11197. do
  11198. IFS=$as_save_IFS
  11199. test -z "$as_dir" && as_dir=.
  11200. for ac_exec_ext in '' $ac_executable_extensions; do
  11201. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11202. ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
  11203. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11204. break 2
  11205. fi
  11206. done
  11207. done
  11208. IFS=$as_save_IFS
  11209. fi
  11210. fi
  11211. READELF=$ac_cv_prog_READELF
  11212. if test -n "$READELF"; then
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  11214. $as_echo "$READELF" >&6; }
  11215. else
  11216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11217. $as_echo "no" >&6; }
  11218. fi
  11219. fi
  11220. if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
  11221. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11222. set dummy ${ncn_progname}; ac_word=$2
  11223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11224. $as_echo_n "checking for $ac_word... " >&6; }
  11225. if ${ac_cv_prog_READELF+:} false; then :
  11226. $as_echo_n "(cached) " >&6
  11227. else
  11228. if test -n "$READELF"; then
  11229. ac_cv_prog_READELF="$READELF" # Let the user override the test.
  11230. else
  11231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11232. for as_dir in $PATH
  11233. do
  11234. IFS=$as_save_IFS
  11235. test -z "$as_dir" && as_dir=.
  11236. for ac_exec_ext in '' $ac_executable_extensions; do
  11237. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11238. ac_cv_prog_READELF="${ncn_progname}"
  11239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11240. break 2
  11241. fi
  11242. done
  11243. done
  11244. IFS=$as_save_IFS
  11245. fi
  11246. fi
  11247. READELF=$ac_cv_prog_READELF
  11248. if test -n "$READELF"; then
  11249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
  11250. $as_echo "$READELF" >&6; }
  11251. else
  11252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11253. $as_echo "no" >&6; }
  11254. fi
  11255. fi
  11256. test -n "$ac_cv_prog_READELF" && break
  11257. done
  11258. if test -z "$ac_cv_prog_READELF" ; then
  11259. set dummy readelf
  11260. if test $build = $host ; then
  11261. READELF="$2"
  11262. else
  11263. READELF="${ncn_tool_prefix}$2"
  11264. fi
  11265. fi
  11266. # Target tools.
  11267. # Check whether --with-build-time-tools was given.
  11268. if test "${with_build_time_tools+set}" = set; then :
  11269. withval=$with_build_time_tools; case x"$withval" in
  11270. x/*) ;;
  11271. *)
  11272. with_build_time_tools=
  11273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
  11274. $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
  11275. ;;
  11276. esac
  11277. else
  11278. with_build_time_tools=
  11279. fi
  11280. if test -n "$CC_FOR_TARGET"; then
  11281. ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
  11282. elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  11283. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  11284. fi
  11285. if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
  11286. for ncn_progname in cc gcc; do
  11287. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11288. set dummy ${ncn_progname}; ac_word=$2
  11289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11290. $as_echo_n "checking for $ac_word... " >&6; }
  11291. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  11292. $as_echo_n "(cached) " >&6
  11293. else
  11294. if test -n "$CC_FOR_TARGET"; then
  11295. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  11296. else
  11297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11298. for as_dir in $PATH
  11299. do
  11300. IFS=$as_save_IFS
  11301. test -z "$as_dir" && as_dir=.
  11302. for ac_exec_ext in '' $ac_executable_extensions; do
  11303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11304. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  11305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11306. break 2
  11307. fi
  11308. done
  11309. done
  11310. IFS=$as_save_IFS
  11311. fi
  11312. fi
  11313. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  11314. if test -n "$CC_FOR_TARGET"; then
  11315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  11316. $as_echo "$CC_FOR_TARGET" >&6; }
  11317. else
  11318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11319. $as_echo "no" >&6; }
  11320. fi
  11321. done
  11322. fi
  11323. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11324. for ncn_progname in cc gcc; do
  11325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11326. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11327. if test -x $with_build_time_tools/${ncn_progname}; then
  11328. ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11330. $as_echo "yes" >&6; }
  11331. break
  11332. else
  11333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11334. $as_echo "no" >&6; }
  11335. fi
  11336. done
  11337. fi
  11338. if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
  11339. for ncn_progname in cc gcc; do
  11340. if test -n "$ncn_target_tool_prefix"; then
  11341. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11342. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11344. $as_echo_n "checking for $ac_word... " >&6; }
  11345. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  11346. $as_echo_n "(cached) " >&6
  11347. else
  11348. if test -n "$CC_FOR_TARGET"; then
  11349. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  11350. else
  11351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11352. for as_dir in $PATH
  11353. do
  11354. IFS=$as_save_IFS
  11355. test -z "$as_dir" && as_dir=.
  11356. for ac_exec_ext in '' $ac_executable_extensions; do
  11357. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11358. ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11360. break 2
  11361. fi
  11362. done
  11363. done
  11364. IFS=$as_save_IFS
  11365. fi
  11366. fi
  11367. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  11368. if test -n "$CC_FOR_TARGET"; then
  11369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  11370. $as_echo "$CC_FOR_TARGET" >&6; }
  11371. else
  11372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11373. $as_echo "no" >&6; }
  11374. fi
  11375. fi
  11376. if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
  11377. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11378. set dummy ${ncn_progname}; ac_word=$2
  11379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11380. $as_echo_n "checking for $ac_word... " >&6; }
  11381. if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
  11382. $as_echo_n "(cached) " >&6
  11383. else
  11384. if test -n "$CC_FOR_TARGET"; then
  11385. ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
  11386. else
  11387. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11388. for as_dir in $PATH
  11389. do
  11390. IFS=$as_save_IFS
  11391. test -z "$as_dir" && as_dir=.
  11392. for ac_exec_ext in '' $ac_executable_extensions; do
  11393. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11394. ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
  11395. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11396. break 2
  11397. fi
  11398. done
  11399. done
  11400. IFS=$as_save_IFS
  11401. fi
  11402. fi
  11403. CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
  11404. if test -n "$CC_FOR_TARGET"; then
  11405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
  11406. $as_echo "$CC_FOR_TARGET" >&6; }
  11407. else
  11408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11409. $as_echo "no" >&6; }
  11410. fi
  11411. fi
  11412. test -n "$ac_cv_prog_CC_FOR_TARGET" && break
  11413. done
  11414. fi
  11415. if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
  11416. set dummy cc gcc
  11417. if test $build = $target ; then
  11418. CC_FOR_TARGET="$2"
  11419. else
  11420. CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11421. fi
  11422. else
  11423. CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
  11424. fi
  11425. if test -n "$CXX_FOR_TARGET"; then
  11426. ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
  11427. elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  11428. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  11429. fi
  11430. if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
  11431. for ncn_progname in c++ g++ cxx gxx; do
  11432. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11433. set dummy ${ncn_progname}; ac_word=$2
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11435. $as_echo_n "checking for $ac_word... " >&6; }
  11436. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  11437. $as_echo_n "(cached) " >&6
  11438. else
  11439. if test -n "$CXX_FOR_TARGET"; then
  11440. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  11441. else
  11442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11443. for as_dir in $PATH
  11444. do
  11445. IFS=$as_save_IFS
  11446. test -z "$as_dir" && as_dir=.
  11447. for ac_exec_ext in '' $ac_executable_extensions; do
  11448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11449. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  11450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11451. break 2
  11452. fi
  11453. done
  11454. done
  11455. IFS=$as_save_IFS
  11456. fi
  11457. fi
  11458. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  11459. if test -n "$CXX_FOR_TARGET"; then
  11460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  11461. $as_echo "$CXX_FOR_TARGET" >&6; }
  11462. else
  11463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11464. $as_echo "no" >&6; }
  11465. fi
  11466. done
  11467. fi
  11468. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11469. for ncn_progname in c++ g++ cxx gxx; do
  11470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11471. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11472. if test -x $with_build_time_tools/${ncn_progname}; then
  11473. ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11475. $as_echo "yes" >&6; }
  11476. break
  11477. else
  11478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11479. $as_echo "no" >&6; }
  11480. fi
  11481. done
  11482. fi
  11483. if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
  11484. for ncn_progname in c++ g++ cxx gxx; do
  11485. if test -n "$ncn_target_tool_prefix"; then
  11486. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11487. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11489. $as_echo_n "checking for $ac_word... " >&6; }
  11490. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  11491. $as_echo_n "(cached) " >&6
  11492. else
  11493. if test -n "$CXX_FOR_TARGET"; then
  11494. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  11495. else
  11496. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11497. for as_dir in $PATH
  11498. do
  11499. IFS=$as_save_IFS
  11500. test -z "$as_dir" && as_dir=.
  11501. for ac_exec_ext in '' $ac_executable_extensions; do
  11502. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11503. ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11504. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11505. break 2
  11506. fi
  11507. done
  11508. done
  11509. IFS=$as_save_IFS
  11510. fi
  11511. fi
  11512. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  11513. if test -n "$CXX_FOR_TARGET"; then
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  11515. $as_echo "$CXX_FOR_TARGET" >&6; }
  11516. else
  11517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11518. $as_echo "no" >&6; }
  11519. fi
  11520. fi
  11521. if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
  11522. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11523. set dummy ${ncn_progname}; ac_word=$2
  11524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11525. $as_echo_n "checking for $ac_word... " >&6; }
  11526. if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
  11527. $as_echo_n "(cached) " >&6
  11528. else
  11529. if test -n "$CXX_FOR_TARGET"; then
  11530. ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
  11531. else
  11532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11533. for as_dir in $PATH
  11534. do
  11535. IFS=$as_save_IFS
  11536. test -z "$as_dir" && as_dir=.
  11537. for ac_exec_ext in '' $ac_executable_extensions; do
  11538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11539. ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
  11540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11541. break 2
  11542. fi
  11543. done
  11544. done
  11545. IFS=$as_save_IFS
  11546. fi
  11547. fi
  11548. CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
  11549. if test -n "$CXX_FOR_TARGET"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
  11551. $as_echo "$CXX_FOR_TARGET" >&6; }
  11552. else
  11553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11554. $as_echo "no" >&6; }
  11555. fi
  11556. fi
  11557. test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
  11558. done
  11559. fi
  11560. if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
  11561. set dummy c++ g++ cxx gxx
  11562. if test $build = $target ; then
  11563. CXX_FOR_TARGET="$2"
  11564. else
  11565. CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11566. fi
  11567. else
  11568. CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
  11569. fi
  11570. if test -n "$GCC_FOR_TARGET"; then
  11571. ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
  11572. elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  11573. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  11574. fi
  11575. if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
  11576. for ncn_progname in gcc; do
  11577. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11578. set dummy ${ncn_progname}; ac_word=$2
  11579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11580. $as_echo_n "checking for $ac_word... " >&6; }
  11581. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  11582. $as_echo_n "(cached) " >&6
  11583. else
  11584. if test -n "$GCC_FOR_TARGET"; then
  11585. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  11586. else
  11587. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11588. for as_dir in $PATH
  11589. do
  11590. IFS=$as_save_IFS
  11591. test -z "$as_dir" && as_dir=.
  11592. for ac_exec_ext in '' $ac_executable_extensions; do
  11593. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11594. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  11595. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11596. break 2
  11597. fi
  11598. done
  11599. done
  11600. IFS=$as_save_IFS
  11601. fi
  11602. fi
  11603. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  11604. if test -n "$GCC_FOR_TARGET"; then
  11605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  11606. $as_echo "$GCC_FOR_TARGET" >&6; }
  11607. else
  11608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11609. $as_echo "no" >&6; }
  11610. fi
  11611. done
  11612. fi
  11613. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11614. for ncn_progname in gcc; do
  11615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11616. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11617. if test -x $with_build_time_tools/${ncn_progname}; then
  11618. ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11620. $as_echo "yes" >&6; }
  11621. break
  11622. else
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. $as_echo "no" >&6; }
  11625. fi
  11626. done
  11627. fi
  11628. if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
  11629. for ncn_progname in gcc; do
  11630. if test -n "$ncn_target_tool_prefix"; then
  11631. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11632. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11634. $as_echo_n "checking for $ac_word... " >&6; }
  11635. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  11636. $as_echo_n "(cached) " >&6
  11637. else
  11638. if test -n "$GCC_FOR_TARGET"; then
  11639. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  11640. else
  11641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11642. for as_dir in $PATH
  11643. do
  11644. IFS=$as_save_IFS
  11645. test -z "$as_dir" && as_dir=.
  11646. for ac_exec_ext in '' $ac_executable_extensions; do
  11647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11648. ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11650. break 2
  11651. fi
  11652. done
  11653. done
  11654. IFS=$as_save_IFS
  11655. fi
  11656. fi
  11657. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  11658. if test -n "$GCC_FOR_TARGET"; then
  11659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  11660. $as_echo "$GCC_FOR_TARGET" >&6; }
  11661. else
  11662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11663. $as_echo "no" >&6; }
  11664. fi
  11665. fi
  11666. if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
  11667. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11668. set dummy ${ncn_progname}; ac_word=$2
  11669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11670. $as_echo_n "checking for $ac_word... " >&6; }
  11671. if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
  11672. $as_echo_n "(cached) " >&6
  11673. else
  11674. if test -n "$GCC_FOR_TARGET"; then
  11675. ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
  11676. else
  11677. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11678. for as_dir in $PATH
  11679. do
  11680. IFS=$as_save_IFS
  11681. test -z "$as_dir" && as_dir=.
  11682. for ac_exec_ext in '' $ac_executable_extensions; do
  11683. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11684. ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
  11685. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11686. break 2
  11687. fi
  11688. done
  11689. done
  11690. IFS=$as_save_IFS
  11691. fi
  11692. fi
  11693. GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
  11694. if test -n "$GCC_FOR_TARGET"; then
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
  11696. $as_echo "$GCC_FOR_TARGET" >&6; }
  11697. else
  11698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11699. $as_echo "no" >&6; }
  11700. fi
  11701. fi
  11702. test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
  11703. done
  11704. fi
  11705. if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
  11706. GCC_FOR_TARGET="${CC_FOR_TARGET}"
  11707. else
  11708. GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
  11709. fi
  11710. if test -n "$GFORTRAN_FOR_TARGET"; then
  11711. ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
  11712. elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  11713. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  11714. fi
  11715. if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  11716. for ncn_progname in gfortran; do
  11717. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11718. set dummy ${ncn_progname}; ac_word=$2
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11720. $as_echo_n "checking for $ac_word... " >&6; }
  11721. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  11722. $as_echo_n "(cached) " >&6
  11723. else
  11724. if test -n "$GFORTRAN_FOR_TARGET"; then
  11725. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  11726. else
  11727. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11728. for as_dir in $PATH
  11729. do
  11730. IFS=$as_save_IFS
  11731. test -z "$as_dir" && as_dir=.
  11732. for ac_exec_ext in '' $ac_executable_extensions; do
  11733. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11734. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  11735. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11736. break 2
  11737. fi
  11738. done
  11739. done
  11740. IFS=$as_save_IFS
  11741. fi
  11742. fi
  11743. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  11744. if test -n "$GFORTRAN_FOR_TARGET"; then
  11745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  11746. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  11747. else
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11749. $as_echo "no" >&6; }
  11750. fi
  11751. done
  11752. fi
  11753. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11754. for ncn_progname in gfortran; do
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11756. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11757. if test -x $with_build_time_tools/${ncn_progname}; then
  11758. ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11760. $as_echo "yes" >&6; }
  11761. break
  11762. else
  11763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11764. $as_echo "no" >&6; }
  11765. fi
  11766. done
  11767. fi
  11768. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
  11769. for ncn_progname in gfortran; do
  11770. if test -n "$ncn_target_tool_prefix"; then
  11771. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11772. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11774. $as_echo_n "checking for $ac_word... " >&6; }
  11775. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  11776. $as_echo_n "(cached) " >&6
  11777. else
  11778. if test -n "$GFORTRAN_FOR_TARGET"; then
  11779. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  11780. else
  11781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11782. for as_dir in $PATH
  11783. do
  11784. IFS=$as_save_IFS
  11785. test -z "$as_dir" && as_dir=.
  11786. for ac_exec_ext in '' $ac_executable_extensions; do
  11787. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11788. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11790. break 2
  11791. fi
  11792. done
  11793. done
  11794. IFS=$as_save_IFS
  11795. fi
  11796. fi
  11797. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  11798. if test -n "$GFORTRAN_FOR_TARGET"; then
  11799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  11800. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  11801. else
  11802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11803. $as_echo "no" >&6; }
  11804. fi
  11805. fi
  11806. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
  11807. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11808. set dummy ${ncn_progname}; ac_word=$2
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11810. $as_echo_n "checking for $ac_word... " >&6; }
  11811. if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
  11812. $as_echo_n "(cached) " >&6
  11813. else
  11814. if test -n "$GFORTRAN_FOR_TARGET"; then
  11815. ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
  11816. else
  11817. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11818. for as_dir in $PATH
  11819. do
  11820. IFS=$as_save_IFS
  11821. test -z "$as_dir" && as_dir=.
  11822. for ac_exec_ext in '' $ac_executable_extensions; do
  11823. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11824. ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
  11825. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11826. break 2
  11827. fi
  11828. done
  11829. done
  11830. IFS=$as_save_IFS
  11831. fi
  11832. fi
  11833. GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
  11834. if test -n "$GFORTRAN_FOR_TARGET"; then
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
  11836. $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
  11837. else
  11838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11839. $as_echo "no" >&6; }
  11840. fi
  11841. fi
  11842. test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
  11843. done
  11844. fi
  11845. if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
  11846. set dummy gfortran
  11847. if test $build = $target ; then
  11848. GFORTRAN_FOR_TARGET="$2"
  11849. else
  11850. GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11851. fi
  11852. else
  11853. GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
  11854. fi
  11855. if test -n "$GOC_FOR_TARGET"; then
  11856. ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
  11857. elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  11858. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  11859. fi
  11860. if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
  11861. for ncn_progname in gccgo; do
  11862. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11863. set dummy ${ncn_progname}; ac_word=$2
  11864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11865. $as_echo_n "checking for $ac_word... " >&6; }
  11866. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  11867. $as_echo_n "(cached) " >&6
  11868. else
  11869. if test -n "$GOC_FOR_TARGET"; then
  11870. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  11871. else
  11872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11873. for as_dir in $PATH
  11874. do
  11875. IFS=$as_save_IFS
  11876. test -z "$as_dir" && as_dir=.
  11877. for ac_exec_ext in '' $ac_executable_extensions; do
  11878. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11879. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  11880. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11881. break 2
  11882. fi
  11883. done
  11884. done
  11885. IFS=$as_save_IFS
  11886. fi
  11887. fi
  11888. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  11889. if test -n "$GOC_FOR_TARGET"; then
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  11891. $as_echo "$GOC_FOR_TARGET" >&6; }
  11892. else
  11893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11894. $as_echo "no" >&6; }
  11895. fi
  11896. done
  11897. fi
  11898. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  11899. for ncn_progname in gccgo; do
  11900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  11901. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  11902. if test -x $with_build_time_tools/${ncn_progname}; then
  11903. ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  11904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11905. $as_echo "yes" >&6; }
  11906. break
  11907. else
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11909. $as_echo "no" >&6; }
  11910. fi
  11911. done
  11912. fi
  11913. if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
  11914. for ncn_progname in gccgo; do
  11915. if test -n "$ncn_target_tool_prefix"; then
  11916. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  11917. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  11918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11919. $as_echo_n "checking for $ac_word... " >&6; }
  11920. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  11921. $as_echo_n "(cached) " >&6
  11922. else
  11923. if test -n "$GOC_FOR_TARGET"; then
  11924. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  11925. else
  11926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11927. for as_dir in $PATH
  11928. do
  11929. IFS=$as_save_IFS
  11930. test -z "$as_dir" && as_dir=.
  11931. for ac_exec_ext in '' $ac_executable_extensions; do
  11932. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11933. ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  11934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11935. break 2
  11936. fi
  11937. done
  11938. done
  11939. IFS=$as_save_IFS
  11940. fi
  11941. fi
  11942. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  11943. if test -n "$GOC_FOR_TARGET"; then
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  11945. $as_echo "$GOC_FOR_TARGET" >&6; }
  11946. else
  11947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11948. $as_echo "no" >&6; }
  11949. fi
  11950. fi
  11951. if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
  11952. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  11953. set dummy ${ncn_progname}; ac_word=$2
  11954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11955. $as_echo_n "checking for $ac_word... " >&6; }
  11956. if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
  11957. $as_echo_n "(cached) " >&6
  11958. else
  11959. if test -n "$GOC_FOR_TARGET"; then
  11960. ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
  11961. else
  11962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11963. for as_dir in $PATH
  11964. do
  11965. IFS=$as_save_IFS
  11966. test -z "$as_dir" && as_dir=.
  11967. for ac_exec_ext in '' $ac_executable_extensions; do
  11968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11969. ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
  11970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11971. break 2
  11972. fi
  11973. done
  11974. done
  11975. IFS=$as_save_IFS
  11976. fi
  11977. fi
  11978. GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
  11979. if test -n "$GOC_FOR_TARGET"; then
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
  11981. $as_echo "$GOC_FOR_TARGET" >&6; }
  11982. else
  11983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11984. $as_echo "no" >&6; }
  11985. fi
  11986. fi
  11987. test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
  11988. done
  11989. fi
  11990. if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
  11991. set dummy gccgo
  11992. if test $build = $target ; then
  11993. GOC_FOR_TARGET="$2"
  11994. else
  11995. GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  11996. fi
  11997. else
  11998. GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
  11999. fi
  12000. if test -n "$GDC_FOR_TARGET"; then
  12001. ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
  12002. elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
  12003. GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
  12004. fi
  12005. if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
  12006. for ncn_progname in gdc; do
  12007. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12008. set dummy ${ncn_progname}; ac_word=$2
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12010. $as_echo_n "checking for $ac_word... " >&6; }
  12011. if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. if test -n "$GDC_FOR_TARGET"; then
  12015. ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
  12016. else
  12017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12018. for as_dir in $PATH
  12019. do
  12020. IFS=$as_save_IFS
  12021. test -z "$as_dir" && as_dir=.
  12022. for ac_exec_ext in '' $ac_executable_extensions; do
  12023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12024. ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
  12025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12026. break 2
  12027. fi
  12028. done
  12029. done
  12030. IFS=$as_save_IFS
  12031. fi
  12032. fi
  12033. GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
  12034. if test -n "$GDC_FOR_TARGET"; then
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
  12036. $as_echo "$GDC_FOR_TARGET" >&6; }
  12037. else
  12038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12039. $as_echo "no" >&6; }
  12040. fi
  12041. done
  12042. fi
  12043. if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12044. for ncn_progname in gdc; do
  12045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12046. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12047. if test -x $with_build_time_tools/${ncn_progname}; then
  12048. ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12050. $as_echo "yes" >&6; }
  12051. break
  12052. else
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12054. $as_echo "no" >&6; }
  12055. fi
  12056. done
  12057. fi
  12058. if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
  12059. for ncn_progname in gdc; do
  12060. if test -n "$ncn_target_tool_prefix"; then
  12061. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12062. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12064. $as_echo_n "checking for $ac_word... " >&6; }
  12065. if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
  12066. $as_echo_n "(cached) " >&6
  12067. else
  12068. if test -n "$GDC_FOR_TARGET"; then
  12069. ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
  12070. else
  12071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12072. for as_dir in $PATH
  12073. do
  12074. IFS=$as_save_IFS
  12075. test -z "$as_dir" && as_dir=.
  12076. for ac_exec_ext in '' $ac_executable_extensions; do
  12077. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12078. ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12079. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12080. break 2
  12081. fi
  12082. done
  12083. done
  12084. IFS=$as_save_IFS
  12085. fi
  12086. fi
  12087. GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
  12088. if test -n "$GDC_FOR_TARGET"; then
  12089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
  12090. $as_echo "$GDC_FOR_TARGET" >&6; }
  12091. else
  12092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12093. $as_echo "no" >&6; }
  12094. fi
  12095. fi
  12096. if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
  12097. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12098. set dummy ${ncn_progname}; ac_word=$2
  12099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12100. $as_echo_n "checking for $ac_word... " >&6; }
  12101. if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
  12102. $as_echo_n "(cached) " >&6
  12103. else
  12104. if test -n "$GDC_FOR_TARGET"; then
  12105. ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
  12106. else
  12107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12108. for as_dir in $PATH
  12109. do
  12110. IFS=$as_save_IFS
  12111. test -z "$as_dir" && as_dir=.
  12112. for ac_exec_ext in '' $ac_executable_extensions; do
  12113. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12114. ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
  12115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12116. break 2
  12117. fi
  12118. done
  12119. done
  12120. IFS=$as_save_IFS
  12121. fi
  12122. fi
  12123. GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
  12124. if test -n "$GDC_FOR_TARGET"; then
  12125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
  12126. $as_echo "$GDC_FOR_TARGET" >&6; }
  12127. else
  12128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12129. $as_echo "no" >&6; }
  12130. fi
  12131. fi
  12132. test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
  12133. done
  12134. fi
  12135. if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
  12136. set dummy gdc
  12137. if test $build = $target ; then
  12138. GDC_FOR_TARGET="$2"
  12139. else
  12140. GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12141. fi
  12142. else
  12143. GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
  12144. fi
  12145. cat > conftest.c << \EOF
  12146. #ifdef __GNUC__
  12147. gcc_yay;
  12148. #endif
  12149. EOF
  12150. if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
  12151. have_gcc_for_target=yes
  12152. else
  12153. GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
  12154. have_gcc_for_target=no
  12155. fi
  12156. rm conftest.c
  12157. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  12158. if test -n "$with_build_time_tools"; then
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
  12160. $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
  12161. if test -x $with_build_time_tools/ar; then
  12162. AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
  12163. ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  12164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
  12165. $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
  12166. else
  12167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12168. $as_echo "no" >&6; }
  12169. fi
  12170. elif test $build != $host && test $have_gcc_for_target = yes; then
  12171. AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
  12172. test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
  12173. test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
  12174. fi
  12175. fi
  12176. if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12177. # Extract the first word of "ar", so it can be a program name with args.
  12178. set dummy ar; ac_word=$2
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12180. $as_echo_n "checking for $ac_word... " >&6; }
  12181. if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
  12182. $as_echo_n "(cached) " >&6
  12183. else
  12184. case $AR_FOR_TARGET in
  12185. [\\/]* | ?:[\\/]*)
  12186. ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
  12187. ;;
  12188. *)
  12189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12190. for as_dir in $gcc_cv_tool_dirs
  12191. do
  12192. IFS=$as_save_IFS
  12193. test -z "$as_dir" && as_dir=.
  12194. for ac_exec_ext in '' $ac_executable_extensions; do
  12195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12196. ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12198. break 2
  12199. fi
  12200. done
  12201. done
  12202. IFS=$as_save_IFS
  12203. ;;
  12204. esac
  12205. fi
  12206. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  12207. if test -n "$AR_FOR_TARGET"; then
  12208. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  12209. $as_echo "$AR_FOR_TARGET" >&6; }
  12210. else
  12211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12212. $as_echo "no" >&6; }
  12213. fi
  12214. fi
  12215. if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
  12216. if test -n "$AR_FOR_TARGET"; then
  12217. ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
  12218. elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  12219. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  12220. fi
  12221. if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
  12222. for ncn_progname in ar; do
  12223. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12224. set dummy ${ncn_progname}; ac_word=$2
  12225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12226. $as_echo_n "checking for $ac_word... " >&6; }
  12227. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  12228. $as_echo_n "(cached) " >&6
  12229. else
  12230. if test -n "$AR_FOR_TARGET"; then
  12231. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  12232. else
  12233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12234. for as_dir in $PATH
  12235. do
  12236. IFS=$as_save_IFS
  12237. test -z "$as_dir" && as_dir=.
  12238. for ac_exec_ext in '' $ac_executable_extensions; do
  12239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12240. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  12241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12242. break 2
  12243. fi
  12244. done
  12245. done
  12246. IFS=$as_save_IFS
  12247. fi
  12248. fi
  12249. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  12250. if test -n "$AR_FOR_TARGET"; then
  12251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  12252. $as_echo "$AR_FOR_TARGET" >&6; }
  12253. else
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12255. $as_echo "no" >&6; }
  12256. fi
  12257. done
  12258. fi
  12259. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12260. for ncn_progname in ar; do
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12262. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12263. if test -x $with_build_time_tools/${ncn_progname}; then
  12264. ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12266. $as_echo "yes" >&6; }
  12267. break
  12268. else
  12269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12270. $as_echo "no" >&6; }
  12271. fi
  12272. done
  12273. fi
  12274. if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
  12275. for ncn_progname in ar; do
  12276. if test -n "$ncn_target_tool_prefix"; then
  12277. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12278. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12280. $as_echo_n "checking for $ac_word... " >&6; }
  12281. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  12282. $as_echo_n "(cached) " >&6
  12283. else
  12284. if test -n "$AR_FOR_TARGET"; then
  12285. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  12286. else
  12287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12288. for as_dir in $PATH
  12289. do
  12290. IFS=$as_save_IFS
  12291. test -z "$as_dir" && as_dir=.
  12292. for ac_exec_ext in '' $ac_executable_extensions; do
  12293. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12294. ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12295. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12296. break 2
  12297. fi
  12298. done
  12299. done
  12300. IFS=$as_save_IFS
  12301. fi
  12302. fi
  12303. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  12304. if test -n "$AR_FOR_TARGET"; then
  12305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  12306. $as_echo "$AR_FOR_TARGET" >&6; }
  12307. else
  12308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12309. $as_echo "no" >&6; }
  12310. fi
  12311. fi
  12312. if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
  12313. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12314. set dummy ${ncn_progname}; ac_word=$2
  12315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12316. $as_echo_n "checking for $ac_word... " >&6; }
  12317. if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
  12318. $as_echo_n "(cached) " >&6
  12319. else
  12320. if test -n "$AR_FOR_TARGET"; then
  12321. ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
  12322. else
  12323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12324. for as_dir in $PATH
  12325. do
  12326. IFS=$as_save_IFS
  12327. test -z "$as_dir" && as_dir=.
  12328. for ac_exec_ext in '' $ac_executable_extensions; do
  12329. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12330. ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
  12331. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12332. break 2
  12333. fi
  12334. done
  12335. done
  12336. IFS=$as_save_IFS
  12337. fi
  12338. fi
  12339. AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
  12340. if test -n "$AR_FOR_TARGET"; then
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
  12342. $as_echo "$AR_FOR_TARGET" >&6; }
  12343. else
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12345. $as_echo "no" >&6; }
  12346. fi
  12347. fi
  12348. test -n "$ac_cv_prog_AR_FOR_TARGET" && break
  12349. done
  12350. fi
  12351. if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
  12352. set dummy ar
  12353. if test $build = $target ; then
  12354. AR_FOR_TARGET="$2"
  12355. else
  12356. AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12357. fi
  12358. else
  12359. AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
  12360. fi
  12361. else
  12362. AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
  12363. fi
  12364. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  12365. if test -n "$with_build_time_tools"; then
  12366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
  12367. $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
  12368. if test -x $with_build_time_tools/as; then
  12369. AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
  12370. ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
  12372. $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
  12373. else
  12374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12375. $as_echo "no" >&6; }
  12376. fi
  12377. elif test $build != $host && test $have_gcc_for_target = yes; then
  12378. AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
  12379. test $AS_FOR_TARGET = as && AS_FOR_TARGET=
  12380. test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
  12381. fi
  12382. fi
  12383. if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12384. # Extract the first word of "as", so it can be a program name with args.
  12385. set dummy as; ac_word=$2
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12387. $as_echo_n "checking for $ac_word... " >&6; }
  12388. if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
  12389. $as_echo_n "(cached) " >&6
  12390. else
  12391. case $AS_FOR_TARGET in
  12392. [\\/]* | ?:[\\/]*)
  12393. ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
  12394. ;;
  12395. *)
  12396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12397. for as_dir in $gcc_cv_tool_dirs
  12398. do
  12399. IFS=$as_save_IFS
  12400. test -z "$as_dir" && as_dir=.
  12401. for ac_exec_ext in '' $ac_executable_extensions; do
  12402. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12403. ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12405. break 2
  12406. fi
  12407. done
  12408. done
  12409. IFS=$as_save_IFS
  12410. ;;
  12411. esac
  12412. fi
  12413. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  12414. if test -n "$AS_FOR_TARGET"; then
  12415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  12416. $as_echo "$AS_FOR_TARGET" >&6; }
  12417. else
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12419. $as_echo "no" >&6; }
  12420. fi
  12421. fi
  12422. if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
  12423. if test -n "$AS_FOR_TARGET"; then
  12424. ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
  12425. elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  12426. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  12427. fi
  12428. if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
  12429. for ncn_progname in as; do
  12430. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12431. set dummy ${ncn_progname}; ac_word=$2
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12433. $as_echo_n "checking for $ac_word... " >&6; }
  12434. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  12435. $as_echo_n "(cached) " >&6
  12436. else
  12437. if test -n "$AS_FOR_TARGET"; then
  12438. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  12439. else
  12440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12441. for as_dir in $PATH
  12442. do
  12443. IFS=$as_save_IFS
  12444. test -z "$as_dir" && as_dir=.
  12445. for ac_exec_ext in '' $ac_executable_extensions; do
  12446. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12447. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  12448. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12449. break 2
  12450. fi
  12451. done
  12452. done
  12453. IFS=$as_save_IFS
  12454. fi
  12455. fi
  12456. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  12457. if test -n "$AS_FOR_TARGET"; then
  12458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  12459. $as_echo "$AS_FOR_TARGET" >&6; }
  12460. else
  12461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12462. $as_echo "no" >&6; }
  12463. fi
  12464. done
  12465. fi
  12466. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12467. for ncn_progname in as; do
  12468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12469. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12470. if test -x $with_build_time_tools/${ncn_progname}; then
  12471. ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12473. $as_echo "yes" >&6; }
  12474. break
  12475. else
  12476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12477. $as_echo "no" >&6; }
  12478. fi
  12479. done
  12480. fi
  12481. if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
  12482. for ncn_progname in as; do
  12483. if test -n "$ncn_target_tool_prefix"; then
  12484. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12485. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12487. $as_echo_n "checking for $ac_word... " >&6; }
  12488. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  12489. $as_echo_n "(cached) " >&6
  12490. else
  12491. if test -n "$AS_FOR_TARGET"; then
  12492. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  12493. else
  12494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12495. for as_dir in $PATH
  12496. do
  12497. IFS=$as_save_IFS
  12498. test -z "$as_dir" && as_dir=.
  12499. for ac_exec_ext in '' $ac_executable_extensions; do
  12500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12501. ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12503. break 2
  12504. fi
  12505. done
  12506. done
  12507. IFS=$as_save_IFS
  12508. fi
  12509. fi
  12510. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  12511. if test -n "$AS_FOR_TARGET"; then
  12512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  12513. $as_echo "$AS_FOR_TARGET" >&6; }
  12514. else
  12515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12516. $as_echo "no" >&6; }
  12517. fi
  12518. fi
  12519. if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
  12520. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12521. set dummy ${ncn_progname}; ac_word=$2
  12522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12523. $as_echo_n "checking for $ac_word... " >&6; }
  12524. if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
  12525. $as_echo_n "(cached) " >&6
  12526. else
  12527. if test -n "$AS_FOR_TARGET"; then
  12528. ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
  12529. else
  12530. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12531. for as_dir in $PATH
  12532. do
  12533. IFS=$as_save_IFS
  12534. test -z "$as_dir" && as_dir=.
  12535. for ac_exec_ext in '' $ac_executable_extensions; do
  12536. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12537. ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
  12538. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12539. break 2
  12540. fi
  12541. done
  12542. done
  12543. IFS=$as_save_IFS
  12544. fi
  12545. fi
  12546. AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
  12547. if test -n "$AS_FOR_TARGET"; then
  12548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
  12549. $as_echo "$AS_FOR_TARGET" >&6; }
  12550. else
  12551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12552. $as_echo "no" >&6; }
  12553. fi
  12554. fi
  12555. test -n "$ac_cv_prog_AS_FOR_TARGET" && break
  12556. done
  12557. fi
  12558. if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
  12559. set dummy as
  12560. if test $build = $target ; then
  12561. AS_FOR_TARGET="$2"
  12562. else
  12563. AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12564. fi
  12565. else
  12566. AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
  12567. fi
  12568. else
  12569. AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
  12570. fi
  12571. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  12572. if test -n "$with_build_time_tools"; then
  12573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
  12574. $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
  12575. if test -x $with_build_time_tools/dlltool; then
  12576. DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
  12577. ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  12578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
  12579. $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
  12580. else
  12581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12582. $as_echo "no" >&6; }
  12583. fi
  12584. elif test $build != $host && test $have_gcc_for_target = yes; then
  12585. DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
  12586. test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
  12587. test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  12588. fi
  12589. fi
  12590. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12591. # Extract the first word of "dlltool", so it can be a program name with args.
  12592. set dummy dlltool; ac_word=$2
  12593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12594. $as_echo_n "checking for $ac_word... " >&6; }
  12595. if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
  12596. $as_echo_n "(cached) " >&6
  12597. else
  12598. case $DLLTOOL_FOR_TARGET in
  12599. [\\/]* | ?:[\\/]*)
  12600. ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
  12601. ;;
  12602. *)
  12603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12604. for as_dir in $gcc_cv_tool_dirs
  12605. do
  12606. IFS=$as_save_IFS
  12607. test -z "$as_dir" && as_dir=.
  12608. for ac_exec_ext in '' $ac_executable_extensions; do
  12609. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12610. ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12612. break 2
  12613. fi
  12614. done
  12615. done
  12616. IFS=$as_save_IFS
  12617. ;;
  12618. esac
  12619. fi
  12620. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  12621. if test -n "$DLLTOOL_FOR_TARGET"; then
  12622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  12623. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  12624. else
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12626. $as_echo "no" >&6; }
  12627. fi
  12628. fi
  12629. if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
  12630. if test -n "$DLLTOOL_FOR_TARGET"; then
  12631. ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
  12632. elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  12633. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  12634. fi
  12635. if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  12636. for ncn_progname in dlltool; do
  12637. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12638. set dummy ${ncn_progname}; ac_word=$2
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12640. $as_echo_n "checking for $ac_word... " >&6; }
  12641. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  12642. $as_echo_n "(cached) " >&6
  12643. else
  12644. if test -n "$DLLTOOL_FOR_TARGET"; then
  12645. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  12646. else
  12647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12648. for as_dir in $PATH
  12649. do
  12650. IFS=$as_save_IFS
  12651. test -z "$as_dir" && as_dir=.
  12652. for ac_exec_ext in '' $ac_executable_extensions; do
  12653. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12654. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  12655. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12656. break 2
  12657. fi
  12658. done
  12659. done
  12660. IFS=$as_save_IFS
  12661. fi
  12662. fi
  12663. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  12664. if test -n "$DLLTOOL_FOR_TARGET"; then
  12665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  12666. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  12667. else
  12668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12669. $as_echo "no" >&6; }
  12670. fi
  12671. done
  12672. fi
  12673. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12674. for ncn_progname in dlltool; do
  12675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12676. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12677. if test -x $with_build_time_tools/${ncn_progname}; then
  12678. ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12680. $as_echo "yes" >&6; }
  12681. break
  12682. else
  12683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12684. $as_echo "no" >&6; }
  12685. fi
  12686. done
  12687. fi
  12688. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
  12689. for ncn_progname in dlltool; do
  12690. if test -n "$ncn_target_tool_prefix"; then
  12691. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12692. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12694. $as_echo_n "checking for $ac_word... " >&6; }
  12695. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  12696. $as_echo_n "(cached) " >&6
  12697. else
  12698. if test -n "$DLLTOOL_FOR_TARGET"; then
  12699. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  12700. else
  12701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12702. for as_dir in $PATH
  12703. do
  12704. IFS=$as_save_IFS
  12705. test -z "$as_dir" && as_dir=.
  12706. for ac_exec_ext in '' $ac_executable_extensions; do
  12707. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12708. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12709. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12710. break 2
  12711. fi
  12712. done
  12713. done
  12714. IFS=$as_save_IFS
  12715. fi
  12716. fi
  12717. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  12718. if test -n "$DLLTOOL_FOR_TARGET"; then
  12719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  12720. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  12721. else
  12722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12723. $as_echo "no" >&6; }
  12724. fi
  12725. fi
  12726. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
  12727. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12728. set dummy ${ncn_progname}; ac_word=$2
  12729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12730. $as_echo_n "checking for $ac_word... " >&6; }
  12731. if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
  12732. $as_echo_n "(cached) " >&6
  12733. else
  12734. if test -n "$DLLTOOL_FOR_TARGET"; then
  12735. ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
  12736. else
  12737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12738. for as_dir in $PATH
  12739. do
  12740. IFS=$as_save_IFS
  12741. test -z "$as_dir" && as_dir=.
  12742. for ac_exec_ext in '' $ac_executable_extensions; do
  12743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12744. ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
  12745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12746. break 2
  12747. fi
  12748. done
  12749. done
  12750. IFS=$as_save_IFS
  12751. fi
  12752. fi
  12753. DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
  12754. if test -n "$DLLTOOL_FOR_TARGET"; then
  12755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
  12756. $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
  12757. else
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12759. $as_echo "no" >&6; }
  12760. fi
  12761. fi
  12762. test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
  12763. done
  12764. fi
  12765. if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
  12766. set dummy dlltool
  12767. if test $build = $target ; then
  12768. DLLTOOL_FOR_TARGET="$2"
  12769. else
  12770. DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12771. fi
  12772. else
  12773. DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
  12774. fi
  12775. else
  12776. DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
  12777. fi
  12778. if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
  12779. if test -n "$with_build_time_tools"; then
  12780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
  12781. $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
  12782. if test -x $with_build_time_tools/dsymutil; then
  12783. DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
  12784. ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
  12785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
  12786. $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
  12787. else
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12789. $as_echo "no" >&6; }
  12790. fi
  12791. elif test $build != $host && test $have_gcc_for_target = yes; then
  12792. DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
  12793. test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
  12794. test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
  12795. fi
  12796. fi
  12797. if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  12798. # Extract the first word of "dsymutil", so it can be a program name with args.
  12799. set dummy dsymutil; ac_word=$2
  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12801. $as_echo_n "checking for $ac_word... " >&6; }
  12802. if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
  12803. $as_echo_n "(cached) " >&6
  12804. else
  12805. case $DSYMUTIL_FOR_TARGET in
  12806. [\\/]* | ?:[\\/]*)
  12807. ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
  12808. ;;
  12809. *)
  12810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12811. for as_dir in $gcc_cv_tool_dirs
  12812. do
  12813. IFS=$as_save_IFS
  12814. test -z "$as_dir" && as_dir=.
  12815. for ac_exec_ext in '' $ac_executable_extensions; do
  12816. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12817. ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  12818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12819. break 2
  12820. fi
  12821. done
  12822. done
  12823. IFS=$as_save_IFS
  12824. ;;
  12825. esac
  12826. fi
  12827. DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
  12828. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
  12830. $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
  12831. else
  12832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12833. $as_echo "no" >&6; }
  12834. fi
  12835. fi
  12836. if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
  12837. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12838. ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
  12839. elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
  12840. DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
  12841. fi
  12842. if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
  12843. for ncn_progname in dsymutil; do
  12844. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12845. set dummy ${ncn_progname}; ac_word=$2
  12846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12847. $as_echo_n "checking for $ac_word... " >&6; }
  12848. if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
  12849. $as_echo_n "(cached) " >&6
  12850. else
  12851. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12852. ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
  12853. else
  12854. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12855. for as_dir in $PATH
  12856. do
  12857. IFS=$as_save_IFS
  12858. test -z "$as_dir" && as_dir=.
  12859. for ac_exec_ext in '' $ac_executable_extensions; do
  12860. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12861. ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
  12862. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12863. break 2
  12864. fi
  12865. done
  12866. done
  12867. IFS=$as_save_IFS
  12868. fi
  12869. fi
  12870. DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
  12871. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
  12873. $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
  12874. else
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12876. $as_echo "no" >&6; }
  12877. fi
  12878. done
  12879. fi
  12880. if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  12881. for ncn_progname in dsymutil; do
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  12883. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  12884. if test -x $with_build_time_tools/${ncn_progname}; then
  12885. ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  12886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12887. $as_echo "yes" >&6; }
  12888. break
  12889. else
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12891. $as_echo "no" >&6; }
  12892. fi
  12893. done
  12894. fi
  12895. if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
  12896. for ncn_progname in dsymutil; do
  12897. if test -n "$ncn_target_tool_prefix"; then
  12898. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  12899. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12901. $as_echo_n "checking for $ac_word... " >&6; }
  12902. if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
  12903. $as_echo_n "(cached) " >&6
  12904. else
  12905. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12906. ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
  12907. else
  12908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12909. for as_dir in $PATH
  12910. do
  12911. IFS=$as_save_IFS
  12912. test -z "$as_dir" && as_dir=.
  12913. for ac_exec_ext in '' $ac_executable_extensions; do
  12914. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12915. ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  12916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12917. break 2
  12918. fi
  12919. done
  12920. done
  12921. IFS=$as_save_IFS
  12922. fi
  12923. fi
  12924. DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
  12925. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
  12927. $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
  12928. else
  12929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12930. $as_echo "no" >&6; }
  12931. fi
  12932. fi
  12933. if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
  12934. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  12935. set dummy ${ncn_progname}; ac_word=$2
  12936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12937. $as_echo_n "checking for $ac_word... " >&6; }
  12938. if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
  12939. $as_echo_n "(cached) " >&6
  12940. else
  12941. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12942. ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
  12943. else
  12944. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12945. for as_dir in $PATH
  12946. do
  12947. IFS=$as_save_IFS
  12948. test -z "$as_dir" && as_dir=.
  12949. for ac_exec_ext in '' $ac_executable_extensions; do
  12950. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12951. ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
  12952. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12953. break 2
  12954. fi
  12955. done
  12956. done
  12957. IFS=$as_save_IFS
  12958. fi
  12959. fi
  12960. DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
  12961. if test -n "$DSYMUTIL_FOR_TARGET"; then
  12962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
  12963. $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
  12964. else
  12965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12966. $as_echo "no" >&6; }
  12967. fi
  12968. fi
  12969. test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
  12970. done
  12971. fi
  12972. if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
  12973. set dummy dsymutil
  12974. if test $build = $target ; then
  12975. DSYMUTIL_FOR_TARGET="$2"
  12976. else
  12977. DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  12978. fi
  12979. else
  12980. DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
  12981. fi
  12982. else
  12983. DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
  12984. fi
  12985. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  12986. if test -n "$with_build_time_tools"; then
  12987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
  12988. $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
  12989. if test -x $with_build_time_tools/ld; then
  12990. LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
  12991. ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  12992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
  12993. $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
  12994. else
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12996. $as_echo "no" >&6; }
  12997. fi
  12998. elif test $build != $host && test $have_gcc_for_target = yes; then
  12999. LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
  13000. test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
  13001. test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
  13002. fi
  13003. fi
  13004. if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  13005. # Extract the first word of "ld", so it can be a program name with args.
  13006. set dummy ld; ac_word=$2
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13008. $as_echo_n "checking for $ac_word... " >&6; }
  13009. if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
  13010. $as_echo_n "(cached) " >&6
  13011. else
  13012. case $LD_FOR_TARGET in
  13013. [\\/]* | ?:[\\/]*)
  13014. ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
  13015. ;;
  13016. *)
  13017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13018. for as_dir in $gcc_cv_tool_dirs
  13019. do
  13020. IFS=$as_save_IFS
  13021. test -z "$as_dir" && as_dir=.
  13022. for ac_exec_ext in '' $ac_executable_extensions; do
  13023. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13024. ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  13025. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13026. break 2
  13027. fi
  13028. done
  13029. done
  13030. IFS=$as_save_IFS
  13031. ;;
  13032. esac
  13033. fi
  13034. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  13035. if test -n "$LD_FOR_TARGET"; then
  13036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  13037. $as_echo "$LD_FOR_TARGET" >&6; }
  13038. else
  13039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13040. $as_echo "no" >&6; }
  13041. fi
  13042. fi
  13043. if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
  13044. if test -n "$LD_FOR_TARGET"; then
  13045. ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
  13046. elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  13047. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  13048. fi
  13049. if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
  13050. for ncn_progname in ld; do
  13051. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13052. set dummy ${ncn_progname}; ac_word=$2
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13054. $as_echo_n "checking for $ac_word... " >&6; }
  13055. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  13056. $as_echo_n "(cached) " >&6
  13057. else
  13058. if test -n "$LD_FOR_TARGET"; then
  13059. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  13060. else
  13061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13062. for as_dir in $PATH
  13063. do
  13064. IFS=$as_save_IFS
  13065. test -z "$as_dir" && as_dir=.
  13066. for ac_exec_ext in '' $ac_executable_extensions; do
  13067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13068. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  13069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13070. break 2
  13071. fi
  13072. done
  13073. done
  13074. IFS=$as_save_IFS
  13075. fi
  13076. fi
  13077. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  13078. if test -n "$LD_FOR_TARGET"; then
  13079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  13080. $as_echo "$LD_FOR_TARGET" >&6; }
  13081. else
  13082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13083. $as_echo "no" >&6; }
  13084. fi
  13085. done
  13086. fi
  13087. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
  13088. for ncn_progname in ld; do
  13089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  13090. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  13091. if test -x $with_build_time_tools/${ncn_progname}; then
  13092. ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  13093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13094. $as_echo "yes" >&6; }
  13095. break
  13096. else
  13097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13098. $as_echo "no" >&6; }
  13099. fi
  13100. done
  13101. fi
  13102. if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
  13103. for ncn_progname in ld; do
  13104. if test -n "$ncn_target_tool_prefix"; then
  13105. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  13106. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13108. $as_echo_n "checking for $ac_word... " >&6; }
  13109. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  13110. $as_echo_n "(cached) " >&6
  13111. else
  13112. if test -n "$LD_FOR_TARGET"; then
  13113. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  13114. else
  13115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13116. for as_dir in $PATH
  13117. do
  13118. IFS=$as_save_IFS
  13119. test -z "$as_dir" && as_dir=.
  13120. for ac_exec_ext in '' $ac_executable_extensions; do
  13121. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13122. ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  13123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13124. break 2
  13125. fi
  13126. done
  13127. done
  13128. IFS=$as_save_IFS
  13129. fi
  13130. fi
  13131. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  13132. if test -n "$LD_FOR_TARGET"; then
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  13134. $as_echo "$LD_FOR_TARGET" >&6; }
  13135. else
  13136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13137. $as_echo "no" >&6; }
  13138. fi
  13139. fi
  13140. if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
  13141. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13142. set dummy ${ncn_progname}; ac_word=$2
  13143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13144. $as_echo_n "checking for $ac_word... " >&6; }
  13145. if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
  13146. $as_echo_n "(cached) " >&6
  13147. else
  13148. if test -n "$LD_FOR_TARGET"; then
  13149. ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
  13150. else
  13151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13152. for as_dir in $PATH
  13153. do
  13154. IFS=$as_save_IFS
  13155. test -z "$as_dir" && as_dir=.
  13156. for ac_exec_ext in '' $ac_executable_extensions; do
  13157. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13158. ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
  13159. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13160. break 2
  13161. fi
  13162. done
  13163. done
  13164. IFS=$as_save_IFS
  13165. fi
  13166. fi
  13167. LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
  13168. if test -n "$LD_FOR_TARGET"; then
  13169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
  13170. $as_echo "$LD_FOR_TARGET" >&6; }
  13171. else
  13172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13173. $as_echo "no" >&6; }
  13174. fi
  13175. fi
  13176. test -n "$ac_cv_prog_LD_FOR_TARGET" && break
  13177. done
  13178. fi
  13179. if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
  13180. set dummy ld
  13181. if test $build = $target ; then
  13182. LD_FOR_TARGET="$2"
  13183. else
  13184. LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
  13185. fi
  13186. else
  13187. LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
  13188. fi
  13189. else
  13190. LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
  13191. fi
  13192. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  13193. if test -n "$with_build_time_tools"; then
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
  13195. $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
  13196. if test -x $with_build_time_tools/lipo; then
  13197. LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
  13198. ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  13199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
  13200. $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
  13201. else
  13202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13203. $as_echo "no" >&6; }
  13204. fi
  13205. elif test $build != $host && test $have_gcc_for_target = yes; then
  13206. LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
  13207. test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
  13208. test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  13209. fi
  13210. fi
  13211. if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  13212. # Extract the first word of "lipo", so it can be a program name with args.
  13213. set dummy lipo; ac_word=$2
  13214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13215. $as_echo_n "checking for $ac_word... " >&6; }
  13216. if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
  13217. $as_echo_n "(cached) " >&6
  13218. else
  13219. case $LIPO_FOR_TARGET in
  13220. [\\/]* | ?:[\\/]*)
  13221. ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
  13222. ;;
  13223. *)
  13224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13225. for as_dir in $gcc_cv_tool_dirs
  13226. do
  13227. IFS=$as_save_IFS
  13228. test -z "$as_dir" && as_dir=.
  13229. for ac_exec_ext in '' $ac_executable_extensions; do
  13230. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13231. ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  13232. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13233. break 2
  13234. fi
  13235. done
  13236. done
  13237. IFS=$as_save_IFS
  13238. ;;
  13239. esac
  13240. fi
  13241. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  13242. if test -n "$LIPO_FOR_TARGET"; then
  13243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  13244. $as_echo "$LIPO_FOR_TARGET" >&6; }
  13245. else
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13247. $as_echo "no" >&6; }
  13248. fi
  13249. fi
  13250. if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
  13251. if test -n "$LIPO_FOR_TARGET"; then
  13252. ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
  13253. elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  13254. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  13255. fi
  13256. if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
  13257. for ncn_progname in lipo; do
  13258. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13259. set dummy ${ncn_progname}; ac_word=$2
  13260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13261. $as_echo_n "checking for $ac_word... " >&6; }
  13262. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  13263. $as_echo_n "(cached) " >&6
  13264. else
  13265. if test -n "$LIPO_FOR_TARGET"; then
  13266. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  13267. else
  13268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13269. for as_dir in $PATH
  13270. do
  13271. IFS=$as_save_IFS
  13272. test -z "$as_dir" && as_dir=.
  13273. for ac_exec_ext in '' $ac_executable_extensions; do
  13274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13275. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  13276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13277. break 2
  13278. fi
  13279. done
  13280. done
  13281. IFS=$as_save_IFS
  13282. fi
  13283. fi
  13284. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  13285. if test -n "$LIPO_FOR_TARGET"; then
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  13287. $as_echo "$LIPO_FOR_TARGET" >&6; }
  13288. else
  13289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13290. $as_echo "no" >&6; }
  13291. fi
  13292. done
  13293. fi
  13294. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
  13295. for ncn_progname in lipo; do
  13296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  13297. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  13298. if test -x $with_build_time_tools/${ncn_progname}; then
  13299. ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13301. $as_echo "yes" >&6; }
  13302. break
  13303. else
  13304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13305. $as_echo "no" >&6; }
  13306. fi
  13307. done
  13308. fi
  13309. if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
  13310. for ncn_progname in lipo; do
  13311. if test -n "$ncn_target_tool_prefix"; then
  13312. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  13313. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  13314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13315. $as_echo_n "checking for $ac_word... " >&6; }
  13316. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  13317. $as_echo_n "(cached) " >&6
  13318. else
  13319. if test -n "$LIPO_FOR_TARGET"; then
  13320. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  13321. else
  13322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13323. for as_dir in $PATH
  13324. do
  13325. IFS=$as_save_IFS
  13326. test -z "$as_dir" && as_dir=.
  13327. for ac_exec_ext in '' $ac_executable_extensions; do
  13328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13329. ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  13330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13331. break 2
  13332. fi
  13333. done
  13334. done
  13335. IFS=$as_save_IFS
  13336. fi
  13337. fi
  13338. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  13339. if test -n "$LIPO_FOR_TARGET"; then
  13340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  13341. $as_echo "$LIPO_FOR_TARGET" >&6; }
  13342. else
  13343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13344. $as_echo "no" >&6; }
  13345. fi
  13346. fi
  13347. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
  13348. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13349. set dummy ${ncn_progname}; ac_word=$2
  13350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13351. $as_echo_n "checking for $ac_word... " >&6; }
  13352. if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
  13353. $as_echo_n "(cached) " >&6
  13354. else
  13355. if test -n "$LIPO_FOR_TARGET"; then
  13356. ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
  13357. else
  13358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13359. for as_dir in $PATH
  13360. do
  13361. IFS=$as_save_IFS
  13362. test -z "$as_dir" && as_dir=.
  13363. for ac_exec_ext in '' $ac_executable_extensions; do
  13364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13365. ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
  13366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13367. break 2
  13368. fi
  13369. done
  13370. done
  13371. IFS=$as_save_IFS
  13372. fi
  13373. fi
  13374. LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
  13375. if test -n "$LIPO_FOR_TARGET"; then
  13376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
  13377. $as_echo "$LIPO_FOR_TARGET" >&6; }
  13378. else
  13379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13380. $as_echo "no" >&6; }
  13381. fi
  13382. fi
  13383. test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
  13384. done
  13385. fi
  13386. if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
  13387. set dummy lipo
  13388. if test $build = $target ; then
  13389. LIPO_FOR_TARGET="$2"
  13390. else
  13391. LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
  13392. fi
  13393. else
  13394. LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
  13395. fi
  13396. else
  13397. LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
  13398. fi
  13399. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  13400. if test -n "$with_build_time_tools"; then
  13401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
  13402. $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
  13403. if test -x $with_build_time_tools/nm; then
  13404. NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
  13405. ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
  13407. $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
  13408. else
  13409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13410. $as_echo "no" >&6; }
  13411. fi
  13412. elif test $build != $host && test $have_gcc_for_target = yes; then
  13413. NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
  13414. test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
  13415. test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
  13416. fi
  13417. fi
  13418. if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  13419. # Extract the first word of "nm", so it can be a program name with args.
  13420. set dummy nm; ac_word=$2
  13421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13422. $as_echo_n "checking for $ac_word... " >&6; }
  13423. if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
  13424. $as_echo_n "(cached) " >&6
  13425. else
  13426. case $NM_FOR_TARGET in
  13427. [\\/]* | ?:[\\/]*)
  13428. ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
  13429. ;;
  13430. *)
  13431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13432. for as_dir in $gcc_cv_tool_dirs
  13433. do
  13434. IFS=$as_save_IFS
  13435. test -z "$as_dir" && as_dir=.
  13436. for ac_exec_ext in '' $ac_executable_extensions; do
  13437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13438. ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  13439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13440. break 2
  13441. fi
  13442. done
  13443. done
  13444. IFS=$as_save_IFS
  13445. ;;
  13446. esac
  13447. fi
  13448. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  13449. if test -n "$NM_FOR_TARGET"; then
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  13451. $as_echo "$NM_FOR_TARGET" >&6; }
  13452. else
  13453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13454. $as_echo "no" >&6; }
  13455. fi
  13456. fi
  13457. if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
  13458. if test -n "$NM_FOR_TARGET"; then
  13459. ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
  13460. elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  13461. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  13462. fi
  13463. if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
  13464. for ncn_progname in nm; do
  13465. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13466. set dummy ${ncn_progname}; ac_word=$2
  13467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13468. $as_echo_n "checking for $ac_word... " >&6; }
  13469. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  13470. $as_echo_n "(cached) " >&6
  13471. else
  13472. if test -n "$NM_FOR_TARGET"; then
  13473. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  13474. else
  13475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13476. for as_dir in $PATH
  13477. do
  13478. IFS=$as_save_IFS
  13479. test -z "$as_dir" && as_dir=.
  13480. for ac_exec_ext in '' $ac_executable_extensions; do
  13481. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13482. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  13483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13484. break 2
  13485. fi
  13486. done
  13487. done
  13488. IFS=$as_save_IFS
  13489. fi
  13490. fi
  13491. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  13492. if test -n "$NM_FOR_TARGET"; then
  13493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  13494. $as_echo "$NM_FOR_TARGET" >&6; }
  13495. else
  13496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13497. $as_echo "no" >&6; }
  13498. fi
  13499. done
  13500. fi
  13501. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
  13502. for ncn_progname in nm; do
  13503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  13504. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  13505. if test -x $with_build_time_tools/${ncn_progname}; then
  13506. ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13508. $as_echo "yes" >&6; }
  13509. break
  13510. else
  13511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13512. $as_echo "no" >&6; }
  13513. fi
  13514. done
  13515. fi
  13516. if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
  13517. for ncn_progname in nm; do
  13518. if test -n "$ncn_target_tool_prefix"; then
  13519. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  13520. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13522. $as_echo_n "checking for $ac_word... " >&6; }
  13523. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  13524. $as_echo_n "(cached) " >&6
  13525. else
  13526. if test -n "$NM_FOR_TARGET"; then
  13527. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  13528. else
  13529. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13530. for as_dir in $PATH
  13531. do
  13532. IFS=$as_save_IFS
  13533. test -z "$as_dir" && as_dir=.
  13534. for ac_exec_ext in '' $ac_executable_extensions; do
  13535. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13536. ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  13537. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13538. break 2
  13539. fi
  13540. done
  13541. done
  13542. IFS=$as_save_IFS
  13543. fi
  13544. fi
  13545. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  13546. if test -n "$NM_FOR_TARGET"; then
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  13548. $as_echo "$NM_FOR_TARGET" >&6; }
  13549. else
  13550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13551. $as_echo "no" >&6; }
  13552. fi
  13553. fi
  13554. if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
  13555. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13556. set dummy ${ncn_progname}; ac_word=$2
  13557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13558. $as_echo_n "checking for $ac_word... " >&6; }
  13559. if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
  13560. $as_echo_n "(cached) " >&6
  13561. else
  13562. if test -n "$NM_FOR_TARGET"; then
  13563. ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
  13564. else
  13565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13566. for as_dir in $PATH
  13567. do
  13568. IFS=$as_save_IFS
  13569. test -z "$as_dir" && as_dir=.
  13570. for ac_exec_ext in '' $ac_executable_extensions; do
  13571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13572. ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
  13573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13574. break 2
  13575. fi
  13576. done
  13577. done
  13578. IFS=$as_save_IFS
  13579. fi
  13580. fi
  13581. NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
  13582. if test -n "$NM_FOR_TARGET"; then
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
  13584. $as_echo "$NM_FOR_TARGET" >&6; }
  13585. else
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13587. $as_echo "no" >&6; }
  13588. fi
  13589. fi
  13590. test -n "$ac_cv_prog_NM_FOR_TARGET" && break
  13591. done
  13592. fi
  13593. if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
  13594. set dummy nm
  13595. if test $build = $target ; then
  13596. NM_FOR_TARGET="$2"
  13597. else
  13598. NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
  13599. fi
  13600. else
  13601. NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
  13602. fi
  13603. else
  13604. NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
  13605. fi
  13606. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  13607. if test -n "$with_build_time_tools"; then
  13608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
  13609. $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
  13610. if test -x $with_build_time_tools/objcopy; then
  13611. OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
  13612. ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  13613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
  13614. $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
  13615. else
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13617. $as_echo "no" >&6; }
  13618. fi
  13619. elif test $build != $host && test $have_gcc_for_target = yes; then
  13620. OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
  13621. test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
  13622. test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  13623. fi
  13624. fi
  13625. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  13626. # Extract the first word of "objcopy", so it can be a program name with args.
  13627. set dummy objcopy; ac_word=$2
  13628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13629. $as_echo_n "checking for $ac_word... " >&6; }
  13630. if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
  13631. $as_echo_n "(cached) " >&6
  13632. else
  13633. case $OBJCOPY_FOR_TARGET in
  13634. [\\/]* | ?:[\\/]*)
  13635. ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
  13636. ;;
  13637. *)
  13638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13639. for as_dir in $gcc_cv_tool_dirs
  13640. do
  13641. IFS=$as_save_IFS
  13642. test -z "$as_dir" && as_dir=.
  13643. for ac_exec_ext in '' $ac_executable_extensions; do
  13644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13645. ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  13646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13647. break 2
  13648. fi
  13649. done
  13650. done
  13651. IFS=$as_save_IFS
  13652. ;;
  13653. esac
  13654. fi
  13655. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  13656. if test -n "$OBJCOPY_FOR_TARGET"; then
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  13658. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  13659. else
  13660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13661. $as_echo "no" >&6; }
  13662. fi
  13663. fi
  13664. if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
  13665. if test -n "$OBJCOPY_FOR_TARGET"; then
  13666. ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
  13667. elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  13668. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  13669. fi
  13670. if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  13671. for ncn_progname in objcopy; do
  13672. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13673. set dummy ${ncn_progname}; ac_word=$2
  13674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13675. $as_echo_n "checking for $ac_word... " >&6; }
  13676. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  13677. $as_echo_n "(cached) " >&6
  13678. else
  13679. if test -n "$OBJCOPY_FOR_TARGET"; then
  13680. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  13681. else
  13682. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13683. for as_dir in $PATH
  13684. do
  13685. IFS=$as_save_IFS
  13686. test -z "$as_dir" && as_dir=.
  13687. for ac_exec_ext in '' $ac_executable_extensions; do
  13688. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13689. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  13690. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13691. break 2
  13692. fi
  13693. done
  13694. done
  13695. IFS=$as_save_IFS
  13696. fi
  13697. fi
  13698. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  13699. if test -n "$OBJCOPY_FOR_TARGET"; then
  13700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  13701. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  13702. else
  13703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13704. $as_echo "no" >&6; }
  13705. fi
  13706. done
  13707. fi
  13708. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
  13709. for ncn_progname in objcopy; do
  13710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  13711. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  13712. if test -x $with_build_time_tools/${ncn_progname}; then
  13713. ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13715. $as_echo "yes" >&6; }
  13716. break
  13717. else
  13718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13719. $as_echo "no" >&6; }
  13720. fi
  13721. done
  13722. fi
  13723. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
  13724. for ncn_progname in objcopy; do
  13725. if test -n "$ncn_target_tool_prefix"; then
  13726. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  13727. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  13728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13729. $as_echo_n "checking for $ac_word... " >&6; }
  13730. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  13731. $as_echo_n "(cached) " >&6
  13732. else
  13733. if test -n "$OBJCOPY_FOR_TARGET"; then
  13734. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  13735. else
  13736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13737. for as_dir in $PATH
  13738. do
  13739. IFS=$as_save_IFS
  13740. test -z "$as_dir" && as_dir=.
  13741. for ac_exec_ext in '' $ac_executable_extensions; do
  13742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13743. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  13744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13745. break 2
  13746. fi
  13747. done
  13748. done
  13749. IFS=$as_save_IFS
  13750. fi
  13751. fi
  13752. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  13753. if test -n "$OBJCOPY_FOR_TARGET"; then
  13754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  13755. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  13756. else
  13757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13758. $as_echo "no" >&6; }
  13759. fi
  13760. fi
  13761. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
  13762. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13763. set dummy ${ncn_progname}; ac_word=$2
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13765. $as_echo_n "checking for $ac_word... " >&6; }
  13766. if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. if test -n "$OBJCOPY_FOR_TARGET"; then
  13770. ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
  13771. else
  13772. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13773. for as_dir in $PATH
  13774. do
  13775. IFS=$as_save_IFS
  13776. test -z "$as_dir" && as_dir=.
  13777. for ac_exec_ext in '' $ac_executable_extensions; do
  13778. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13779. ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
  13780. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13781. break 2
  13782. fi
  13783. done
  13784. done
  13785. IFS=$as_save_IFS
  13786. fi
  13787. fi
  13788. OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
  13789. if test -n "$OBJCOPY_FOR_TARGET"; then
  13790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
  13791. $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
  13792. else
  13793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13794. $as_echo "no" >&6; }
  13795. fi
  13796. fi
  13797. test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
  13798. done
  13799. fi
  13800. if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
  13801. set dummy objcopy
  13802. if test $build = $target ; then
  13803. OBJCOPY_FOR_TARGET="$2"
  13804. else
  13805. OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
  13806. fi
  13807. else
  13808. OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
  13809. fi
  13810. else
  13811. OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
  13812. fi
  13813. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  13814. if test -n "$with_build_time_tools"; then
  13815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
  13816. $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
  13817. if test -x $with_build_time_tools/objdump; then
  13818. OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
  13819. ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  13820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
  13821. $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
  13822. else
  13823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13824. $as_echo "no" >&6; }
  13825. fi
  13826. elif test $build != $host && test $have_gcc_for_target = yes; then
  13827. OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
  13828. test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
  13829. test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  13830. fi
  13831. fi
  13832. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  13833. # Extract the first word of "objdump", so it can be a program name with args.
  13834. set dummy objdump; ac_word=$2
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13836. $as_echo_n "checking for $ac_word... " >&6; }
  13837. if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
  13838. $as_echo_n "(cached) " >&6
  13839. else
  13840. case $OBJDUMP_FOR_TARGET in
  13841. [\\/]* | ?:[\\/]*)
  13842. ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
  13843. ;;
  13844. *)
  13845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13846. for as_dir in $gcc_cv_tool_dirs
  13847. do
  13848. IFS=$as_save_IFS
  13849. test -z "$as_dir" && as_dir=.
  13850. for ac_exec_ext in '' $ac_executable_extensions; do
  13851. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13852. ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  13853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13854. break 2
  13855. fi
  13856. done
  13857. done
  13858. IFS=$as_save_IFS
  13859. ;;
  13860. esac
  13861. fi
  13862. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  13863. if test -n "$OBJDUMP_FOR_TARGET"; then
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  13865. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  13866. else
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13868. $as_echo "no" >&6; }
  13869. fi
  13870. fi
  13871. if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
  13872. if test -n "$OBJDUMP_FOR_TARGET"; then
  13873. ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
  13874. elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  13875. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  13876. fi
  13877. if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  13878. for ncn_progname in objdump; do
  13879. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13880. set dummy ${ncn_progname}; ac_word=$2
  13881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13882. $as_echo_n "checking for $ac_word... " >&6; }
  13883. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  13884. $as_echo_n "(cached) " >&6
  13885. else
  13886. if test -n "$OBJDUMP_FOR_TARGET"; then
  13887. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  13888. else
  13889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13890. for as_dir in $PATH
  13891. do
  13892. IFS=$as_save_IFS
  13893. test -z "$as_dir" && as_dir=.
  13894. for ac_exec_ext in '' $ac_executable_extensions; do
  13895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13896. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  13897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13898. break 2
  13899. fi
  13900. done
  13901. done
  13902. IFS=$as_save_IFS
  13903. fi
  13904. fi
  13905. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  13906. if test -n "$OBJDUMP_FOR_TARGET"; then
  13907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  13908. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  13909. else
  13910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13911. $as_echo "no" >&6; }
  13912. fi
  13913. done
  13914. fi
  13915. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  13916. for ncn_progname in objdump; do
  13917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  13918. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  13919. if test -x $with_build_time_tools/${ncn_progname}; then
  13920. ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  13921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13922. $as_echo "yes" >&6; }
  13923. break
  13924. else
  13925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13926. $as_echo "no" >&6; }
  13927. fi
  13928. done
  13929. fi
  13930. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
  13931. for ncn_progname in objdump; do
  13932. if test -n "$ncn_target_tool_prefix"; then
  13933. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  13934. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  13935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13936. $as_echo_n "checking for $ac_word... " >&6; }
  13937. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  13938. $as_echo_n "(cached) " >&6
  13939. else
  13940. if test -n "$OBJDUMP_FOR_TARGET"; then
  13941. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  13942. else
  13943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13944. for as_dir in $PATH
  13945. do
  13946. IFS=$as_save_IFS
  13947. test -z "$as_dir" && as_dir=.
  13948. for ac_exec_ext in '' $ac_executable_extensions; do
  13949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13950. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  13951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13952. break 2
  13953. fi
  13954. done
  13955. done
  13956. IFS=$as_save_IFS
  13957. fi
  13958. fi
  13959. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  13960. if test -n "$OBJDUMP_FOR_TARGET"; then
  13961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  13962. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  13963. else
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13965. $as_echo "no" >&6; }
  13966. fi
  13967. fi
  13968. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
  13969. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  13970. set dummy ${ncn_progname}; ac_word=$2
  13971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13972. $as_echo_n "checking for $ac_word... " >&6; }
  13973. if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
  13974. $as_echo_n "(cached) " >&6
  13975. else
  13976. if test -n "$OBJDUMP_FOR_TARGET"; then
  13977. ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
  13978. else
  13979. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13980. for as_dir in $PATH
  13981. do
  13982. IFS=$as_save_IFS
  13983. test -z "$as_dir" && as_dir=.
  13984. for ac_exec_ext in '' $ac_executable_extensions; do
  13985. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13986. ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
  13987. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13988. break 2
  13989. fi
  13990. done
  13991. done
  13992. IFS=$as_save_IFS
  13993. fi
  13994. fi
  13995. OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
  13996. if test -n "$OBJDUMP_FOR_TARGET"; then
  13997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
  13998. $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
  13999. else
  14000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14001. $as_echo "no" >&6; }
  14002. fi
  14003. fi
  14004. test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
  14005. done
  14006. fi
  14007. if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
  14008. set dummy objdump
  14009. if test $build = $target ; then
  14010. OBJDUMP_FOR_TARGET="$2"
  14011. else
  14012. OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  14013. fi
  14014. else
  14015. OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
  14016. fi
  14017. else
  14018. OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
  14019. fi
  14020. if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
  14021. if test -n "$with_build_time_tools"; then
  14022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
  14023. $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
  14024. if test -x $with_build_time_tools/otool; then
  14025. OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
  14026. ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
  14028. $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
  14029. else
  14030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14031. $as_echo "no" >&6; }
  14032. fi
  14033. elif test $build != $host && test $have_gcc_for_target = yes; then
  14034. OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
  14035. test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
  14036. test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
  14037. fi
  14038. fi
  14039. if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  14040. # Extract the first word of "otool", so it can be a program name with args.
  14041. set dummy otool; ac_word=$2
  14042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14043. $as_echo_n "checking for $ac_word... " >&6; }
  14044. if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
  14045. $as_echo_n "(cached) " >&6
  14046. else
  14047. case $OTOOL_FOR_TARGET in
  14048. [\\/]* | ?:[\\/]*)
  14049. ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
  14050. ;;
  14051. *)
  14052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14053. for as_dir in $gcc_cv_tool_dirs
  14054. do
  14055. IFS=$as_save_IFS
  14056. test -z "$as_dir" && as_dir=.
  14057. for ac_exec_ext in '' $ac_executable_extensions; do
  14058. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14059. ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  14060. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14061. break 2
  14062. fi
  14063. done
  14064. done
  14065. IFS=$as_save_IFS
  14066. ;;
  14067. esac
  14068. fi
  14069. OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
  14070. if test -n "$OTOOL_FOR_TARGET"; then
  14071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
  14072. $as_echo "$OTOOL_FOR_TARGET" >&6; }
  14073. else
  14074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14075. $as_echo "no" >&6; }
  14076. fi
  14077. fi
  14078. if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
  14079. if test -n "$OTOOL_FOR_TARGET"; then
  14080. ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
  14081. elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
  14082. OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
  14083. fi
  14084. if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
  14085. for ncn_progname in otool; do
  14086. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14087. set dummy ${ncn_progname}; ac_word=$2
  14088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14089. $as_echo_n "checking for $ac_word... " >&6; }
  14090. if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
  14091. $as_echo_n "(cached) " >&6
  14092. else
  14093. if test -n "$OTOOL_FOR_TARGET"; then
  14094. ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
  14095. else
  14096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14097. for as_dir in $PATH
  14098. do
  14099. IFS=$as_save_IFS
  14100. test -z "$as_dir" && as_dir=.
  14101. for ac_exec_ext in '' $ac_executable_extensions; do
  14102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14103. ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
  14104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14105. break 2
  14106. fi
  14107. done
  14108. done
  14109. IFS=$as_save_IFS
  14110. fi
  14111. fi
  14112. OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
  14113. if test -n "$OTOOL_FOR_TARGET"; then
  14114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
  14115. $as_echo "$OTOOL_FOR_TARGET" >&6; }
  14116. else
  14117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14118. $as_echo "no" >&6; }
  14119. fi
  14120. done
  14121. fi
  14122. if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
  14123. for ncn_progname in otool; do
  14124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  14125. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  14126. if test -x $with_build_time_tools/${ncn_progname}; then
  14127. ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  14128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14129. $as_echo "yes" >&6; }
  14130. break
  14131. else
  14132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14133. $as_echo "no" >&6; }
  14134. fi
  14135. done
  14136. fi
  14137. if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
  14138. for ncn_progname in otool; do
  14139. if test -n "$ncn_target_tool_prefix"; then
  14140. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  14141. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  14142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14143. $as_echo_n "checking for $ac_word... " >&6; }
  14144. if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
  14145. $as_echo_n "(cached) " >&6
  14146. else
  14147. if test -n "$OTOOL_FOR_TARGET"; then
  14148. ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
  14149. else
  14150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14151. for as_dir in $PATH
  14152. do
  14153. IFS=$as_save_IFS
  14154. test -z "$as_dir" && as_dir=.
  14155. for ac_exec_ext in '' $ac_executable_extensions; do
  14156. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14157. ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  14158. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14159. break 2
  14160. fi
  14161. done
  14162. done
  14163. IFS=$as_save_IFS
  14164. fi
  14165. fi
  14166. OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
  14167. if test -n "$OTOOL_FOR_TARGET"; then
  14168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
  14169. $as_echo "$OTOOL_FOR_TARGET" >&6; }
  14170. else
  14171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14172. $as_echo "no" >&6; }
  14173. fi
  14174. fi
  14175. if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
  14176. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14177. set dummy ${ncn_progname}; ac_word=$2
  14178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14179. $as_echo_n "checking for $ac_word... " >&6; }
  14180. if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
  14181. $as_echo_n "(cached) " >&6
  14182. else
  14183. if test -n "$OTOOL_FOR_TARGET"; then
  14184. ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
  14185. else
  14186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14187. for as_dir in $PATH
  14188. do
  14189. IFS=$as_save_IFS
  14190. test -z "$as_dir" && as_dir=.
  14191. for ac_exec_ext in '' $ac_executable_extensions; do
  14192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14193. ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
  14194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14195. break 2
  14196. fi
  14197. done
  14198. done
  14199. IFS=$as_save_IFS
  14200. fi
  14201. fi
  14202. OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
  14203. if test -n "$OTOOL_FOR_TARGET"; then
  14204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
  14205. $as_echo "$OTOOL_FOR_TARGET" >&6; }
  14206. else
  14207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14208. $as_echo "no" >&6; }
  14209. fi
  14210. fi
  14211. test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
  14212. done
  14213. fi
  14214. if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
  14215. set dummy otool
  14216. if test $build = $target ; then
  14217. OTOOL_FOR_TARGET="$2"
  14218. else
  14219. OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
  14220. fi
  14221. else
  14222. OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
  14223. fi
  14224. else
  14225. OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
  14226. fi
  14227. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  14228. if test -n "$with_build_time_tools"; then
  14229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
  14230. $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
  14231. if test -x $with_build_time_tools/ranlib; then
  14232. RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
  14233. ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  14234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
  14235. $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
  14236. else
  14237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14238. $as_echo "no" >&6; }
  14239. fi
  14240. elif test $build != $host && test $have_gcc_for_target = yes; then
  14241. RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
  14242. test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
  14243. test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  14244. fi
  14245. fi
  14246. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  14247. # Extract the first word of "ranlib", so it can be a program name with args.
  14248. set dummy ranlib; ac_word=$2
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14250. $as_echo_n "checking for $ac_word... " >&6; }
  14251. if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. case $RANLIB_FOR_TARGET in
  14255. [\\/]* | ?:[\\/]*)
  14256. ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
  14257. ;;
  14258. *)
  14259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14260. for as_dir in $gcc_cv_tool_dirs
  14261. do
  14262. IFS=$as_save_IFS
  14263. test -z "$as_dir" && as_dir=.
  14264. for ac_exec_ext in '' $ac_executable_extensions; do
  14265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14266. ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  14267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14268. break 2
  14269. fi
  14270. done
  14271. done
  14272. IFS=$as_save_IFS
  14273. ;;
  14274. esac
  14275. fi
  14276. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  14277. if test -n "$RANLIB_FOR_TARGET"; then
  14278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  14279. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  14280. else
  14281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14282. $as_echo "no" >&6; }
  14283. fi
  14284. fi
  14285. if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
  14286. if test -n "$RANLIB_FOR_TARGET"; then
  14287. ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
  14288. elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  14289. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  14290. fi
  14291. if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  14292. for ncn_progname in ranlib; do
  14293. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14294. set dummy ${ncn_progname}; ac_word=$2
  14295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14296. $as_echo_n "checking for $ac_word... " >&6; }
  14297. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  14298. $as_echo_n "(cached) " >&6
  14299. else
  14300. if test -n "$RANLIB_FOR_TARGET"; then
  14301. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  14302. else
  14303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14304. for as_dir in $PATH
  14305. do
  14306. IFS=$as_save_IFS
  14307. test -z "$as_dir" && as_dir=.
  14308. for ac_exec_ext in '' $ac_executable_extensions; do
  14309. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14310. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  14311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14312. break 2
  14313. fi
  14314. done
  14315. done
  14316. IFS=$as_save_IFS
  14317. fi
  14318. fi
  14319. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  14320. if test -n "$RANLIB_FOR_TARGET"; then
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  14322. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  14323. else
  14324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14325. $as_echo "no" >&6; }
  14326. fi
  14327. done
  14328. fi
  14329. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
  14330. for ncn_progname in ranlib; do
  14331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  14332. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  14333. if test -x $with_build_time_tools/${ncn_progname}; then
  14334. ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  14335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14336. $as_echo "yes" >&6; }
  14337. break
  14338. else
  14339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14340. $as_echo "no" >&6; }
  14341. fi
  14342. done
  14343. fi
  14344. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
  14345. for ncn_progname in ranlib; do
  14346. if test -n "$ncn_target_tool_prefix"; then
  14347. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  14348. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  14349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14350. $as_echo_n "checking for $ac_word... " >&6; }
  14351. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  14352. $as_echo_n "(cached) " >&6
  14353. else
  14354. if test -n "$RANLIB_FOR_TARGET"; then
  14355. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  14356. else
  14357. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14358. for as_dir in $PATH
  14359. do
  14360. IFS=$as_save_IFS
  14361. test -z "$as_dir" && as_dir=.
  14362. for ac_exec_ext in '' $ac_executable_extensions; do
  14363. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14364. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  14365. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14366. break 2
  14367. fi
  14368. done
  14369. done
  14370. IFS=$as_save_IFS
  14371. fi
  14372. fi
  14373. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  14374. if test -n "$RANLIB_FOR_TARGET"; then
  14375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  14376. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  14377. else
  14378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14379. $as_echo "no" >&6; }
  14380. fi
  14381. fi
  14382. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
  14383. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14384. set dummy ${ncn_progname}; ac_word=$2
  14385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14386. $as_echo_n "checking for $ac_word... " >&6; }
  14387. if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
  14388. $as_echo_n "(cached) " >&6
  14389. else
  14390. if test -n "$RANLIB_FOR_TARGET"; then
  14391. ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
  14392. else
  14393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14394. for as_dir in $PATH
  14395. do
  14396. IFS=$as_save_IFS
  14397. test -z "$as_dir" && as_dir=.
  14398. for ac_exec_ext in '' $ac_executable_extensions; do
  14399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14400. ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
  14401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14402. break 2
  14403. fi
  14404. done
  14405. done
  14406. IFS=$as_save_IFS
  14407. fi
  14408. fi
  14409. RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
  14410. if test -n "$RANLIB_FOR_TARGET"; then
  14411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
  14412. $as_echo "$RANLIB_FOR_TARGET" >&6; }
  14413. else
  14414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14415. $as_echo "no" >&6; }
  14416. fi
  14417. fi
  14418. test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
  14419. done
  14420. fi
  14421. if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
  14422. set dummy ranlib
  14423. if test $build = $target ; then
  14424. RANLIB_FOR_TARGET="$2"
  14425. else
  14426. RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
  14427. fi
  14428. else
  14429. RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
  14430. fi
  14431. else
  14432. RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
  14433. fi
  14434. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  14435. if test -n "$with_build_time_tools"; then
  14436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
  14437. $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
  14438. if test -x $with_build_time_tools/readelf; then
  14439. READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
  14440. ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  14441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
  14442. $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
  14443. else
  14444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14445. $as_echo "no" >&6; }
  14446. fi
  14447. elif test $build != $host && test $have_gcc_for_target = yes; then
  14448. READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
  14449. test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
  14450. test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
  14451. fi
  14452. fi
  14453. if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  14454. # Extract the first word of "readelf", so it can be a program name with args.
  14455. set dummy readelf; ac_word=$2
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14457. $as_echo_n "checking for $ac_word... " >&6; }
  14458. if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
  14459. $as_echo_n "(cached) " >&6
  14460. else
  14461. case $READELF_FOR_TARGET in
  14462. [\\/]* | ?:[\\/]*)
  14463. ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
  14464. ;;
  14465. *)
  14466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14467. for as_dir in $gcc_cv_tool_dirs
  14468. do
  14469. IFS=$as_save_IFS
  14470. test -z "$as_dir" && as_dir=.
  14471. for ac_exec_ext in '' $ac_executable_extensions; do
  14472. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14473. ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  14474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14475. break 2
  14476. fi
  14477. done
  14478. done
  14479. IFS=$as_save_IFS
  14480. ;;
  14481. esac
  14482. fi
  14483. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  14484. if test -n "$READELF_FOR_TARGET"; then
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  14486. $as_echo "$READELF_FOR_TARGET" >&6; }
  14487. else
  14488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14489. $as_echo "no" >&6; }
  14490. fi
  14491. fi
  14492. if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
  14493. if test -n "$READELF_FOR_TARGET"; then
  14494. ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
  14495. elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  14496. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  14497. fi
  14498. if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
  14499. for ncn_progname in readelf; do
  14500. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14501. set dummy ${ncn_progname}; ac_word=$2
  14502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14503. $as_echo_n "checking for $ac_word... " >&6; }
  14504. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  14505. $as_echo_n "(cached) " >&6
  14506. else
  14507. if test -n "$READELF_FOR_TARGET"; then
  14508. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  14509. else
  14510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14511. for as_dir in $PATH
  14512. do
  14513. IFS=$as_save_IFS
  14514. test -z "$as_dir" && as_dir=.
  14515. for ac_exec_ext in '' $ac_executable_extensions; do
  14516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14517. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  14518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14519. break 2
  14520. fi
  14521. done
  14522. done
  14523. IFS=$as_save_IFS
  14524. fi
  14525. fi
  14526. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  14527. if test -n "$READELF_FOR_TARGET"; then
  14528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  14529. $as_echo "$READELF_FOR_TARGET" >&6; }
  14530. else
  14531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14532. $as_echo "no" >&6; }
  14533. fi
  14534. done
  14535. fi
  14536. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
  14537. for ncn_progname in readelf; do
  14538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  14539. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  14540. if test -x $with_build_time_tools/${ncn_progname}; then
  14541. ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  14542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14543. $as_echo "yes" >&6; }
  14544. break
  14545. else
  14546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14547. $as_echo "no" >&6; }
  14548. fi
  14549. done
  14550. fi
  14551. if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
  14552. for ncn_progname in readelf; do
  14553. if test -n "$ncn_target_tool_prefix"; then
  14554. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  14555. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  14556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14557. $as_echo_n "checking for $ac_word... " >&6; }
  14558. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  14559. $as_echo_n "(cached) " >&6
  14560. else
  14561. if test -n "$READELF_FOR_TARGET"; then
  14562. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  14563. else
  14564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14565. for as_dir in $PATH
  14566. do
  14567. IFS=$as_save_IFS
  14568. test -z "$as_dir" && as_dir=.
  14569. for ac_exec_ext in '' $ac_executable_extensions; do
  14570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14571. ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  14572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14573. break 2
  14574. fi
  14575. done
  14576. done
  14577. IFS=$as_save_IFS
  14578. fi
  14579. fi
  14580. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  14581. if test -n "$READELF_FOR_TARGET"; then
  14582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  14583. $as_echo "$READELF_FOR_TARGET" >&6; }
  14584. else
  14585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14586. $as_echo "no" >&6; }
  14587. fi
  14588. fi
  14589. if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
  14590. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14591. set dummy ${ncn_progname}; ac_word=$2
  14592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14593. $as_echo_n "checking for $ac_word... " >&6; }
  14594. if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
  14595. $as_echo_n "(cached) " >&6
  14596. else
  14597. if test -n "$READELF_FOR_TARGET"; then
  14598. ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
  14599. else
  14600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14601. for as_dir in $PATH
  14602. do
  14603. IFS=$as_save_IFS
  14604. test -z "$as_dir" && as_dir=.
  14605. for ac_exec_ext in '' $ac_executable_extensions; do
  14606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14607. ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
  14608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14609. break 2
  14610. fi
  14611. done
  14612. done
  14613. IFS=$as_save_IFS
  14614. fi
  14615. fi
  14616. READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
  14617. if test -n "$READELF_FOR_TARGET"; then
  14618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
  14619. $as_echo "$READELF_FOR_TARGET" >&6; }
  14620. else
  14621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14622. $as_echo "no" >&6; }
  14623. fi
  14624. fi
  14625. test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
  14626. done
  14627. fi
  14628. if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
  14629. set dummy readelf
  14630. if test $build = $target ; then
  14631. READELF_FOR_TARGET="$2"
  14632. else
  14633. READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
  14634. fi
  14635. else
  14636. READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
  14637. fi
  14638. else
  14639. READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
  14640. fi
  14641. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  14642. if test -n "$with_build_time_tools"; then
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
  14644. $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
  14645. if test -x $with_build_time_tools/strip; then
  14646. STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
  14647. ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
  14649. $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
  14650. else
  14651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14652. $as_echo "no" >&6; }
  14653. fi
  14654. elif test $build != $host && test $have_gcc_for_target = yes; then
  14655. STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
  14656. test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
  14657. test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  14658. fi
  14659. fi
  14660. if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  14661. # Extract the first word of "strip", so it can be a program name with args.
  14662. set dummy strip; ac_word=$2
  14663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14664. $as_echo_n "checking for $ac_word... " >&6; }
  14665. if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
  14666. $as_echo_n "(cached) " >&6
  14667. else
  14668. case $STRIP_FOR_TARGET in
  14669. [\\/]* | ?:[\\/]*)
  14670. ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
  14671. ;;
  14672. *)
  14673. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14674. for as_dir in $gcc_cv_tool_dirs
  14675. do
  14676. IFS=$as_save_IFS
  14677. test -z "$as_dir" && as_dir=.
  14678. for ac_exec_ext in '' $ac_executable_extensions; do
  14679. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14680. ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  14681. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14682. break 2
  14683. fi
  14684. done
  14685. done
  14686. IFS=$as_save_IFS
  14687. ;;
  14688. esac
  14689. fi
  14690. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  14691. if test -n "$STRIP_FOR_TARGET"; then
  14692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  14693. $as_echo "$STRIP_FOR_TARGET" >&6; }
  14694. else
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14696. $as_echo "no" >&6; }
  14697. fi
  14698. fi
  14699. if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
  14700. if test -n "$STRIP_FOR_TARGET"; then
  14701. ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
  14702. elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  14703. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  14704. fi
  14705. if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
  14706. for ncn_progname in strip; do
  14707. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14708. set dummy ${ncn_progname}; ac_word=$2
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14710. $as_echo_n "checking for $ac_word... " >&6; }
  14711. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  14712. $as_echo_n "(cached) " >&6
  14713. else
  14714. if test -n "$STRIP_FOR_TARGET"; then
  14715. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  14716. else
  14717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14718. for as_dir in $PATH
  14719. do
  14720. IFS=$as_save_IFS
  14721. test -z "$as_dir" && as_dir=.
  14722. for ac_exec_ext in '' $ac_executable_extensions; do
  14723. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14724. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  14725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14726. break 2
  14727. fi
  14728. done
  14729. done
  14730. IFS=$as_save_IFS
  14731. fi
  14732. fi
  14733. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  14734. if test -n "$STRIP_FOR_TARGET"; then
  14735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  14736. $as_echo "$STRIP_FOR_TARGET" >&6; }
  14737. else
  14738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14739. $as_echo "no" >&6; }
  14740. fi
  14741. done
  14742. fi
  14743. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
  14744. for ncn_progname in strip; do
  14745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  14746. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  14747. if test -x $with_build_time_tools/${ncn_progname}; then
  14748. ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  14749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14750. $as_echo "yes" >&6; }
  14751. break
  14752. else
  14753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14754. $as_echo "no" >&6; }
  14755. fi
  14756. done
  14757. fi
  14758. if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
  14759. for ncn_progname in strip; do
  14760. if test -n "$ncn_target_tool_prefix"; then
  14761. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  14762. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  14763. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14764. $as_echo_n "checking for $ac_word... " >&6; }
  14765. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  14766. $as_echo_n "(cached) " >&6
  14767. else
  14768. if test -n "$STRIP_FOR_TARGET"; then
  14769. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  14770. else
  14771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14772. for as_dir in $PATH
  14773. do
  14774. IFS=$as_save_IFS
  14775. test -z "$as_dir" && as_dir=.
  14776. for ac_exec_ext in '' $ac_executable_extensions; do
  14777. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14778. ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  14779. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14780. break 2
  14781. fi
  14782. done
  14783. done
  14784. IFS=$as_save_IFS
  14785. fi
  14786. fi
  14787. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  14788. if test -n "$STRIP_FOR_TARGET"; then
  14789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  14790. $as_echo "$STRIP_FOR_TARGET" >&6; }
  14791. else
  14792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14793. $as_echo "no" >&6; }
  14794. fi
  14795. fi
  14796. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
  14797. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14798. set dummy ${ncn_progname}; ac_word=$2
  14799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14800. $as_echo_n "checking for $ac_word... " >&6; }
  14801. if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
  14802. $as_echo_n "(cached) " >&6
  14803. else
  14804. if test -n "$STRIP_FOR_TARGET"; then
  14805. ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
  14806. else
  14807. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14808. for as_dir in $PATH
  14809. do
  14810. IFS=$as_save_IFS
  14811. test -z "$as_dir" && as_dir=.
  14812. for ac_exec_ext in '' $ac_executable_extensions; do
  14813. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14814. ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
  14815. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14816. break 2
  14817. fi
  14818. done
  14819. done
  14820. IFS=$as_save_IFS
  14821. fi
  14822. fi
  14823. STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
  14824. if test -n "$STRIP_FOR_TARGET"; then
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
  14826. $as_echo "$STRIP_FOR_TARGET" >&6; }
  14827. else
  14828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14829. $as_echo "no" >&6; }
  14830. fi
  14831. fi
  14832. test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
  14833. done
  14834. fi
  14835. if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
  14836. set dummy strip
  14837. if test $build = $target ; then
  14838. STRIP_FOR_TARGET="$2"
  14839. else
  14840. STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
  14841. fi
  14842. else
  14843. STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
  14844. fi
  14845. else
  14846. STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
  14847. fi
  14848. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  14849. if test -n "$with_build_time_tools"; then
  14850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
  14851. $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
  14852. if test -x $with_build_time_tools/windres; then
  14853. WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
  14854. ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  14855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
  14856. $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
  14857. else
  14858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14859. $as_echo "no" >&6; }
  14860. fi
  14861. elif test $build != $host && test $have_gcc_for_target = yes; then
  14862. WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
  14863. test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
  14864. test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  14865. fi
  14866. fi
  14867. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  14868. # Extract the first word of "windres", so it can be a program name with args.
  14869. set dummy windres; ac_word=$2
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14871. $as_echo_n "checking for $ac_word... " >&6; }
  14872. if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
  14873. $as_echo_n "(cached) " >&6
  14874. else
  14875. case $WINDRES_FOR_TARGET in
  14876. [\\/]* | ?:[\\/]*)
  14877. ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
  14878. ;;
  14879. *)
  14880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14881. for as_dir in $gcc_cv_tool_dirs
  14882. do
  14883. IFS=$as_save_IFS
  14884. test -z "$as_dir" && as_dir=.
  14885. for ac_exec_ext in '' $ac_executable_extensions; do
  14886. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14887. ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  14888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14889. break 2
  14890. fi
  14891. done
  14892. done
  14893. IFS=$as_save_IFS
  14894. ;;
  14895. esac
  14896. fi
  14897. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  14898. if test -n "$WINDRES_FOR_TARGET"; then
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  14900. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  14901. else
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14903. $as_echo "no" >&6; }
  14904. fi
  14905. fi
  14906. if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
  14907. if test -n "$WINDRES_FOR_TARGET"; then
  14908. ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
  14909. elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  14910. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  14911. fi
  14912. if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  14913. for ncn_progname in windres; do
  14914. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  14915. set dummy ${ncn_progname}; ac_word=$2
  14916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14917. $as_echo_n "checking for $ac_word... " >&6; }
  14918. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  14919. $as_echo_n "(cached) " >&6
  14920. else
  14921. if test -n "$WINDRES_FOR_TARGET"; then
  14922. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  14923. else
  14924. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14925. for as_dir in $PATH
  14926. do
  14927. IFS=$as_save_IFS
  14928. test -z "$as_dir" && as_dir=.
  14929. for ac_exec_ext in '' $ac_executable_extensions; do
  14930. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14931. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  14932. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14933. break 2
  14934. fi
  14935. done
  14936. done
  14937. IFS=$as_save_IFS
  14938. fi
  14939. fi
  14940. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  14941. if test -n "$WINDRES_FOR_TARGET"; then
  14942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  14943. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  14944. else
  14945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14946. $as_echo "no" >&6; }
  14947. fi
  14948. done
  14949. fi
  14950. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
  14951. for ncn_progname in windres; do
  14952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  14953. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  14954. if test -x $with_build_time_tools/${ncn_progname}; then
  14955. ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  14956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14957. $as_echo "yes" >&6; }
  14958. break
  14959. else
  14960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14961. $as_echo "no" >&6; }
  14962. fi
  14963. done
  14964. fi
  14965. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
  14966. for ncn_progname in windres; do
  14967. if test -n "$ncn_target_tool_prefix"; then
  14968. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  14969. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  14970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14971. $as_echo_n "checking for $ac_word... " >&6; }
  14972. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  14973. $as_echo_n "(cached) " >&6
  14974. else
  14975. if test -n "$WINDRES_FOR_TARGET"; then
  14976. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  14977. else
  14978. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14979. for as_dir in $PATH
  14980. do
  14981. IFS=$as_save_IFS
  14982. test -z "$as_dir" && as_dir=.
  14983. for ac_exec_ext in '' $ac_executable_extensions; do
  14984. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14985. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  14986. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14987. break 2
  14988. fi
  14989. done
  14990. done
  14991. IFS=$as_save_IFS
  14992. fi
  14993. fi
  14994. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  14995. if test -n "$WINDRES_FOR_TARGET"; then
  14996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  14997. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  14998. else
  14999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15000. $as_echo "no" >&6; }
  15001. fi
  15002. fi
  15003. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
  15004. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  15005. set dummy ${ncn_progname}; ac_word=$2
  15006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15007. $as_echo_n "checking for $ac_word... " >&6; }
  15008. if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
  15009. $as_echo_n "(cached) " >&6
  15010. else
  15011. if test -n "$WINDRES_FOR_TARGET"; then
  15012. ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
  15013. else
  15014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15015. for as_dir in $PATH
  15016. do
  15017. IFS=$as_save_IFS
  15018. test -z "$as_dir" && as_dir=.
  15019. for ac_exec_ext in '' $ac_executable_extensions; do
  15020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15021. ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
  15022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15023. break 2
  15024. fi
  15025. done
  15026. done
  15027. IFS=$as_save_IFS
  15028. fi
  15029. fi
  15030. WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
  15031. if test -n "$WINDRES_FOR_TARGET"; then
  15032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
  15033. $as_echo "$WINDRES_FOR_TARGET" >&6; }
  15034. else
  15035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15036. $as_echo "no" >&6; }
  15037. fi
  15038. fi
  15039. test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
  15040. done
  15041. fi
  15042. if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
  15043. set dummy windres
  15044. if test $build = $target ; then
  15045. WINDRES_FOR_TARGET="$2"
  15046. else
  15047. WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
  15048. fi
  15049. else
  15050. WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
  15051. fi
  15052. else
  15053. WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
  15054. fi
  15055. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  15056. if test -n "$with_build_time_tools"; then
  15057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
  15058. $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
  15059. if test -x $with_build_time_tools/windmc; then
  15060. WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
  15061. ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
  15063. $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
  15064. else
  15065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15066. $as_echo "no" >&6; }
  15067. fi
  15068. elif test $build != $host && test $have_gcc_for_target = yes; then
  15069. WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
  15070. test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
  15071. test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  15072. fi
  15073. fi
  15074. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
  15075. # Extract the first word of "windmc", so it can be a program name with args.
  15076. set dummy windmc; ac_word=$2
  15077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15078. $as_echo_n "checking for $ac_word... " >&6; }
  15079. if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
  15080. $as_echo_n "(cached) " >&6
  15081. else
  15082. case $WINDMC_FOR_TARGET in
  15083. [\\/]* | ?:[\\/]*)
  15084. ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
  15085. ;;
  15086. *)
  15087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15088. for as_dir in $gcc_cv_tool_dirs
  15089. do
  15090. IFS=$as_save_IFS
  15091. test -z "$as_dir" && as_dir=.
  15092. for ac_exec_ext in '' $ac_executable_extensions; do
  15093. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15094. ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
  15095. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15096. break 2
  15097. fi
  15098. done
  15099. done
  15100. IFS=$as_save_IFS
  15101. ;;
  15102. esac
  15103. fi
  15104. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  15105. if test -n "$WINDMC_FOR_TARGET"; then
  15106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  15107. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  15108. else
  15109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15110. $as_echo "no" >&6; }
  15111. fi
  15112. fi
  15113. if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
  15114. if test -n "$WINDMC_FOR_TARGET"; then
  15115. ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
  15116. elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  15117. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  15118. fi
  15119. if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  15120. for ncn_progname in windmc; do
  15121. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  15122. set dummy ${ncn_progname}; ac_word=$2
  15123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15124. $as_echo_n "checking for $ac_word... " >&6; }
  15125. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  15126. $as_echo_n "(cached) " >&6
  15127. else
  15128. if test -n "$WINDMC_FOR_TARGET"; then
  15129. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  15130. else
  15131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15132. for as_dir in $PATH
  15133. do
  15134. IFS=$as_save_IFS
  15135. test -z "$as_dir" && as_dir=.
  15136. for ac_exec_ext in '' $ac_executable_extensions; do
  15137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15138. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  15139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15140. break 2
  15141. fi
  15142. done
  15143. done
  15144. IFS=$as_save_IFS
  15145. fi
  15146. fi
  15147. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  15148. if test -n "$WINDMC_FOR_TARGET"; then
  15149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  15150. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  15151. else
  15152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15153. $as_echo "no" >&6; }
  15154. fi
  15155. done
  15156. fi
  15157. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
  15158. for ncn_progname in windmc; do
  15159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
  15160. $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
  15161. if test -x $with_build_time_tools/${ncn_progname}; then
  15162. ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
  15163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15164. $as_echo "yes" >&6; }
  15165. break
  15166. else
  15167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15168. $as_echo "no" >&6; }
  15169. fi
  15170. done
  15171. fi
  15172. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
  15173. for ncn_progname in windmc; do
  15174. if test -n "$ncn_target_tool_prefix"; then
  15175. # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
  15176. set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
  15177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15178. $as_echo_n "checking for $ac_word... " >&6; }
  15179. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  15180. $as_echo_n "(cached) " >&6
  15181. else
  15182. if test -n "$WINDMC_FOR_TARGET"; then
  15183. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  15184. else
  15185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15186. for as_dir in $PATH
  15187. do
  15188. IFS=$as_save_IFS
  15189. test -z "$as_dir" && as_dir=.
  15190. for ac_exec_ext in '' $ac_executable_extensions; do
  15191. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15192. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
  15193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15194. break 2
  15195. fi
  15196. done
  15197. done
  15198. IFS=$as_save_IFS
  15199. fi
  15200. fi
  15201. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  15202. if test -n "$WINDMC_FOR_TARGET"; then
  15203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  15204. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  15205. else
  15206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15207. $as_echo "no" >&6; }
  15208. fi
  15209. fi
  15210. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
  15211. # Extract the first word of "${ncn_progname}", so it can be a program name with args.
  15212. set dummy ${ncn_progname}; ac_word=$2
  15213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  15214. $as_echo_n "checking for $ac_word... " >&6; }
  15215. if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
  15216. $as_echo_n "(cached) " >&6
  15217. else
  15218. if test -n "$WINDMC_FOR_TARGET"; then
  15219. ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
  15220. else
  15221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15222. for as_dir in $PATH
  15223. do
  15224. IFS=$as_save_IFS
  15225. test -z "$as_dir" && as_dir=.
  15226. for ac_exec_ext in '' $ac_executable_extensions; do
  15227. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  15228. ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
  15229. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  15230. break 2
  15231. fi
  15232. done
  15233. done
  15234. IFS=$as_save_IFS
  15235. fi
  15236. fi
  15237. WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
  15238. if test -n "$WINDMC_FOR_TARGET"; then
  15239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
  15240. $as_echo "$WINDMC_FOR_TARGET" >&6; }
  15241. else
  15242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15243. $as_echo "no" >&6; }
  15244. fi
  15245. fi
  15246. test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
  15247. done
  15248. fi
  15249. if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
  15250. set dummy windmc
  15251. if test $build = $target ; then
  15252. WINDMC_FOR_TARGET="$2"
  15253. else
  15254. WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
  15255. fi
  15256. else
  15257. WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
  15258. fi
  15259. else
  15260. WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
  15261. fi
  15262. RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
  15263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
  15264. $as_echo_n "checking where to find the target ar... " >&6; }
  15265. if test "x${build}" != "x${host}" ; then
  15266. if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  15267. # We already found the complete path
  15268. ac_dir=`dirname $AR_FOR_TARGET`
  15269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15270. $as_echo "pre-installed in $ac_dir" >&6; }
  15271. else
  15272. # Canadian cross, just use what we found
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15274. $as_echo "pre-installed" >&6; }
  15275. fi
  15276. else
  15277. ok=yes
  15278. case " ${configdirs} " in
  15279. *" binutils "*) ;;
  15280. *) ok=no ;;
  15281. esac
  15282. if test $ok = yes; then
  15283. # An in-tree tool is available and we can use it
  15284. AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
  15285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15286. $as_echo "just compiled" >&6; }
  15287. elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
  15288. # We already found the complete path
  15289. ac_dir=`dirname $AR_FOR_TARGET`
  15290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15291. $as_echo "pre-installed in $ac_dir" >&6; }
  15292. elif test "x$target" = "x$host"; then
  15293. # We can use an host tool
  15294. AR_FOR_TARGET='$(AR)'
  15295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15296. $as_echo "host tool" >&6; }
  15297. else
  15298. # We need a cross tool
  15299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15300. $as_echo "pre-installed" >&6; }
  15301. fi
  15302. fi
  15303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
  15304. $as_echo_n "checking where to find the target as... " >&6; }
  15305. if test "x${build}" != "x${host}" ; then
  15306. if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  15307. # We already found the complete path
  15308. ac_dir=`dirname $AS_FOR_TARGET`
  15309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15310. $as_echo "pre-installed in $ac_dir" >&6; }
  15311. else
  15312. # Canadian cross, just use what we found
  15313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15314. $as_echo "pre-installed" >&6; }
  15315. fi
  15316. else
  15317. ok=yes
  15318. case " ${configdirs} " in
  15319. *" gas "*) ;;
  15320. *) ok=no ;;
  15321. esac
  15322. if test $ok = yes; then
  15323. # An in-tree tool is available and we can use it
  15324. AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
  15325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15326. $as_echo "just compiled" >&6; }
  15327. elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
  15328. # We already found the complete path
  15329. ac_dir=`dirname $AS_FOR_TARGET`
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15331. $as_echo "pre-installed in $ac_dir" >&6; }
  15332. elif test "x$target" = "x$host"; then
  15333. # We can use an host tool
  15334. AS_FOR_TARGET='$(AS)'
  15335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15336. $as_echo "host tool" >&6; }
  15337. else
  15338. # We need a cross tool
  15339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15340. $as_echo "pre-installed" >&6; }
  15341. fi
  15342. fi
  15343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
  15344. $as_echo_n "checking where to find the target cc... " >&6; }
  15345. if test "x${build}" != "x${host}" ; then
  15346. if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  15347. # We already found the complete path
  15348. ac_dir=`dirname $CC_FOR_TARGET`
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15350. $as_echo "pre-installed in $ac_dir" >&6; }
  15351. else
  15352. # Canadian cross, just use what we found
  15353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15354. $as_echo "pre-installed" >&6; }
  15355. fi
  15356. else
  15357. ok=yes
  15358. case " ${configdirs} " in
  15359. *" gcc "*) ;;
  15360. *) ok=no ;;
  15361. esac
  15362. if test $ok = yes; then
  15363. # An in-tree tool is available and we can use it
  15364. CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  15365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15366. $as_echo "just compiled" >&6; }
  15367. elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
  15368. # We already found the complete path
  15369. ac_dir=`dirname $CC_FOR_TARGET`
  15370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15371. $as_echo "pre-installed in $ac_dir" >&6; }
  15372. elif test "x$target" = "x$host"; then
  15373. # We can use an host tool
  15374. CC_FOR_TARGET='$(CC)'
  15375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15376. $as_echo "host tool" >&6; }
  15377. else
  15378. # We need a cross tool
  15379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15380. $as_echo "pre-installed" >&6; }
  15381. fi
  15382. fi
  15383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
  15384. $as_echo_n "checking where to find the target c++... " >&6; }
  15385. if test "x${build}" != "x${host}" ; then
  15386. if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  15387. # We already found the complete path
  15388. ac_dir=`dirname $CXX_FOR_TARGET`
  15389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15390. $as_echo "pre-installed in $ac_dir" >&6; }
  15391. else
  15392. # Canadian cross, just use what we found
  15393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15394. $as_echo "pre-installed" >&6; }
  15395. fi
  15396. else
  15397. ok=yes
  15398. case " ${configdirs} " in
  15399. *" gcc "*) ;;
  15400. *) ok=no ;;
  15401. esac
  15402. case ,${enable_languages}, in
  15403. *,c++,*) ;;
  15404. *) ok=no ;;
  15405. esac
  15406. if test $ok = yes; then
  15407. # An in-tree tool is available and we can use it
  15408. 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'
  15409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15410. $as_echo "just compiled" >&6; }
  15411. elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
  15412. # We already found the complete path
  15413. ac_dir=`dirname $CXX_FOR_TARGET`
  15414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15415. $as_echo "pre-installed in $ac_dir" >&6; }
  15416. elif test "x$target" = "x$host"; then
  15417. # We can use an host tool
  15418. CXX_FOR_TARGET='$(CXX)'
  15419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15420. $as_echo "host tool" >&6; }
  15421. else
  15422. # We need a cross tool
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15424. $as_echo "pre-installed" >&6; }
  15425. fi
  15426. fi
  15427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
  15428. $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
  15429. if test "x${build}" != "x${host}" ; then
  15430. if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  15431. # We already found the complete path
  15432. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15434. $as_echo "pre-installed in $ac_dir" >&6; }
  15435. else
  15436. # Canadian cross, just use what we found
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15438. $as_echo "pre-installed" >&6; }
  15439. fi
  15440. else
  15441. ok=yes
  15442. case " ${configdirs} " in
  15443. *" gcc "*) ;;
  15444. *) ok=no ;;
  15445. esac
  15446. case ,${enable_languages}, in
  15447. *,c++,*) ;;
  15448. *) ok=no ;;
  15449. esac
  15450. if test $ok = yes; then
  15451. # An in-tree tool is available and we can use it
  15452. 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'
  15453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15454. $as_echo "just compiled" >&6; }
  15455. elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
  15456. # We already found the complete path
  15457. ac_dir=`dirname $RAW_CXX_FOR_TARGET`
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15459. $as_echo "pre-installed in $ac_dir" >&6; }
  15460. elif test "x$target" = "x$host"; then
  15461. # We can use an host tool
  15462. RAW_CXX_FOR_TARGET='$(CXX)'
  15463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15464. $as_echo "host tool" >&6; }
  15465. else
  15466. # We need a cross tool
  15467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15468. $as_echo "pre-installed" >&6; }
  15469. fi
  15470. fi
  15471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
  15472. $as_echo_n "checking where to find the target dlltool... " >&6; }
  15473. if test "x${build}" != "x${host}" ; then
  15474. if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  15475. # We already found the complete path
  15476. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  15477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15478. $as_echo "pre-installed in $ac_dir" >&6; }
  15479. else
  15480. # Canadian cross, just use what we found
  15481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15482. $as_echo "pre-installed" >&6; }
  15483. fi
  15484. else
  15485. ok=yes
  15486. case " ${configdirs} " in
  15487. *" binutils "*) ;;
  15488. *) ok=no ;;
  15489. esac
  15490. if test $ok = yes; then
  15491. # An in-tree tool is available and we can use it
  15492. DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
  15493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15494. $as_echo "just compiled" >&6; }
  15495. elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
  15496. # We already found the complete path
  15497. ac_dir=`dirname $DLLTOOL_FOR_TARGET`
  15498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15499. $as_echo "pre-installed in $ac_dir" >&6; }
  15500. elif test "x$target" = "x$host"; then
  15501. # We can use an host tool
  15502. DLLTOOL_FOR_TARGET='$(DLLTOOL)'
  15503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15504. $as_echo "host tool" >&6; }
  15505. else
  15506. # We need a cross tool
  15507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15508. $as_echo "pre-installed" >&6; }
  15509. fi
  15510. fi
  15511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
  15512. $as_echo_n "checking where to find the target dsymutil... " >&6; }
  15513. if test "x${build}" != "x${host}" ; then
  15514. if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
  15515. # We already found the complete path
  15516. ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
  15517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15518. $as_echo "pre-installed in $ac_dir" >&6; }
  15519. else
  15520. # Canadian cross, just use what we found
  15521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15522. $as_echo "pre-installed" >&6; }
  15523. fi
  15524. else
  15525. if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
  15526. # We already found the complete path
  15527. ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15529. $as_echo "pre-installed in $ac_dir" >&6; }
  15530. elif test "x$target" = "x$host"; then
  15531. # We can use an host tool
  15532. DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
  15533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15534. $as_echo "host tool" >&6; }
  15535. else
  15536. # We need a cross tool
  15537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15538. $as_echo "pre-installed" >&6; }
  15539. fi
  15540. fi
  15541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
  15542. $as_echo_n "checking where to find the target gcc... " >&6; }
  15543. if test "x${build}" != "x${host}" ; then
  15544. if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  15545. # We already found the complete path
  15546. ac_dir=`dirname $GCC_FOR_TARGET`
  15547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15548. $as_echo "pre-installed in $ac_dir" >&6; }
  15549. else
  15550. # Canadian cross, just use what we found
  15551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15552. $as_echo "pre-installed" >&6; }
  15553. fi
  15554. else
  15555. ok=yes
  15556. case " ${configdirs} " in
  15557. *" gcc "*) ;;
  15558. *) ok=no ;;
  15559. esac
  15560. if test $ok = yes; then
  15561. # An in-tree tool is available and we can use it
  15562. GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
  15563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15564. $as_echo "just compiled" >&6; }
  15565. elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
  15566. # We already found the complete path
  15567. ac_dir=`dirname $GCC_FOR_TARGET`
  15568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15569. $as_echo "pre-installed in $ac_dir" >&6; }
  15570. elif test "x$target" = "x$host"; then
  15571. # We can use an host tool
  15572. GCC_FOR_TARGET='$()'
  15573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15574. $as_echo "host tool" >&6; }
  15575. else
  15576. # We need a cross tool
  15577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15578. $as_echo "pre-installed" >&6; }
  15579. fi
  15580. fi
  15581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
  15582. $as_echo_n "checking where to find the target gfortran... " >&6; }
  15583. if test "x${build}" != "x${host}" ; then
  15584. if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  15585. # We already found the complete path
  15586. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  15587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15588. $as_echo "pre-installed in $ac_dir" >&6; }
  15589. else
  15590. # Canadian cross, just use what we found
  15591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15592. $as_echo "pre-installed" >&6; }
  15593. fi
  15594. else
  15595. ok=yes
  15596. case " ${configdirs} " in
  15597. *" gcc "*) ;;
  15598. *) ok=no ;;
  15599. esac
  15600. case ,${enable_languages}, in
  15601. *,fortran,*) ;;
  15602. *) ok=no ;;
  15603. esac
  15604. if test $ok = yes; then
  15605. # An in-tree tool is available and we can use it
  15606. GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
  15607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15608. $as_echo "just compiled" >&6; }
  15609. elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
  15610. # We already found the complete path
  15611. ac_dir=`dirname $GFORTRAN_FOR_TARGET`
  15612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15613. $as_echo "pre-installed in $ac_dir" >&6; }
  15614. elif test "x$target" = "x$host"; then
  15615. # We can use an host tool
  15616. GFORTRAN_FOR_TARGET='$(GFORTRAN)'
  15617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15618. $as_echo "host tool" >&6; }
  15619. else
  15620. # We need a cross tool
  15621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15622. $as_echo "pre-installed" >&6; }
  15623. fi
  15624. fi
  15625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
  15626. $as_echo_n "checking where to find the target gccgo... " >&6; }
  15627. if test "x${build}" != "x${host}" ; then
  15628. if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  15629. # We already found the complete path
  15630. ac_dir=`dirname $GOC_FOR_TARGET`
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15632. $as_echo "pre-installed in $ac_dir" >&6; }
  15633. else
  15634. # Canadian cross, just use what we found
  15635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15636. $as_echo "pre-installed" >&6; }
  15637. fi
  15638. else
  15639. ok=yes
  15640. case " ${configdirs} " in
  15641. *" gcc "*) ;;
  15642. *) ok=no ;;
  15643. esac
  15644. case ,${enable_languages}, in
  15645. *,go,*) ;;
  15646. *) ok=no ;;
  15647. esac
  15648. if test $ok = yes; then
  15649. # An in-tree tool is available and we can use it
  15650. GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
  15651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15652. $as_echo "just compiled" >&6; }
  15653. elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
  15654. # We already found the complete path
  15655. ac_dir=`dirname $GOC_FOR_TARGET`
  15656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15657. $as_echo "pre-installed in $ac_dir" >&6; }
  15658. elif test "x$target" = "x$host"; then
  15659. # We can use an host tool
  15660. GOC_FOR_TARGET='$(GOC)'
  15661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15662. $as_echo "host tool" >&6; }
  15663. else
  15664. # We need a cross tool
  15665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15666. $as_echo "pre-installed" >&6; }
  15667. fi
  15668. fi
  15669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
  15670. $as_echo_n "checking where to find the target gdc... " >&6; }
  15671. if test "x${build}" != "x${host}" ; then
  15672. if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
  15673. # We already found the complete path
  15674. ac_dir=`dirname $GDC_FOR_TARGET`
  15675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15676. $as_echo "pre-installed in $ac_dir" >&6; }
  15677. else
  15678. # Canadian cross, just use what we found
  15679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15680. $as_echo "pre-installed" >&6; }
  15681. fi
  15682. else
  15683. ok=yes
  15684. case " ${configdirs} " in
  15685. *" gcc "*) ;;
  15686. *) ok=no ;;
  15687. esac
  15688. case ,${enable_languages}, in
  15689. *,d,*) ;;
  15690. *) ok=no ;;
  15691. esac
  15692. if test $ok = yes; then
  15693. # An in-tree tool is available and we can use it
  15694. GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
  15695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15696. $as_echo "just compiled" >&6; }
  15697. elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
  15698. # We already found the complete path
  15699. ac_dir=`dirname $GDC_FOR_TARGET`
  15700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15701. $as_echo "pre-installed in $ac_dir" >&6; }
  15702. elif test "x$target" = "x$host"; then
  15703. # We can use an host tool
  15704. GDC_FOR_TARGET='$(GDC)'
  15705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15706. $as_echo "host tool" >&6; }
  15707. else
  15708. # We need a cross tool
  15709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15710. $as_echo "pre-installed" >&6; }
  15711. fi
  15712. fi
  15713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
  15714. $as_echo_n "checking where to find the target ld... " >&6; }
  15715. if test "x${build}" != "x${host}" ; then
  15716. if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  15717. # We already found the complete path
  15718. ac_dir=`dirname $LD_FOR_TARGET`
  15719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15720. $as_echo "pre-installed in $ac_dir" >&6; }
  15721. else
  15722. # Canadian cross, just use what we found
  15723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15724. $as_echo "pre-installed" >&6; }
  15725. fi
  15726. else
  15727. ok=yes
  15728. case " ${configdirs} " in
  15729. *" ld "*) ;;
  15730. *) ok=no ;;
  15731. esac
  15732. if test $ok = yes; then
  15733. # An in-tree tool is available and we can use it
  15734. LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
  15735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15736. $as_echo "just compiled" >&6; }
  15737. elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
  15738. # We already found the complete path
  15739. ac_dir=`dirname $LD_FOR_TARGET`
  15740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15741. $as_echo "pre-installed in $ac_dir" >&6; }
  15742. elif test "x$target" = "x$host"; then
  15743. # We can use an host tool
  15744. LD_FOR_TARGET='$(LD)'
  15745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15746. $as_echo "host tool" >&6; }
  15747. else
  15748. # We need a cross tool
  15749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15750. $as_echo "pre-installed" >&6; }
  15751. fi
  15752. fi
  15753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
  15754. $as_echo_n "checking where to find the target lipo... " >&6; }
  15755. if test "x${build}" != "x${host}" ; then
  15756. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  15757. # We already found the complete path
  15758. ac_dir=`dirname $LIPO_FOR_TARGET`
  15759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15760. $as_echo "pre-installed in $ac_dir" >&6; }
  15761. else
  15762. # Canadian cross, just use what we found
  15763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15764. $as_echo "pre-installed" >&6; }
  15765. fi
  15766. else
  15767. if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
  15768. # We already found the complete path
  15769. ac_dir=`dirname $LIPO_FOR_TARGET`
  15770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15771. $as_echo "pre-installed in $ac_dir" >&6; }
  15772. elif test "x$target" = "x$host"; then
  15773. # We can use an host tool
  15774. LIPO_FOR_TARGET='$(LIPO)'
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15776. $as_echo "host tool" >&6; }
  15777. else
  15778. # We need a cross tool
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15780. $as_echo "pre-installed" >&6; }
  15781. fi
  15782. fi
  15783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
  15784. $as_echo_n "checking where to find the target nm... " >&6; }
  15785. if test "x${build}" != "x${host}" ; then
  15786. if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  15787. # We already found the complete path
  15788. ac_dir=`dirname $NM_FOR_TARGET`
  15789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15790. $as_echo "pre-installed in $ac_dir" >&6; }
  15791. else
  15792. # Canadian cross, just use what we found
  15793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15794. $as_echo "pre-installed" >&6; }
  15795. fi
  15796. else
  15797. ok=yes
  15798. case " ${configdirs} " in
  15799. *" binutils "*) ;;
  15800. *) ok=no ;;
  15801. esac
  15802. if test $ok = yes; then
  15803. # An in-tree tool is available and we can use it
  15804. NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
  15805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15806. $as_echo "just compiled" >&6; }
  15807. elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
  15808. # We already found the complete path
  15809. ac_dir=`dirname $NM_FOR_TARGET`
  15810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15811. $as_echo "pre-installed in $ac_dir" >&6; }
  15812. elif test "x$target" = "x$host"; then
  15813. # We can use an host tool
  15814. NM_FOR_TARGET='$(NM)'
  15815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15816. $as_echo "host tool" >&6; }
  15817. else
  15818. # We need a cross tool
  15819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15820. $as_echo "pre-installed" >&6; }
  15821. fi
  15822. fi
  15823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
  15824. $as_echo_n "checking where to find the target objcopy... " >&6; }
  15825. if test "x${build}" != "x${host}" ; then
  15826. if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  15827. # We already found the complete path
  15828. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15830. $as_echo "pre-installed in $ac_dir" >&6; }
  15831. else
  15832. # Canadian cross, just use what we found
  15833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15834. $as_echo "pre-installed" >&6; }
  15835. fi
  15836. else
  15837. ok=yes
  15838. case " ${configdirs} " in
  15839. *" binutils "*) ;;
  15840. *) ok=no ;;
  15841. esac
  15842. if test $ok = yes; then
  15843. # An in-tree tool is available and we can use it
  15844. OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
  15845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15846. $as_echo "just compiled" >&6; }
  15847. elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
  15848. # We already found the complete path
  15849. ac_dir=`dirname $OBJCOPY_FOR_TARGET`
  15850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15851. $as_echo "pre-installed in $ac_dir" >&6; }
  15852. elif test "x$target" = "x$host"; then
  15853. # We can use an host tool
  15854. OBJCOPY_FOR_TARGET='$(OBJCOPY)'
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15856. $as_echo "host tool" >&6; }
  15857. else
  15858. # We need a cross tool
  15859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15860. $as_echo "pre-installed" >&6; }
  15861. fi
  15862. fi
  15863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
  15864. $as_echo_n "checking where to find the target objdump... " >&6; }
  15865. if test "x${build}" != "x${host}" ; then
  15866. if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  15867. # We already found the complete path
  15868. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  15869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15870. $as_echo "pre-installed in $ac_dir" >&6; }
  15871. else
  15872. # Canadian cross, just use what we found
  15873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15874. $as_echo "pre-installed" >&6; }
  15875. fi
  15876. else
  15877. ok=yes
  15878. case " ${configdirs} " in
  15879. *" binutils "*) ;;
  15880. *) ok=no ;;
  15881. esac
  15882. if test $ok = yes; then
  15883. # An in-tree tool is available and we can use it
  15884. OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
  15885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15886. $as_echo "just compiled" >&6; }
  15887. elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
  15888. # We already found the complete path
  15889. ac_dir=`dirname $OBJDUMP_FOR_TARGET`
  15890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15891. $as_echo "pre-installed in $ac_dir" >&6; }
  15892. elif test "x$target" = "x$host"; then
  15893. # We can use an host tool
  15894. OBJDUMP_FOR_TARGET='$(OBJDUMP)'
  15895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15896. $as_echo "host tool" >&6; }
  15897. else
  15898. # We need a cross tool
  15899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15900. $as_echo "pre-installed" >&6; }
  15901. fi
  15902. fi
  15903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
  15904. $as_echo_n "checking where to find the target otool... " >&6; }
  15905. if test "x${build}" != "x${host}" ; then
  15906. if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
  15907. # We already found the complete path
  15908. ac_dir=`dirname $OTOOL_FOR_TARGET`
  15909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15910. $as_echo "pre-installed in $ac_dir" >&6; }
  15911. else
  15912. # Canadian cross, just use what we found
  15913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15914. $as_echo "pre-installed" >&6; }
  15915. fi
  15916. else
  15917. if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
  15918. # We already found the complete path
  15919. ac_dir=`dirname $OTOOL_FOR_TARGET`
  15920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15921. $as_echo "pre-installed in $ac_dir" >&6; }
  15922. elif test "x$target" = "x$host"; then
  15923. # We can use an host tool
  15924. OTOOL_FOR_TARGET='$(OTOOL)'
  15925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15926. $as_echo "host tool" >&6; }
  15927. else
  15928. # We need a cross tool
  15929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15930. $as_echo "pre-installed" >&6; }
  15931. fi
  15932. fi
  15933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
  15934. $as_echo_n "checking where to find the target ranlib... " >&6; }
  15935. if test "x${build}" != "x${host}" ; then
  15936. if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  15937. # We already found the complete path
  15938. ac_dir=`dirname $RANLIB_FOR_TARGET`
  15939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15940. $as_echo "pre-installed in $ac_dir" >&6; }
  15941. else
  15942. # Canadian cross, just use what we found
  15943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15944. $as_echo "pre-installed" >&6; }
  15945. fi
  15946. else
  15947. ok=yes
  15948. case " ${configdirs} " in
  15949. *" binutils "*) ;;
  15950. *) ok=no ;;
  15951. esac
  15952. if test $ok = yes; then
  15953. # An in-tree tool is available and we can use it
  15954. RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
  15955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15956. $as_echo "just compiled" >&6; }
  15957. elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
  15958. # We already found the complete path
  15959. ac_dir=`dirname $RANLIB_FOR_TARGET`
  15960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15961. $as_echo "pre-installed in $ac_dir" >&6; }
  15962. elif test "x$target" = "x$host"; then
  15963. # We can use an host tool
  15964. RANLIB_FOR_TARGET='$(RANLIB)'
  15965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  15966. $as_echo "host tool" >&6; }
  15967. else
  15968. # We need a cross tool
  15969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15970. $as_echo "pre-installed" >&6; }
  15971. fi
  15972. fi
  15973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
  15974. $as_echo_n "checking where to find the target readelf... " >&6; }
  15975. if test "x${build}" != "x${host}" ; then
  15976. if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  15977. # We already found the complete path
  15978. ac_dir=`dirname $READELF_FOR_TARGET`
  15979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  15980. $as_echo "pre-installed in $ac_dir" >&6; }
  15981. else
  15982. # Canadian cross, just use what we found
  15983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  15984. $as_echo "pre-installed" >&6; }
  15985. fi
  15986. else
  15987. ok=yes
  15988. case " ${configdirs} " in
  15989. *" binutils "*) ;;
  15990. *) ok=no ;;
  15991. esac
  15992. if test $ok = yes; then
  15993. # An in-tree tool is available and we can use it
  15994. READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
  15995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  15996. $as_echo "just compiled" >&6; }
  15997. elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
  15998. # We already found the complete path
  15999. ac_dir=`dirname $READELF_FOR_TARGET`
  16000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16001. $as_echo "pre-installed in $ac_dir" >&6; }
  16002. elif test "x$target" = "x$host"; then
  16003. # We can use an host tool
  16004. READELF_FOR_TARGET='$(READELF)'
  16005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  16006. $as_echo "host tool" >&6; }
  16007. else
  16008. # We need a cross tool
  16009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16010. $as_echo "pre-installed" >&6; }
  16011. fi
  16012. fi
  16013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
  16014. $as_echo_n "checking where to find the target strip... " >&6; }
  16015. if test "x${build}" != "x${host}" ; then
  16016. if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  16017. # We already found the complete path
  16018. ac_dir=`dirname $STRIP_FOR_TARGET`
  16019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16020. $as_echo "pre-installed in $ac_dir" >&6; }
  16021. else
  16022. # Canadian cross, just use what we found
  16023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16024. $as_echo "pre-installed" >&6; }
  16025. fi
  16026. else
  16027. ok=yes
  16028. case " ${configdirs} " in
  16029. *" binutils "*) ;;
  16030. *) ok=no ;;
  16031. esac
  16032. if test $ok = yes; then
  16033. # An in-tree tool is available and we can use it
  16034. STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
  16035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  16036. $as_echo "just compiled" >&6; }
  16037. elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
  16038. # We already found the complete path
  16039. ac_dir=`dirname $STRIP_FOR_TARGET`
  16040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16041. $as_echo "pre-installed in $ac_dir" >&6; }
  16042. elif test "x$target" = "x$host"; then
  16043. # We can use an host tool
  16044. STRIP_FOR_TARGET='$(STRIP)'
  16045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  16046. $as_echo "host tool" >&6; }
  16047. else
  16048. # We need a cross tool
  16049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16050. $as_echo "pre-installed" >&6; }
  16051. fi
  16052. fi
  16053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
  16054. $as_echo_n "checking where to find the target windres... " >&6; }
  16055. if test "x${build}" != "x${host}" ; then
  16056. if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  16057. # We already found the complete path
  16058. ac_dir=`dirname $WINDRES_FOR_TARGET`
  16059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16060. $as_echo "pre-installed in $ac_dir" >&6; }
  16061. else
  16062. # Canadian cross, just use what we found
  16063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16064. $as_echo "pre-installed" >&6; }
  16065. fi
  16066. else
  16067. ok=yes
  16068. case " ${configdirs} " in
  16069. *" binutils "*) ;;
  16070. *) ok=no ;;
  16071. esac
  16072. if test $ok = yes; then
  16073. # An in-tree tool is available and we can use it
  16074. WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
  16075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  16076. $as_echo "just compiled" >&6; }
  16077. elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
  16078. # We already found the complete path
  16079. ac_dir=`dirname $WINDRES_FOR_TARGET`
  16080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16081. $as_echo "pre-installed in $ac_dir" >&6; }
  16082. elif test "x$target" = "x$host"; then
  16083. # We can use an host tool
  16084. WINDRES_FOR_TARGET='$(WINDRES)'
  16085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  16086. $as_echo "host tool" >&6; }
  16087. else
  16088. # We need a cross tool
  16089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16090. $as_echo "pre-installed" >&6; }
  16091. fi
  16092. fi
  16093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
  16094. $as_echo_n "checking where to find the target windmc... " >&6; }
  16095. if test "x${build}" != "x${host}" ; then
  16096. if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  16097. # We already found the complete path
  16098. ac_dir=`dirname $WINDMC_FOR_TARGET`
  16099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16100. $as_echo "pre-installed in $ac_dir" >&6; }
  16101. else
  16102. # Canadian cross, just use what we found
  16103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16104. $as_echo "pre-installed" >&6; }
  16105. fi
  16106. else
  16107. ok=yes
  16108. case " ${configdirs} " in
  16109. *" binutils "*) ;;
  16110. *) ok=no ;;
  16111. esac
  16112. if test $ok = yes; then
  16113. # An in-tree tool is available and we can use it
  16114. WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
  16115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
  16116. $as_echo "just compiled" >&6; }
  16117. elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
  16118. # We already found the complete path
  16119. ac_dir=`dirname $WINDMC_FOR_TARGET`
  16120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
  16121. $as_echo "pre-installed in $ac_dir" >&6; }
  16122. elif test "x$target" = "x$host"; then
  16123. # We can use an host tool
  16124. WINDMC_FOR_TARGET='$(WINDMC)'
  16125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
  16126. $as_echo "host tool" >&6; }
  16127. else
  16128. # We need a cross tool
  16129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
  16130. $as_echo "pre-installed" >&6; }
  16131. fi
  16132. fi
  16133. # Certain tools may need extra flags.
  16134. AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
  16135. RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
  16136. NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
  16137. # When building target libraries, except in a Canadian cross, we use
  16138. # the same toolchain as the compiler we just built.
  16139. COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
  16140. COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
  16141. COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
  16142. if test $host = $build; then
  16143. case " $configdirs " in
  16144. *" gcc "*)
  16145. COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
  16146. COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
  16147. COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
  16148. ;;
  16149. esac
  16150. fi
  16151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  16152. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  16153. # Check whether --enable-maintainer-mode was given.
  16154. if test "${enable_maintainer_mode+set}" = set; then :
  16155. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  16156. else
  16157. USE_MAINTAINER_MODE=no
  16158. fi
  16159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  16160. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  16161. if test "$USE_MAINTAINER_MODE" = yes; then
  16162. MAINTAINER_MODE_TRUE=
  16163. MAINTAINER_MODE_FALSE='#'
  16164. else
  16165. MAINTAINER_MODE_TRUE='#'
  16166. MAINTAINER_MODE_FALSE=
  16167. fi
  16168. MAINT=$MAINTAINER_MODE_TRUE
  16169. # ---------------------
  16170. # GCC bootstrap support
  16171. # ---------------------
  16172. # Stage specific cflags for build.
  16173. stage1_cflags="-g"
  16174. case $build in
  16175. vax-*-*)
  16176. case ${GCC} in
  16177. yes) stage1_cflags="-g -Wa,-J" ;;
  16178. *) stage1_cflags="-g -J" ;;
  16179. esac ;;
  16180. esac
  16181. # Enable --enable-checking in stage1 of the compiler.
  16182. # Check whether --enable-stage1-checking was given.
  16183. if test "${enable_stage1_checking+set}" = set; then :
  16184. enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
  16185. else
  16186. if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
  16187. # For --disable-checking or implicit --enable-checking=release, avoid
  16188. # setting --enable-checking=gc in the default stage1 checking for LTO
  16189. # bootstraps. See PR62077.
  16190. case $BUILD_CONFIG in
  16191. *lto*)
  16192. stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
  16193. *)
  16194. stage1_checking=--enable-checking=yes,types;;
  16195. esac
  16196. if test "x$enable_checking" = x && \
  16197. test -d ${srcdir}/gcc && \
  16198. test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
  16199. stage1_checking=--enable-checking=yes,types,extra
  16200. fi
  16201. else
  16202. stage1_checking=--enable-checking=$enable_checking,types
  16203. fi
  16204. fi
  16205. # Enable -Werror in bootstrap stage2 and later.
  16206. # Check whether --enable-werror was given.
  16207. if test "${enable_werror+set}" = set; then :
  16208. enableval=$enable_werror;
  16209. case ${enable_werror} in
  16210. yes) stage2_werror_flag="--enable-werror-always" ;;
  16211. *) stage2_werror_flag="" ;;
  16212. esac
  16213. else
  16214. if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
  16215. case $BUILD_CONFIG in
  16216. bootstrap-debug)
  16217. stage2_werror_flag="--enable-werror-always" ;;
  16218. "")
  16219. stage2_werror_flag="--enable-werror-always" ;;
  16220. esac
  16221. fi
  16222. fi
  16223. # Specify what files to not compare during bootstrap.
  16224. compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
  16225. case "$target" in
  16226. hppa*64*-*-hpux*) ;;
  16227. hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
  16228. powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
  16229. esac
  16230. ac_config_files="$ac_config_files Makefile"
  16231. cat >confcache <<\_ACEOF
  16232. # This file is a shell script that caches the results of configure
  16233. # tests run on this system so they can be shared between configure
  16234. # scripts and configure runs, see configure's option --config-cache.
  16235. # It is not useful on other systems. If it contains results you don't
  16236. # want to keep, you may remove or edit it.
  16237. #
  16238. # config.status only pays attention to the cache file if you give it
  16239. # the --recheck option to rerun configure.
  16240. #
  16241. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16242. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16243. # following values.
  16244. _ACEOF
  16245. # The following way of writing the cache mishandles newlines in values,
  16246. # but we know of no workaround that is simple, portable, and efficient.
  16247. # So, we kill variables containing newlines.
  16248. # Ultrix sh set writes to stderr and can't be redirected directly,
  16249. # and sets the high bit in the cache file unless we assign to the vars.
  16250. (
  16251. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16252. eval ac_val=\$$ac_var
  16253. case $ac_val in #(
  16254. *${as_nl}*)
  16255. case $ac_var in #(
  16256. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16257. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16258. esac
  16259. case $ac_var in #(
  16260. _ | IFS | as_nl) ;; #(
  16261. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16262. *) { eval $ac_var=; unset $ac_var;} ;;
  16263. esac ;;
  16264. esac
  16265. done
  16266. (set) 2>&1 |
  16267. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16268. *${as_nl}ac_space=\ *)
  16269. # `set' does not quote correctly, so add quotes: double-quote
  16270. # substitution turns \\\\ into \\, and sed turns \\ into \.
  16271. sed -n \
  16272. "s/'/'\\\\''/g;
  16273. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16274. ;; #(
  16275. *)
  16276. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16277. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16278. ;;
  16279. esac |
  16280. sort
  16281. ) |
  16282. sed '
  16283. /^ac_cv_env_/b end
  16284. t clear
  16285. :clear
  16286. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16287. t end
  16288. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16289. :end' >>confcache
  16290. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16291. if test -w "$cache_file"; then
  16292. if test "x$cache_file" != "x/dev/null"; then
  16293. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  16294. $as_echo "$as_me: updating cache $cache_file" >&6;}
  16295. if test ! -f "$cache_file" || test -h "$cache_file"; then
  16296. cat confcache >"$cache_file"
  16297. else
  16298. case $cache_file in #(
  16299. */* | ?:*)
  16300. mv -f confcache "$cache_file"$$ &&
  16301. mv -f "$cache_file"$$ "$cache_file" ;; #(
  16302. *)
  16303. mv -f confcache "$cache_file" ;;
  16304. esac
  16305. fi
  16306. fi
  16307. else
  16308. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  16309. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16310. fi
  16311. fi
  16312. rm -f confcache
  16313. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16314. # Let make expand exec_prefix.
  16315. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16316. # Transform confdefs.h into DEFS.
  16317. # Protect against shell expansion while executing Makefile rules.
  16318. # Protect against Makefile macro expansion.
  16319. #
  16320. # If the first sed substitution is executed (which looks for macros that
  16321. # take arguments), then branch to the quote section. Otherwise,
  16322. # look for a macro that doesn't take arguments.
  16323. ac_script='
  16324. :mline
  16325. /\\$/{
  16326. N
  16327. s,\\\n,,
  16328. b mline
  16329. }
  16330. t clear
  16331. :clear
  16332. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  16333. t quote
  16334. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  16335. t quote
  16336. b any
  16337. :quote
  16338. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  16339. s/\[/\\&/g
  16340. s/\]/\\&/g
  16341. s/\$/$$/g
  16342. H
  16343. :any
  16344. ${
  16345. g
  16346. s/^\n//
  16347. s/\n/ /g
  16348. p
  16349. }
  16350. '
  16351. DEFS=`sed -n "$ac_script" confdefs.h`
  16352. ac_libobjs=
  16353. ac_ltlibobjs=
  16354. U=
  16355. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16356. # 1. Remove the extension, and $U if already installed.
  16357. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16358. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  16359. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16360. # will be set to the directory where LIBOBJS objects are built.
  16361. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16362. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  16363. done
  16364. LIBOBJS=$ac_libobjs
  16365. LTLIBOBJS=$ac_ltlibobjs
  16366. : "${CONFIG_STATUS=./config.status}"
  16367. ac_write_fail=0
  16368. ac_clean_files_save=$ac_clean_files
  16369. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16370. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  16371. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16372. as_write_fail=0
  16373. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  16374. #! $SHELL
  16375. # Generated by $as_me.
  16376. # Run this file to recreate the current configuration.
  16377. # Compiler output produced by configure, useful for debugging
  16378. # configure, is in config.log if it exists.
  16379. debug=false
  16380. ac_cs_recheck=false
  16381. ac_cs_silent=false
  16382. SHELL=\${CONFIG_SHELL-$SHELL}
  16383. export SHELL
  16384. _ASEOF
  16385. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  16386. ## -------------------- ##
  16387. ## M4sh Initialization. ##
  16388. ## -------------------- ##
  16389. # Be more Bourne compatible
  16390. DUALCASE=1; export DUALCASE # for MKS sh
  16391. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16392. emulate sh
  16393. NULLCMD=:
  16394. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16395. # is contrary to our usage. Disable this feature.
  16396. alias -g '${1+"$@"}'='"$@"'
  16397. setopt NO_GLOB_SUBST
  16398. else
  16399. case `(set -o) 2>/dev/null` in #(
  16400. *posix*) :
  16401. set -o posix ;; #(
  16402. *) :
  16403. ;;
  16404. esac
  16405. fi
  16406. as_nl='
  16407. '
  16408. export as_nl
  16409. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  16410. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16411. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16412. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16413. # Prefer a ksh shell builtin over an external printf program on Solaris,
  16414. # but without wasting forks for bash or zsh.
  16415. if test -z "$BASH_VERSION$ZSH_VERSION" \
  16416. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16417. as_echo='print -r --'
  16418. as_echo_n='print -rn --'
  16419. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16420. as_echo='printf %s\n'
  16421. as_echo_n='printf %s'
  16422. else
  16423. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16424. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16425. as_echo_n='/usr/ucb/echo -n'
  16426. else
  16427. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16428. as_echo_n_body='eval
  16429. arg=$1;
  16430. case $arg in #(
  16431. *"$as_nl"*)
  16432. expr "X$arg" : "X\\(.*\\)$as_nl";
  16433. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16434. esac;
  16435. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16436. '
  16437. export as_echo_n_body
  16438. as_echo_n='sh -c $as_echo_n_body as_echo'
  16439. fi
  16440. export as_echo_body
  16441. as_echo='sh -c $as_echo_body as_echo'
  16442. fi
  16443. # The user is always right.
  16444. if test "${PATH_SEPARATOR+set}" != set; then
  16445. PATH_SEPARATOR=:
  16446. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16447. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16448. PATH_SEPARATOR=';'
  16449. }
  16450. fi
  16451. # IFS
  16452. # We need space, tab and new line, in precisely that order. Quoting is
  16453. # there to prevent editors from complaining about space-tab.
  16454. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16455. # splitting by setting IFS to empty value.)
  16456. IFS=" "" $as_nl"
  16457. # Find who we are. Look in the path if we contain no directory separator.
  16458. as_myself=
  16459. case $0 in #((
  16460. *[\\/]* ) as_myself=$0 ;;
  16461. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16462. for as_dir in $PATH
  16463. do
  16464. IFS=$as_save_IFS
  16465. test -z "$as_dir" && as_dir=.
  16466. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16467. done
  16468. IFS=$as_save_IFS
  16469. ;;
  16470. esac
  16471. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16472. # in which case we are not to be found in the path.
  16473. if test "x$as_myself" = x; then
  16474. as_myself=$0
  16475. fi
  16476. if test ! -f "$as_myself"; then
  16477. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16478. exit 1
  16479. fi
  16480. # Unset variables that we do not need and which cause bugs (e.g. in
  16481. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16482. # suppresses any "Segmentation fault" message there. '((' could
  16483. # trigger a bug in pdksh 5.2.14.
  16484. for as_var in BASH_ENV ENV MAIL MAILPATH
  16485. do eval test x\${$as_var+set} = xset \
  16486. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16487. done
  16488. PS1='$ '
  16489. PS2='> '
  16490. PS4='+ '
  16491. # NLS nuisances.
  16492. LC_ALL=C
  16493. export LC_ALL
  16494. LANGUAGE=C
  16495. export LANGUAGE
  16496. # CDPATH.
  16497. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16498. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  16499. # ----------------------------------------
  16500. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16501. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16502. # script with STATUS, using 1 if that was 0.
  16503. as_fn_error ()
  16504. {
  16505. as_status=$1; test $as_status -eq 0 && as_status=1
  16506. if test "$4"; then
  16507. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16508. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  16509. fi
  16510. $as_echo "$as_me: error: $2" >&2
  16511. as_fn_exit $as_status
  16512. } # as_fn_error
  16513. # as_fn_set_status STATUS
  16514. # -----------------------
  16515. # Set $? to STATUS, without forking.
  16516. as_fn_set_status ()
  16517. {
  16518. return $1
  16519. } # as_fn_set_status
  16520. # as_fn_exit STATUS
  16521. # -----------------
  16522. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16523. as_fn_exit ()
  16524. {
  16525. set +e
  16526. as_fn_set_status $1
  16527. exit $1
  16528. } # as_fn_exit
  16529. # as_fn_unset VAR
  16530. # ---------------
  16531. # Portably unset VAR.
  16532. as_fn_unset ()
  16533. {
  16534. { eval $1=; unset $1;}
  16535. }
  16536. as_unset=as_fn_unset
  16537. # as_fn_append VAR VALUE
  16538. # ----------------------
  16539. # Append the text in VALUE to the end of the definition contained in VAR. Take
  16540. # advantage of any shell optimizations that allow amortized linear growth over
  16541. # repeated appends, instead of the typical quadratic growth present in naive
  16542. # implementations.
  16543. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16544. eval 'as_fn_append ()
  16545. {
  16546. eval $1+=\$2
  16547. }'
  16548. else
  16549. as_fn_append ()
  16550. {
  16551. eval $1=\$$1\$2
  16552. }
  16553. fi # as_fn_append
  16554. # as_fn_arith ARG...
  16555. # ------------------
  16556. # Perform arithmetic evaluation on the ARGs, and store the result in the
  16557. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  16558. # must be portable across $(()) and expr.
  16559. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16560. eval 'as_fn_arith ()
  16561. {
  16562. as_val=$(( $* ))
  16563. }'
  16564. else
  16565. as_fn_arith ()
  16566. {
  16567. as_val=`expr "$@" || test $? -eq 1`
  16568. }
  16569. fi # as_fn_arith
  16570. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16571. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16572. as_expr=expr
  16573. else
  16574. as_expr=false
  16575. fi
  16576. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16577. as_basename=basename
  16578. else
  16579. as_basename=false
  16580. fi
  16581. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16582. as_dirname=dirname
  16583. else
  16584. as_dirname=false
  16585. fi
  16586. as_me=`$as_basename -- "$0" ||
  16587. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16588. X"$0" : 'X\(//\)$' \| \
  16589. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16590. $as_echo X/"$0" |
  16591. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16592. s//\1/
  16593. q
  16594. }
  16595. /^X\/\(\/\/\)$/{
  16596. s//\1/
  16597. q
  16598. }
  16599. /^X\/\(\/\).*/{
  16600. s//\1/
  16601. q
  16602. }
  16603. s/.*/./; q'`
  16604. # Avoid depending upon Character Ranges.
  16605. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16606. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16607. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16608. as_cr_digits='0123456789'
  16609. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16610. ECHO_C= ECHO_N= ECHO_T=
  16611. case `echo -n x` in #(((((
  16612. -n*)
  16613. case `echo 'xy\c'` in
  16614. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16615. xy) ECHO_C='\c';;
  16616. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16617. ECHO_T=' ';;
  16618. esac;;
  16619. *)
  16620. ECHO_N='-n';;
  16621. esac
  16622. rm -f conf$$ conf$$.exe conf$$.file
  16623. if test -d conf$$.dir; then
  16624. rm -f conf$$.dir/conf$$.file
  16625. else
  16626. rm -f conf$$.dir
  16627. mkdir conf$$.dir 2>/dev/null
  16628. fi
  16629. if (echo >conf$$.file) 2>/dev/null; then
  16630. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16631. as_ln_s='ln -s'
  16632. # ... but there are two gotchas:
  16633. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16634. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16635. # In both cases, we have to default to `cp -pR'.
  16636. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16637. as_ln_s='cp -pR'
  16638. elif ln conf$$.file conf$$ 2>/dev/null; then
  16639. as_ln_s=ln
  16640. else
  16641. as_ln_s='cp -pR'
  16642. fi
  16643. else
  16644. as_ln_s='cp -pR'
  16645. fi
  16646. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16647. rmdir conf$$.dir 2>/dev/null
  16648. # as_fn_mkdir_p
  16649. # -------------
  16650. # Create "$as_dir" as a directory, including parents if necessary.
  16651. as_fn_mkdir_p ()
  16652. {
  16653. case $as_dir in #(
  16654. -*) as_dir=./$as_dir;;
  16655. esac
  16656. test -d "$as_dir" || eval $as_mkdir_p || {
  16657. as_dirs=
  16658. while :; do
  16659. case $as_dir in #(
  16660. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16661. *) as_qdir=$as_dir;;
  16662. esac
  16663. as_dirs="'$as_qdir' $as_dirs"
  16664. as_dir=`$as_dirname -- "$as_dir" ||
  16665. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16666. X"$as_dir" : 'X\(//\)[^/]' \| \
  16667. X"$as_dir" : 'X\(//\)$' \| \
  16668. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16669. $as_echo X"$as_dir" |
  16670. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16671. s//\1/
  16672. q
  16673. }
  16674. /^X\(\/\/\)[^/].*/{
  16675. s//\1/
  16676. q
  16677. }
  16678. /^X\(\/\/\)$/{
  16679. s//\1/
  16680. q
  16681. }
  16682. /^X\(\/\).*/{
  16683. s//\1/
  16684. q
  16685. }
  16686. s/.*/./; q'`
  16687. test -d "$as_dir" && break
  16688. done
  16689. test -z "$as_dirs" || eval "mkdir $as_dirs"
  16690. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  16691. } # as_fn_mkdir_p
  16692. if mkdir -p . 2>/dev/null; then
  16693. as_mkdir_p='mkdir -p "$as_dir"'
  16694. else
  16695. test -d ./-p && rmdir ./-p
  16696. as_mkdir_p=false
  16697. fi
  16698. # as_fn_executable_p FILE
  16699. # -----------------------
  16700. # Test if FILE is an executable regular file.
  16701. as_fn_executable_p ()
  16702. {
  16703. test -f "$1" && test -x "$1"
  16704. } # as_fn_executable_p
  16705. as_test_x='test -x'
  16706. as_executable_p=as_fn_executable_p
  16707. # Sed expression to map a string onto a valid CPP name.
  16708. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16709. # Sed expression to map a string onto a valid variable name.
  16710. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16711. exec 6>&1
  16712. ## ----------------------------------- ##
  16713. ## Main body of $CONFIG_STATUS script. ##
  16714. ## ----------------------------------- ##
  16715. _ASEOF
  16716. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  16717. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16718. # Save the log message, to keep $0 and so on meaningful, and to
  16719. # report actual input values of CONFIG_FILES etc. instead of their
  16720. # values after options handling.
  16721. ac_log="
  16722. This file was extended by $as_me, which was
  16723. generated by GNU Autoconf 2.69. Invocation command line was
  16724. CONFIG_FILES = $CONFIG_FILES
  16725. CONFIG_HEADERS = $CONFIG_HEADERS
  16726. CONFIG_LINKS = $CONFIG_LINKS
  16727. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16728. $ $0 $@
  16729. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16730. "
  16731. _ACEOF
  16732. case $ac_config_files in *"
  16733. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  16734. esac
  16735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16736. # Files that config.status was made for.
  16737. config_files="$ac_config_files"
  16738. _ACEOF
  16739. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16740. ac_cs_usage="\
  16741. \`$as_me' instantiates files and other configuration actions
  16742. from templates according to the current configuration. Unless the files
  16743. and actions are specified as TAGs, all are instantiated by default.
  16744. Usage: $0 [OPTION]... [TAG]...
  16745. -h, --help print this help, then exit
  16746. -V, --version print version number and configuration settings, then exit
  16747. --config print configuration, then exit
  16748. -q, --quiet, --silent
  16749. do not print progress messages
  16750. -d, --debug don't remove temporary files
  16751. --recheck update $as_me by reconfiguring in the same conditions
  16752. --file=FILE[:TEMPLATE]
  16753. instantiate the configuration file FILE
  16754. Configuration files:
  16755. $config_files
  16756. Report bugs to the package provider."
  16757. _ACEOF
  16758. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16759. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  16760. ac_cs_version="\\
  16761. config.status
  16762. configured by $0, generated by GNU Autoconf 2.69,
  16763. with options \\"\$ac_cs_config\\"
  16764. Copyright (C) 2012 Free Software Foundation, Inc.
  16765. This config.status script is free software; the Free Software Foundation
  16766. gives unlimited permission to copy, distribute and modify it."
  16767. ac_pwd='$ac_pwd'
  16768. srcdir='$srcdir'
  16769. INSTALL='$INSTALL'
  16770. AWK='$AWK'
  16771. test -n "\$AWK" || AWK=awk
  16772. _ACEOF
  16773. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16774. # The default lists apply if the user does not specify any file.
  16775. ac_need_defaults=:
  16776. while test $# != 0
  16777. do
  16778. case $1 in
  16779. --*=?*)
  16780. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16781. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16782. ac_shift=:
  16783. ;;
  16784. --*=)
  16785. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16786. ac_optarg=
  16787. ac_shift=:
  16788. ;;
  16789. *)
  16790. ac_option=$1
  16791. ac_optarg=$2
  16792. ac_shift=shift
  16793. ;;
  16794. esac
  16795. case $ac_option in
  16796. # Handling of the options.
  16797. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16798. ac_cs_recheck=: ;;
  16799. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16800. $as_echo "$ac_cs_version"; exit ;;
  16801. --config | --confi | --conf | --con | --co | --c )
  16802. $as_echo "$ac_cs_config"; exit ;;
  16803. --debug | --debu | --deb | --de | --d | -d )
  16804. debug=: ;;
  16805. --file | --fil | --fi | --f )
  16806. $ac_shift
  16807. case $ac_optarg in
  16808. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16809. '') as_fn_error $? "missing file argument" ;;
  16810. esac
  16811. as_fn_append CONFIG_FILES " '$ac_optarg'"
  16812. ac_need_defaults=false;;
  16813. --he | --h | --help | --hel | -h )
  16814. $as_echo "$ac_cs_usage"; exit ;;
  16815. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16816. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16817. ac_cs_silent=: ;;
  16818. # This is an error.
  16819. -*) as_fn_error $? "unrecognized option: \`$1'
  16820. Try \`$0 --help' for more information." ;;
  16821. *) as_fn_append ac_config_targets " $1"
  16822. ac_need_defaults=false ;;
  16823. esac
  16824. shift
  16825. done
  16826. ac_configure_extra_args=
  16827. if $ac_cs_silent; then
  16828. exec 6>/dev/null
  16829. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16830. fi
  16831. _ACEOF
  16832. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16833. if \$ac_cs_recheck; then
  16834. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16835. shift
  16836. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  16837. CONFIG_SHELL='$SHELL'
  16838. export CONFIG_SHELL
  16839. exec "\$@"
  16840. fi
  16841. _ACEOF
  16842. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16843. exec 5>>config.log
  16844. {
  16845. echo
  16846. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16847. ## Running $as_me. ##
  16848. _ASBOX
  16849. $as_echo "$ac_log"
  16850. } >&5
  16851. _ACEOF
  16852. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16853. #
  16854. # INIT-COMMANDS
  16855. #
  16856. extrasub_build="$extrasub_build"
  16857. extrasub_host="$extrasub_host"
  16858. extrasub_target="$extrasub_target"
  16859. _ACEOF
  16860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16861. # Handling of arguments.
  16862. for ac_config_target in $ac_config_targets
  16863. do
  16864. case $ac_config_target in
  16865. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16866. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16867. esac
  16868. done
  16869. # If the user did not use the arguments to specify the items to instantiate,
  16870. # then the envvar interface is used. Set only those that are not.
  16871. # We use the long form for the default assignment because of an extremely
  16872. # bizarre bug on SunOS 4.1.3.
  16873. if $ac_need_defaults; then
  16874. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16875. fi
  16876. # Have a temporary directory for convenience. Make it in the build tree
  16877. # simply because there is no reason against having it here, and in addition,
  16878. # creating and moving files from /tmp can sometimes cause problems.
  16879. # Hook for its removal unless debugging.
  16880. # Note that there is a small window in which the directory will not be cleaned:
  16881. # after its creation but before its name has been assigned to `$tmp'.
  16882. $debug ||
  16883. {
  16884. tmp= ac_tmp=
  16885. trap 'exit_status=$?
  16886. : "${ac_tmp:=$tmp}"
  16887. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16888. ' 0
  16889. trap 'as_fn_exit 1' 1 2 13 15
  16890. }
  16891. # Create a (secure) tmp directory for tmp files.
  16892. {
  16893. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16894. test -d "$tmp"
  16895. } ||
  16896. {
  16897. tmp=./conf$$-$RANDOM
  16898. (umask 077 && mkdir "$tmp")
  16899. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16900. ac_tmp=$tmp
  16901. # Set up the scripts for CONFIG_FILES section.
  16902. # No need to generate them if there are no CONFIG_FILES.
  16903. # This happens for instance with `./config.status config.h'.
  16904. if test -n "$CONFIG_FILES"; then
  16905. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  16906. ac_cs_awk_getline=:
  16907. ac_cs_awk_pipe_init=
  16908. ac_cs_awk_read_file='
  16909. while ((getline aline < (F[key])) > 0)
  16910. print(aline)
  16911. close(F[key])'
  16912. ac_cs_awk_pipe_fini=
  16913. else
  16914. ac_cs_awk_getline=false
  16915. ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  16916. ac_cs_awk_read_file='
  16917. print "|#_!!_#|"
  16918. print "cat " F[key] " &&"
  16919. '$ac_cs_awk_pipe_init
  16920. # The final `:' finishes the AND list.
  16921. ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  16922. fi
  16923. ac_cr=`echo X | tr X '\015'`
  16924. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16925. # But we know of no other shell where ac_cr would be empty at this
  16926. # point, so we can use a bashism as a fallback.
  16927. if test "x$ac_cr" = x; then
  16928. eval ac_cr=\$\'\\r\'
  16929. fi
  16930. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16931. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16932. ac_cs_awk_cr='\\r'
  16933. else
  16934. ac_cs_awk_cr=$ac_cr
  16935. fi
  16936. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16937. _ACEOF
  16938. # Create commands to substitute file output variables.
  16939. {
  16940. echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  16941. echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
  16942. echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  16943. echo "_ACAWK" &&
  16944. echo "_ACEOF"
  16945. } >conf$$files.sh &&
  16946. . ./conf$$files.sh ||
  16947. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16948. rm -f conf$$files.sh
  16949. {
  16950. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16951. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16952. echo "_ACEOF"
  16953. } >conf$$subs.sh ||
  16954. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16955. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16956. ac_delim='%!_!# '
  16957. for ac_last_try in false false false false false :; do
  16958. . ./conf$$subs.sh ||
  16959. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16960. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16961. if test $ac_delim_n = $ac_delim_num; then
  16962. break
  16963. elif $ac_last_try; then
  16964. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16965. else
  16966. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16967. fi
  16968. done
  16969. rm -f conf$$subs.sh
  16970. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16971. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16972. _ACEOF
  16973. sed -n '
  16974. h
  16975. s/^/S["/; s/!.*/"]=/
  16976. p
  16977. g
  16978. s/^[^!]*!//
  16979. :repl
  16980. t repl
  16981. s/'"$ac_delim"'$//
  16982. t delim
  16983. :nl
  16984. h
  16985. s/\(.\{148\}\)..*/\1/
  16986. t more1
  16987. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16988. p
  16989. n
  16990. b repl
  16991. :more1
  16992. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16993. p
  16994. g
  16995. s/.\{148\}//
  16996. t nl
  16997. :delim
  16998. h
  16999. s/\(.\{148\}\)..*/\1/
  17000. t more2
  17001. s/["\\]/\\&/g; s/^/"/; s/$/"/
  17002. p
  17003. b
  17004. :more2
  17005. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  17006. p
  17007. g
  17008. s/.\{148\}//
  17009. t delim
  17010. ' <conf$$subs.awk | sed '
  17011. /^[^""]/{
  17012. N
  17013. s/\n//
  17014. }
  17015. ' >>$CONFIG_STATUS || ac_write_fail=1
  17016. rm -f conf$$subs.awk
  17017. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17018. _ACAWK
  17019. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  17020. for (key in S) S_is_set[key] = 1
  17021. FS = ""
  17022. \$ac_cs_awk_pipe_init
  17023. }
  17024. {
  17025. line = $ 0
  17026. nfields = split(line, field, "@")
  17027. substed = 0
  17028. len = length(field[1])
  17029. for (i = 2; i < nfields; i++) {
  17030. key = field[i]
  17031. keylen = length(key)
  17032. if (S_is_set[key]) {
  17033. value = S[key]
  17034. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  17035. len += length(value) + length(field[++i])
  17036. substed = 1
  17037. } else
  17038. len += 1 + keylen
  17039. }
  17040. if (nfields == 3 && !substed) {
  17041. key = field[2]
  17042. if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
  17043. \$ac_cs_awk_read_file
  17044. next
  17045. }
  17046. }
  17047. print line
  17048. }
  17049. \$ac_cs_awk_pipe_fini
  17050. _ACAWK
  17051. _ACEOF
  17052. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17053. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  17054. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  17055. else
  17056. cat
  17057. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  17058. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  17059. _ACEOF
  17060. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  17061. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  17062. # trailing colons and then remove the whole line if VPATH becomes empty
  17063. # (actually we leave an empty line to preserve line numbers).
  17064. if test "x$srcdir" = x.; then
  17065. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  17066. h
  17067. s///
  17068. s/^/:/
  17069. s/[ ]*$/:/
  17070. s/:\$(srcdir):/:/g
  17071. s/:\${srcdir}:/:/g
  17072. s/:@srcdir@:/:/g
  17073. s/^:*//
  17074. s/:*$//
  17075. x
  17076. s/\(=[ ]*\).*/\1/
  17077. G
  17078. s/\n//
  17079. s/^[^=]*=[ ]*$//
  17080. }'
  17081. fi
  17082. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17083. fi # test -n "$CONFIG_FILES"
  17084. eval set X " :F $CONFIG_FILES "
  17085. shift
  17086. for ac_tag
  17087. do
  17088. case $ac_tag in
  17089. :[FHLC]) ac_mode=$ac_tag; continue;;
  17090. esac
  17091. case $ac_mode$ac_tag in
  17092. :[FHL]*:*);;
  17093. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  17094. :[FH]-) ac_tag=-:-;;
  17095. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17096. esac
  17097. ac_save_IFS=$IFS
  17098. IFS=:
  17099. set x $ac_tag
  17100. IFS=$ac_save_IFS
  17101. shift
  17102. ac_file=$1
  17103. shift
  17104. case $ac_mode in
  17105. :L) ac_source=$1;;
  17106. :[FH])
  17107. ac_file_inputs=
  17108. for ac_f
  17109. do
  17110. case $ac_f in
  17111. -) ac_f="$ac_tmp/stdin";;
  17112. *) # Look for the file first in the build tree, then in the source tree
  17113. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17114. # because $ac_f cannot contain `:'.
  17115. test -f "$ac_f" ||
  17116. case $ac_f in
  17117. [\\/$]*) false;;
  17118. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17119. esac ||
  17120. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  17121. esac
  17122. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  17123. as_fn_append ac_file_inputs " '$ac_f'"
  17124. done
  17125. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17126. # use $as_me), people would be surprised to read:
  17127. # /* config.h. Generated by config.status. */
  17128. configure_input='Generated from '`
  17129. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  17130. `' by configure.'
  17131. if test x"$ac_file" != x-; then
  17132. configure_input="$ac_file. $configure_input"
  17133. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  17134. $as_echo "$as_me: creating $ac_file" >&6;}
  17135. fi
  17136. # Neutralize special characters interpreted by sed in replacement strings.
  17137. case $configure_input in #(
  17138. *\&* | *\|* | *\\* )
  17139. ac_sed_conf_input=`$as_echo "$configure_input" |
  17140. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  17141. *) ac_sed_conf_input=$configure_input;;
  17142. esac
  17143. case $ac_tag in
  17144. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  17145. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  17146. esac
  17147. ;;
  17148. esac
  17149. ac_dir=`$as_dirname -- "$ac_file" ||
  17150. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17151. X"$ac_file" : 'X\(//\)[^/]' \| \
  17152. X"$ac_file" : 'X\(//\)$' \| \
  17153. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17154. $as_echo X"$ac_file" |
  17155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17156. s//\1/
  17157. q
  17158. }
  17159. /^X\(\/\/\)[^/].*/{
  17160. s//\1/
  17161. q
  17162. }
  17163. /^X\(\/\/\)$/{
  17164. s//\1/
  17165. q
  17166. }
  17167. /^X\(\/\).*/{
  17168. s//\1/
  17169. q
  17170. }
  17171. s/.*/./; q'`
  17172. as_dir="$ac_dir"; as_fn_mkdir_p
  17173. ac_builddir=.
  17174. case "$ac_dir" in
  17175. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17176. *)
  17177. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17178. # A ".." for each directory in $ac_dir_suffix.
  17179. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17180. case $ac_top_builddir_sub in
  17181. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17182. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17183. esac ;;
  17184. esac
  17185. ac_abs_top_builddir=$ac_pwd
  17186. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17187. # for backward compatibility:
  17188. ac_top_builddir=$ac_top_build_prefix
  17189. case $srcdir in
  17190. .) # We are building in place.
  17191. ac_srcdir=.
  17192. ac_top_srcdir=$ac_top_builddir_sub
  17193. ac_abs_top_srcdir=$ac_pwd ;;
  17194. [\\/]* | ?:[\\/]* ) # Absolute name.
  17195. ac_srcdir=$srcdir$ac_dir_suffix;
  17196. ac_top_srcdir=$srcdir
  17197. ac_abs_top_srcdir=$srcdir ;;
  17198. *) # Relative name.
  17199. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17200. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17201. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17202. esac
  17203. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17204. case $ac_mode in
  17205. :F)
  17206. #
  17207. # CONFIG_FILE
  17208. #
  17209. case $INSTALL in
  17210. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17211. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17212. esac
  17213. _ACEOF
  17214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17215. # If the template does not know about datarootdir, expand it.
  17216. # FIXME: This hack should be removed a few years after 2.60.
  17217. ac_datarootdir_hack=; ac_datarootdir_seen=
  17218. ac_sed_dataroot='
  17219. /datarootdir/ {
  17220. p
  17221. q
  17222. }
  17223. /@datadir@/p
  17224. /@docdir@/p
  17225. /@infodir@/p
  17226. /@localedir@/p
  17227. /@mandir@/p'
  17228. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  17229. *datarootdir*) ac_datarootdir_seen=yes;;
  17230. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17232. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17233. _ACEOF
  17234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17235. ac_datarootdir_hack='
  17236. s&@datadir@&$datadir&g
  17237. s&@docdir@&$docdir&g
  17238. s&@infodir@&$infodir&g
  17239. s&@localedir@&$localedir&g
  17240. s&@mandir@&$mandir&g
  17241. s&\\\${datarootdir}&$datarootdir&g' ;;
  17242. esac
  17243. _ACEOF
  17244. # Neutralize VPATH when `$srcdir' = `.'.
  17245. # Shell code in configure.ac might set extrasub.
  17246. # FIXME: do we really want to maintain this feature?
  17247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  17248. ac_sed_extra="$ac_vpsub
  17249. $extrasub
  17250. _ACEOF
  17251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  17252. :t
  17253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17254. s|@configure_input@|$ac_sed_conf_input|;t t
  17255. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17256. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  17257. s&@srcdir@&$ac_srcdir&;t t
  17258. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17259. s&@top_srcdir@&$ac_top_srcdir&;t t
  17260. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17261. s&@builddir@&$ac_builddir&;t t
  17262. s&@abs_builddir@&$ac_abs_builddir&;t t
  17263. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17264. s&@INSTALL@&$ac_INSTALL&;t t
  17265. $ac_datarootdir_hack
  17266. "
  17267. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  17268. if $ac_cs_awk_getline; then
  17269. $AWK -f "$ac_tmp/subs.awk"
  17270. else
  17271. $AWK -f "$ac_tmp/subs.awk" | $SHELL
  17272. fi \
  17273. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17274. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17275. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  17276. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  17277. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  17278. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17279. which seems to be undefined. Please make sure it is defined" >&5
  17280. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17281. which seems to be undefined. Please make sure it is defined" >&2;}
  17282. rm -f "$ac_tmp/stdin"
  17283. case $ac_file in
  17284. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  17285. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  17286. esac \
  17287. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  17288. ;;
  17289. esac
  17290. case $ac_file$ac_mode in
  17291. "Makefile":F) sed "$extrasub_build" Makefile |
  17292. sed "$extrasub_host" |
  17293. sed "$extrasub_target" > mf$$
  17294. mv -f mf$$ Makefile ;;
  17295. esac
  17296. done # for ac_tag
  17297. as_fn_exit 0
  17298. _ACEOF
  17299. ac_clean_files=$ac_clean_files_save
  17300. test $ac_write_fail = 0 ||
  17301. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17302. # configure is writing to config.log, and then calls config.status.
  17303. # config.status does its own redirection, appending to config.log.
  17304. # Unfortunately, on DOS this fails, as config.log is still kept open
  17305. # by configure, so config.status won't be able to write to it; its
  17306. # output is simply discarded. So we exec the FD to /dev/null,
  17307. # effectively closing config.log, so it can be properly (re)opened and
  17308. # appended to by config.status. When coming back to configure, we
  17309. # need to make the FD available again.
  17310. if test "$no_create" != yes; then
  17311. ac_cs_success=:
  17312. ac_config_status_args=
  17313. test "$silent" = yes &&
  17314. ac_config_status_args="$ac_config_status_args --quiet"
  17315. exec 5>/dev/null
  17316. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17317. exec 5>>config.log
  17318. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17319. # would make configure fail if this is the last instruction.
  17320. $ac_cs_success || as_fn_exit 1
  17321. fi
  17322. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17323. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17324. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17325. fi