old-configure 504 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707
  1. #! /bin/sh
  2. if test `uname -s | grep -c MINGW 2>/dev/null` != "0"; then
  3. msyshost=1
  4. fi
  5. # Read the user's .mozconfig script. We can't do this in
  6. # configure.in: autoconf puts the argument parsing code above anything
  7. # expanded from configure.in, and we need to get the configure options
  8. # from .mozconfig in place before that argument parsing code.
  9. . ./old-configure.vars
  10. # Guess values for system-dependent variables and create Makefiles.
  11. # Generated automatically using autoconf version 2.13
  12. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  13. #
  14. # This configure script is free software; the Free Software Foundation
  15. # gives unlimited permission to copy, distribute and modify it.
  16. # Defaults:
  17. ac_help=
  18. ac_default_prefix=/usr/local
  19. # Any additions from configure.in:
  20. ac_help="$ac_help
  21. --enable-release Build with more conservative, release engineering-oriented options.
  22. This may slow down builds."
  23. ac_help="$ac_help
  24. --with-unify-dist=dir Location of the dist directory to unify with at packaging time (Mac OS X universal build only)"
  25. ac_help="$ac_help
  26. --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)"
  27. ac_help="$ac_help
  28. --with-macos-private-frameworks=dir Location of private frameworks to use (Mac OS X only)"
  29. ac_help="$ac_help
  30. --with-x use the X Window System"
  31. ac_help="$ac_help
  32. --with-arch=[[type|toolchain-default]]
  33. Use specific CPU features (-march=type). Resets
  34. thumb, fpu, float-abi, etc. defaults when set"
  35. ac_help="$ac_help
  36. --with-thumb[[=yes|no|toolchain-default]]
  37. Use Thumb instruction set (-mthumb)"
  38. ac_help="$ac_help
  39. --with-thumb-interwork[[=yes|no|toolchain-default]]
  40. Use Thumb/ARM instuctions interwork (-mthumb-interwork)"
  41. ac_help="$ac_help
  42. --with-fpu=[[type|toolchain-default]]
  43. Use specific FPU type (-mfpu=type)"
  44. ac_help="$ac_help
  45. --with-float-abi=[[type|toolchain-default]]
  46. Use specific arm float ABI (-mfloat-abi=type)"
  47. ac_help="$ac_help
  48. --with-soft-float[[=yes|no|toolchain-default]]
  49. Use soft float library (-msoft-float)"
  50. ac_help="$ac_help
  51. --enable-address-sanitizer Enable Address Sanitizer (default=no)"
  52. ac_help="$ac_help
  53. --enable-memory-sanitizer Enable Memory Sanitizer (default=no)"
  54. ac_help="$ac_help
  55. --enable-thread-sanitizer Enable Thread Sanitizer (default=no)"
  56. ac_help="$ac_help
  57. --enable-llvm-hacks Enable workarounds required for several LLVM instrumentations (default=no)"
  58. ac_help="$ac_help
  59. --enable-valgrind Enable Valgrind integration hooks (default=no)"
  60. ac_help="$ac_help
  61. --with-debug-label=LABELS
  62. Define DEBUG_<value> for each comma-separated
  63. value given."
  64. ac_help="$ac_help
  65. --with-debug-label=LABELS
  66. Define DEBUG_<value> for each comma-separated
  67. value given."
  68. ac_help="$ac_help
  69. --enable-cpp-rtti Enable C++ RTTI "
  70. ac_help="$ac_help
  71. --enable-gold Enable GNU Gold Linker when it is not already the default"
  72. ac_help="$ac_help
  73. --disable-icf Disable Identical Code Folding"
  74. ac_help="$ac_help
  75. --enable-pie Enable Position Independent Executables"
  76. ac_help="$ac_help
  77. --enable-dtrace build with dtrace support if available (default=no)"
  78. ac_help="$ac_help
  79. --with-pthreads Force use of system pthread library with NSPR "
  80. ac_help="$ac_help
  81. --with-nspr-cflags=FLAGS
  82. Pass FLAGS to CC when building code that uses NSPR.
  83. Use this when there's no accurate nspr-config
  84. script available. This is the case when building
  85. SpiderMonkey as part of the Mozilla tree: the
  86. top-level configure script computes NSPR flags
  87. that accomodate the quirks of that environment."
  88. ac_help="$ac_help
  89. --with-nspr-libs=LIBS Pass LIBS to LD when linking code that uses NSPR.
  90. See --with-nspr-cflags for more details."
  91. ac_help="$ac_help
  92. --enable-nspr-build Build NSPR from source tree"
  93. ac_help="$ac_help
  94. --enable-posix-nspr-emulation
  95. Enable emulation of NSPR for POSIX systems"
  96. ac_help="$ac_help
  97. --with-system-jpeg[=PFX]
  98. Use system libjpeg [installed at prefix PFX]"
  99. ac_help="$ac_help
  100. --with-system-zlib[=PFX]
  101. Use system libz [installed at prefix PFX]"
  102. ac_help="$ac_help
  103. --with-system-bz2[=PFX]
  104. Use system libbz2 [installed at prefix PFX]"
  105. ac_help="$ac_help
  106. --enable-official-vendor This is an official release build."
  107. ac_help="$ac_help
  108. --enable-official-branding
  109. Enable Official Branding
  110. Do not distribute builds with
  111. --enable-official-branding unless you have
  112. permission to use our trademarks!"
  113. ac_help="$ac_help
  114. --with-app-name=APPNAME sets MOZ_APP_NAME to APPNAME"
  115. ac_help="$ac_help
  116. --with-app-basename=BASENAME sets MOZ_APP_BASENAME to BASENAME"
  117. ac_help="$ac_help
  118. --enable-startup-notification
  119. Enable startup-notification support (default: disabled) "
  120. ac_help="$ac_help
  121. --enable-ui-locale=ab-CD
  122. Select the user interface locale (default: en-US)"
  123. ac_help="$ac_help
  124. --with-branding=dir Use branding from the specified directory."
  125. ac_help="$ac_help
  126. --enable-private-build Enable private builds
  127. This allows you to build with official
  128. branding for personal use only using any
  129. build time configuration."
  130. ac_help="$ac_help
  131. --with-distribution-id=ID
  132. Set distribution-specific id (default=org.mozilla)"
  133. ac_help="$ac_help
  134. --disable-gio Disable GIO support"
  135. ac_help="$ac_help
  136. --disable-gconf Disable Gconf support "
  137. ac_help="$ac_help
  138. --enable-libproxy Enable libproxy support "
  139. ac_help="$ac_help
  140. --enable-gnomeui Enable libgnomeui instead of GIO & GTK for icon theme support "
  141. ac_help="$ac_help
  142. --disable-dbus Disable dbus support "
  143. ac_help="$ac_help
  144. --disable-accessibility Disable accessibility support"
  145. ac_help="$ac_help
  146. --disable-dbm Disable DBM support in nss"
  147. ac_help="$ac_help
  148. --enable-security-sqlstore Enable the use of SQL storage for NSS"
  149. ac_help="$ac_help
  150. --enable-incomplete-external-linkage Don't fold *comps into libXUL which is currently badly busted so don't even bother with it "
  151. ac_help="$ac_help
  152. --enable-mailnews Enable the mailnews core backend"
  153. ac_help="$ac_help
  154. --disable-mailnews-oauth2 Disable oauth2 support in mailnews"
  155. ac_help="$ac_help
  156. --disable-ldap Disable LDAP support"
  157. ac_help="$ac_help
  158. --disable-mapi Disable MAPI support"
  159. ac_help="$ac_help
  160. --enable-webrtc Enable support for WebRTC"
  161. ac_help="$ac_help
  162. --enable-hardware-aec-ns Enable support for hardware AEC and noise suppression"
  163. ac_help="$ac_help
  164. --enable-raw Enable support for RAW media"
  165. ac_help="$ac_help
  166. --enable-av1 Enable libaom for av1 video support"
  167. ac_help="$ac_help
  168. --enable-eme Enable support for Encrypted Media Extensions "
  169. ac_help="$ac_help
  170. --enable-alsa Enable Alsa support (default on Linux)"
  171. ac_help="$ac_help
  172. --disable-pulseaudio Disable PulseAudio support"
  173. ac_help="$ac_help
  174. --enable-sndio Enable sndio support"
  175. ac_help="$ac_help
  176. --disable-negotiateauth Disable GSS-API negotiation "
  177. ac_help="$ac_help
  178. --disable-pref-extensions
  179. Disable pref extensions such as autoconfig"
  180. ac_help="$ac_help
  181. --disable-system-extension-dirs
  182. Disable searching system- and account-global
  183. directories for extensions of any kind; use
  184. only profile-specific extension directories"
  185. ac_help="$ac_help
  186. --disable-universalchardet
  187. Disable universal encoding detection"
  188. ac_help="$ac_help
  189. --enable-gamepad Enable gamepad support"
  190. ac_help="$ac_help
  191. --disable-libjpeg-turbo Disable optimized jpeg decoding routines"
  192. ac_help="$ac_help
  193. --enable-extensions Enable extensions"
  194. ac_help="$ac_help
  195. --enable-bundled-fonts Enable support for bundled fonts on desktop platforms"
  196. ac_help="$ac_help
  197. --enable-verify-mar Enable verifying MAR signatures"
  198. ac_help="$ac_help
  199. --enable-signmar Enable building the signmar program"
  200. ac_help="$ac_help
  201. --enable-updater Enable building of internal updater"
  202. ac_help="$ac_help
  203. --enable-tests Build test libraries & programs"
  204. ac_help="$ac_help
  205. --disable-parental-controls
  206. Do not build parental controls"
  207. ac_help="$ac_help
  208. --disable-feeds Disable feed handling and processing components"
  209. ac_help="$ac_help
  210. --enable-safe-browsing Enable safe browsing (anti-phishing) implementation"
  211. ac_help="$ac_help
  212. --enable-url-classifier Enable url classifier module"
  213. ac_help="$ac_help
  214. --disable-zipwriter Disable zipwriter component"
  215. ac_help="$ac_help
  216. --enable-faststripe Use faststripe theme"
  217. ac_help="$ac_help
  218. --disable-optimize Disable compiler optimization
  219. --enable-optimize=[OPT] Specify compiler optimization flags [OPT=-O]"
  220. ac_help="$ac_help
  221. --enable-logrefcnt Enable logging of refcounts (default=debug) "
  222. ac_help="$ac_help
  223. --enable-dump-painting Enable paint debugging."
  224. ac_help="$ac_help
  225. --enable-clang-plugin Enable building with the mozilla clang plugin "
  226. ac_help="$ac_help
  227. --enable-strip Enable stripping of libs & executables "
  228. ac_help="$ac_help
  229. --enable-install-strip Enable stripping of libs & executables when packaging "
  230. ac_help="$ac_help
  231. --disable-elf-hack Disable elf hacks"
  232. ac_help="$ac_help
  233. --enable-stdcxx-compat Enable compatibility with older libstdc++"
  234. ac_help="$ac_help
  235. --enable-debug-js-modules Enable debug mode for frontend JS libraries"
  236. ac_help="$ac_help
  237. --disable-precompiled-startupcache Don't precompile the startup cache "
  238. ac_help="$ac_help
  239. --enable-tasktracer Set compile flags necessary for using TaskTracer"
  240. ac_help="$ac_help
  241. --enable-reflow-perf Enable reflow performance tracing"
  242. ac_help="$ac_help
  243. --disable-startupcache Disable startup cache "
  244. ac_help="$ac_help
  245. --enable-synth-pico Set compile flags necessary for compiling Pico Web Speech API "
  246. ac_help="$ac_help
  247. --jitreport-granularity=N
  248. Default granularity at which to report JIT code
  249. to external tools
  250. 0 - no info
  251. 1 - code ranges for whole functions only
  252. 2 - per-line information
  253. 3 - per-op information"
  254. ac_help="$ac_help
  255. --disable-mozril-geoloc Disable Mozilla's RIL and geolocation"
  256. ac_help="$ac_help
  257. --enable-chrome-format=jar|flat|omni
  258. Select FORMAT of chrome files during packaging"
  259. ac_help="$ac_help
  260. --enable-chrome-compression=none|deflate|brotli
  261. Select COMPRESSION type of chrome files during packaging"
  262. ac_help="$ac_help
  263. --with-chrome-name=CHROMENAME
  264. Set chrome jar name (default=omni.ja)"
  265. ac_help="$ac_help
  266. --disable-jetpack Disable Jetpack Support Code"
  267. ac_help="$ac_help
  268. --disable-devtools-server Disable Mozilla Developer Tools (server)"
  269. ac_help="$ac_help
  270. --enable-devtools Enable Mozilla Developer Tools (client)"
  271. ac_help="$ac_help
  272. --disable-userinfo Disable nsUserInfo (default=enabled)"
  273. ac_help="$ac_help
  274. --with-default-mozilla-five-home
  275. Set the default value for MOZILLA_FIVE_HOME"
  276. ac_help="$ac_help
  277. --with-user-appdir=DIR Set user-specific appdir (default=.mozilla)"
  278. ac_help="$ac_help
  279. --with-doc-input-dirs=DIRS
  280. Header/idl dirs to create docs from"
  281. ac_help="$ac_help
  282. --with-doc-include-dirs=DIRS
  283. Include dirs to preprocess doc headers"
  284. ac_help="$ac_help
  285. --with-doc-output-dir=DIR
  286. Dir to generate docs into"
  287. ac_help="$ac_help
  288. --enable-shared-media Build GKMedias as a shared lib"
  289. ac_help="$ac_help
  290. --enable-system-cairo Use system cairo (located with pkgconfig)"
  291. ac_help="$ac_help
  292. --enable-system-pixman Use system pixman (located with pkgconfig)"
  293. ac_help="$ac_help
  294. --disable-xul Disable XUL"
  295. ac_help="$ac_help
  296. --disable-necko-wifi Disable necko wifi scanner"
  297. ac_help="$ac_help
  298. --disable-cookies Disable cookie support"
  299. ac_help="$ac_help
  300. --with-macbundlename-prefix=prefix
  301. Prefix for MOZ_MACBUNDLE_NAME"
  302. # Initialize some variables set by options.
  303. # The variables have the same names as the options, with
  304. # dashes changed to underlines.
  305. build=NONE
  306. cache_file=./config.cache
  307. exec_prefix=NONE
  308. host=NONE
  309. no_create=
  310. nonopt=NONE
  311. no_recursion=
  312. prefix=NONE
  313. program_prefix=NONE
  314. program_suffix=NONE
  315. program_transform_name=s,x,x,
  316. silent=
  317. site=
  318. srcdir=
  319. target=NONE
  320. verbose=
  321. x_includes=NONE
  322. x_libraries=NONE
  323. bindir='${exec_prefix}/bin'
  324. sbindir='${exec_prefix}/sbin'
  325. libexecdir='${exec_prefix}/libexec'
  326. datadir='${prefix}/share'
  327. sysconfdir='${prefix}/etc'
  328. sharedstatedir='${prefix}/com'
  329. localstatedir='${prefix}/var'
  330. libdir='${exec_prefix}/lib'
  331. includedir='${prefix}/include'
  332. oldincludedir='/usr/include'
  333. infodir='${prefix}/info'
  334. mandir='${prefix}/man'
  335. # Initialize some other variables.
  336. subdirs=
  337. MFLAGS= MAKEFLAGS=
  338. SHELL=${CONFIG_SHELL-/bin/sh}
  339. # Maximum number of lines to put in a shell here document.
  340. ac_max_here_lines=12
  341. ac_prev=
  342. for ac_option
  343. do
  344. # If the previous option needs an argument, assign it.
  345. if test -n "$ac_prev"; then
  346. eval "$ac_prev=\$ac_option"
  347. ac_prev=
  348. continue
  349. fi
  350. case "$ac_option" in
  351. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  352. *) ac_optarg= ;;
  353. esac
  354. # Accept the important Cygnus configure options, so we can diagnose typos.
  355. case "$ac_option" in
  356. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  357. ac_prev=bindir ;;
  358. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  359. bindir="$ac_optarg" ;;
  360. -build | --build | --buil | --bui | --bu)
  361. ac_prev=build ;;
  362. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  363. build="$ac_optarg" ;;
  364. -cache-file | --cache-file | --cache-fil | --cache-fi \
  365. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  366. ac_prev=cache_file ;;
  367. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  368. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  369. cache_file="$ac_optarg" ;;
  370. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  371. ac_prev=datadir ;;
  372. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  373. | --da=*)
  374. datadir="$ac_optarg" ;;
  375. -disable-* | --disable-*)
  376. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  377. # Reject names that are not valid shell variable names.
  378. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  379. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; echo "configure: error: $ac_feature: invalid feature name" 1>&5; exit 1; }
  380. fi
  381. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  382. eval "enable_${ac_feature}=no" ;;
  383. -enable-* | --enable-*)
  384. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  385. # Reject names that are not valid shell variable names.
  386. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  387. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; echo "configure: error: $ac_feature: invalid feature name" 1>&5; exit 1; }
  388. fi
  389. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  390. case "$ac_option" in
  391. *=*) ;;
  392. *) ac_optarg=yes ;;
  393. esac
  394. eval "enable_${ac_feature}='$ac_optarg'" ;;
  395. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  396. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  397. | --exec | --exe | --ex)
  398. ac_prev=exec_prefix ;;
  399. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  400. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  401. | --exec=* | --exe=* | --ex=*)
  402. exec_prefix="$ac_optarg" ;;
  403. -gas | --gas | --ga | --g)
  404. # Obsolete; use --with-gas.
  405. with_gas=yes ;;
  406. -help | --help | --hel | --he)
  407. # Omit some internal or obsolete options to make the list less imposing.
  408. # This message is too long to be a string in the A/UX 3.1 sh.
  409. cat << EOF
  410. Usage: configure [options] [host]
  411. Options: [defaults in brackets after descriptions]
  412. Configuration:
  413. --cache-file=FILE cache test results in FILE
  414. --help print this message
  415. --no-create do not create output files
  416. --quiet, --silent do not print \`checking...' messages
  417. --version print the version of autoconf that created configure
  418. Directory and file names:
  419. --prefix=PREFIX install architecture-independent files in PREFIX
  420. [$ac_default_prefix]
  421. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  422. [same as prefix]
  423. --bindir=DIR user executables in DIR [EPREFIX/bin]
  424. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  425. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  426. --datadir=DIR read-only architecture-independent data in DIR
  427. [PREFIX/share]
  428. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  429. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  430. [PREFIX/com]
  431. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  432. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  433. --includedir=DIR C header files in DIR [PREFIX/include]
  434. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  435. --infodir=DIR info documentation in DIR [PREFIX/info]
  436. --mandir=DIR man documentation in DIR [PREFIX/man]
  437. --srcdir=DIR find the sources in DIR [configure dir or ..]
  438. --program-prefix=PREFIX prepend PREFIX to installed program names
  439. --program-suffix=SUFFIX append SUFFIX to installed program names
  440. --program-transform-name=PROGRAM
  441. run sed PROGRAM on installed program names
  442. EOF
  443. cat << EOF
  444. Host type:
  445. --build=BUILD configure for building on BUILD [BUILD=HOST]
  446. --host=HOST configure for HOST [guessed]
  447. --target=TARGET configure for TARGET [TARGET=HOST]
  448. Features and packages:
  449. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  450. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  451. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  452. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  453. --x-includes=DIR X include files are in DIR
  454. --x-libraries=DIR X library files are in DIR
  455. EOF
  456. if test -n "$ac_help"; then
  457. echo "--enable and --with options recognized:$ac_help"
  458. fi
  459. exit 0 ;;
  460. -host | --host | --hos | --ho)
  461. ac_prev=host ;;
  462. -host=* | --host=* | --hos=* | --ho=*)
  463. host="$ac_optarg" ;;
  464. -includedir | --includedir | --includedi | --included | --include \
  465. | --includ | --inclu | --incl | --inc)
  466. ac_prev=includedir ;;
  467. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  468. | --includ=* | --inclu=* | --incl=* | --inc=*)
  469. includedir="$ac_optarg" ;;
  470. -infodir | --infodir | --infodi | --infod | --info | --inf)
  471. ac_prev=infodir ;;
  472. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  473. infodir="$ac_optarg" ;;
  474. -libdir | --libdir | --libdi | --libd)
  475. ac_prev=libdir ;;
  476. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  477. libdir="$ac_optarg" ;;
  478. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  479. | --libexe | --libex | --libe)
  480. ac_prev=libexecdir ;;
  481. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  482. | --libexe=* | --libex=* | --libe=*)
  483. libexecdir="$ac_optarg" ;;
  484. -localstatedir | --localstatedir | --localstatedi | --localstated \
  485. | --localstate | --localstat | --localsta | --localst \
  486. | --locals | --local | --loca | --loc | --lo)
  487. ac_prev=localstatedir ;;
  488. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  489. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  490. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  491. localstatedir="$ac_optarg" ;;
  492. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  493. ac_prev=mandir ;;
  494. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  495. mandir="$ac_optarg" ;;
  496. -nfp | --nfp | --nf)
  497. # Obsolete; use --without-fp.
  498. with_fp=no ;;
  499. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  500. | --no-cr | --no-c)
  501. no_create=yes ;;
  502. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  503. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  504. no_recursion=yes ;;
  505. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  506. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  507. | --oldin | --oldi | --old | --ol | --o)
  508. ac_prev=oldincludedir ;;
  509. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  510. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  511. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  512. oldincludedir="$ac_optarg" ;;
  513. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  514. ac_prev=prefix ;;
  515. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  516. prefix="$ac_optarg" ;;
  517. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  518. | --program-pre | --program-pr | --program-p)
  519. ac_prev=program_prefix ;;
  520. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  521. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  522. program_prefix="$ac_optarg" ;;
  523. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  524. | --program-suf | --program-su | --program-s)
  525. ac_prev=program_suffix ;;
  526. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  527. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  528. program_suffix="$ac_optarg" ;;
  529. -program-transform-name | --program-transform-name \
  530. | --program-transform-nam | --program-transform-na \
  531. | --program-transform-n | --program-transform- \
  532. | --program-transform | --program-transfor \
  533. | --program-transfo | --program-transf \
  534. | --program-trans | --program-tran \
  535. | --progr-tra | --program-tr | --program-t)
  536. ac_prev=program_transform_name ;;
  537. -program-transform-name=* | --program-transform-name=* \
  538. | --program-transform-nam=* | --program-transform-na=* \
  539. | --program-transform-n=* | --program-transform-=* \
  540. | --program-transform=* | --program-transfor=* \
  541. | --program-transfo=* | --program-transf=* \
  542. | --program-trans=* | --program-tran=* \
  543. | --progr-tra=* | --program-tr=* | --program-t=*)
  544. program_transform_name="$ac_optarg" ;;
  545. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  546. | -silent | --silent | --silen | --sile | --sil)
  547. silent=yes ;;
  548. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  549. ac_prev=sbindir ;;
  550. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  551. | --sbi=* | --sb=*)
  552. sbindir="$ac_optarg" ;;
  553. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  554. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  555. | --sharedst | --shareds | --shared | --share | --shar \
  556. | --sha | --sh)
  557. ac_prev=sharedstatedir ;;
  558. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  559. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  560. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  561. | --sha=* | --sh=*)
  562. sharedstatedir="$ac_optarg" ;;
  563. -site | --site | --sit)
  564. ac_prev=site ;;
  565. -site=* | --site=* | --sit=*)
  566. site="$ac_optarg" ;;
  567. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  568. ac_prev=srcdir ;;
  569. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  570. srcdir="$ac_optarg" ;;
  571. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  572. | --syscon | --sysco | --sysc | --sys | --sy)
  573. ac_prev=sysconfdir ;;
  574. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  575. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  576. sysconfdir="$ac_optarg" ;;
  577. -target | --target | --targe | --targ | --tar | --ta | --t)
  578. ac_prev=target ;;
  579. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  580. target="$ac_optarg" ;;
  581. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  582. verbose=yes ;;
  583. -version | --version | --versio | --versi | --vers)
  584. echo "configure generated by autoconf version 2.13"
  585. exit 0 ;;
  586. -with-* | --with-*)
  587. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  588. # Reject names that are not valid shell variable names.
  589. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  590. { echo "configure: error: $ac_package: invalid package name" 1>&2; echo "configure: error: $ac_package: invalid package name" 1>&5; exit 1; }
  591. fi
  592. ac_package=`echo $ac_package| sed 's/-/_/g'`
  593. case "$ac_option" in
  594. *=*) ;;
  595. *) ac_optarg=yes ;;
  596. esac
  597. eval "with_${ac_package}='$ac_optarg'" ;;
  598. -without-* | --without-*)
  599. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  600. # Reject names that are not valid shell variable names.
  601. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  602. { echo "configure: error: $ac_package: invalid package name" 1>&2; echo "configure: error: $ac_package: invalid package name" 1>&5; exit 1; }
  603. fi
  604. ac_package=`echo $ac_package| sed 's/-/_/g'`
  605. eval "with_${ac_package}=no" ;;
  606. --x)
  607. # Obsolete; use --with-x.
  608. with_x=yes ;;
  609. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  610. | --x-incl | --x-inc | --x-in | --x-i)
  611. ac_prev=x_includes ;;
  612. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  613. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  614. x_includes="$ac_optarg" ;;
  615. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  616. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  617. ac_prev=x_libraries ;;
  618. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  619. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  620. x_libraries="$ac_optarg" ;;
  621. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&5; exit 1; }
  622. ;;
  623. *)
  624. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  625. echo "configure: warning: $ac_option: invalid host type" 1>&2
  626. fi
  627. if test "x$nonopt" != xNONE; then
  628. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; echo "configure: error: can only configure for one host and one target at a time" 1>&5; exit 1; }
  629. fi
  630. nonopt="$ac_option"
  631. ;;
  632. esac
  633. done
  634. if test -n "$ac_prev"; then
  635. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&5; exit 1; }
  636. fi
  637. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  638. # File descriptor usage:
  639. # 0 standard input
  640. # 1 file creation
  641. # 2 errors and warnings
  642. # 3 some systems may open it to /dev/tty
  643. # 4 used on the Kubota Titan
  644. # 6 checking for... messages and results
  645. # 5 compiler messages saved in config.log
  646. if test "$silent" = yes; then
  647. exec 6>/dev/null
  648. else
  649. exec 6>&1
  650. fi
  651. exec 5>>./config.log
  652. echo "\
  653. This file contains any messages produced by compilers while
  654. running configure, to aid debugging if configure makes a mistake.
  655. " 1>&5
  656. # Strip out --no-create and --no-recursion so they do not pile up.
  657. # Also quote any args containing shell metacharacters.
  658. ac_configure_args=
  659. for ac_arg
  660. do
  661. case "$ac_arg" in
  662. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  663. | --no-cr | --no-c) ;;
  664. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  665. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  666. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  667. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  668. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  669. esac
  670. done
  671. # NLS nuisances.
  672. # Only set these to C if already set. These must not be set unconditionally
  673. # because not all systems understand e.g. LANG=C (notably SCO).
  674. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  675. # Non-C LC_CTYPE values break the ctype check.
  676. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  677. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  678. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  679. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  680. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  681. rm -rf conftest* confdefs.h
  682. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  683. echo > confdefs.h
  684. # A filename unique to this package, relative to the directory that
  685. # configure is in, which we can look for to find out if srcdir is correct.
  686. ac_unique_file=config/config.mk
  687. # Find the source files, if location was not specified.
  688. if test -z "$srcdir"; then
  689. ac_srcdir_defaulted=yes
  690. # Try the directory containing this script, then its parent.
  691. ac_prog=$0
  692. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  693. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  694. srcdir=$ac_confdir
  695. if test ! -r $srcdir/$ac_unique_file; then
  696. srcdir=..
  697. fi
  698. else
  699. ac_srcdir_defaulted=no
  700. fi
  701. if test ! -r $srcdir/$ac_unique_file; then
  702. if test "$ac_srcdir_defaulted" = yes; then
  703. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; echo "configure: error: can not find sources in $ac_confdir or .." 1>&5; exit 1; }
  704. else
  705. { echo "configure: error: can not find sources in $srcdir" 1>&2; echo "configure: error: can not find sources in $srcdir" 1>&5; exit 1; }
  706. fi
  707. fi
  708. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  709. # Prefer explicitly selected file to automatically selected ones.
  710. if test -z "$CONFIG_SITE"; then
  711. if test "x$prefix" != xNONE; then
  712. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  713. else
  714. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  715. fi
  716. fi
  717. for ac_site_file in $CONFIG_SITE; do
  718. if test -r "$ac_site_file"; then
  719. echo "loading site script $ac_site_file"
  720. . "$ac_site_file"
  721. fi
  722. done
  723. if test -r "$cache_file"; then
  724. echo "loading cache $cache_file"
  725. . $cache_file
  726. else
  727. echo "creating cache $cache_file"
  728. > $cache_file
  729. fi
  730. ac_ext=c
  731. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  732. ac_cpp='$CPP $CPPFLAGS'
  733. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  734. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  735. cross_compiling=$ac_cv_prog_cc_cross
  736. ac_exeext=
  737. ac_objext=o
  738. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  739. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  740. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  741. ac_n= ac_c='
  742. ' ac_t=' '
  743. else
  744. ac_n=-n ac_c= ac_t=
  745. fi
  746. else
  747. ac_n= ac_c='\c' ac_t=
  748. fi
  749. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  750. # Let make expand exec_prefix.
  751. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  752. > subconfigures
  753. > skip_subconfigures
  754. ac_aux_dir=
  755. for ac_dir in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf; do
  756. if test -f $ac_dir/install-sh; then
  757. ac_aux_dir=$ac_dir
  758. ac_install_sh="$ac_aux_dir/install-sh -c"
  759. break
  760. elif test -f $ac_dir/install.sh; then
  761. ac_aux_dir=$ac_dir
  762. ac_install_sh="$ac_aux_dir/install.sh -c"
  763. break
  764. fi
  765. done
  766. if test -z "$ac_aux_dir"; then
  767. { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&2; echo "configure: error: can not find install-sh or install.sh in ${srcdir}/build/autoconf $srcdir/${srcdir}/build/autoconf" 1>&5; exit 1; }
  768. fi
  769. ac_config_guess=$ac_aux_dir/config.guess
  770. ac_config_sub=$ac_aux_dir/config.sub
  771. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  772. # Do some error checking and defaulting for the host and target type.
  773. # The inputs are:
  774. # configure --host=HOST --target=TARGET --build=BUILD NONOPT
  775. #
  776. # The rules are:
  777. # 1. You are not allowed to specify --host, --target, and nonopt at the
  778. # same time.
  779. # 2. Host defaults to nonopt.
  780. # 3. If nonopt is not specified, then host defaults to the current host,
  781. # as determined by config.guess.
  782. # 4. Target and build default to nonopt.
  783. # 5. If nonopt is not specified, then target and build default to host.
  784. # The aliases save the names the user supplied, while $host etc.
  785. # will get canonicalized.
  786. case $host---$target---$nonopt in
  787. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  788. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; echo "configure: error: can only configure for one host and one target at a time" 1>&5; exit 1; } ;;
  789. esac
  790. # Make sure we can run config.sub.
  791. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  792. else { echo "configure: error: can not run $ac_config_sub" 1>&2; echo "configure: error: can not run $ac_config_sub" 1>&5; exit 1; }
  793. fi
  794. echo $ac_n "checking host system type""... $ac_c" 1>&6
  795. echo "configure:873: checking host system type" >&5
  796. host_alias=$host
  797. case "$host_alias" in
  798. NONE)
  799. case $nonopt in
  800. NONE)
  801. if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  802. else { echo "configure: error: can not guess host type; you must specify one" 1>&2; echo "configure: error: can not guess host type; you must specify one" 1>&5; exit 1; }
  803. fi ;;
  804. *) host_alias=$nonopt ;;
  805. esac ;;
  806. esac
  807. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  808. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  809. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  810. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  811. echo "$ac_t""$host" 1>&6
  812. echo $ac_n "checking target system type""... $ac_c" 1>&6
  813. echo "configure:894: checking target system type" >&5
  814. target_alias=$target
  815. case "$target_alias" in
  816. NONE)
  817. case $nonopt in
  818. NONE) target_alias=$host_alias ;;
  819. *) target_alias=$nonopt ;;
  820. esac ;;
  821. esac
  822. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  823. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  824. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  825. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  826. echo "$ac_t""$target" 1>&6
  827. echo $ac_n "checking build system type""... $ac_c" 1>&6
  828. echo "configure:912: checking build system type" >&5
  829. build_alias=$build
  830. case "$build_alias" in
  831. NONE)
  832. case $nonopt in
  833. NONE) build_alias=$host_alias ;;
  834. *) build_alias=$nonopt ;;
  835. esac ;;
  836. esac
  837. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  838. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  839. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  840. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  841. echo "$ac_t""$build" 1>&6
  842. test "$host_alias" != "$target_alias" &&
  843. test "$program_prefix$program_suffix$program_transform_name" = \
  844. NONENONEs,x,x, &&
  845. program_prefix=${target_alias}-
  846. CFLAGS="${CFLAGS=}"
  847. CPPFLAGS="${CPPFLAGS=}"
  848. CXXFLAGS="${CXXFLAGS=}"
  849. LDFLAGS="${LDFLAGS=}"
  850. HOST_CFLAGS="${HOST_CFLAGS=}"
  851. HOST_CXXFLAGS="${HOST_CXXFLAGS=}"
  852. HOST_LDFLAGS="${HOST_LDFLAGS=}"
  853. _SUBDIR_CC="$CC"
  854. _SUBDIR_CXX="$CXX"
  855. _SUBDIR_CFLAGS="$CFLAGS"
  856. _SUBDIR_CPPFLAGS="$CPPFLAGS"
  857. _SUBDIR_CXXFLAGS="$CXXFLAGS"
  858. _SUBDIR_LDFLAGS="$LDFLAGS"
  859. _SUBDIR_HOST_CC="$HOST_CC"
  860. _SUBDIR_HOST_CFLAGS="$HOST_CFLAGS"
  861. _SUBDIR_HOST_CXXFLAGS="$HOST_CXXFLAGS"
  862. _SUBDIR_HOST_LDFLAGS="$HOST_LDFLAGS"
  863. _SUBDIR_CONFIG_ARGS="$ac_configure_args"
  864. MOZJPEG=62
  865. MOZPNG=10625
  866. NSPR_VERSION=4
  867. NSPR_MINVER=4.20
  868. NSS_VERSION=3
  869. GLIB_VERSION=2.22
  870. # 2_26 is the earliest version we can set GLIB_VERSION_MIN_REQUIRED.
  871. # The macro won't be used when compiling with earlier versions anyway.
  872. GLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26
  873. GIO_VERSION=2.22
  874. CAIRO_VERSION=1.10
  875. GTK2_VERSION=2.18.0
  876. GTK3_VERSION=3.4.0
  877. GDK_VERSION_MAX_ALLOWED=GDK_VERSION_3_4
  878. WINDRES_VERSION=2.14.90
  879. W32API_VERSION=3.14
  880. GNOMEUI_VERSION=2.2.0
  881. GCONF_VERSION=1.2.1
  882. STARTUP_NOTIFICATION_VERSION=0.8
  883. DBUS_VERSION=0.60
  884. SQLITE_VERSION=3.36.0
  885. MISSING_X=
  886. MOZ_USE_PTHREADS=
  887. _PTHREAD_LDFLAGS=""
  888. _topsrcdir=`cd \`dirname $0\`; pwd -W 2>/dev/null || pwd -P`
  889. _objdir=`pwd -P`
  890. MOZ_BUILD_ROOT=`pwd -W 2>/dev/null || pwd -P`
  891. DIST="$MOZ_BUILD_ROOT/dist"
  892. if test -z "$MC_OFFICIAL"; then
  893. DEVELOPER_OPTIONS=1
  894. fi
  895. # Check whether --enable-release or --disable-release was given.
  896. if test "${enable_release+set}" = set; then
  897. enableval="$enable_release"
  898. if test "$enableval" = "yes"; then
  899. DEVELOPER_OPTIONS=
  900. elif test "$enableval" = "no"; then
  901. DEVELOPER_OPTIONS=1
  902. else
  903. { echo "configure: error: Option, release, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, release, does not take an argument ($enableval)." 1>&5; exit 1; }
  904. fi
  905. fi
  906. if test -z "$CROSS_COMPILE"; then
  907. case "$target" in
  908. *-mingw*)
  909. if test -z "$CPP"; then CPP="$CC -E -nologo"; fi
  910. if test -z "$CXXCPP"; then CXXCPP="$CXX -TP -E -nologo"; ac_cv_prog_CXXCPP="$CXXCPP"; fi
  911. if test -z "$AS"; then
  912. case "${target_cpu}" in
  913. i*86)
  914. AS=ml;
  915. ;;
  916. x86_64)
  917. AS=ml64;
  918. ;;
  919. esac
  920. fi
  921. if test -z "$MIDL"; then MIDL=midl; fi
  922. # need override this flag since we don't use $(LDFLAGS) for this.
  923. if test -z "$HOST_LDFLAGS" ; then
  924. HOST_LDFLAGS=" "
  925. fi
  926. ;;
  927. esac
  928. fi
  929. case "$target" in
  930. *-linux*)
  931. # Extract the first word of "objcopy", so it can be a program name with args.
  932. set dummy objcopy; ac_word=$2
  933. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  934. echo "configure:1037: checking for $ac_word" >&5
  935. if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY'+set}'`\" = set"; then
  936. echo $ac_n "(cached) $ac_c" 1>&6
  937. else
  938. case "$OBJCOPY" in
  939. /*)
  940. ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
  941. ;;
  942. ?:/*)
  943. ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a dos path.
  944. ;;
  945. *)
  946. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  947. ac_dummy="$PATH"
  948. for ac_dir in $ac_dummy; do
  949. test -z "$ac_dir" && ac_dir=.
  950. if test -f $ac_dir/$ac_word; then
  951. ac_cv_path_OBJCOPY="$ac_dir/$ac_word"
  952. break
  953. fi
  954. done
  955. IFS="$ac_save_ifs"
  956. ;;
  957. esac
  958. fi
  959. OBJCOPY="$ac_cv_path_OBJCOPY"
  960. if test -n "$OBJCOPY"; then
  961. echo "$ac_t""$OBJCOPY" 1>&6
  962. else
  963. echo "$ac_t""no" 1>&6
  964. fi
  965. ;;
  966. esac
  967. AR_FLAGS='crs $@'
  968. if test "$COMPILE_ENVIRONMENT"; then
  969. if test "$target" != "$host"; then
  970. echo "cross compiling from $host to $target"
  971. if test -z "$HOST_AR_FLAGS"; then
  972. HOST_AR_FLAGS="$AR_FLAGS"
  973. fi
  974. for ac_prog in $HOST_RANLIB ranlib
  975. do
  976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  977. set dummy $ac_prog; ac_word=$2
  978. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  979. echo "configure:1093: checking for $ac_word" >&5
  980. if eval "test \"`echo '$''{'ac_cv_prog_HOST_RANLIB'+set}'`\" = set"; then
  981. echo $ac_n "(cached) $ac_c" 1>&6
  982. else
  983. if test -n "$HOST_RANLIB"; then
  984. ac_cv_prog_HOST_RANLIB="$HOST_RANLIB" # Let the user override the test.
  985. else
  986. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  987. ac_dummy=":"
  988. for ac_dir in $ac_dummy; do
  989. test -z "$ac_dir" && ac_dir=.
  990. if test -f $ac_dir/$ac_word; then
  991. ac_cv_prog_HOST_RANLIB="$ac_prog"
  992. break
  993. fi
  994. done
  995. IFS="$ac_save_ifs"
  996. fi
  997. fi
  998. HOST_RANLIB="$ac_cv_prog_HOST_RANLIB"
  999. if test -n "$HOST_RANLIB"; then
  1000. echo "$ac_t""$HOST_RANLIB" 1>&6
  1001. else
  1002. echo "$ac_t""no" 1>&6
  1003. fi
  1004. test -n "$HOST_RANLIB" && break
  1005. done
  1006. test -n "$HOST_RANLIB" || HOST_RANLIB="ranlib"
  1007. for ac_prog in $HOST_AR ar
  1008. do
  1009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1010. set dummy $ac_prog; ac_word=$2
  1011. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1012. echo "configure:1128: checking for $ac_word" >&5
  1013. if eval "test \"`echo '$''{'ac_cv_prog_HOST_AR'+set}'`\" = set"; then
  1014. echo $ac_n "(cached) $ac_c" 1>&6
  1015. else
  1016. if test -n "$HOST_AR"; then
  1017. ac_cv_prog_HOST_AR="$HOST_AR" # Let the user override the test.
  1018. else
  1019. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1020. ac_dummy=":"
  1021. for ac_dir in $ac_dummy; do
  1022. test -z "$ac_dir" && ac_dir=.
  1023. if test -f $ac_dir/$ac_word; then
  1024. ac_cv_prog_HOST_AR="$ac_prog"
  1025. break
  1026. fi
  1027. done
  1028. IFS="$ac_save_ifs"
  1029. fi
  1030. fi
  1031. HOST_AR="$ac_cv_prog_HOST_AR"
  1032. if test -n "$HOST_AR"; then
  1033. echo "$ac_t""$HOST_AR" 1>&6
  1034. else
  1035. echo "$ac_t""no" 1>&6
  1036. fi
  1037. test -n "$HOST_AR" && break
  1038. done
  1039. test -n "$HOST_AR" || HOST_AR="ar"
  1040. _SAVE_PATH=$PATH
  1041. case "${TOOLCHAIN_PREFIX}" in
  1042. /*)
  1043. PATH="/:$PATH"
  1044. ;;
  1045. esac
  1046. # Extract the first word of "gcc", so it can be a program name with args.
  1047. set dummy gcc; ac_word=$2
  1048. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1049. echo "configure:1168: checking for $ac_word" >&5
  1050. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1051. echo $ac_n "(cached) $ac_c" 1>&6
  1052. else
  1053. if test -n "$CC"; then
  1054. ac_cv_prog_CC="$CC" # Let the user override the test.
  1055. else
  1056. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1057. ac_dummy="$PATH"
  1058. for ac_dir in $ac_dummy; do
  1059. test -z "$ac_dir" && ac_dir=.
  1060. if test -f $ac_dir/$ac_word; then
  1061. ac_cv_prog_CC="gcc"
  1062. break
  1063. fi
  1064. done
  1065. IFS="$ac_save_ifs"
  1066. fi
  1067. fi
  1068. CC="$ac_cv_prog_CC"
  1069. if test -n "$CC"; then
  1070. echo "$ac_t""$CC" 1>&6
  1071. else
  1072. echo "$ac_t""no" 1>&6
  1073. fi
  1074. if test -z "$CC"; then
  1075. # Extract the first word of "cc", so it can be a program name with args.
  1076. set dummy cc; ac_word=$2
  1077. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1078. echo "configure:1198: checking for $ac_word" >&5
  1079. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1080. echo $ac_n "(cached) $ac_c" 1>&6
  1081. else
  1082. if test -n "$CC"; then
  1083. ac_cv_prog_CC="$CC" # Let the user override the test.
  1084. else
  1085. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1086. ac_prog_rejected=no
  1087. ac_dummy="$PATH"
  1088. for ac_dir in $ac_dummy; do
  1089. test -z "$ac_dir" && ac_dir=.
  1090. if test -f $ac_dir/$ac_word; then
  1091. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1092. ac_prog_rejected=yes
  1093. continue
  1094. fi
  1095. ac_cv_prog_CC="cc"
  1096. break
  1097. fi
  1098. done
  1099. IFS="$ac_save_ifs"
  1100. if test $ac_prog_rejected = yes; then
  1101. # We found a bogon in the path, so make sure we never use it.
  1102. set dummy $ac_cv_prog_CC
  1103. shift
  1104. if test $# -gt 0; then
  1105. # We chose a different compiler from the bogus one.
  1106. # However, it has the same basename, so the bogon will be chosen
  1107. # first if we set CC to just the basename; use the full file name.
  1108. shift
  1109. set dummy "$ac_dir/$ac_word" "$@"
  1110. shift
  1111. ac_cv_prog_CC="$@"
  1112. fi
  1113. fi
  1114. fi
  1115. fi
  1116. CC="$ac_cv_prog_CC"
  1117. if test -n "$CC"; then
  1118. echo "$ac_t""$CC" 1>&6
  1119. else
  1120. echo "$ac_t""no" 1>&6
  1121. fi
  1122. if test -z "$CC"; then
  1123. case "`uname -s`" in
  1124. *win32* | *WIN32*)
  1125. # Extract the first word of "cl", so it can be a program name with args.
  1126. set dummy cl; ac_word=$2
  1127. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1128. echo "configure:1249: checking for $ac_word" >&5
  1129. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1130. echo $ac_n "(cached) $ac_c" 1>&6
  1131. else
  1132. if test -n "$CC"; then
  1133. ac_cv_prog_CC="$CC" # Let the user override the test.
  1134. else
  1135. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1136. ac_dummy="$PATH"
  1137. for ac_dir in $ac_dummy; do
  1138. test -z "$ac_dir" && ac_dir=.
  1139. if test -f $ac_dir/$ac_word; then
  1140. ac_cv_prog_CC="cl"
  1141. break
  1142. fi
  1143. done
  1144. IFS="$ac_save_ifs"
  1145. fi
  1146. fi
  1147. CC="$ac_cv_prog_CC"
  1148. if test -n "$CC"; then
  1149. echo "$ac_t""$CC" 1>&6
  1150. else
  1151. echo "$ac_t""no" 1>&6
  1152. fi
  1153. ;;
  1154. esac
  1155. fi
  1156. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; echo "configure: error: no acceptable cc found in \$PATH" 1>&5; exit 1; }
  1157. fi
  1158. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1159. echo "configure:1281: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1160. ac_ext=c
  1161. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1164. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1165. cross_compiling=$ac_cv_prog_cc_cross
  1166. cat > conftest.$ac_ext << EOF
  1167. #line 1292 "configure"
  1168. #include "confdefs.h"
  1169. main(){return(0);}
  1170. EOF
  1171. if { (eval echo configure:1297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1172. ac_cv_prog_cc_works=yes
  1173. # If we can't run a trivial program, we are probably using a cross compiler.
  1174. if (./conftest; exit) 2>/dev/null; then
  1175. ac_cv_prog_cc_cross=no
  1176. else
  1177. ac_cv_prog_cc_cross=yes
  1178. fi
  1179. else
  1180. echo "configure: failed program was:" >&5
  1181. cat conftest.$ac_ext >&5
  1182. ac_cv_prog_cc_works=no
  1183. fi
  1184. rm -fr conftest*
  1185. ac_ext=c
  1186. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1187. ac_cpp='$CPP $CPPFLAGS'
  1188. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1189. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1190. cross_compiling=$ac_cv_prog_cc_cross
  1191. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1192. if test $ac_cv_prog_cc_works = no; then
  1193. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&5; exit 1; }
  1194. fi
  1195. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1196. echo "configure:1323: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1197. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1198. cross_compiling=$ac_cv_prog_cc_cross
  1199. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1200. echo "configure:1328: checking whether we are using GNU C" >&5
  1201. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1202. echo $ac_n "(cached) $ac_c" 1>&6
  1203. else
  1204. cat > conftest.c <<EOF
  1205. #ifdef __GNUC__
  1206. yes;
  1207. #endif
  1208. EOF
  1209. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1210. ac_cv_prog_gcc=yes
  1211. else
  1212. ac_cv_prog_gcc=no
  1213. fi
  1214. fi
  1215. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1216. if test $ac_cv_prog_gcc = yes; then
  1217. GCC=yes
  1218. else
  1219. GCC=
  1220. fi
  1221. ac_test_CFLAGS="${CFLAGS+set}"
  1222. ac_save_CFLAGS="$CFLAGS"
  1223. CFLAGS=
  1224. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1225. echo "configure:1356: checking whether ${CC-cc} accepts -g" >&5
  1226. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1227. echo $ac_n "(cached) $ac_c" 1>&6
  1228. else
  1229. echo 'void f(){}' > conftest.c
  1230. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1231. ac_cv_prog_cc_g=yes
  1232. else
  1233. ac_cv_prog_cc_g=no
  1234. fi
  1235. rm -f conftest*
  1236. fi
  1237. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1238. if test "$ac_test_CFLAGS" = set; then
  1239. CFLAGS="$ac_save_CFLAGS"
  1240. elif test $ac_cv_prog_cc_g = yes; then
  1241. if test "$GCC" = yes; then
  1242. CFLAGS="-g -O2"
  1243. else
  1244. CFLAGS="-g"
  1245. fi
  1246. else
  1247. if test "$GCC" = yes; then
  1248. CFLAGS="-O2"
  1249. else
  1250. CFLAGS=
  1251. fi
  1252. fi
  1253. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  1254. do
  1255. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1256. set dummy $ac_prog; ac_word=$2
  1257. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1258. echo "configure:1392: checking for $ac_word" >&5
  1259. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1260. echo $ac_n "(cached) $ac_c" 1>&6
  1261. else
  1262. if test -n "$CXX"; then
  1263. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1264. else
  1265. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1266. ac_dummy="$PATH"
  1267. for ac_dir in $ac_dummy; do
  1268. test -z "$ac_dir" && ac_dir=.
  1269. if test -f $ac_dir/$ac_word; then
  1270. ac_cv_prog_CXX="$ac_prog"
  1271. break
  1272. fi
  1273. done
  1274. IFS="$ac_save_ifs"
  1275. fi
  1276. fi
  1277. CXX="$ac_cv_prog_CXX"
  1278. if test -n "$CXX"; then
  1279. echo "$ac_t""$CXX" 1>&6
  1280. else
  1281. echo "$ac_t""no" 1>&6
  1282. fi
  1283. test -n "$CXX" && break
  1284. done
  1285. test -n "$CXX" || CXX="gcc"
  1286. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1287. echo "configure:1424: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1288. ac_ext=C
  1289. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1290. ac_cpp='$CXXCPP $CPPFLAGS'
  1291. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1292. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1293. cross_compiling=$ac_cv_prog_cxx_cross
  1294. cat > conftest.$ac_ext << EOF
  1295. #line 1435 "configure"
  1296. #include "confdefs.h"
  1297. int main(){return(0);}
  1298. EOF
  1299. if { (eval echo configure:1440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1300. ac_cv_prog_cxx_works=yes
  1301. # If we can't run a trivial program, we are probably using a cross compiler.
  1302. if (./conftest; exit) 2>/dev/null; then
  1303. ac_cv_prog_cxx_cross=no
  1304. else
  1305. ac_cv_prog_cxx_cross=yes
  1306. fi
  1307. else
  1308. echo "configure: failed program was:" >&5
  1309. cat conftest.$ac_ext >&5
  1310. ac_cv_prog_cxx_works=no
  1311. fi
  1312. rm -fr conftest*
  1313. ac_ext=c
  1314. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1315. ac_cpp='$CPP $CPPFLAGS'
  1316. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1317. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1318. cross_compiling=$ac_cv_prog_cc_cross
  1319. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1320. if test $ac_cv_prog_cxx_works = no; then
  1321. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&5; exit 1; }
  1322. fi
  1323. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1324. echo "configure:1466: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1325. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1326. cross_compiling=$ac_cv_prog_cxx_cross
  1327. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1328. echo "configure:1471: checking whether we are using GNU C++" >&5
  1329. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1330. echo $ac_n "(cached) $ac_c" 1>&6
  1331. else
  1332. cat > conftest.C <<EOF
  1333. #ifdef __GNUC__
  1334. yes;
  1335. #endif
  1336. EOF
  1337. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1338. ac_cv_prog_gxx=yes
  1339. else
  1340. ac_cv_prog_gxx=no
  1341. fi
  1342. fi
  1343. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1344. if test $ac_cv_prog_gxx = yes; then
  1345. GXX=yes
  1346. else
  1347. GXX=
  1348. fi
  1349. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1350. ac_save_CXXFLAGS="$CXXFLAGS"
  1351. CXXFLAGS=
  1352. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1353. echo "configure:1499: checking whether ${CXX-g++} accepts -g" >&5
  1354. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1355. echo $ac_n "(cached) $ac_c" 1>&6
  1356. else
  1357. echo 'void f(){}' > conftest.cc
  1358. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1359. ac_cv_prog_cxx_g=yes
  1360. else
  1361. ac_cv_prog_cxx_g=no
  1362. fi
  1363. rm -f conftest*
  1364. fi
  1365. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  1366. if test "$ac_test_CXXFLAGS" = set; then
  1367. CXXFLAGS="$ac_save_CXXFLAGS"
  1368. elif test $ac_cv_prog_cxx_g = yes; then
  1369. if test "$GXX" = yes; then
  1370. CXXFLAGS="-g -O2"
  1371. else
  1372. CXXFLAGS="-g"
  1373. fi
  1374. else
  1375. if test "$GXX" = yes; then
  1376. CXXFLAGS="-O2"
  1377. else
  1378. CXXFLAGS=
  1379. fi
  1380. fi
  1381. for ac_prog in "${TOOLCHAIN_PREFIX}ranlib"
  1382. do
  1383. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1384. set dummy $ac_prog; ac_word=$2
  1385. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1386. echo "configure:1536: checking for $ac_word" >&5
  1387. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1388. echo $ac_n "(cached) $ac_c" 1>&6
  1389. else
  1390. if test -n "$RANLIB"; then
  1391. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1392. else
  1393. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1394. ac_dummy="$PATH"
  1395. for ac_dir in $ac_dummy; do
  1396. test -z "$ac_dir" && ac_dir=.
  1397. if test -f $ac_dir/$ac_word; then
  1398. ac_cv_prog_RANLIB="$ac_prog"
  1399. break
  1400. fi
  1401. done
  1402. IFS="$ac_save_ifs"
  1403. fi
  1404. fi
  1405. RANLIB="$ac_cv_prog_RANLIB"
  1406. if test -n "$RANLIB"; then
  1407. echo "$ac_t""$RANLIB" 1>&6
  1408. else
  1409. echo "$ac_t""no" 1>&6
  1410. fi
  1411. test -n "$RANLIB" && break
  1412. done
  1413. test -n "$RANLIB" || RANLIB=":"
  1414. for ac_prog in "${TOOLCHAIN_PREFIX}ar"
  1415. do
  1416. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1417. set dummy $ac_prog; ac_word=$2
  1418. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1419. echo "configure:1571: checking for $ac_word" >&5
  1420. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1421. echo $ac_n "(cached) $ac_c" 1>&6
  1422. else
  1423. if test -n "$AR"; then
  1424. ac_cv_prog_AR="$AR" # Let the user override the test.
  1425. else
  1426. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1427. ac_dummy="$PATH"
  1428. for ac_dir in $ac_dummy; do
  1429. test -z "$ac_dir" && ac_dir=.
  1430. if test -f $ac_dir/$ac_word; then
  1431. ac_cv_prog_AR="$ac_prog"
  1432. break
  1433. fi
  1434. done
  1435. IFS="$ac_save_ifs"
  1436. fi
  1437. fi
  1438. AR="$ac_cv_prog_AR"
  1439. if test -n "$AR"; then
  1440. echo "$ac_t""$AR" 1>&6
  1441. else
  1442. echo "$ac_t""no" 1>&6
  1443. fi
  1444. test -n "$AR" && break
  1445. done
  1446. test -n "$AR" || AR=":"
  1447. for ac_prog in "${TOOLCHAIN_PREFIX}as"
  1448. do
  1449. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1450. set dummy $ac_prog; ac_word=$2
  1451. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1452. echo "configure:1606: checking for $ac_word" >&5
  1453. if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
  1454. echo $ac_n "(cached) $ac_c" 1>&6
  1455. else
  1456. if test -n "$AS"; then
  1457. ac_cv_prog_AS="$AS" # Let the user override the test.
  1458. else
  1459. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1460. ac_dummy="$PATH"
  1461. for ac_dir in $ac_dummy; do
  1462. test -z "$ac_dir" && ac_dir=.
  1463. if test -f $ac_dir/$ac_word; then
  1464. ac_cv_prog_AS="$ac_prog"
  1465. break
  1466. fi
  1467. done
  1468. IFS="$ac_save_ifs"
  1469. fi
  1470. fi
  1471. AS="$ac_cv_prog_AS"
  1472. if test -n "$AS"; then
  1473. echo "$ac_t""$AS" 1>&6
  1474. else
  1475. echo "$ac_t""no" 1>&6
  1476. fi
  1477. test -n "$AS" && break
  1478. done
  1479. test -n "$AS" || AS=":"
  1480. for ac_prog in "${TOOLCHAIN_PREFIX}ld"
  1481. do
  1482. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1483. set dummy $ac_prog; ac_word=$2
  1484. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1485. echo "configure:1641: checking for $ac_word" >&5
  1486. if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  1487. echo $ac_n "(cached) $ac_c" 1>&6
  1488. else
  1489. if test -n "$LD"; then
  1490. ac_cv_prog_LD="$LD" # Let the user override the test.
  1491. else
  1492. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1493. ac_dummy="$PATH"
  1494. for ac_dir in $ac_dummy; do
  1495. test -z "$ac_dir" && ac_dir=.
  1496. if test -f $ac_dir/$ac_word; then
  1497. ac_cv_prog_LD="$ac_prog"
  1498. break
  1499. fi
  1500. done
  1501. IFS="$ac_save_ifs"
  1502. fi
  1503. fi
  1504. LD="$ac_cv_prog_LD"
  1505. if test -n "$LD"; then
  1506. echo "$ac_t""$LD" 1>&6
  1507. else
  1508. echo "$ac_t""no" 1>&6
  1509. fi
  1510. test -n "$LD" && break
  1511. done
  1512. test -n "$LD" || LD=":"
  1513. for ac_prog in "${TOOLCHAIN_PREFIX}lipo"
  1514. do
  1515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1516. set dummy $ac_prog; ac_word=$2
  1517. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1518. echo "configure:1676: checking for $ac_word" >&5
  1519. if eval "test \"`echo '$''{'ac_cv_prog_LIPO'+set}'`\" = set"; then
  1520. echo $ac_n "(cached) $ac_c" 1>&6
  1521. else
  1522. if test -n "$LIPO"; then
  1523. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  1524. else
  1525. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1526. ac_dummy="$PATH"
  1527. for ac_dir in $ac_dummy; do
  1528. test -z "$ac_dir" && ac_dir=.
  1529. if test -f $ac_dir/$ac_word; then
  1530. ac_cv_prog_LIPO="$ac_prog"
  1531. break
  1532. fi
  1533. done
  1534. IFS="$ac_save_ifs"
  1535. fi
  1536. fi
  1537. LIPO="$ac_cv_prog_LIPO"
  1538. if test -n "$LIPO"; then
  1539. echo "$ac_t""$LIPO" 1>&6
  1540. else
  1541. echo "$ac_t""no" 1>&6
  1542. fi
  1543. test -n "$LIPO" && break
  1544. done
  1545. test -n "$LIPO" || LIPO=":"
  1546. for ac_prog in "${TOOLCHAIN_PREFIX}strip"
  1547. do
  1548. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1549. set dummy $ac_prog; ac_word=$2
  1550. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1551. echo "configure:1711: checking for $ac_word" >&5
  1552. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  1553. echo $ac_n "(cached) $ac_c" 1>&6
  1554. else
  1555. if test -n "$STRIP"; then
  1556. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1557. else
  1558. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1559. ac_dummy="$PATH"
  1560. for ac_dir in $ac_dummy; do
  1561. test -z "$ac_dir" && ac_dir=.
  1562. if test -f $ac_dir/$ac_word; then
  1563. ac_cv_prog_STRIP="$ac_prog"
  1564. break
  1565. fi
  1566. done
  1567. IFS="$ac_save_ifs"
  1568. fi
  1569. fi
  1570. STRIP="$ac_cv_prog_STRIP"
  1571. if test -n "$STRIP"; then
  1572. echo "$ac_t""$STRIP" 1>&6
  1573. else
  1574. echo "$ac_t""no" 1>&6
  1575. fi
  1576. test -n "$STRIP" && break
  1577. done
  1578. test -n "$STRIP" || STRIP=":"
  1579. for ac_prog in "${TOOLCHAIN_PREFIX}windres"
  1580. do
  1581. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1582. set dummy $ac_prog; ac_word=$2
  1583. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1584. echo "configure:1746: checking for $ac_word" >&5
  1585. if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  1586. echo $ac_n "(cached) $ac_c" 1>&6
  1587. else
  1588. if test -n "$WINDRES"; then
  1589. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  1590. else
  1591. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1592. ac_dummy="$PATH"
  1593. for ac_dir in $ac_dummy; do
  1594. test -z "$ac_dir" && ac_dir=.
  1595. if test -f $ac_dir/$ac_word; then
  1596. ac_cv_prog_WINDRES="$ac_prog"
  1597. break
  1598. fi
  1599. done
  1600. IFS="$ac_save_ifs"
  1601. fi
  1602. fi
  1603. WINDRES="$ac_cv_prog_WINDRES"
  1604. if test -n "$WINDRES"; then
  1605. echo "$ac_t""$WINDRES" 1>&6
  1606. else
  1607. echo "$ac_t""no" 1>&6
  1608. fi
  1609. test -n "$WINDRES" && break
  1610. done
  1611. test -n "$WINDRES" || WINDRES=":"
  1612. for ac_prog in "${TOOLCHAIN_PREFIX}otool"
  1613. do
  1614. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1615. set dummy $ac_prog; ac_word=$2
  1616. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1617. echo "configure:1781: checking for $ac_word" >&5
  1618. if eval "test \"`echo '$''{'ac_cv_prog_OTOOL'+set}'`\" = set"; then
  1619. echo $ac_n "(cached) $ac_c" 1>&6
  1620. else
  1621. if test -n "$OTOOL"; then
  1622. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  1623. else
  1624. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1625. ac_dummy="$PATH"
  1626. for ac_dir in $ac_dummy; do
  1627. test -z "$ac_dir" && ac_dir=.
  1628. if test -f $ac_dir/$ac_word; then
  1629. ac_cv_prog_OTOOL="$ac_prog"
  1630. break
  1631. fi
  1632. done
  1633. IFS="$ac_save_ifs"
  1634. fi
  1635. fi
  1636. OTOOL="$ac_cv_prog_OTOOL"
  1637. if test -n "$OTOOL"; then
  1638. echo "$ac_t""$OTOOL" 1>&6
  1639. else
  1640. echo "$ac_t""no" 1>&6
  1641. fi
  1642. test -n "$OTOOL" && break
  1643. done
  1644. test -n "$OTOOL" || OTOOL=":"
  1645. for ac_prog in "${TOOLCHAIN_PREFIX}objcopy"
  1646. do
  1647. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1648. set dummy $ac_prog; ac_word=$2
  1649. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1650. echo "configure:1816: checking for $ac_word" >&5
  1651. if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
  1652. echo $ac_n "(cached) $ac_c" 1>&6
  1653. else
  1654. if test -n "$OBJCOPY"; then
  1655. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  1656. else
  1657. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1658. ac_dummy="$PATH"
  1659. for ac_dir in $ac_dummy; do
  1660. test -z "$ac_dir" && ac_dir=.
  1661. if test -f $ac_dir/$ac_word; then
  1662. ac_cv_prog_OBJCOPY="$ac_prog"
  1663. break
  1664. fi
  1665. done
  1666. IFS="$ac_save_ifs"
  1667. fi
  1668. fi
  1669. OBJCOPY="$ac_cv_prog_OBJCOPY"
  1670. if test -n "$OBJCOPY"; then
  1671. echo "$ac_t""$OBJCOPY" 1>&6
  1672. else
  1673. echo "$ac_t""no" 1>&6
  1674. fi
  1675. test -n "$OBJCOPY" && break
  1676. done
  1677. test -n "$OBJCOPY" || OBJCOPY=":"
  1678. PATH=$_SAVE_PATH
  1679. else
  1680. # Extract the first word of "gcc", so it can be a program name with args.
  1681. set dummy gcc; ac_word=$2
  1682. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1683. echo "configure:1852: checking for $ac_word" >&5
  1684. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1685. echo $ac_n "(cached) $ac_c" 1>&6
  1686. else
  1687. if test -n "$CC"; then
  1688. ac_cv_prog_CC="$CC" # Let the user override the test.
  1689. else
  1690. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1691. ac_dummy="$PATH"
  1692. for ac_dir in $ac_dummy; do
  1693. test -z "$ac_dir" && ac_dir=.
  1694. if test -f $ac_dir/$ac_word; then
  1695. ac_cv_prog_CC="gcc"
  1696. break
  1697. fi
  1698. done
  1699. IFS="$ac_save_ifs"
  1700. fi
  1701. fi
  1702. CC="$ac_cv_prog_CC"
  1703. if test -n "$CC"; then
  1704. echo "$ac_t""$CC" 1>&6
  1705. else
  1706. echo "$ac_t""no" 1>&6
  1707. fi
  1708. if test -z "$CC"; then
  1709. # Extract the first word of "cc", so it can be a program name with args.
  1710. set dummy cc; ac_word=$2
  1711. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1712. echo "configure:1882: checking for $ac_word" >&5
  1713. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1714. echo $ac_n "(cached) $ac_c" 1>&6
  1715. else
  1716. if test -n "$CC"; then
  1717. ac_cv_prog_CC="$CC" # Let the user override the test.
  1718. else
  1719. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1720. ac_prog_rejected=no
  1721. ac_dummy="$PATH"
  1722. for ac_dir in $ac_dummy; do
  1723. test -z "$ac_dir" && ac_dir=.
  1724. if test -f $ac_dir/$ac_word; then
  1725. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  1726. ac_prog_rejected=yes
  1727. continue
  1728. fi
  1729. ac_cv_prog_CC="cc"
  1730. break
  1731. fi
  1732. done
  1733. IFS="$ac_save_ifs"
  1734. if test $ac_prog_rejected = yes; then
  1735. # We found a bogon in the path, so make sure we never use it.
  1736. set dummy $ac_cv_prog_CC
  1737. shift
  1738. if test $# -gt 0; then
  1739. # We chose a different compiler from the bogus one.
  1740. # However, it has the same basename, so the bogon will be chosen
  1741. # first if we set CC to just the basename; use the full file name.
  1742. shift
  1743. set dummy "$ac_dir/$ac_word" "$@"
  1744. shift
  1745. ac_cv_prog_CC="$@"
  1746. fi
  1747. fi
  1748. fi
  1749. fi
  1750. CC="$ac_cv_prog_CC"
  1751. if test -n "$CC"; then
  1752. echo "$ac_t""$CC" 1>&6
  1753. else
  1754. echo "$ac_t""no" 1>&6
  1755. fi
  1756. if test -z "$CC"; then
  1757. case "`uname -s`" in
  1758. *win32* | *WIN32*)
  1759. # Extract the first word of "cl", so it can be a program name with args.
  1760. set dummy cl; ac_word=$2
  1761. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1762. echo "configure:1933: checking for $ac_word" >&5
  1763. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  1764. echo $ac_n "(cached) $ac_c" 1>&6
  1765. else
  1766. if test -n "$CC"; then
  1767. ac_cv_prog_CC="$CC" # Let the user override the test.
  1768. else
  1769. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1770. ac_dummy="$PATH"
  1771. for ac_dir in $ac_dummy; do
  1772. test -z "$ac_dir" && ac_dir=.
  1773. if test -f $ac_dir/$ac_word; then
  1774. ac_cv_prog_CC="cl"
  1775. break
  1776. fi
  1777. done
  1778. IFS="$ac_save_ifs"
  1779. fi
  1780. fi
  1781. CC="$ac_cv_prog_CC"
  1782. if test -n "$CC"; then
  1783. echo "$ac_t""$CC" 1>&6
  1784. else
  1785. echo "$ac_t""no" 1>&6
  1786. fi
  1787. ;;
  1788. esac
  1789. fi
  1790. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; echo "configure: error: no acceptable cc found in \$PATH" 1>&5; exit 1; }
  1791. fi
  1792. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1793. echo "configure:1965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  1794. ac_ext=c
  1795. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1796. ac_cpp='$CPP $CPPFLAGS'
  1797. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1798. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1799. cross_compiling=$ac_cv_prog_cc_cross
  1800. cat > conftest.$ac_ext << EOF
  1801. #line 1976 "configure"
  1802. #include "confdefs.h"
  1803. main(){return(0);}
  1804. EOF
  1805. if { (eval echo configure:1981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1806. ac_cv_prog_cc_works=yes
  1807. # If we can't run a trivial program, we are probably using a cross compiler.
  1808. if (./conftest; exit) 2>/dev/null; then
  1809. ac_cv_prog_cc_cross=no
  1810. else
  1811. ac_cv_prog_cc_cross=yes
  1812. fi
  1813. else
  1814. echo "configure: failed program was:" >&5
  1815. cat conftest.$ac_ext >&5
  1816. ac_cv_prog_cc_works=no
  1817. fi
  1818. rm -fr conftest*
  1819. ac_ext=c
  1820. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1821. ac_cpp='$CPP $CPPFLAGS'
  1822. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1823. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1824. cross_compiling=$ac_cv_prog_cc_cross
  1825. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  1826. if test $ac_cv_prog_cc_works = no; then
  1827. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&5; exit 1; }
  1828. fi
  1829. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1830. echo "configure:2007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  1831. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  1832. cross_compiling=$ac_cv_prog_cc_cross
  1833. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  1834. echo "configure:2012: checking whether we are using GNU C" >&5
  1835. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  1836. echo $ac_n "(cached) $ac_c" 1>&6
  1837. else
  1838. cat > conftest.c <<EOF
  1839. #ifdef __GNUC__
  1840. yes;
  1841. #endif
  1842. EOF
  1843. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1844. ac_cv_prog_gcc=yes
  1845. else
  1846. ac_cv_prog_gcc=no
  1847. fi
  1848. fi
  1849. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  1850. if test $ac_cv_prog_gcc = yes; then
  1851. GCC=yes
  1852. else
  1853. GCC=
  1854. fi
  1855. ac_test_CFLAGS="${CFLAGS+set}"
  1856. ac_save_CFLAGS="$CFLAGS"
  1857. CFLAGS=
  1858. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  1859. echo "configure:2040: checking whether ${CC-cc} accepts -g" >&5
  1860. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  1861. echo $ac_n "(cached) $ac_c" 1>&6
  1862. else
  1863. echo 'void f(){}' > conftest.c
  1864. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  1865. ac_cv_prog_cc_g=yes
  1866. else
  1867. ac_cv_prog_cc_g=no
  1868. fi
  1869. rm -f conftest*
  1870. fi
  1871. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  1872. if test "$ac_test_CFLAGS" = set; then
  1873. CFLAGS="$ac_save_CFLAGS"
  1874. elif test $ac_cv_prog_cc_g = yes; then
  1875. if test "$GCC" = yes; then
  1876. CFLAGS="-g -O2"
  1877. else
  1878. CFLAGS="-g"
  1879. fi
  1880. else
  1881. if test "$GCC" = yes; then
  1882. CFLAGS="-O2"
  1883. else
  1884. CFLAGS=
  1885. fi
  1886. fi
  1887. case "$target" in
  1888. *-mingw*)
  1889. # Work around the conftest.exe access problem on Windows
  1890. sleep 2
  1891. esac
  1892. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  1893. do
  1894. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1895. set dummy $ac_prog; ac_word=$2
  1896. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1897. echo "configure:2081: checking for $ac_word" >&5
  1898. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  1899. echo $ac_n "(cached) $ac_c" 1>&6
  1900. else
  1901. if test -n "$CXX"; then
  1902. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1903. else
  1904. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1905. ac_dummy="$PATH"
  1906. for ac_dir in $ac_dummy; do
  1907. test -z "$ac_dir" && ac_dir=.
  1908. if test -f $ac_dir/$ac_word; then
  1909. ac_cv_prog_CXX="$ac_prog"
  1910. break
  1911. fi
  1912. done
  1913. IFS="$ac_save_ifs"
  1914. fi
  1915. fi
  1916. CXX="$ac_cv_prog_CXX"
  1917. if test -n "$CXX"; then
  1918. echo "$ac_t""$CXX" 1>&6
  1919. else
  1920. echo "$ac_t""no" 1>&6
  1921. fi
  1922. test -n "$CXX" && break
  1923. done
  1924. test -n "$CXX" || CXX="gcc"
  1925. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  1926. echo "configure:2113: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  1927. ac_ext=C
  1928. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1929. ac_cpp='$CXXCPP $CPPFLAGS'
  1930. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1931. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1932. cross_compiling=$ac_cv_prog_cxx_cross
  1933. cat > conftest.$ac_ext << EOF
  1934. #line 2124 "configure"
  1935. #include "confdefs.h"
  1936. int main(){return(0);}
  1937. EOF
  1938. if { (eval echo configure:2129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1939. ac_cv_prog_cxx_works=yes
  1940. # If we can't run a trivial program, we are probably using a cross compiler.
  1941. if (./conftest; exit) 2>/dev/null; then
  1942. ac_cv_prog_cxx_cross=no
  1943. else
  1944. ac_cv_prog_cxx_cross=yes
  1945. fi
  1946. else
  1947. echo "configure: failed program was:" >&5
  1948. cat conftest.$ac_ext >&5
  1949. ac_cv_prog_cxx_works=no
  1950. fi
  1951. rm -fr conftest*
  1952. ac_ext=c
  1953. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1954. ac_cpp='$CPP $CPPFLAGS'
  1955. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1956. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1957. cross_compiling=$ac_cv_prog_cc_cross
  1958. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  1959. if test $ac_cv_prog_cxx_works = no; then
  1960. { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&5; exit 1; }
  1961. fi
  1962. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  1963. echo "configure:2155: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  1964. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  1965. cross_compiling=$ac_cv_prog_cxx_cross
  1966. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  1967. echo "configure:2160: checking whether we are using GNU C++" >&5
  1968. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  1969. echo $ac_n "(cached) $ac_c" 1>&6
  1970. else
  1971. cat > conftest.C <<EOF
  1972. #ifdef __GNUC__
  1973. yes;
  1974. #endif
  1975. EOF
  1976. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  1977. ac_cv_prog_gxx=yes
  1978. else
  1979. ac_cv_prog_gxx=no
  1980. fi
  1981. fi
  1982. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  1983. if test $ac_cv_prog_gxx = yes; then
  1984. GXX=yes
  1985. else
  1986. GXX=
  1987. fi
  1988. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  1989. ac_save_CXXFLAGS="$CXXFLAGS"
  1990. CXXFLAGS=
  1991. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  1992. echo "configure:2188: checking whether ${CXX-g++} accepts -g" >&5
  1993. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  1994. echo $ac_n "(cached) $ac_c" 1>&6
  1995. else
  1996. echo 'void f(){}' > conftest.cc
  1997. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  1998. ac_cv_prog_cxx_g=yes
  1999. else
  2000. ac_cv_prog_cxx_g=no
  2001. fi
  2002. rm -f conftest*
  2003. fi
  2004. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  2005. if test "$ac_test_CXXFLAGS" = set; then
  2006. CXXFLAGS="$ac_save_CXXFLAGS"
  2007. elif test $ac_cv_prog_cxx_g = yes; then
  2008. if test "$GXX" = yes; then
  2009. CXXFLAGS="-g -O2"
  2010. else
  2011. CXXFLAGS="-g"
  2012. fi
  2013. else
  2014. if test "$GXX" = yes; then
  2015. CXXFLAGS="-O2"
  2016. else
  2017. CXXFLAGS=
  2018. fi
  2019. fi
  2020. # Extract the first word of "ranlib", so it can be a program name with args.
  2021. set dummy ranlib; ac_word=$2
  2022. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2023. echo "configure:2222: checking for $ac_word" >&5
  2024. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  2025. echo $ac_n "(cached) $ac_c" 1>&6
  2026. else
  2027. if test -n "$RANLIB"; then
  2028. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  2029. else
  2030. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2031. ac_dummy="$PATH"
  2032. for ac_dir in $ac_dummy; do
  2033. test -z "$ac_dir" && ac_dir=.
  2034. if test -f $ac_dir/$ac_word; then
  2035. ac_cv_prog_RANLIB="ranlib"
  2036. break
  2037. fi
  2038. done
  2039. IFS="$ac_save_ifs"
  2040. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  2041. fi
  2042. fi
  2043. RANLIB="$ac_cv_prog_RANLIB"
  2044. if test -n "$RANLIB"; then
  2045. echo "$ac_t""$RANLIB" 1>&6
  2046. else
  2047. echo "$ac_t""no" 1>&6
  2048. fi
  2049. for ac_prog in $AS as
  2050. do
  2051. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2052. set dummy $ac_prog; ac_word=$2
  2053. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2054. echo "configure:2254: checking for $ac_word" >&5
  2055. if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then
  2056. echo $ac_n "(cached) $ac_c" 1>&6
  2057. else
  2058. case "$AS" in
  2059. /*)
  2060. ac_cv_path_AS="$AS" # Let the user override the test with a path.
  2061. ;;
  2062. ?:/*)
  2063. ac_cv_path_AS="$AS" # Let the user override the test with a dos path.
  2064. ;;
  2065. *)
  2066. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2067. ac_dummy="$PATH"
  2068. for ac_dir in $ac_dummy; do
  2069. test -z "$ac_dir" && ac_dir=.
  2070. if test -f $ac_dir/$ac_word; then
  2071. ac_cv_path_AS="$ac_dir/$ac_word"
  2072. break
  2073. fi
  2074. done
  2075. IFS="$ac_save_ifs"
  2076. ;;
  2077. esac
  2078. fi
  2079. AS="$ac_cv_path_AS"
  2080. if test -n "$AS"; then
  2081. echo "$ac_t""$AS" 1>&6
  2082. else
  2083. echo "$ac_t""no" 1>&6
  2084. fi
  2085. test -n "$AS" && break
  2086. done
  2087. test -n "$AS" || AS="$CC"
  2088. if test "$msyshost"; then
  2089. case "$AS" in
  2090. /*)
  2091. tmp_DIRNAME=`dirname "$AS"`
  2092. tmp_BASENAME=`basename "$AS"`
  2093. tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
  2094. AS="$tmp_PWD/$tmp_BASENAME"
  2095. if test -e "$AS.exe"; then
  2096. AS="$AS.exe"
  2097. fi
  2098. esac
  2099. fi
  2100. for ac_prog in ar
  2101. do
  2102. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2103. set dummy $ac_prog; ac_word=$2
  2104. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2105. echo "configure:2308: checking for $ac_word" >&5
  2106. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  2107. echo $ac_n "(cached) $ac_c" 1>&6
  2108. else
  2109. if test -n "$AR"; then
  2110. ac_cv_prog_AR="$AR" # Let the user override the test.
  2111. else
  2112. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2113. ac_dummy="$PATH"
  2114. for ac_dir in $ac_dummy; do
  2115. test -z "$ac_dir" && ac_dir=.
  2116. if test -f $ac_dir/$ac_word; then
  2117. ac_cv_prog_AR="$ac_prog"
  2118. break
  2119. fi
  2120. done
  2121. IFS="$ac_save_ifs"
  2122. fi
  2123. fi
  2124. AR="$ac_cv_prog_AR"
  2125. if test -n "$AR"; then
  2126. echo "$ac_t""$AR" 1>&6
  2127. else
  2128. echo "$ac_t""no" 1>&6
  2129. fi
  2130. test -n "$AR" && break
  2131. done
  2132. test -n "$AR" || AR=":"
  2133. for ac_prog in ld
  2134. do
  2135. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2136. set dummy $ac_prog; ac_word=$2
  2137. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2138. echo "configure:2343: checking for $ac_word" >&5
  2139. if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  2140. echo $ac_n "(cached) $ac_c" 1>&6
  2141. else
  2142. if test -n "$LD"; then
  2143. ac_cv_prog_LD="$LD" # Let the user override the test.
  2144. else
  2145. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2146. ac_dummy="$PATH"
  2147. for ac_dir in $ac_dummy; do
  2148. test -z "$ac_dir" && ac_dir=.
  2149. if test -f $ac_dir/$ac_word; then
  2150. ac_cv_prog_LD="$ac_prog"
  2151. break
  2152. fi
  2153. done
  2154. IFS="$ac_save_ifs"
  2155. fi
  2156. fi
  2157. LD="$ac_cv_prog_LD"
  2158. if test -n "$LD"; then
  2159. echo "$ac_t""$LD" 1>&6
  2160. else
  2161. echo "$ac_t""no" 1>&6
  2162. fi
  2163. test -n "$LD" && break
  2164. done
  2165. test -n "$LD" || LD=":"
  2166. for ac_prog in strip
  2167. do
  2168. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2169. set dummy $ac_prog; ac_word=$2
  2170. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2171. echo "configure:2378: checking for $ac_word" >&5
  2172. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  2173. echo $ac_n "(cached) $ac_c" 1>&6
  2174. else
  2175. if test -n "$STRIP"; then
  2176. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2177. else
  2178. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2179. ac_dummy="$PATH"
  2180. for ac_dir in $ac_dummy; do
  2181. test -z "$ac_dir" && ac_dir=.
  2182. if test -f $ac_dir/$ac_word; then
  2183. ac_cv_prog_STRIP="$ac_prog"
  2184. break
  2185. fi
  2186. done
  2187. IFS="$ac_save_ifs"
  2188. fi
  2189. fi
  2190. STRIP="$ac_cv_prog_STRIP"
  2191. if test -n "$STRIP"; then
  2192. echo "$ac_t""$STRIP" 1>&6
  2193. else
  2194. echo "$ac_t""no" 1>&6
  2195. fi
  2196. test -n "$STRIP" && break
  2197. done
  2198. test -n "$STRIP" || STRIP=":"
  2199. for ac_prog in windres
  2200. do
  2201. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2202. set dummy $ac_prog; ac_word=$2
  2203. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2204. echo "configure:2413: checking for $ac_word" >&5
  2205. if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
  2206. echo $ac_n "(cached) $ac_c" 1>&6
  2207. else
  2208. if test -n "$WINDRES"; then
  2209. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  2210. else
  2211. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2212. ac_dummy="$PATH"
  2213. for ac_dir in $ac_dummy; do
  2214. test -z "$ac_dir" && ac_dir=.
  2215. if test -f $ac_dir/$ac_word; then
  2216. ac_cv_prog_WINDRES="$ac_prog"
  2217. break
  2218. fi
  2219. done
  2220. IFS="$ac_save_ifs"
  2221. fi
  2222. fi
  2223. WINDRES="$ac_cv_prog_WINDRES"
  2224. if test -n "$WINDRES"; then
  2225. echo "$ac_t""$WINDRES" 1>&6
  2226. else
  2227. echo "$ac_t""no" 1>&6
  2228. fi
  2229. test -n "$WINDRES" && break
  2230. done
  2231. test -n "$WINDRES" || WINDRES=":"
  2232. for ac_prog in otool
  2233. do
  2234. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2235. set dummy $ac_prog; ac_word=$2
  2236. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2237. echo "configure:2448: checking for $ac_word" >&5
  2238. if eval "test \"`echo '$''{'ac_cv_prog_OTOOL'+set}'`\" = set"; then
  2239. echo $ac_n "(cached) $ac_c" 1>&6
  2240. else
  2241. if test -n "$OTOOL"; then
  2242. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  2243. else
  2244. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2245. ac_dummy="$PATH"
  2246. for ac_dir in $ac_dummy; do
  2247. test -z "$ac_dir" && ac_dir=.
  2248. if test -f $ac_dir/$ac_word; then
  2249. ac_cv_prog_OTOOL="$ac_prog"
  2250. break
  2251. fi
  2252. done
  2253. IFS="$ac_save_ifs"
  2254. fi
  2255. fi
  2256. OTOOL="$ac_cv_prog_OTOOL"
  2257. if test -n "$OTOOL"; then
  2258. echo "$ac_t""$OTOOL" 1>&6
  2259. else
  2260. echo "$ac_t""no" 1>&6
  2261. fi
  2262. test -n "$OTOOL" && break
  2263. done
  2264. test -n "$OTOOL" || OTOOL=":"
  2265. if test -z "$HOST_RANLIB"; then
  2266. HOST_RANLIB="$RANLIB"
  2267. fi
  2268. if test -z "$HOST_AR"; then
  2269. HOST_AR="$AR"
  2270. fi
  2271. if test -z "$HOST_AR_FLAGS"; then
  2272. HOST_AR_FLAGS="$AR_FLAGS"
  2273. fi
  2274. fi
  2275. if test -n "$MOZ_WINCONSOLE"; then
  2276. cat >> confdefs.pytmp <<\EOF
  2277. (''' MOZ_WINCONSOLE ''', ' 1 ')
  2278. EOF
  2279. cat >> confdefs.h <<\EOF
  2280. #define MOZ_WINCONSOLE 1
  2281. EOF
  2282. fi
  2283. GNU_AS=
  2284. GNU_LD=
  2285. GNU_CC=
  2286. GNU_CXX=
  2287. if test "$CC_TYPE" = "gcc"; then
  2288. GNU_CC=1
  2289. GNU_CXX=1
  2290. fi
  2291. if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU`" != "0"; then
  2292. GNU_AS=1
  2293. fi
  2294. rm -f conftest.out
  2295. if test "`echo | $LD -v 2>&1 | grep -c GNU`" != "0"; then
  2296. GNU_LD=1
  2297. fi
  2298. CLANG_CC=
  2299. CLANG_CXX=
  2300. CLANG_CL=
  2301. if test "$CC_TYPE" = "clang"; then
  2302. GNU_CC=1
  2303. GNU_CXX=1
  2304. CLANG_CC=1
  2305. CLANG_CXX=1
  2306. fi
  2307. if test "$CC_TYPE" = "clang-cl"; then
  2308. CLANG_CL=1
  2309. fi
  2310. if test "$GNU_CC"; then
  2311. if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then
  2312. GCC_USE_GNU_LD=1
  2313. fi
  2314. fi
  2315. WINVER=601
  2316. case "$target" in
  2317. *-mingw*)
  2318. if test "$GCC" != "yes"; then
  2319. # Check to see if we are really running in a msvc environemnt
  2320. _WIN32_MSVC=1
  2321. for ac_prog in midl
  2322. do
  2323. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2324. set dummy $ac_prog; ac_word=$2
  2325. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2326. echo "configure:2554: checking for $ac_word" >&5
  2327. if eval "test \"`echo '$''{'ac_cv_prog_MIDL'+set}'`\" = set"; then
  2328. echo $ac_n "(cached) $ac_c" 1>&6
  2329. else
  2330. if test -n "$MIDL"; then
  2331. ac_cv_prog_MIDL="$MIDL" # Let the user override the test.
  2332. else
  2333. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2334. ac_dummy="$PATH"
  2335. for ac_dir in $ac_dummy; do
  2336. test -z "$ac_dir" && ac_dir=.
  2337. if test -f $ac_dir/$ac_word; then
  2338. ac_cv_prog_MIDL="$ac_prog"
  2339. break
  2340. fi
  2341. done
  2342. IFS="$ac_save_ifs"
  2343. fi
  2344. fi
  2345. MIDL="$ac_cv_prog_MIDL"
  2346. if test -n "$MIDL"; then
  2347. echo "$ac_t""$MIDL" 1>&6
  2348. else
  2349. echo "$ac_t""no" 1>&6
  2350. fi
  2351. test -n "$MIDL" && break
  2352. done
  2353. # Make sure compilers are valid
  2354. CFLAGS="$CFLAGS -TC -nologo"
  2355. CXXFLAGS="$CXXFLAGS -TP -nologo"
  2356. ac_ext=c
  2357. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2358. ac_cpp='$CPP $CPPFLAGS'
  2359. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2360. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2361. cross_compiling=$ac_cv_prog_cc_cross
  2362. cat > conftest.$ac_ext <<EOF
  2363. #line 2596 "configure"
  2364. #include "confdefs.h"
  2365. #include <stdio.h>
  2366. int main() {
  2367. printf("Hello World\n");
  2368. ; return 0; }
  2369. EOF
  2370. if { (eval echo configure:2603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2371. :
  2372. else
  2373. echo "configure: failed program was:" >&5
  2374. cat conftest.$ac_ext >&5
  2375. rm -rf conftest*
  2376. { echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&2; echo "configure: error: \$(CC) test failed. You must have MS VC++ in your path to build." 1>&5; exit 1; }
  2377. fi
  2378. rm -f conftest*
  2379. ac_ext=C
  2380. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2381. ac_cpp='$CXXCPP $CPPFLAGS'
  2382. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2383. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2384. cross_compiling=$ac_cv_prog_cxx_cross
  2385. cat > conftest.$ac_ext <<EOF
  2386. #line 2621 "configure"
  2387. #include "confdefs.h"
  2388. #include <new.h>
  2389. int main() {
  2390. unsigned *test = new unsigned(42);
  2391. ; return 0; }
  2392. EOF
  2393. if { (eval echo configure:2628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2394. :
  2395. else
  2396. echo "configure: failed program was:" >&5
  2397. cat conftest.$ac_ext >&5
  2398. rm -rf conftest*
  2399. { echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&2; echo "configure: error: \$(CXX) test failed. You must have MS VC++ in your path to build." 1>&5; exit 1; }
  2400. fi
  2401. rm -f conftest*
  2402. ac_ext=c
  2403. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2404. ac_cpp='$CPP $CPPFLAGS'
  2405. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2406. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2407. cross_compiling=$ac_cv_prog_cc_cross
  2408. _MSVC_VER_FILTER='s|.*[^!-~]([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?).*|\1|p'
  2409. _MSC_VER=`echo ${CC_VERSION} | cut -c 1-2,4-5`
  2410. cat >> confdefs.pytmp <<\EOF
  2411. (''' _CRT_SECURE_NO_WARNINGS ''', ' 1 ')
  2412. EOF
  2413. cat >> confdefs.h <<\EOF
  2414. #define _CRT_SECURE_NO_WARNINGS 1
  2415. EOF
  2416. cat >> confdefs.pytmp <<\EOF
  2417. (''' _CRT_NONSTDC_NO_WARNINGS ''', ' 1 ')
  2418. EOF
  2419. cat >> confdefs.h <<\EOF
  2420. #define _CRT_NONSTDC_NO_WARNINGS 1
  2421. EOF
  2422. cat >> confdefs.pytmp <<\EOF
  2423. (''' _USE_MATH_DEFINES ''', ' 1 ')
  2424. EOF
  2425. cat >> confdefs.h <<\EOF
  2426. #define _USE_MATH_DEFINES 1
  2427. EOF
  2428. # Otherwise MSVC's math.h doesn't #define M_PI.
  2429. case "$CC_VERSION" in
  2430. 19*)
  2431. _CC_SUITE=14
  2432. MSVS_VERSION=2015
  2433. MSVC_C_RUNTIME_DLL=vcruntime140.dll
  2434. MSVC_CXX_RUNTIME_DLL=msvcp140.dll
  2435. ac_safe=`echo "dia2.h" | sed 'y%./+-%__p_%'`
  2436. echo $ac_n "checking for dia2.h""... $ac_c" 1>&6
  2437. echo "configure:2682: checking for dia2.h" >&5
  2438. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  2439. echo $ac_n "(cached) $ac_c" 1>&6
  2440. else
  2441. cat > conftest.$ac_ext <<EOF
  2442. #line 2687 "configure"
  2443. #include "confdefs.h"
  2444. #include <dia2.h>
  2445. int main() {
  2446. ; return 0; }
  2447. EOF
  2448. if { (eval echo configure:2695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2449. rm -rf conftest*
  2450. eval "ac_cv_header_$ac_safe=yes"
  2451. else
  2452. echo "configure: failed program was:" >&5
  2453. cat conftest.$ac_ext >&5
  2454. rm -rf conftest*
  2455. eval "ac_cv_header_$ac_safe=no"
  2456. fi
  2457. rm -f conftest*
  2458. fi
  2459. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  2460. echo "$ac_t""yes" 1>&6
  2461. MSVC_HAS_DIA_SDK=1
  2462. else
  2463. echo "$ac_t""no" 1>&6
  2464. fi
  2465. if test -n "$MSVC_HAS_DIA_SDK"; then
  2466. cat >> confdefs.pytmp <<\EOF
  2467. (''' MSVC_HAS_DIA_SDK ''', ' 1 ')
  2468. EOF
  2469. cat >> confdefs.h <<\EOF
  2470. #define MSVC_HAS_DIA_SDK 1
  2471. EOF
  2472. fi
  2473. # C5026: move constructor was implicitly defined as deleted
  2474. CXXFLAGS="$CXXFLAGS -wd5026"
  2475. # C5027: move assignment operator was implicitly defined as deleted
  2476. CXXFLAGS="$CXXFLAGS -wd5027"
  2477. # -Zc:sizedDealloc- disables C++14 global sized deallocation (see bug 1160146)
  2478. CXXFLAGS="$CXXFLAGS -Zc:sizedDealloc-"
  2479. # C4752: We explicitly use AVX instructions in only some libs, not global
  2480. # This is a pointless "helpful warning" to use /arch:AVX which we don't want.
  2481. CFLAGS="$CFLAGS -wd4752"
  2482. CXXFLAGS="$CXXFLAGS -wd4752"
  2483. # https://connect.microsoft.com/VisualStudio/feedback/details/888527/warnings-on-dbghelp-h
  2484. # for dbghelp.h, imagehlp.h, and shobj.h
  2485. # C4091: 'typedef ': ignored on left of '' when no variable is declared
  2486. CFLAGS="$CFLAGS -wd4091"
  2487. CXXFLAGS="$CXXFLAGS -wd4091"
  2488. # This is intended as a temporary hack to support building with VS2015.
  2489. # 'noexcept' used with no exception handling mode specified;
  2490. # termination on exception is not guaranteed. Specify /EHsc
  2491. CXXFLAGS="$CXXFLAGS -wd4577"
  2492. if test -n "$WIN_UCRT_REDIST_DIR"; then
  2493. if test ! -d "$WIN_UCRT_REDIST_DIR"; then
  2494. { echo "configure: error: Invalid Windows UCRT Redist directory: ${WIN_UCRT_REDIST_DIR}" 1>&2; echo "configure: error: Invalid Windows UCRT Redist directory: ${WIN_UCRT_REDIST_DIR}" 1>&5; exit 1; }
  2495. fi
  2496. WIN_UCRT_REDIST_DIR=`cd "$WIN_UCRT_REDIST_DIR" && pwd -W`
  2497. fi
  2498. ;;
  2499. esac
  2500. cat >> confdefs.pytmp <<\EOF
  2501. (''' HAVE_SEH_EXCEPTIONS ''', ' 1 ')
  2502. EOF
  2503. cat >> confdefs.h <<\EOF
  2504. #define HAVE_SEH_EXCEPTIONS 1
  2505. EOF
  2506. if test -n "$WIN32_REDIST_DIR"; then
  2507. if test ! -d "$WIN32_REDIST_DIR"; then
  2508. { echo "configure: error: Invalid Win32 Redist directory: ${WIN32_REDIST_DIR}" 1>&2; echo "configure: error: Invalid Win32 Redist directory: ${WIN32_REDIST_DIR}" 1>&5; exit 1; }
  2509. fi
  2510. WIN32_REDIST_DIR=`cd "$WIN32_REDIST_DIR" && pwd -W`
  2511. fi
  2512. # Check linker version
  2513. _LD_FULL_VERSION=`"${LD}" -v 2>&1 | sed -nre "$_MSVC_VER_FILTER"`
  2514. _LD_MAJOR_VERSION=`echo ${_LD_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
  2515. if test "$_LD_MAJOR_VERSION" != "$_CC_SUITE"; then
  2516. { echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&2; echo "configure: error: The linker major version, $_LD_FULL_VERSION, does not match the compiler suite version, $_CC_SUITE." 1>&5; exit 1; }
  2517. fi
  2518. INCREMENTAL_LINKER=1
  2519. # Set midl environment
  2520. case "$target" in
  2521. i*86-*)
  2522. MIDL_FLAGS="${MIDL_FLAGS} -env win32"
  2523. ;;
  2524. x86_64-*)
  2525. MIDL_FLAGS="${MIDL_FLAGS} -env x64"
  2526. ;;
  2527. esac
  2528. unset _MSVC_VER_FILTER
  2529. echo $ac_n "checking for overridable _RAISE""... $ac_c" 1>&6
  2530. echo "configure:2800: checking for overridable _RAISE" >&5
  2531. if eval "test \"`echo '$''{'ac_cv_have__RAISE'+set}'`\" = set"; then
  2532. echo $ac_n "(cached) $ac_c" 1>&6
  2533. else
  2534. ac_ext=C
  2535. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2536. ac_cpp='$CXXCPP $CPPFLAGS'
  2537. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2538. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2539. cross_compiling=$ac_cv_prog_cxx_cross
  2540. _SAVE_CXXFLAGS="$CXXFLAGS"
  2541. CXXFLAGS="${CXXFLAGS} -D_HAS_EXCEPTIONS=0"
  2542. cat > conftest.$ac_ext <<EOF
  2543. #line 2816 "configure"
  2544. #include "confdefs.h"
  2545. #include <xstddef>
  2546. #undef _RAISE
  2547. #define _RAISE(x) externallyDefinedFunction((x).what())
  2548. #include <vector>
  2549. int main() {
  2550. std::vector<int> v; return v.at(1);
  2551. ; return 0; }
  2552. EOF
  2553. if { (eval echo configure:2827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2554. rm -rf conftest*
  2555. ac_cv_have__RAISE="no"
  2556. else
  2557. echo "configure: failed program was:" >&5
  2558. cat conftest.$ac_ext >&5
  2559. rm -rf conftest*
  2560. ac_cv_have__RAISE="yes"
  2561. fi
  2562. rm -f conftest*
  2563. CXXFLAGS="$_SAVE_CXXFLAGS"
  2564. ac_ext=c
  2565. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2566. ac_cpp='$CPP $CPPFLAGS'
  2567. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2568. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2569. cross_compiling=$ac_cv_prog_cc_cross
  2570. fi
  2571. echo "$ac_t""$ac_cv_have__RAISE" 1>&6
  2572. if test "$ac_cv_have__RAISE" = "yes"; then
  2573. WRAP_STL_INCLUDES=1
  2574. MOZ_MSVC_STL_WRAP_RAISE=1
  2575. cat >> confdefs.pytmp <<\EOF
  2576. (''' MOZ_MSVC_STL_WRAP_RAISE ''', ' 1 ')
  2577. EOF
  2578. cat >> confdefs.h <<\EOF
  2579. #define MOZ_MSVC_STL_WRAP_RAISE 1
  2580. EOF
  2581. else
  2582. { echo "configure: error: Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration." 1>&2; echo "configure: error: Gecko exception wrapping doesn't understand your your MSVC/SDK. Please file a bug describing this error and your build configuration." 1>&5; exit 1; }
  2583. fi
  2584. if test "$WRAP_STL_INCLUDES" = "1"; then
  2585. STL_FLAGS="-I${DIST}/stl_wrappers"
  2586. fi
  2587. CFLAGS="$CFLAGS -D_HAS_EXCEPTIONS=0"
  2588. CXXFLAGS="$CXXFLAGS -D_HAS_EXCEPTIONS=0"
  2589. else
  2590. # Check w32api version
  2591. _W32API_MAJOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $1 }'`
  2592. _W32API_MINOR_VERSION=`echo $W32API_VERSION | $AWK -F\. '{ print $2 }'`
  2593. echo $ac_n "checking for w32api version >= $W32API_VERSION""... $ac_c" 1>&6
  2594. echo "configure:2873: checking for w32api version >= $W32API_VERSION" >&5
  2595. cat > conftest.$ac_ext <<EOF
  2596. #line 2875 "configure"
  2597. #include "confdefs.h"
  2598. #include <w32api.h>
  2599. int main() {
  2600. #if (__W32API_MAJOR_VERSION < $_W32API_MAJOR_VERSION) || \
  2601. (__W32API_MAJOR_VERSION == $_W32API_MAJOR_VERSION && \
  2602. __W32API_MINOR_VERSION < $_W32API_MINOR_VERSION)
  2603. #error "test failed."
  2604. #endif
  2605. ; return 0; }
  2606. EOF
  2607. if { (eval echo configure:2887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2608. rm -rf conftest*
  2609. res=yes
  2610. else
  2611. echo "configure: failed program was:" >&5
  2612. cat conftest.$ac_ext >&5
  2613. rm -rf conftest*
  2614. res=no
  2615. fi
  2616. rm -f conftest*
  2617. echo "$ac_t""$res" 1>&6
  2618. if test "$res" != "yes"; then
  2619. { echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&2; echo "configure: error: w32api version $W32API_VERSION or higher required." 1>&5; exit 1; }
  2620. fi
  2621. # Check windres version
  2622. echo $ac_n "checking for windres version >= $WINDRES_VERSION""... $ac_c" 1>&6
  2623. echo "configure:2903: checking for windres version >= $WINDRES_VERSION" >&5
  2624. _WINDRES_VERSION=`${WINDRES} --version 2>&1 | grep -i windres 2>/dev/null | $AWK '{ print $3 }'`
  2625. echo "$ac_t""$_WINDRES_VERSION" 1>&6
  2626. _WINDRES_MAJOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
  2627. _WINDRES_MINOR_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
  2628. _WINDRES_RELEASE_VERSION=`echo $_WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
  2629. WINDRES_MAJOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $1 }'`
  2630. WINDRES_MINOR_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $2 }'`
  2631. WINDRES_RELEASE_VERSION=`echo $WINDRES_VERSION | $AWK -F\. '{ print $3 }'`
  2632. if test "$_WINDRES_MAJOR_VERSION" -lt "$WINDRES_MAJOR_VERSION" -o \
  2633. "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
  2634. "$_WINDRES_MINOR_VERSION" -lt "$WINDRES_MINOR_VERSION" -o \
  2635. "$_WINDRES_MAJOR_VERSION" -eq "$WINDRES_MAJOR_VERSION" -a \
  2636. "$_WINDRES_MINOR_VERSION" -eq "$WINDRES_MINOR_VERSION" -a \
  2637. "$_WINDRES_RELEASE_VERSION" -lt "$WINDRES_RELEASE_VERSION"
  2638. then
  2639. { echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&2; echo "configure: error: windres version $WINDRES_VERSION or higher is required to build." 1>&5; exit 1; }
  2640. fi
  2641. for ac_prog in $target-widl widl
  2642. do
  2643. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2644. set dummy $ac_prog; ac_word=$2
  2645. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2646. echo "configure:2927: checking for $ac_word" >&5
  2647. if eval "test \"`echo '$''{'ac_cv_prog_MIDL'+set}'`\" = set"; then
  2648. echo $ac_n "(cached) $ac_c" 1>&6
  2649. else
  2650. if test -n "$MIDL"; then
  2651. ac_cv_prog_MIDL="$MIDL" # Let the user override the test.
  2652. else
  2653. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2654. ac_dummy="$PATH"
  2655. for ac_dir in $ac_dummy; do
  2656. test -z "$ac_dir" && ac_dir=.
  2657. if test -f $ac_dir/$ac_word; then
  2658. ac_cv_prog_MIDL="$ac_prog"
  2659. break
  2660. fi
  2661. done
  2662. IFS="$ac_save_ifs"
  2663. fi
  2664. fi
  2665. MIDL="$ac_cv_prog_MIDL"
  2666. if test -n "$MIDL"; then
  2667. echo "$ac_t""$MIDL" 1>&6
  2668. else
  2669. echo "$ac_t""no" 1>&6
  2670. fi
  2671. test -n "$MIDL" && break
  2672. done
  2673. if test -n "$MIDL"; then
  2674. case "$target" in
  2675. i*86-*)
  2676. MIDL_FLAGS="$MIDL_FLAGS --win32 -m32"
  2677. ;;
  2678. x86_64-*)
  2679. MIDL_FLAGS="$MIDL_FLAGS --win64 -m64"
  2680. ;;
  2681. esac
  2682. fi
  2683. # strsafe.h on mingw uses macros for function deprecation that pollutes namespace
  2684. # causing problems with local implementations with the same name.
  2685. cat >> confdefs.pytmp <<\EOF
  2686. (''' STRSAFE_NO_DEPRECATE ''', ' 1 ')
  2687. EOF
  2688. cat >> confdefs.h <<\EOF
  2689. #define STRSAFE_NO_DEPRECATE 1
  2690. EOF
  2691. fi # !GNU_CC
  2692. cat >> confdefs.pytmp <<EOF
  2693. (''' WINVER ''', r''' 0x$WINVER ''')
  2694. EOF
  2695. cat >> confdefs.h <<EOF
  2696. #define WINVER 0x$WINVER
  2697. EOF
  2698. cat >> confdefs.pytmp <<EOF
  2699. (''' _WIN32_WINNT ''', r''' 0x$WINVER ''')
  2700. EOF
  2701. cat >> confdefs.h <<EOF
  2702. #define _WIN32_WINNT 0x$WINVER
  2703. EOF
  2704. # Require OS features provided by IE 6.0 SP2 (XP SP2)
  2705. cat >> confdefs.pytmp <<EOF
  2706. (''' _WIN32_IE ''', r''' 0x0603 ''')
  2707. EOF
  2708. cat >> confdefs.h <<EOF
  2709. #define _WIN32_IE 0x0603
  2710. EOF
  2711. ;;
  2712. esac
  2713. if test -n "$_WIN32_MSVC"; then
  2714. SKIP_PATH_CHECKS=1
  2715. SKIP_COMPILER_CHECKS=1
  2716. SKIP_LIBRARY_CHECKS=1
  2717. # Since we're skipping compiler and library checks, hard-code
  2718. # some facts here.
  2719. cat >> confdefs.pytmp <<\EOF
  2720. (''' HAVE_IO_H ''', ' 1 ')
  2721. EOF
  2722. cat >> confdefs.h <<\EOF
  2723. #define HAVE_IO_H 1
  2724. EOF
  2725. cat >> confdefs.pytmp <<\EOF
  2726. (''' HAVE_ISATTY ''', ' 1 ')
  2727. EOF
  2728. cat >> confdefs.h <<\EOF
  2729. #define HAVE_ISATTY 1
  2730. EOF
  2731. fi
  2732. fi # COMPILE_ENVIRONMENT
  2733. if test "$COMPILE_ENVIRONMENT"; then
  2734. # Check whether --with-unify-dist or --without-unify-dist was given.
  2735. if test "${with_unify_dist+set}" = set; then
  2736. withval="$with_unify_dist"
  2737. UNIFY_DIST=$withval
  2738. fi
  2739. if test -n "$UNIVERSAL_BINARY"; then
  2740. if test -z "$UNIFY_DIST"; then
  2741. { echo "configure: error: You need to provide the --with-unify-dist=dir argument when performing a universal build" 1>&2; echo "configure: error: You need to provide the --with-unify-dist=dir argument when performing a universal build" 1>&5; exit 1; }
  2742. fi
  2743. case "$UNIFY_DIST" in
  2744. /*)
  2745. ;;
  2746. *)
  2747. UNIFY_DIST="${MOZ_BUILD_ROOT}/${UNIFY_DIST}"
  2748. ;;
  2749. esac
  2750. fi
  2751. MACOS_SDK_DIR=
  2752. # Check whether --with-macos-sdk or --without-macos-sdk was given.
  2753. if test "${with_macos_sdk+set}" = set; then
  2754. withval="$with_macos_sdk"
  2755. MACOS_SDK_DIR=$withval
  2756. fi
  2757. MACOS_PRIVATE_FRAMEWORKS_DIR_DEFAULTED=
  2758. # Check whether --with-macos-private-frameworks or --without-macos-private-frameworks was given.
  2759. if test "${with_macos_private_frameworks+set}" = set; then
  2760. withval="$with_macos_private_frameworks"
  2761. MACOS_PRIVATE_FRAMEWORKS_DIR=$withval
  2762. else
  2763. MACOS_PRIVATE_FRAMEWORKS_DIR=/System/Library/PrivateFrameworks
  2764. MACOS_PRIVATE_FRAMEWORKS_DEFAULTED=1
  2765. fi
  2766. if test -z "${MACOS_PRIVATE_FRAMEWORKS_DEFAULTED}"; then
  2767. if test -z "$CROSS_COMPILE"; then
  2768. echo "configure: warning: You should only be using --with-macos-private-frameworks when cross-compiling." 1>&2
  2769. fi
  2770. if test ! -d "$MACOS_PRIVATE_FRAMEWORKS_DIR"; then
  2771. { echo "configure: error: PrivateFrameworks directory not found." 1>&2; echo "configure: error: PrivateFrameworks directory not found." 1>&5; exit 1; }
  2772. fi
  2773. fi
  2774. if test "$MACOS_SDK_DIR"; then
  2775. if test ! -d "$MACOS_SDK_DIR"; then
  2776. { echo "configure: error: SDK not found. When using --with-macos-sdk, you must
  2777. specify a valid SDK. SDKs are installed when the optional cross-development
  2778. tools are selected during the Xcode/Developer Tools installation." 1>&2; echo "configure: error: SDK not found. When using --with-macos-sdk, you must
  2779. specify a valid SDK. SDKs are installed when the optional cross-development
  2780. tools are selected during the Xcode/Developer Tools installation." 1>&5; exit 1; }
  2781. fi
  2782. CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}"
  2783. CXXFLAGS="$CXXFLAGS -isysroot ${MACOS_SDK_DIR}"
  2784. CPP="$CPP -isysroot ${MACOS_SDK_DIR}"
  2785. CXXCPP="$CXXCPP -isysroot ${MACOS_SDK_DIR}"
  2786. echo $ac_n "checking for valid compiler/Mac OS X SDK combination""... $ac_c" 1>&6
  2787. echo "configure:3115: checking for valid compiler/Mac OS X SDK combination" >&5
  2788. ac_ext=C
  2789. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2790. ac_cpp='$CXXCPP $CPPFLAGS'
  2791. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2792. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2793. cross_compiling=$ac_cv_prog_cxx_cross
  2794. cat > conftest.$ac_ext <<EOF
  2795. #line 3124 "configure"
  2796. #include "confdefs.h"
  2797. #include <new>
  2798. int main() {
  2799. ; return 0; }
  2800. EOF
  2801. if { (eval echo configure:3131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  2802. rm -rf conftest*
  2803. result=yes
  2804. else
  2805. echo "configure: failed program was:" >&5
  2806. cat conftest.$ac_ext >&5
  2807. rm -rf conftest*
  2808. result=no
  2809. fi
  2810. rm -f conftest*
  2811. ac_ext=c
  2812. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2813. ac_cpp='$CPP $CPPFLAGS'
  2814. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2815. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2816. cross_compiling=$ac_cv_prog_cc_cross
  2817. echo "$ac_t""$result" 1>&6
  2818. if test "$result" = "no" ; then
  2819. { echo "configure: error: The selected compiler and Mac OS X SDK are incompatible." 1>&2; echo "configure: error: The selected compiler and Mac OS X SDK are incompatible." 1>&5; exit 1; }
  2820. fi
  2821. fi
  2822. # If we find X, set shell vars x_includes and x_libraries to the
  2823. # paths, otherwise set no_x=yes.
  2824. # Uses ac_ vars as temps to allow command line to override cache and checks.
  2825. # --without-x overrides everything else, but does not touch the cache.
  2826. echo $ac_n "checking for X""... $ac_c" 1>&6
  2827. echo "configure:3162: checking for X" >&5
  2828. # Check whether --with-x or --without-x was given.
  2829. if test "${with_x+set}" = set; then
  2830. withval="$with_x"
  2831. :
  2832. fi
  2833. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  2834. if test "x$with_x" = xno; then
  2835. # The user explicitly disabled X.
  2836. have_x=disabled
  2837. else
  2838. if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  2839. # Both variables are already set.
  2840. have_x=yes
  2841. else
  2842. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  2843. echo $ac_n "(cached) $ac_c" 1>&6
  2844. else
  2845. # One or both of the vars are not set, and there is no cached value.
  2846. ac_x_includes=NO ac_x_libraries=NO
  2847. rm -fr conftestdir
  2848. if mkdir conftestdir; then
  2849. cd conftestdir
  2850. # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  2851. cat > Imakefile <<'EOF'
  2852. acfindx:
  2853. @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
  2854. EOF
  2855. if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  2856. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2857. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  2858. # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  2859. for ac_extension in a so sl; do
  2860. if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
  2861. test -f $ac_im_libdir/libX11.$ac_extension; then
  2862. ac_im_usrlibdir=$ac_im_libdir; break
  2863. fi
  2864. done
  2865. # Screen out bogus values from the imake configuration. They are
  2866. # bogus both because they are the default anyway, and because
  2867. # using them would break gcc on systems where it needs fixed includes.
  2868. case "$ac_im_incroot" in
  2869. /usr/include) ;;
  2870. *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  2871. esac
  2872. case "$ac_im_usrlibdir" in
  2873. /usr/lib | /lib) ;;
  2874. *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  2875. esac
  2876. fi
  2877. cd ..
  2878. rm -fr conftestdir
  2879. fi
  2880. if test "$ac_x_includes" = NO; then
  2881. # Guess where to find include files, by looking for this one X11 .h file.
  2882. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  2883. # First, try using that file with no special directory specified.
  2884. cat > conftest.$ac_ext <<EOF
  2885. #line 3224 "configure"
  2886. #include "confdefs.h"
  2887. #include <$x_direct_test_include>
  2888. EOF
  2889. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  2890. { (eval echo configure:3229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  2891. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  2892. if test -z "$ac_err"; then
  2893. rm -rf conftest*
  2894. # We can compile using X headers with no special include directory.
  2895. ac_x_includes=
  2896. else
  2897. echo "$ac_err" >&5
  2898. echo "configure: failed program was:" >&5
  2899. cat conftest.$ac_ext >&5
  2900. rm -rf conftest*
  2901. # Look for the header file in a standard set of common directories.
  2902. # Check X11 before X11Rn because it is often a symlink to the current release.
  2903. for ac_dir in \
  2904. /usr/X11/include \
  2905. /usr/X11R6/include \
  2906. /usr/X11R5/include \
  2907. /usr/X11R4/include \
  2908. \
  2909. /usr/include/X11 \
  2910. /usr/include/X11R6 \
  2911. /usr/include/X11R5 \
  2912. /usr/include/X11R4 \
  2913. \
  2914. /usr/local/X11/include \
  2915. /usr/local/X11R6/include \
  2916. /usr/local/X11R5/include \
  2917. /usr/local/X11R4/include \
  2918. \
  2919. /usr/local/include/X11 \
  2920. /usr/local/include/X11R6 \
  2921. /usr/local/include/X11R5 \
  2922. /usr/local/include/X11R4 \
  2923. \
  2924. /usr/X386/include \
  2925. /usr/x386/include \
  2926. /usr/XFree86/include/X11 \
  2927. \
  2928. /usr/include \
  2929. /usr/local/include \
  2930. /usr/unsupported/include \
  2931. /usr/athena/include \
  2932. /usr/local/x11r5/include \
  2933. /usr/lpp/Xamples/include \
  2934. \
  2935. /usr/openwin/include \
  2936. /usr/openwin/share/include \
  2937. ; \
  2938. do
  2939. if test -r "$ac_dir/$x_direct_test_include"; then
  2940. ac_x_includes=$ac_dir
  2941. break
  2942. fi
  2943. done
  2944. fi
  2945. rm -f conftest*
  2946. fi # $ac_x_includes = NO
  2947. if test "$ac_x_libraries" = NO; then
  2948. # Check for the libraries.
  2949. test -z "$x_direct_test_library" && x_direct_test_library=Xt
  2950. test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  2951. # See if we find them without any special options.
  2952. # Don't add to $LIBS permanently.
  2953. ac_save_LIBS="$LIBS"
  2954. LIBS="-l$x_direct_test_library $LIBS"
  2955. cat > conftest.$ac_ext <<EOF
  2956. #line 3298 "configure"
  2957. #include "confdefs.h"
  2958. int main() {
  2959. ${x_direct_test_function}()
  2960. ; return 0; }
  2961. EOF
  2962. if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2963. rm -rf conftest*
  2964. LIBS="$ac_save_LIBS"
  2965. # We can link X programs with no special library path.
  2966. ac_x_libraries=
  2967. else
  2968. echo "configure: failed program was:" >&5
  2969. cat conftest.$ac_ext >&5
  2970. rm -rf conftest*
  2971. LIBS="$ac_save_LIBS"
  2972. # First see if replacing the include by lib works.
  2973. # Check X11 before X11Rn because it is often a symlink to the current release.
  2974. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  2975. /usr/X11/lib \
  2976. /usr/X11R6/lib \
  2977. /usr/X11R5/lib \
  2978. /usr/X11R4/lib \
  2979. \
  2980. /usr/lib/X11 \
  2981. /usr/lib/X11R6 \
  2982. /usr/lib/X11R5 \
  2983. /usr/lib/X11R4 \
  2984. \
  2985. /usr/local/X11/lib \
  2986. /usr/local/X11R6/lib \
  2987. /usr/local/X11R5/lib \
  2988. /usr/local/X11R4/lib \
  2989. \
  2990. /usr/local/lib/X11 \
  2991. /usr/local/lib/X11R6 \
  2992. /usr/local/lib/X11R5 \
  2993. /usr/local/lib/X11R4 \
  2994. \
  2995. /usr/X386/lib \
  2996. /usr/x386/lib \
  2997. /usr/XFree86/lib/X11 \
  2998. \
  2999. /usr/lib \
  3000. /usr/local/lib \
  3001. /usr/unsupported/lib \
  3002. /usr/athena/lib \
  3003. /usr/local/x11r5/lib \
  3004. /usr/lpp/Xamples/lib \
  3005. /lib/usr/lib/X11 \
  3006. \
  3007. /usr/openwin/lib \
  3008. /usr/openwin/share/lib \
  3009. ; \
  3010. do
  3011. for ac_extension in a so sl; do
  3012. if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
  3013. ac_x_libraries=$ac_dir
  3014. break 2
  3015. fi
  3016. done
  3017. done
  3018. fi
  3019. rm -f conftest*
  3020. fi # $ac_x_libraries = NO
  3021. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  3022. # Didn't find X anywhere. Cache the known absence of X.
  3023. ac_cv_have_x="have_x=no"
  3024. else
  3025. # Record where we found X for the cache.
  3026. ac_cv_have_x="have_x=yes \
  3027. ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  3028. fi
  3029. fi
  3030. fi
  3031. eval "$ac_cv_have_x"
  3032. fi # $with_x != no
  3033. if test "$have_x" != yes; then
  3034. echo "$ac_t""$have_x" 1>&6
  3035. no_x=yes
  3036. else
  3037. # If each of the values was on the command line, it overrides each guess.
  3038. test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  3039. test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  3040. # Update the cache value to reflect the command line values.
  3041. ac_cv_have_x="have_x=yes \
  3042. ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  3043. echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  3044. fi
  3045. if test "$no_x" = yes; then
  3046. # Not all programs may use this symbol, but it does not hurt to define it.
  3047. cat >> confdefs.pytmp <<\EOF
  3048. (''' X_DISPLAY_MISSING ''', ' 1 ')
  3049. EOF
  3050. cat >> confdefs.h <<\EOF
  3051. #define X_DISPLAY_MISSING 1
  3052. EOF
  3053. X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  3054. else
  3055. if test -n "$x_includes"; then
  3056. X_CFLAGS="$X_CFLAGS -I$x_includes"
  3057. fi
  3058. # It would also be nice to do this for all -L options, not just this one.
  3059. if test -n "$x_libraries"; then
  3060. X_LIBS="$X_LIBS -L$x_libraries"
  3061. # For Solaris; some versions of Sun CC require a space after -R and
  3062. # others require no space. Words are not sufficient . . . .
  3063. case "`(uname -sr) 2>/dev/null`" in
  3064. "SunOS 5"*)
  3065. echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  3066. echo "configure:3414: checking whether -R must be followed by a space" >&5
  3067. ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  3068. cat > conftest.$ac_ext <<EOF
  3069. #line 3417 "configure"
  3070. #include "confdefs.h"
  3071. int main() {
  3072. ; return 0; }
  3073. EOF
  3074. if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3075. rm -rf conftest*
  3076. ac_R_nospace=yes
  3077. else
  3078. echo "configure: failed program was:" >&5
  3079. cat conftest.$ac_ext >&5
  3080. rm -rf conftest*
  3081. ac_R_nospace=no
  3082. fi
  3083. rm -f conftest*
  3084. if test $ac_R_nospace = yes; then
  3085. echo "$ac_t""no" 1>&6
  3086. X_LIBS="$X_LIBS -R$x_libraries"
  3087. else
  3088. LIBS="$ac_xsave_LIBS -R $x_libraries"
  3089. cat > conftest.$ac_ext <<EOF
  3090. #line 3440 "configure"
  3091. #include "confdefs.h"
  3092. int main() {
  3093. ; return 0; }
  3094. EOF
  3095. if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3096. rm -rf conftest*
  3097. ac_R_space=yes
  3098. else
  3099. echo "configure: failed program was:" >&5
  3100. cat conftest.$ac_ext >&5
  3101. rm -rf conftest*
  3102. ac_R_space=no
  3103. fi
  3104. rm -f conftest*
  3105. if test $ac_R_space = yes; then
  3106. echo "$ac_t""yes" 1>&6
  3107. X_LIBS="$X_LIBS -R $x_libraries"
  3108. else
  3109. echo "$ac_t""neither works" 1>&6
  3110. fi
  3111. fi
  3112. LIBS="$ac_xsave_LIBS"
  3113. esac
  3114. fi
  3115. # Check for system-dependent libraries X programs must link with.
  3116. # Do this before checking for the system-independent R6 libraries
  3117. # (-lICE), since we may need -lsocket or whatever for X linking.
  3118. if test "$ISC" = yes; then
  3119. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  3120. else
  3121. # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  3122. # libraries were built with DECnet support. And karl@cs.umb.edu says
  3123. # the Alpha needs dnet_stub (dnet does not exist).
  3124. echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  3125. echo "configure:3479: checking for dnet_ntoa in -ldnet" >&5
  3126. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3127. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3128. echo $ac_n "(cached) $ac_c" 1>&6
  3129. else
  3130. ac_save_LIBS="$LIBS"
  3131. LIBS="-ldnet $LIBS"
  3132. cat > conftest.$ac_ext <<EOF
  3133. #line 3487 "configure"
  3134. #include "confdefs.h"
  3135. /* Override any gcc2 internal prototype to avoid an error. */
  3136. /* We use char because int might match the return type of a gcc2
  3137. builtin and then its argument prototype would still apply. */
  3138. char dnet_ntoa();
  3139. int main() {
  3140. dnet_ntoa()
  3141. ; return 0; }
  3142. EOF
  3143. if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3144. rm -rf conftest*
  3145. eval "ac_cv_lib_$ac_lib_var=yes"
  3146. else
  3147. echo "configure: failed program was:" >&5
  3148. cat conftest.$ac_ext >&5
  3149. rm -rf conftest*
  3150. eval "ac_cv_lib_$ac_lib_var=no"
  3151. fi
  3152. rm -f conftest*
  3153. LIBS="$ac_save_LIBS"
  3154. fi
  3155. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3156. echo "$ac_t""yes" 1>&6
  3157. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  3158. else
  3159. echo "$ac_t""no" 1>&6
  3160. fi
  3161. if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  3162. echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  3163. echo "configure:3520: checking for dnet_ntoa in -ldnet_stub" >&5
  3164. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  3165. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3166. echo $ac_n "(cached) $ac_c" 1>&6
  3167. else
  3168. ac_save_LIBS="$LIBS"
  3169. LIBS="-ldnet_stub $LIBS"
  3170. cat > conftest.$ac_ext <<EOF
  3171. #line 3528 "configure"
  3172. #include "confdefs.h"
  3173. /* Override any gcc2 internal prototype to avoid an error. */
  3174. /* We use char because int might match the return type of a gcc2
  3175. builtin and then its argument prototype would still apply. */
  3176. char dnet_ntoa();
  3177. int main() {
  3178. dnet_ntoa()
  3179. ; return 0; }
  3180. EOF
  3181. if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3182. rm -rf conftest*
  3183. eval "ac_cv_lib_$ac_lib_var=yes"
  3184. else
  3185. echo "configure: failed program was:" >&5
  3186. cat conftest.$ac_ext >&5
  3187. rm -rf conftest*
  3188. eval "ac_cv_lib_$ac_lib_var=no"
  3189. fi
  3190. rm -f conftest*
  3191. LIBS="$ac_save_LIBS"
  3192. fi
  3193. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3194. echo "$ac_t""yes" 1>&6
  3195. X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  3196. else
  3197. echo "$ac_t""no" 1>&6
  3198. fi
  3199. fi
  3200. # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  3201. # to get the SysV transport functions.
  3202. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  3203. # needs -lnsl.
  3204. # The nsl library prevents programs from opening the X display
  3205. # on Irix 5.2, according to dickey@clark.net.
  3206. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  3207. echo "configure:3568: checking for gethostbyname" >&5
  3208. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  3209. echo $ac_n "(cached) $ac_c" 1>&6
  3210. else
  3211. cat > conftest.$ac_ext <<EOF
  3212. #line 3573 "configure"
  3213. #define gethostbyname innocuous_gethostbyname
  3214. #include "confdefs.h"
  3215. #undef gethostbyname
  3216. /* System header to define __stub macros and hopefully few prototypes,
  3217. which can conflict with char gethostbyname(); below. */
  3218. #define gethostbyname innocuous_gethostbyname
  3219. #include <assert.h>
  3220. #undef gethostbyname
  3221. /* Override any gcc2 internal prototype to avoid an error. */
  3222. /* We use char because int might match the return type of a gcc2
  3223. builtin and then its argument prototype would still apply. */
  3224. char gethostbyname();
  3225. int main() {
  3226. /* The GNU C library defines this for functions which it implements
  3227. to always fail with ENOSYS. Some functions are actually named
  3228. something starting with __ and the normal name is an alias. */
  3229. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  3230. choke me
  3231. #else
  3232. gethostbyname();
  3233. #endif
  3234. ; return 0; }
  3235. EOF
  3236. if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3237. rm -rf conftest*
  3238. eval "ac_cv_func_gethostbyname=yes"
  3239. else
  3240. echo "configure: failed program was:" >&5
  3241. cat conftest.$ac_ext >&5
  3242. rm -rf conftest*
  3243. eval "ac_cv_func_gethostbyname=no"
  3244. fi
  3245. rm -f conftest*
  3246. fi
  3247. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  3248. echo "$ac_t""yes" 1>&6
  3249. :
  3250. else
  3251. echo "$ac_t""no" 1>&6
  3252. fi
  3253. if test $ac_cv_func_gethostbyname = no; then
  3254. echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  3255. echo "configure:3621: checking for gethostbyname in -lnsl" >&5
  3256. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  3257. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3258. echo $ac_n "(cached) $ac_c" 1>&6
  3259. else
  3260. ac_save_LIBS="$LIBS"
  3261. LIBS="-lnsl $LIBS"
  3262. cat > conftest.$ac_ext <<EOF
  3263. #line 3629 "configure"
  3264. #include "confdefs.h"
  3265. /* Override any gcc2 internal prototype to avoid an error. */
  3266. /* We use char because int might match the return type of a gcc2
  3267. builtin and then its argument prototype would still apply. */
  3268. char gethostbyname();
  3269. int main() {
  3270. gethostbyname()
  3271. ; return 0; }
  3272. EOF
  3273. if { (eval echo configure:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3274. rm -rf conftest*
  3275. eval "ac_cv_lib_$ac_lib_var=yes"
  3276. else
  3277. echo "configure: failed program was:" >&5
  3278. cat conftest.$ac_ext >&5
  3279. rm -rf conftest*
  3280. eval "ac_cv_lib_$ac_lib_var=no"
  3281. fi
  3282. rm -f conftest*
  3283. LIBS="$ac_save_LIBS"
  3284. fi
  3285. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3286. echo "$ac_t""yes" 1>&6
  3287. X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  3288. else
  3289. echo "$ac_t""no" 1>&6
  3290. fi
  3291. fi
  3292. # lieder@skyler.mavd.honeywell.com says without -lsocket,
  3293. # socket/setsockopt and other routines are undefined under SCO ODT
  3294. # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
  3295. # on later versions), says simon@lia.di.epfl.ch: it contains
  3296. # gethostby* variants that don't use the nameserver (or something).
  3297. # -lsocket must be given before -lnsl if both are needed.
  3298. # We assume that if connect needs -lnsl, so does gethostbyname.
  3299. echo $ac_n "checking for connect""... $ac_c" 1>&6
  3300. echo "configure:3670: checking for connect" >&5
  3301. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  3302. echo $ac_n "(cached) $ac_c" 1>&6
  3303. else
  3304. cat > conftest.$ac_ext <<EOF
  3305. #line 3675 "configure"
  3306. #define connect innocuous_connect
  3307. #include "confdefs.h"
  3308. #undef connect
  3309. /* System header to define __stub macros and hopefully few prototypes,
  3310. which can conflict with char connect(); below. */
  3311. #define connect innocuous_connect
  3312. #include <assert.h>
  3313. #undef connect
  3314. /* Override any gcc2 internal prototype to avoid an error. */
  3315. /* We use char because int might match the return type of a gcc2
  3316. builtin and then its argument prototype would still apply. */
  3317. char connect();
  3318. int main() {
  3319. /* The GNU C library defines this for functions which it implements
  3320. to always fail with ENOSYS. Some functions are actually named
  3321. something starting with __ and the normal name is an alias. */
  3322. #if defined (__stub_connect) || defined (__stub___connect)
  3323. choke me
  3324. #else
  3325. connect();
  3326. #endif
  3327. ; return 0; }
  3328. EOF
  3329. if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3330. rm -rf conftest*
  3331. eval "ac_cv_func_connect=yes"
  3332. else
  3333. echo "configure: failed program was:" >&5
  3334. cat conftest.$ac_ext >&5
  3335. rm -rf conftest*
  3336. eval "ac_cv_func_connect=no"
  3337. fi
  3338. rm -f conftest*
  3339. fi
  3340. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  3341. echo "$ac_t""yes" 1>&6
  3342. :
  3343. else
  3344. echo "$ac_t""no" 1>&6
  3345. fi
  3346. if test $ac_cv_func_connect = no; then
  3347. echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  3348. echo "configure:3723: checking for connect in -lsocket" >&5
  3349. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  3350. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3351. echo $ac_n "(cached) $ac_c" 1>&6
  3352. else
  3353. ac_save_LIBS="$LIBS"
  3354. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  3355. cat > conftest.$ac_ext <<EOF
  3356. #line 3731 "configure"
  3357. #include "confdefs.h"
  3358. /* Override any gcc2 internal prototype to avoid an error. */
  3359. /* We use char because int might match the return type of a gcc2
  3360. builtin and then its argument prototype would still apply. */
  3361. char connect();
  3362. int main() {
  3363. connect()
  3364. ; return 0; }
  3365. EOF
  3366. if { (eval echo configure:3742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3367. rm -rf conftest*
  3368. eval "ac_cv_lib_$ac_lib_var=yes"
  3369. else
  3370. echo "configure: failed program was:" >&5
  3371. cat conftest.$ac_ext >&5
  3372. rm -rf conftest*
  3373. eval "ac_cv_lib_$ac_lib_var=no"
  3374. fi
  3375. rm -f conftest*
  3376. LIBS="$ac_save_LIBS"
  3377. fi
  3378. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3379. echo "$ac_t""yes" 1>&6
  3380. X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  3381. else
  3382. echo "$ac_t""no" 1>&6
  3383. fi
  3384. fi
  3385. # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  3386. echo $ac_n "checking for remove""... $ac_c" 1>&6
  3387. echo "configure:3766: checking for remove" >&5
  3388. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  3389. echo $ac_n "(cached) $ac_c" 1>&6
  3390. else
  3391. cat > conftest.$ac_ext <<EOF
  3392. #line 3771 "configure"
  3393. #define remove innocuous_remove
  3394. #include "confdefs.h"
  3395. #undef remove
  3396. /* System header to define __stub macros and hopefully few prototypes,
  3397. which can conflict with char remove(); below. */
  3398. #define remove innocuous_remove
  3399. #include <assert.h>
  3400. #undef remove
  3401. /* Override any gcc2 internal prototype to avoid an error. */
  3402. /* We use char because int might match the return type of a gcc2
  3403. builtin and then its argument prototype would still apply. */
  3404. char remove();
  3405. int main() {
  3406. /* The GNU C library defines this for functions which it implements
  3407. to always fail with ENOSYS. Some functions are actually named
  3408. something starting with __ and the normal name is an alias. */
  3409. #if defined (__stub_remove) || defined (__stub___remove)
  3410. choke me
  3411. #else
  3412. remove();
  3413. #endif
  3414. ; return 0; }
  3415. EOF
  3416. if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3417. rm -rf conftest*
  3418. eval "ac_cv_func_remove=yes"
  3419. else
  3420. echo "configure: failed program was:" >&5
  3421. cat conftest.$ac_ext >&5
  3422. rm -rf conftest*
  3423. eval "ac_cv_func_remove=no"
  3424. fi
  3425. rm -f conftest*
  3426. fi
  3427. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  3428. echo "$ac_t""yes" 1>&6
  3429. :
  3430. else
  3431. echo "$ac_t""no" 1>&6
  3432. fi
  3433. if test $ac_cv_func_remove = no; then
  3434. echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  3435. echo "configure:3819: checking for remove in -lposix" >&5
  3436. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  3437. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3438. echo $ac_n "(cached) $ac_c" 1>&6
  3439. else
  3440. ac_save_LIBS="$LIBS"
  3441. LIBS="-lposix $LIBS"
  3442. cat > conftest.$ac_ext <<EOF
  3443. #line 3827 "configure"
  3444. #include "confdefs.h"
  3445. /* Override any gcc2 internal prototype to avoid an error. */
  3446. /* We use char because int might match the return type of a gcc2
  3447. builtin and then its argument prototype would still apply. */
  3448. char remove();
  3449. int main() {
  3450. remove()
  3451. ; return 0; }
  3452. EOF
  3453. if { (eval echo configure:3838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3454. rm -rf conftest*
  3455. eval "ac_cv_lib_$ac_lib_var=yes"
  3456. else
  3457. echo "configure: failed program was:" >&5
  3458. cat conftest.$ac_ext >&5
  3459. rm -rf conftest*
  3460. eval "ac_cv_lib_$ac_lib_var=no"
  3461. fi
  3462. rm -f conftest*
  3463. LIBS="$ac_save_LIBS"
  3464. fi
  3465. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3466. echo "$ac_t""yes" 1>&6
  3467. X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  3468. else
  3469. echo "$ac_t""no" 1>&6
  3470. fi
  3471. fi
  3472. # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  3473. echo $ac_n "checking for shmat""... $ac_c" 1>&6
  3474. echo "configure:3862: checking for shmat" >&5
  3475. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  3476. echo $ac_n "(cached) $ac_c" 1>&6
  3477. else
  3478. cat > conftest.$ac_ext <<EOF
  3479. #line 3867 "configure"
  3480. #define shmat innocuous_shmat
  3481. #include "confdefs.h"
  3482. #undef shmat
  3483. /* System header to define __stub macros and hopefully few prototypes,
  3484. which can conflict with char shmat(); below. */
  3485. #define shmat innocuous_shmat
  3486. #include <assert.h>
  3487. #undef shmat
  3488. /* Override any gcc2 internal prototype to avoid an error. */
  3489. /* We use char because int might match the return type of a gcc2
  3490. builtin and then its argument prototype would still apply. */
  3491. char shmat();
  3492. int main() {
  3493. /* The GNU C library defines this for functions which it implements
  3494. to always fail with ENOSYS. Some functions are actually named
  3495. something starting with __ and the normal name is an alias. */
  3496. #if defined (__stub_shmat) || defined (__stub___shmat)
  3497. choke me
  3498. #else
  3499. shmat();
  3500. #endif
  3501. ; return 0; }
  3502. EOF
  3503. if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3504. rm -rf conftest*
  3505. eval "ac_cv_func_shmat=yes"
  3506. else
  3507. echo "configure: failed program was:" >&5
  3508. cat conftest.$ac_ext >&5
  3509. rm -rf conftest*
  3510. eval "ac_cv_func_shmat=no"
  3511. fi
  3512. rm -f conftest*
  3513. fi
  3514. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  3515. echo "$ac_t""yes" 1>&6
  3516. :
  3517. else
  3518. echo "$ac_t""no" 1>&6
  3519. fi
  3520. if test $ac_cv_func_shmat = no; then
  3521. echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  3522. echo "configure:3915: checking for shmat in -lipc" >&5
  3523. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  3524. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3525. echo $ac_n "(cached) $ac_c" 1>&6
  3526. else
  3527. ac_save_LIBS="$LIBS"
  3528. LIBS="-lipc $LIBS"
  3529. cat > conftest.$ac_ext <<EOF
  3530. #line 3923 "configure"
  3531. #include "confdefs.h"
  3532. /* Override any gcc2 internal prototype to avoid an error. */
  3533. /* We use char because int might match the return type of a gcc2
  3534. builtin and then its argument prototype would still apply. */
  3535. char shmat();
  3536. int main() {
  3537. shmat()
  3538. ; return 0; }
  3539. EOF
  3540. if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3541. rm -rf conftest*
  3542. eval "ac_cv_lib_$ac_lib_var=yes"
  3543. else
  3544. echo "configure: failed program was:" >&5
  3545. cat conftest.$ac_ext >&5
  3546. rm -rf conftest*
  3547. eval "ac_cv_lib_$ac_lib_var=no"
  3548. fi
  3549. rm -f conftest*
  3550. LIBS="$ac_save_LIBS"
  3551. fi
  3552. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3553. echo "$ac_t""yes" 1>&6
  3554. X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  3555. else
  3556. echo "$ac_t""no" 1>&6
  3557. fi
  3558. fi
  3559. fi
  3560. # Check for libraries that X11R6 Xt/Xaw programs need.
  3561. ac_save_LDFLAGS="$LDFLAGS"
  3562. test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  3563. # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  3564. # check for ICE first), but we must link in the order -lSM -lICE or
  3565. # we get undefined symbols. So assume we have SM if we have ICE.
  3566. # These have to be linked with before -lX11, unlike the other
  3567. # libraries we check for below, so use a different variable.
  3568. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  3569. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  3570. echo "configure:3967: checking for IceConnectionNumber in -lICE" >&5
  3571. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  3572. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  3573. echo $ac_n "(cached) $ac_c" 1>&6
  3574. else
  3575. ac_save_LIBS="$LIBS"
  3576. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  3577. cat > conftest.$ac_ext <<EOF
  3578. #line 3975 "configure"
  3579. #include "confdefs.h"
  3580. /* Override any gcc2 internal prototype to avoid an error. */
  3581. /* We use char because int might match the return type of a gcc2
  3582. builtin and then its argument prototype would still apply. */
  3583. char IceConnectionNumber();
  3584. int main() {
  3585. IceConnectionNumber()
  3586. ; return 0; }
  3587. EOF
  3588. if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3589. rm -rf conftest*
  3590. eval "ac_cv_lib_$ac_lib_var=yes"
  3591. else
  3592. echo "configure: failed program was:" >&5
  3593. cat conftest.$ac_ext >&5
  3594. rm -rf conftest*
  3595. eval "ac_cv_lib_$ac_lib_var=no"
  3596. fi
  3597. rm -f conftest*
  3598. LIBS="$ac_save_LIBS"
  3599. fi
  3600. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  3601. echo "$ac_t""yes" 1>&6
  3602. X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  3603. else
  3604. echo "$ac_t""no" 1>&6
  3605. fi
  3606. LDFLAGS="$ac_save_LDFLAGS"
  3607. fi
  3608. XCFLAGS="$X_CFLAGS"
  3609. fi # COMPILE_ENVIRONMENT
  3610. AS_BIN=$AS
  3611. AR_EXTRACT='$(AR) x'
  3612. AS='$(CC)'
  3613. AS_DASH_C_FLAG='-c'
  3614. DLL_PREFIX=lib
  3615. LIB_PREFIX=lib
  3616. DLL_SUFFIX=.so
  3617. OBJ_SUFFIX=o
  3618. LIB_SUFFIX=a
  3619. IMPORT_LIB_SUFFIX=
  3620. DIRENT_INO=d_ino
  3621. MOZ_USER_DIR=".mozilla"
  3622. MOZ_FIX_LINK_PATHS="-Wl,-rpath-link,${DIST}/bin -Wl,-rpath-link,${prefix}/lib"
  3623. MOZ_FS_LAYOUT=unix
  3624. if test "$COMPILE_ENVIRONMENT"; then
  3625. MOZ_THUMB=toolchain-default
  3626. MOZ_THUMB_INTERWORK=toolchain-default
  3627. MOZ_FPU=toolchain-default
  3628. MOZ_FLOAT_ABI=toolchain-default
  3629. MOZ_SOFT_FLOAT=toolchain-default
  3630. MOZ_ALIGN=toolchain-default
  3631. # Check whether --with-arch or --without-arch was given.
  3632. if test "${with_arch+set}" = set; then
  3633. withval="$with_arch"
  3634. if test -z "$GNU_CC"; then
  3635. { echo "configure: error: --with-arch is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-arch is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3636. fi
  3637. MOZ_ARCH=$withval
  3638. fi
  3639. if test -z "$MOZ_ARCH"; then
  3640. case "${CPU_ARCH}-${OS_TARGET}" in
  3641. arm-Android)
  3642. MOZ_THUMB=yes
  3643. MOZ_ARCH=armv7-a
  3644. MOZ_FPU=vfp
  3645. MOZ_FLOAT_ABI=softfp
  3646. MOZ_ALIGN=no
  3647. ;;
  3648. arm-Darwin)
  3649. MOZ_ARCH=toolchain-default
  3650. ;;
  3651. esac
  3652. fi
  3653. if test "$MOZ_ARCH" = "armv6" -a "$OS_TARGET" = "Android"; then
  3654. MOZ_FPU=vfp
  3655. MOZ_FLOAT_ABI=softfp
  3656. fi
  3657. # Check whether --with-thumb or --without-thumb was given.
  3658. if test "${with_thumb+set}" = set; then
  3659. withval="$with_thumb"
  3660. if test -z "$GNU_CC"; then
  3661. { echo "configure: error: --with-thumb is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-thumb is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3662. fi
  3663. MOZ_THUMB=$withval
  3664. fi
  3665. # Check whether --with-thumb-interwork or --without-thumb-interwork was given.
  3666. if test "${with_thumb_interwork+set}" = set; then
  3667. withval="$with_thumb_interwork"
  3668. if test -z "$GNU_CC"; then
  3669. { echo "configure: error: --with-thumb-interwork is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-thumb-interwork is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3670. fi
  3671. MOZ_THUMB_INTERWORK=$withval
  3672. fi
  3673. # Check whether --with-fpu or --without-fpu was given.
  3674. if test "${with_fpu+set}" = set; then
  3675. withval="$with_fpu"
  3676. if test -z "$GNU_CC"; then
  3677. { echo "configure: error: --with-fpu is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-fpu is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3678. fi
  3679. MOZ_FPU=$withval
  3680. fi
  3681. # Check whether --with-float-abi or --without-float-abi was given.
  3682. if test "${with_float_abi+set}" = set; then
  3683. withval="$with_float_abi"
  3684. if test -z "$GNU_CC"; then
  3685. { echo "configure: error: --with-float-abi is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-float-abi is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3686. fi
  3687. MOZ_FLOAT_ABI=$withval
  3688. fi
  3689. # Check whether --with-soft-float or --without-soft-float was given.
  3690. if test "${with_soft_float+set}" = set; then
  3691. withval="$with_soft_float"
  3692. if test -z "$GNU_CC"; then
  3693. { echo "configure: error: --with-soft-float is not supported on non-GNU toolchains" 1>&2; echo "configure: error: --with-soft-float is not supported on non-GNU toolchains" 1>&5; exit 1; }
  3694. fi
  3695. MOZ_SOFT_FLOAT=$withval
  3696. fi
  3697. case "$MOZ_ARCH" in
  3698. toolchain-default|"")
  3699. arch_flag=""
  3700. ;;
  3701. *)
  3702. arch_flag="-march=$MOZ_ARCH"
  3703. ;;
  3704. esac
  3705. case "$MOZ_THUMB" in
  3706. yes)
  3707. MOZ_THUMB2=1
  3708. thumb_flag="-mthumb"
  3709. ;;
  3710. no)
  3711. MOZ_THUMB2=
  3712. thumb_flag="-marm"
  3713. ;;
  3714. *)
  3715. _SAVE_CFLAGS="$CFLAGS"
  3716. CFLAGS="$arch_flag"
  3717. cat > conftest.$ac_ext <<EOF
  3718. #line 4145 "configure"
  3719. #include "confdefs.h"
  3720. int main() {
  3721. return sizeof(__thumb2__);
  3722. ; return 0; }
  3723. EOF
  3724. if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3725. rm -rf conftest*
  3726. MOZ_THUMB2=1
  3727. else
  3728. echo "configure: failed program was:" >&5
  3729. cat conftest.$ac_ext >&5
  3730. rm -rf conftest*
  3731. MOZ_THUMB2=
  3732. fi
  3733. rm -f conftest*
  3734. CFLAGS="$_SAVE_CFLAGS"
  3735. thumb_flag=""
  3736. ;;
  3737. esac
  3738. if test "$MOZ_THUMB2" = 1; then
  3739. cat >> confdefs.pytmp <<\EOF
  3740. (''' MOZ_THUMB2 ''', ' 1 ')
  3741. EOF
  3742. cat >> confdefs.h <<\EOF
  3743. #define MOZ_THUMB2 1
  3744. EOF
  3745. fi
  3746. case "$MOZ_THUMB_INTERWORK" in
  3747. yes)
  3748. thumb_interwork_flag="-mthumb-interwork"
  3749. ;;
  3750. no)
  3751. thumb_interwork_flag="-mno-thumb-interwork"
  3752. ;;
  3753. *) # toolchain-default
  3754. thumb_interwork_flag=""
  3755. ;;
  3756. esac
  3757. case "$MOZ_FPU" in
  3758. toolchain-default|"")
  3759. fpu_flag=""
  3760. ;;
  3761. *)
  3762. fpu_flag="-mfpu=$MOZ_FPU"
  3763. ;;
  3764. esac
  3765. case "$MOZ_FLOAT_ABI" in
  3766. toolchain-default|"")
  3767. float_abi_flag=""
  3768. ;;
  3769. *)
  3770. float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI"
  3771. ;;
  3772. esac
  3773. case "$MOZ_SOFT_FLOAT" in
  3774. yes)
  3775. soft_float_flag="-msoft-float"
  3776. ;;
  3777. no)
  3778. soft_float_flag="-mno-soft-float"
  3779. ;;
  3780. *) # toolchain-default
  3781. soft_float_flag=""
  3782. ;;
  3783. esac
  3784. case "$MOZ_ALIGN" in
  3785. no)
  3786. align_flag="-mno-unaligned-access"
  3787. ;;
  3788. yes)
  3789. align_flag="-munaligned-access"
  3790. ;;
  3791. *)
  3792. align_flag=""
  3793. ;;
  3794. esac
  3795. if test -n "$align_flag"; then
  3796. _SAVE_CFLAGS="$CFLAGS"
  3797. CFLAGS="$CFLAGS $align_flag"
  3798. echo $ac_n "checking whether alignment flag ($align_flag) is supported""... $ac_c" 1>&6
  3799. echo "configure:4235: checking whether alignment flag ($align_flag) is supported" >&5
  3800. cat > conftest.$ac_ext <<EOF
  3801. #line 4237 "configure"
  3802. #include "confdefs.h"
  3803. int main() {
  3804. ; return 0; }
  3805. EOF
  3806. if { (eval echo configure:4244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3807. :
  3808. else
  3809. echo "configure: failed program was:" >&5
  3810. cat conftest.$ac_ext >&5
  3811. rm -rf conftest*
  3812. align_flag=""
  3813. fi
  3814. rm -f conftest*
  3815. CFLAGS="$_SAVE_CFLAGS"
  3816. fi
  3817. all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag`
  3818. if test -n "$all_flags"; then
  3819. _SAVE_CFLAGS="$CFLAGS"
  3820. CFLAGS="$all_flags"
  3821. echo $ac_n "checking whether the chosen combination of compiler flags ($all_flags) works""... $ac_c" 1>&6
  3822. echo "configure:4261: checking whether the chosen combination of compiler flags ($all_flags) works" >&5
  3823. cat > conftest.$ac_ext <<EOF
  3824. #line 4263 "configure"
  3825. #include "confdefs.h"
  3826. int main() {
  3827. return 0;
  3828. ; return 0; }
  3829. EOF
  3830. if { (eval echo configure:4270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3831. rm -rf conftest*
  3832. echo "$ac_t""yes" 1>&6
  3833. else
  3834. echo "configure: failed program was:" >&5
  3835. cat conftest.$ac_ext >&5
  3836. rm -rf conftest*
  3837. { echo "configure: error: no" 1>&2; echo "configure: error: no" 1>&5; exit 1; }
  3838. fi
  3839. rm -f conftest*
  3840. CFLAGS="$_SAVE_CFLAGS $all_flags"
  3841. CXXFLAGS="$CXXFLAGS $all_flags"
  3842. ASFLAGS="$ASFLAGS $all_flags"
  3843. if test -n "$thumb_flag"; then
  3844. LDFLAGS="$LDFLAGS $thumb_flag"
  3845. fi
  3846. fi
  3847. if test "$CPU_ARCH" = "arm"; then
  3848. NEON_FLAGS="-mfpu=neon"
  3849. echo $ac_n "checking for ARM SIMD support in compiler""... $ac_c" 1>&6
  3850. echo "configure:4294: checking for ARM SIMD support in compiler" >&5
  3851. # We try to link so that this also fails when
  3852. # building with LTO.
  3853. cat > conftest.$ac_ext <<EOF
  3854. #line 4298 "configure"
  3855. #include "confdefs.h"
  3856. int main() {
  3857. asm("uqadd8 r1, r1, r2");
  3858. ; return 0; }
  3859. EOF
  3860. if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3861. rm -rf conftest*
  3862. result="yes"
  3863. else
  3864. echo "configure: failed program was:" >&5
  3865. cat conftest.$ac_ext >&5
  3866. rm -rf conftest*
  3867. result="no"
  3868. fi
  3869. rm -f conftest*
  3870. echo "$ac_t"""$result"" 1>&6
  3871. if test "$result" = "yes"; then
  3872. cat >> confdefs.pytmp <<\EOF
  3873. (''' HAVE_ARM_SIMD ''', ' 1 ')
  3874. EOF
  3875. cat >> confdefs.h <<\EOF
  3876. #define HAVE_ARM_SIMD 1
  3877. EOF
  3878. HAVE_ARM_SIMD=1
  3879. fi
  3880. echo $ac_n "checking ARM version support in compiler""... $ac_c" 1>&6
  3881. echo "configure:4328: checking ARM version support in compiler" >&5
  3882. ARM_ARCH=`${CC-cc} ${CFLAGS} -dM -E - < /dev/null | sed -n 's/.*__ARM_ARCH_\([0-9][0-9]*\).*/\1/p'`
  3883. echo "$ac_t"""$ARM_ARCH"" 1>&6
  3884. echo $ac_n "checking for ARM NEON support in compiler""... $ac_c" 1>&6
  3885. echo "configure:4333: checking for ARM NEON support in compiler" >&5
  3886. # We try to link so that this also fails when
  3887. # building with LTO.
  3888. cat > conftest.$ac_ext <<EOF
  3889. #line 4337 "configure"
  3890. #include "confdefs.h"
  3891. int main() {
  3892. asm(".fpu neon\n vadd.i8 d0, d0, d0");
  3893. ; return 0; }
  3894. EOF
  3895. if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  3896. rm -rf conftest*
  3897. result="yes"
  3898. else
  3899. echo "configure: failed program was:" >&5
  3900. cat conftest.$ac_ext >&5
  3901. rm -rf conftest*
  3902. result="no"
  3903. fi
  3904. rm -f conftest*
  3905. echo "$ac_t"""$result"" 1>&6
  3906. if test "$result" = "yes"; then
  3907. cat >> confdefs.pytmp <<\EOF
  3908. (''' HAVE_ARM_NEON ''', ' 1 ')
  3909. EOF
  3910. cat >> confdefs.h <<\EOF
  3911. #define HAVE_ARM_NEON 1
  3912. EOF
  3913. HAVE_ARM_NEON=1
  3914. if test -n "$ARM_ARCH"; then
  3915. if test "$ARM_ARCH" -lt 7; then
  3916. BUILD_ARM_NEON=
  3917. else
  3918. cat >> confdefs.pytmp <<\EOF
  3919. (''' BUILD_ARM_NEON ''', ' 1 ')
  3920. EOF
  3921. cat >> confdefs.h <<\EOF
  3922. #define BUILD_ARM_NEON 1
  3923. EOF
  3924. BUILD_ARM_NEON=1
  3925. fi
  3926. fi
  3927. fi
  3928. fi # CPU_ARCH = arm
  3929. else
  3930. if test "$OS_TARGET" = "Android"; then
  3931. MOZ_ARCH=armv7-a
  3932. fi
  3933. fi # COMPILE_ENVIRONMENT
  3934. if test -n "${CLANG_CC}${CLANG_CL}"; then
  3935. _WARNINGS_CFLAGS="-Qunused-arguments ${_WARNINGS_CFLAGS}"
  3936. CPPFLAGS="-Qunused-arguments ${CPPFLAGS}"
  3937. fi
  3938. if test -n "${CLANG_CXX}${CLANG_CL}"; then
  3939. _WARNINGS_CXXFLAGS="-Qunused-arguments ${_WARNINGS_CXXFLAGS}"
  3940. fi
  3941. if test -n "$COMPILE_ENVIRONMENT"; then
  3942. # Check whether --enable-address-sanitizer or --disable-address-sanitizer was given.
  3943. if test "${enable_address_sanitizer+set}" = set; then
  3944. enableval="$enable_address_sanitizer"
  3945. if test "$enableval" = "yes"; then
  3946. MOZ_ASAN=1
  3947. elif test "$enableval" = "no"; then
  3948. MOZ_ASAN=
  3949. else
  3950. { echo "configure: error: Option, address-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, address-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; }
  3951. fi
  3952. fi
  3953. if test -n "$MOZ_ASAN"; then
  3954. MOZ_LLVM_HACKS=1
  3955. if test -n "$CLANG_CL"; then
  3956. # Look for the ASan runtime binary
  3957. if test "$CPU_ARCH" = "x86_64"; then
  3958. MOZ_CLANG_RT_ASAN_LIB=clang_rt.asan_dynamic-x86_64.dll
  3959. else
  3960. MOZ_CLANG_RT_ASAN_LIB=clang_rt.asan_dynamic-i386.dll
  3961. fi
  3962. # We use MOZ_PATH_PROG in order to get a Windows style path.
  3963. # Extract the first word of "$MOZ_CLANG_RT_ASAN_LIB", so it can be a program name with args.
  3964. set dummy $MOZ_CLANG_RT_ASAN_LIB; ac_word=$2
  3965. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3966. echo "configure:4432: checking for $ac_word" >&5
  3967. if eval "test \"`echo '$''{'ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH'+set}'`\" = set"; then
  3968. echo $ac_n "(cached) $ac_c" 1>&6
  3969. else
  3970. case "$MOZ_CLANG_RT_ASAN_LIB_PATH" in
  3971. /*)
  3972. ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH" # Let the user override the test with a path.
  3973. ;;
  3974. ?:/*)
  3975. ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH" # Let the user override the test with a dos path.
  3976. ;;
  3977. *)
  3978. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3979. ac_dummy="$PATH"
  3980. for ac_dir in $ac_dummy; do
  3981. test -z "$ac_dir" && ac_dir=.
  3982. if test -f $ac_dir/$ac_word; then
  3983. ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH="$ac_dir/$ac_word"
  3984. break
  3985. fi
  3986. done
  3987. IFS="$ac_save_ifs"
  3988. ;;
  3989. esac
  3990. fi
  3991. MOZ_CLANG_RT_ASAN_LIB_PATH="$ac_cv_path_MOZ_CLANG_RT_ASAN_LIB_PATH"
  3992. if test -n "$MOZ_CLANG_RT_ASAN_LIB_PATH"; then
  3993. echo "$ac_t""$MOZ_CLANG_RT_ASAN_LIB_PATH" 1>&6
  3994. else
  3995. echo "$ac_t""no" 1>&6
  3996. fi
  3997. if test "$msyshost"; then
  3998. case "$MOZ_CLANG_RT_ASAN_LIB_PATH" in
  3999. /*)
  4000. tmp_DIRNAME=`dirname "$MOZ_CLANG_RT_ASAN_LIB_PATH"`
  4001. tmp_BASENAME=`basename "$MOZ_CLANG_RT_ASAN_LIB_PATH"`
  4002. tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
  4003. MOZ_CLANG_RT_ASAN_LIB_PATH="$tmp_PWD/$tmp_BASENAME"
  4004. if test -e "$MOZ_CLANG_RT_ASAN_LIB_PATH.exe"; then
  4005. MOZ_CLANG_RT_ASAN_LIB_PATH="$MOZ_CLANG_RT_ASAN_LIB_PATH.exe"
  4006. fi
  4007. esac
  4008. fi
  4009. if test -z "$MOZ_CLANG_RT_ASAN_LIB_PATH"; then
  4010. { echo "configure: error: Couldn't find $MOZ_CLANG_RT_ASAN_LIB. It should be available in the same location as clang-cl." 1>&2; echo "configure: error: Couldn't find $MOZ_CLANG_RT_ASAN_LIB. It should be available in the same location as clang-cl." 1>&5; exit 1; }
  4011. fi
  4012. # Suppressing errors in recompiled code.
  4013. if test "$OS_ARCH" = "WINNT"; then
  4014. CFLAGS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/asan_blacklist_win.txt $CFLAGS"
  4015. CXXFLAGS="-fsanitize-blacklist=$_topsrcdir/build/sanitizers/asan_blacklist_win.txt $CXXFLAGS"
  4016. fi
  4017. fi
  4018. CFLAGS="-fsanitize=address $CFLAGS"
  4019. CXXFLAGS="-fsanitize=address $CXXFLAGS"
  4020. if test -z "$CLANG_CL"; then
  4021. LDFLAGS="-fsanitize=address $LDFLAGS"
  4022. fi
  4023. cat >> confdefs.pytmp <<\EOF
  4024. (''' MOZ_ASAN ''', ' 1 ')
  4025. EOF
  4026. cat >> confdefs.h <<\EOF
  4027. #define MOZ_ASAN 1
  4028. EOF
  4029. # Extract the first word of "llvm-symbolizer", so it can be a program name with args.
  4030. set dummy llvm-symbolizer; ac_word=$2
  4031. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4032. echo "configure:4502: checking for $ac_word" >&5
  4033. if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then
  4034. echo $ac_n "(cached) $ac_c" 1>&6
  4035. else
  4036. case "$LLVM_SYMBOLIZER" in
  4037. /*)
  4038. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path.
  4039. ;;
  4040. ?:/*)
  4041. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path.
  4042. ;;
  4043. *)
  4044. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4045. ac_dummy="$PATH"
  4046. for ac_dir in $ac_dummy; do
  4047. test -z "$ac_dir" && ac_dir=.
  4048. if test -f $ac_dir/$ac_word; then
  4049. ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word"
  4050. break
  4051. fi
  4052. done
  4053. IFS="$ac_save_ifs"
  4054. ;;
  4055. esac
  4056. fi
  4057. LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER"
  4058. if test -n "$LLVM_SYMBOLIZER"; then
  4059. echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6
  4060. else
  4061. echo "$ac_t""no" 1>&6
  4062. fi
  4063. if test "$msyshost"; then
  4064. case "$LLVM_SYMBOLIZER" in
  4065. /*)
  4066. tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"`
  4067. tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"`
  4068. tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
  4069. LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME"
  4070. if test -e "$LLVM_SYMBOLIZER.exe"; then
  4071. LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe"
  4072. fi
  4073. esac
  4074. fi
  4075. fi
  4076. # Check whether --enable-memory-sanitizer or --disable-memory-sanitizer was given.
  4077. if test "${enable_memory_sanitizer+set}" = set; then
  4078. enableval="$enable_memory_sanitizer"
  4079. if test "$enableval" = "yes"; then
  4080. MOZ_MSAN=1
  4081. elif test "$enableval" = "no"; then
  4082. MOZ_MSAN=
  4083. else
  4084. { echo "configure: error: Option, memory-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, memory-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; }
  4085. fi
  4086. fi
  4087. if test -n "$MOZ_MSAN"; then
  4088. MOZ_LLVM_HACKS=1
  4089. CFLAGS="-fsanitize=memory -fsanitize-memory-track-origins $CFLAGS"
  4090. CXXFLAGS="-fsanitize=memory -fsanitize-memory-track-origins $CXXFLAGS"
  4091. if test -z "$CLANG_CL"; then
  4092. LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins $LDFLAGS"
  4093. fi
  4094. cat >> confdefs.pytmp <<\EOF
  4095. (''' MOZ_MSAN ''', ' 1 ')
  4096. EOF
  4097. cat >> confdefs.h <<\EOF
  4098. #define MOZ_MSAN 1
  4099. EOF
  4100. # Extract the first word of "llvm-symbolizer", so it can be a program name with args.
  4101. set dummy llvm-symbolizer; ac_word=$2
  4102. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4103. echo "configure:4579: checking for $ac_word" >&5
  4104. if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then
  4105. echo $ac_n "(cached) $ac_c" 1>&6
  4106. else
  4107. case "$LLVM_SYMBOLIZER" in
  4108. /*)
  4109. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path.
  4110. ;;
  4111. ?:/*)
  4112. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path.
  4113. ;;
  4114. *)
  4115. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4116. ac_dummy="$PATH"
  4117. for ac_dir in $ac_dummy; do
  4118. test -z "$ac_dir" && ac_dir=.
  4119. if test -f $ac_dir/$ac_word; then
  4120. ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word"
  4121. break
  4122. fi
  4123. done
  4124. IFS="$ac_save_ifs"
  4125. ;;
  4126. esac
  4127. fi
  4128. LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER"
  4129. if test -n "$LLVM_SYMBOLIZER"; then
  4130. echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6
  4131. else
  4132. echo "$ac_t""no" 1>&6
  4133. fi
  4134. if test "$msyshost"; then
  4135. case "$LLVM_SYMBOLIZER" in
  4136. /*)
  4137. tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"`
  4138. tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"`
  4139. tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
  4140. LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME"
  4141. if test -e "$LLVM_SYMBOLIZER.exe"; then
  4142. LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe"
  4143. fi
  4144. esac
  4145. fi
  4146. fi
  4147. # Check whether --enable-thread-sanitizer or --disable-thread-sanitizer was given.
  4148. if test "${enable_thread_sanitizer+set}" = set; then
  4149. enableval="$enable_thread_sanitizer"
  4150. if test "$enableval" = "yes"; then
  4151. MOZ_TSAN=1
  4152. elif test "$enableval" = "no"; then
  4153. MOZ_TSAN=
  4154. else
  4155. { echo "configure: error: Option, thread-sanitizer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, thread-sanitizer, does not take an argument ($enableval)." 1>&5; exit 1; }
  4156. fi
  4157. fi
  4158. if test -n "$MOZ_TSAN"; then
  4159. MOZ_LLVM_HACKS=1
  4160. CFLAGS="-fsanitize=thread $CFLAGS"
  4161. CXXFLAGS="-fsanitize=thread $CXXFLAGS"
  4162. if test -z "$CLANG_CL"; then
  4163. LDFLAGS="-fsanitize=thread $LDFLAGS"
  4164. fi
  4165. cat >> confdefs.pytmp <<\EOF
  4166. (''' MOZ_TSAN ''', ' 1 ')
  4167. EOF
  4168. cat >> confdefs.h <<\EOF
  4169. #define MOZ_TSAN 1
  4170. EOF
  4171. # Extract the first word of "llvm-symbolizer", so it can be a program name with args.
  4172. set dummy llvm-symbolizer; ac_word=$2
  4173. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4174. echo "configure:4656: checking for $ac_word" >&5
  4175. if eval "test \"`echo '$''{'ac_cv_path_LLVM_SYMBOLIZER'+set}'`\" = set"; then
  4176. echo $ac_n "(cached) $ac_c" 1>&6
  4177. else
  4178. case "$LLVM_SYMBOLIZER" in
  4179. /*)
  4180. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a path.
  4181. ;;
  4182. ?:/*)
  4183. ac_cv_path_LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER" # Let the user override the test with a dos path.
  4184. ;;
  4185. *)
  4186. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4187. ac_dummy="$PATH"
  4188. for ac_dir in $ac_dummy; do
  4189. test -z "$ac_dir" && ac_dir=.
  4190. if test -f $ac_dir/$ac_word; then
  4191. ac_cv_path_LLVM_SYMBOLIZER="$ac_dir/$ac_word"
  4192. break
  4193. fi
  4194. done
  4195. IFS="$ac_save_ifs"
  4196. ;;
  4197. esac
  4198. fi
  4199. LLVM_SYMBOLIZER="$ac_cv_path_LLVM_SYMBOLIZER"
  4200. if test -n "$LLVM_SYMBOLIZER"; then
  4201. echo "$ac_t""$LLVM_SYMBOLIZER" 1>&6
  4202. else
  4203. echo "$ac_t""no" 1>&6
  4204. fi
  4205. if test "$msyshost"; then
  4206. case "$LLVM_SYMBOLIZER" in
  4207. /*)
  4208. tmp_DIRNAME=`dirname "$LLVM_SYMBOLIZER"`
  4209. tmp_BASENAME=`basename "$LLVM_SYMBOLIZER"`
  4210. tmp_PWD=`cd "$tmp_DIRNAME" && pwd -W`
  4211. LLVM_SYMBOLIZER="$tmp_PWD/$tmp_BASENAME"
  4212. if test -e "$LLVM_SYMBOLIZER.exe"; then
  4213. LLVM_SYMBOLIZER="$LLVM_SYMBOLIZER.exe"
  4214. fi
  4215. esac
  4216. fi
  4217. fi
  4218. # The LLVM symbolizer is used by all sanitizers
  4219. # Check whether --enable-llvm-hacks or --disable-llvm-hacks was given.
  4220. if test "${enable_llvm_hacks+set}" = set; then
  4221. enableval="$enable_llvm_hacks"
  4222. if test "$enableval" = "yes"; then
  4223. MOZ_LLVM_HACKS=1
  4224. elif test "$enableval" = "no"; then
  4225. MOZ_LLVM_HACKS=
  4226. else
  4227. { echo "configure: error: Option, llvm-hacks, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, llvm-hacks, does not take an argument ($enableval)." 1>&5; exit 1; }
  4228. fi
  4229. fi
  4230. if test -n "$MOZ_LLVM_HACKS"; then
  4231. MOZ_NO_WLZDEFS=1
  4232. MOZ_CFLAGS_NSS=1
  4233. fi
  4234. cat > conftest.$ac_ext <<EOF
  4235. #line 4727 "configure"
  4236. #include "confdefs.h"
  4237. int main() {
  4238. ; return 0; }
  4239. EOF
  4240. if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4241. :
  4242. else
  4243. echo "configure: failed program was:" >&5
  4244. cat conftest.$ac_ext >&5
  4245. rm -rf conftest*
  4246. { echo "configure: error: compiler is incompatible with sanitize options" 1>&2; echo "configure: error: compiler is incompatible with sanitize options" 1>&5; exit 1; }
  4247. fi
  4248. rm -f conftest*
  4249. fi
  4250. if test "$GNU_CC"; then
  4251. MMX_FLAGS="-mmmx"
  4252. SSE_FLAGS="-msse"
  4253. SSE2_FLAGS="-msse2"
  4254. SSSE3_FLAGS="-mssse3"
  4255. # FIXME: Let us build with strict aliasing. bug 414641.
  4256. CFLAGS="$CFLAGS -fno-strict-aliasing"
  4257. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$(DSO_SONAME) -o $@'
  4258. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-h,$(DSO_SONAME) -o $@'
  4259. WARNINGS_AS_ERRORS='-Werror'
  4260. DSO_CFLAGS=''
  4261. DSO_PIC_CFLAGS='-fPIC'
  4262. ASFLAGS="$ASFLAGS -fPIC"
  4263. echo $ac_n "checking for --noexecstack option to as""... $ac_c" 1>&6
  4264. echo "configure:4761: checking for --noexecstack option to as" >&5
  4265. _SAVE_CFLAGS=$CFLAGS
  4266. CFLAGS="$CFLAGS -Wa,--noexecstack"
  4267. cat > conftest.$ac_ext <<EOF
  4268. #line 4765 "configure"
  4269. #include "confdefs.h"
  4270. int main() {
  4271. ; return 0; }
  4272. EOF
  4273. if { (eval echo configure:4772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4274. rm -rf conftest*
  4275. echo "$ac_t""yes" 1>&6
  4276. ASFLAGS="$ASFLAGS -Wa,--noexecstack"
  4277. else
  4278. echo "configure: failed program was:" >&5
  4279. cat conftest.$ac_ext >&5
  4280. rm -rf conftest*
  4281. echo "$ac_t""no" 1>&6
  4282. fi
  4283. rm -f conftest*
  4284. CFLAGS=$_SAVE_CFLAGS
  4285. echo $ac_n "checking for -z noexecstack option to ld""... $ac_c" 1>&6
  4286. echo "configure:4785: checking for -z noexecstack option to ld" >&5
  4287. _SAVE_LDFLAGS=$LDFLAGS
  4288. LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
  4289. cat > conftest.$ac_ext <<EOF
  4290. #line 4789 "configure"
  4291. #include "confdefs.h"
  4292. int main() {
  4293. ; return 0; }
  4294. EOF
  4295. if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4296. rm -rf conftest*
  4297. echo "$ac_t""yes" 1>&6
  4298. else
  4299. echo "configure: failed program was:" >&5
  4300. cat conftest.$ac_ext >&5
  4301. rm -rf conftest*
  4302. echo "$ac_t""no" 1>&6
  4303. LDFLAGS=$_SAVE_LDFLAGS
  4304. fi
  4305. rm -f conftest*
  4306. echo $ac_n "checking for -z text option to ld""... $ac_c" 1>&6
  4307. echo "configure:4809: checking for -z text option to ld" >&5
  4308. _SAVE_LDFLAGS=$LDFLAGS
  4309. LDFLAGS="$LDFLAGS -Wl,-z,text"
  4310. cat > conftest.$ac_ext <<EOF
  4311. #line 4813 "configure"
  4312. #include "confdefs.h"
  4313. int main() {
  4314. ; return 0; }
  4315. EOF
  4316. if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4317. rm -rf conftest*
  4318. echo "$ac_t""yes" 1>&6
  4319. NSPR_LDFLAGS="$NSPR_LDFLAGS -Wl,-z,text"
  4320. else
  4321. echo "configure: failed program was:" >&5
  4322. cat conftest.$ac_ext >&5
  4323. rm -rf conftest*
  4324. echo "$ac_t""no" 1>&6
  4325. LDFLAGS=$_SAVE_LDFLAGS
  4326. fi
  4327. rm -f conftest*
  4328. echo $ac_n "checking for --build-id option to ld""... $ac_c" 1>&6
  4329. echo "configure:4834: checking for --build-id option to ld" >&5
  4330. _SAVE_LDFLAGS=$LDFLAGS
  4331. LDFLAGS="$LDFLAGS -Wl,--build-id"
  4332. cat > conftest.$ac_ext <<EOF
  4333. #line 4838 "configure"
  4334. #include "confdefs.h"
  4335. int main() {
  4336. ; return 0; }
  4337. EOF
  4338. if { (eval echo configure:4845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4339. rm -rf conftest*
  4340. echo "$ac_t""yes" 1>&6
  4341. NSPR_LDFLAGS="$NSPR_LDFLAGS -Wl,--build-id"
  4342. else
  4343. echo "configure: failed program was:" >&5
  4344. cat conftest.$ac_ext >&5
  4345. rm -rf conftest*
  4346. echo "$ac_t""no" 1>&6
  4347. LDFLAGS=$_SAVE_LDFLAGS
  4348. fi
  4349. rm -f conftest*
  4350. echo $ac_n "checking for --ignore-unresolved-symbol option to ld""... $ac_c" 1>&6
  4351. echo "configure:4859: checking for --ignore-unresolved-symbol option to ld" >&5
  4352. HAVE_LINKER_SUPPORT_IGNORE_UNRESOLVED=
  4353. _SAVE_LDFLAGS=$LDFLAGS
  4354. LDFLAGS="$LDFLAGS -Wl,--ignore-unresolved-symbol,environ"
  4355. cat > conftest.$ac_ext <<EOF
  4356. #line 4864 "configure"
  4357. #include "confdefs.h"
  4358. int main() {
  4359. ; return 0; }
  4360. EOF
  4361. if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4362. rm -rf conftest*
  4363. echo "$ac_t""yes" 1>&6
  4364. HAVE_LINKER_SUPPORT_IGNORE_UNRESOLVED=1
  4365. else
  4366. echo "configure: failed program was:" >&5
  4367. cat conftest.$ac_ext >&5
  4368. rm -rf conftest*
  4369. echo "$ac_t""no" 1>&6
  4370. fi
  4371. rm -f conftest*
  4372. LDFLAGS=$_SAVE_LDFLAGS
  4373. # Check for -mssse3 on $CC
  4374. echo $ac_n "checking if toolchain supports -mssse3 option""... $ac_c" 1>&6
  4375. echo "configure:4886: checking if toolchain supports -mssse3 option" >&5
  4376. HAVE_TOOLCHAIN_SUPPORT_MSSSE3=
  4377. _SAVE_CFLAGS=$CFLAGS
  4378. CFLAGS="$CFLAGS -mssse3"
  4379. cat > conftest.$ac_ext <<EOF
  4380. #line 4891 "configure"
  4381. #include "confdefs.h"
  4382. asm ("pmaddubsw %xmm2,%xmm3");
  4383. int main() {
  4384. ; return 0; }
  4385. EOF
  4386. if { (eval echo configure:4898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4387. rm -rf conftest*
  4388. echo "$ac_t""yes" 1>&6
  4389. HAVE_TOOLCHAIN_SUPPORT_MSSSE3=1
  4390. else
  4391. echo "configure: failed program was:" >&5
  4392. cat conftest.$ac_ext >&5
  4393. rm -rf conftest*
  4394. echo "$ac_t""no" 1>&6
  4395. fi
  4396. rm -f conftest*
  4397. CFLAGS=$_SAVE_CFLAGS
  4398. # Check for -msse4.1 on $CC
  4399. echo $ac_n "checking if toolchain supports -msse4.1 option""... $ac_c" 1>&6
  4400. echo "configure:4913: checking if toolchain supports -msse4.1 option" >&5
  4401. HAVE_TOOLCHAIN_SUPPORT_MSSE4_1=
  4402. _SAVE_CFLAGS=$CFLAGS
  4403. CFLAGS="$CFLAGS -msse4.1"
  4404. cat > conftest.$ac_ext <<EOF
  4405. #line 4918 "configure"
  4406. #include "confdefs.h"
  4407. asm ("pmulld %xmm6,%xmm0");
  4408. int main() {
  4409. ; return 0; }
  4410. EOF
  4411. if { (eval echo configure:4925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4412. rm -rf conftest*
  4413. echo "$ac_t""yes" 1>&6
  4414. HAVE_TOOLCHAIN_SUPPORT_MSSE4_1=1
  4415. else
  4416. echo "configure: failed program was:" >&5
  4417. cat conftest.$ac_ext >&5
  4418. rm -rf conftest*
  4419. echo "$ac_t""no" 1>&6
  4420. fi
  4421. rm -f conftest*
  4422. CFLAGS=$_SAVE_CFLAGS
  4423. case "${CPU_ARCH}" in
  4424. x86 | x86_64)
  4425. echo $ac_n "checking for x86 AVX2 asm support in compiler""... $ac_c" 1>&6
  4426. echo "configure:4941: checking for x86 AVX2 asm support in compiler" >&5
  4427. cat > conftest.$ac_ext <<EOF
  4428. #line 4943 "configure"
  4429. #include "confdefs.h"
  4430. int main() {
  4431. asm volatile ("vpermq \$0xd8,%ymm0,%ymm0 \n");
  4432. ; return 0; }
  4433. EOF
  4434. if { (eval echo configure:4950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4435. rm -rf conftest*
  4436. result="yes"
  4437. else
  4438. echo "configure: failed program was:" >&5
  4439. cat conftest.$ac_ext >&5
  4440. rm -rf conftest*
  4441. result="no"
  4442. fi
  4443. rm -f conftest*
  4444. echo "$ac_t"""$result"" 1>&6
  4445. if test "$result" = "yes"; then
  4446. HAVE_X86_AVX2=1
  4447. fi
  4448. ;;
  4449. ppc*)
  4450. echo $ac_n "checking whether we can enable AltiVec support""... $ac_c" 1>&6
  4451. echo "configure:4968: checking whether we can enable AltiVec support" >&5
  4452. HAVE_ALTIVEC=
  4453. _SAVE_CFLAGS=$CFLAGS
  4454. CFLAGS="$CFLAGS -maltivec"
  4455. cat > conftest.$ac_ext <<EOF
  4456. #line 4973 "configure"
  4457. #include "confdefs.h"
  4458. int main() {
  4459. ; return 0; }
  4460. EOF
  4461. if { (eval echo configure:4980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4462. rm -rf conftest*
  4463. echo "$ac_t""yes" 1>&6
  4464. HAVE_ALTIVEC=1
  4465. else
  4466. echo "configure: failed program was:" >&5
  4467. cat conftest.$ac_ext >&5
  4468. rm -rf conftest*
  4469. echo "$ac_t""no" 1>&6
  4470. fi
  4471. rm -f conftest*
  4472. CFLAGS=$_SAVE_CFLAGS
  4473. ;;
  4474. esac
  4475. DSO_LDOPTS='-shared'
  4476. if test "$GCC_USE_GNU_LD"; then
  4477. # Some tools like ASan use a runtime library that is only
  4478. # linked against executables, so we must allow undefined
  4479. # symbols for shared objects in some cases.
  4480. if test -z "$MOZ_NO_WLZDEFS"; then
  4481. # Don't allow undefined symbols in libraries
  4482. DSO_LDOPTS="$DSO_LDOPTS -Wl,-z,defs"
  4483. # BSDs need `environ' exposed for posix_spawn (bug 753046)
  4484. case "$OS_TARGET" in
  4485. DragonFly|FreeBSD|NetBSD|OpenBSD)
  4486. if test -n "$HAVE_LINKER_SUPPORT_IGNORE_UNRESOLVED"; then
  4487. DSO_LDOPTS="$DSO_LDOPTS -Wl,--ignore-unresolved-symbol,environ"
  4488. else
  4489. DSO_LDOPTS="$DSO_LDOPTS -Wl,--warn-unresolved-symbols"
  4490. fi
  4491. ;;
  4492. esac
  4493. fi
  4494. fi
  4495. _DEFINES_CFLAGS='-include $(topobjdir)/mozilla-config.h -DMOZILLA_CLIENT'
  4496. _USE_CPP_INCLUDE_FLAG=1
  4497. ASFLAGS="$ASFLAGS $_DEFINES_CFLAGS"
  4498. else
  4499. MKSHLIB='$(LD) $(DSO_LDOPTS) -h $(DSO_SONAME) -o $@'
  4500. MKCSHLIB='$(LD) $(DSO_LDOPTS) -h $(DSO_SONAME) -o $@'
  4501. DSO_LDOPTS='-shared'
  4502. if test "$GNU_LD"; then
  4503. # Don't allow undefined symbols in libraries
  4504. DSO_LDOPTS="$DSO_LDOPTS -z defs"
  4505. fi
  4506. DSO_CFLAGS=''
  4507. DSO_PIC_CFLAGS='-KPIC'
  4508. _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
  4509. fi
  4510. if test "$GNU_CXX"; then
  4511. # FIXME: Let us build with strict aliasing. bug 414641.
  4512. CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-strict-aliasing"
  4513. _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -include $(topobjdir)/mozilla-config.h'
  4514. _USE_CPP_INCLUDE_FLAG=1
  4515. else
  4516. _DEFINES_CXXFLAGS='-DMOZILLA_CLIENT -D_MOZILLA_CONFIG_H_ $(ACDEFINES)'
  4517. fi
  4518. # Check whether --enable-valgrind or --disable-valgrind was given.
  4519. if test "${enable_valgrind+set}" = set; then
  4520. enableval="$enable_valgrind"
  4521. if test "$enableval" = "yes"; then
  4522. MOZ_VALGRIND=1
  4523. elif test "$enableval" = "no"; then
  4524. MOZ_VALGRIND=
  4525. else
  4526. { echo "configure: error: Option, valgrind, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, valgrind, does not take an argument ($enableval)." 1>&5; exit 1; }
  4527. fi
  4528. fi
  4529. if test -n "$MOZ_VALGRIND"; then
  4530. ac_safe=`echo "valgrind/valgrind.h" | sed 'y%./+-%__p_%'`
  4531. echo $ac_n "checking for valgrind/valgrind.h""... $ac_c" 1>&6
  4532. echo "configure:5063: checking for valgrind/valgrind.h" >&5
  4533. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  4534. echo $ac_n "(cached) $ac_c" 1>&6
  4535. else
  4536. cat > conftest.$ac_ext <<EOF
  4537. #line 5068 "configure"
  4538. #include "confdefs.h"
  4539. #include <valgrind/valgrind.h>
  4540. int main() {
  4541. ; return 0; }
  4542. EOF
  4543. if { (eval echo configure:5076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  4544. rm -rf conftest*
  4545. eval "ac_cv_header_$ac_safe=yes"
  4546. else
  4547. echo "configure: failed program was:" >&5
  4548. cat conftest.$ac_ext >&5
  4549. rm -rf conftest*
  4550. eval "ac_cv_header_$ac_safe=no"
  4551. fi
  4552. rm -f conftest*
  4553. fi
  4554. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  4555. echo "$ac_t""yes" 1>&6
  4556. :
  4557. else
  4558. echo "$ac_t""no" 1>&6
  4559. { echo "configure: error: --enable-valgrind specified but Valgrind is not installed" 1>&2; echo "configure: error: --enable-valgrind specified but Valgrind is not installed" 1>&5; exit 1; }
  4560. fi
  4561. cat >> confdefs.pytmp <<\EOF
  4562. (''' MOZ_VALGRIND ''', ' 1 ')
  4563. EOF
  4564. cat >> confdefs.h <<\EOF
  4565. #define MOZ_VALGRIND 1
  4566. EOF
  4567. fi
  4568. # For profiling builds keep the symbol information
  4569. if test "$MOZ_PROFILING" -a -z "$STRIP_FLAGS"; then
  4570. case "$OS_TARGET" in
  4571. Linux|DragonFly|FreeBSD|NetBSD|OpenBSD)
  4572. STRIP_FLAGS="--strip-debug"
  4573. ;;
  4574. esac
  4575. fi
  4576. case "$host" in
  4577. *mingw*)
  4578. if test -n "$_WIN32_MSVC"; then
  4579. HOST_AR=lib
  4580. HOST_AR_FLAGS='-NOLOGO -OUT:$@'
  4581. HOST_CFLAGS="$HOST_CFLAGS -TC -nologo"
  4582. HOST_RANLIB='echo ranlib'
  4583. else
  4584. HOST_CFLAGS="$HOST_CFLAGS -mwindows"
  4585. fi
  4586. HOST_CFLAGS="$HOST_CFLAGS -DXP_WIN32 -DXP_WIN -DWIN32 -D_WIN32 -D_CRT_SECURE_NO_WARNINGS"
  4587. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  4588. HOST_BIN_SUFFIX=.exe
  4589. case "${host_cpu}" in
  4590. i*86)
  4591. if test -n "$_WIN32_MSVC"; then
  4592. HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X86"
  4593. fi
  4594. ;;
  4595. x86_64)
  4596. if test -n "$_WIN32_MSVC"; then
  4597. HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X64"
  4598. fi
  4599. HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_"
  4600. ;;
  4601. esac
  4602. ;;
  4603. *-linux*|*-kfreebsd*-gnu|*-gnu*)
  4604. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  4605. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"
  4606. ;;
  4607. *)
  4608. HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX"
  4609. HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O2}"
  4610. ;;
  4611. esac
  4612. MOZILLA_VERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir`
  4613. MOZILLA_UAVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --uaversion`
  4614. MOZILLA_SYMBOLVERSION=`$PYTHON $srcdir/python/mozbuild/mozbuild/milestone.py --topsrcdir $srcdir --symbolversion`
  4615. if test -z "$MOZILLA_VERSION"; then
  4616. { echo "configure: error: failed to read version info from milestone file" 1>&2; echo "configure: error: failed to read version info from milestone file" 1>&5; exit 1; }
  4617. fi
  4618. cat >> confdefs.pytmp <<EOF
  4619. (''' MOZILLA_VERSION ''', r''' "$MOZILLA_VERSION" ''')
  4620. EOF
  4621. cat >> confdefs.h <<EOF
  4622. #define MOZILLA_VERSION "$MOZILLA_VERSION"
  4623. EOF
  4624. cat >> confdefs.pytmp <<EOF
  4625. (''' MOZILLA_VERSION_U ''', r''' $MOZILLA_VERSION ''')
  4626. EOF
  4627. cat >> confdefs.h <<EOF
  4628. #define MOZILLA_VERSION_U $MOZILLA_VERSION
  4629. EOF
  4630. cat >> confdefs.pytmp <<EOF
  4631. (''' MOZILLA_UAVERSION ''', r''' "$MOZILLA_UAVERSION" ''')
  4632. EOF
  4633. cat >> confdefs.h <<EOF
  4634. #define MOZILLA_UAVERSION "$MOZILLA_UAVERSION"
  4635. EOF
  4636. cat >> confdefs.pytmp <<EOF
  4637. (''' MOZILLA_UAVERSION_U ''', r''' $MOZILLA_UAVERSION ''')
  4638. EOF
  4639. cat >> confdefs.h <<EOF
  4640. #define MOZILLA_UAVERSION_U $MOZILLA_UAVERSION
  4641. EOF
  4642. cat > conftest.c <<EOF
  4643. int foo = 1;
  4644. EOF
  4645. lto_is_enabled=no
  4646. if ${CC-cc} ${CFLAGS} -S conftest.c -o conftest.s >/dev/null 2>&1; then
  4647. if grep '^target triple =' conftest.s; then
  4648. lto_is_enabled=yes
  4649. fi
  4650. fi
  4651. rm -f conftest.cs
  4652. case "$target" in
  4653. *-*linux*)
  4654. if test "$GNU_CC" -o "$GNU_CXX"; then
  4655. MOZ_PGO_OPTIMIZE_FLAGS="-O3"
  4656. MOZ_OPTIMIZE_FLAGS="-O2"
  4657. if test -z "$CLANG_CC"; then
  4658. MOZ_OPTIMIZE_FLAGS="-freorder-blocks $MOZ_OPTIMIZE_FLAGS"
  4659. fi
  4660. fi
  4661. case "${target_cpu}" in
  4662. alpha*)
  4663. CFLAGS="$CFLAGS -mieee"
  4664. CXXFLAGS="$CXXFLAGS -mieee"
  4665. ;;
  4666. esac
  4667. ;;
  4668. *-mingw*)
  4669. DSO_CFLAGS=
  4670. DSO_PIC_CFLAGS=
  4671. DLL_SUFFIX=.dll
  4672. RC=rc.exe
  4673. # certain versions of cygwin's makedepend barf on the
  4674. # #include <string> vs -I./dist/include/string issue so don't use it
  4675. if test -n "$GNU_CC" -o -n "$CLANG_CC"; then
  4676. CC="$CC -mwindows"
  4677. CXX="$CXX -mwindows"
  4678. CPP="$CPP -mwindows"
  4679. CFLAGS="$CFLAGS -mms-bitfields"
  4680. CXXFLAGS="$CXXFLAGS -mms-bitfields"
  4681. DSO_LDOPTS='-shared'
  4682. MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
  4683. MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
  4684. RC='$(WINDRES)'
  4685. # Use static libgcc and libstdc++
  4686. LDFLAGS="$LDFLAGS -static"
  4687. NSPR_LDFLAGS="$NSPR_LDFLAGS -static-libgcc"
  4688. # Use temp file for windres (bug 213281)
  4689. RCFLAGS='-O coff --use-temp-file'
  4690. # mingw doesn't require kernel32, user32, and advapi32 explicitly
  4691. LIBS="$LIBS -luuid -lgdi32 -lwinmm -lwsock32 -luserenv -lsecur32"
  4692. MOZ_FIX_LINK_PATHS=
  4693. DLL_PREFIX=
  4694. IMPORT_LIB_SUFFIX=a
  4695. WIN32_CONSOLE_EXE_LDFLAGS=-mconsole
  4696. WIN32_GUI_EXE_LDFLAGS=-mwindows
  4697. # GCC/binutils can't link to a function if we try to include dllexport function
  4698. # in the same library as dllimport caller. To work around it, we build NSPR
  4699. # and NSS with -mnop-fun-dllimport flag. The drawback of this solution is that
  4700. # function thunks need to be generated for cross-DLL calls.
  4701. MOZ_FOLD_LIBS_FLAGS=-mnop-fun-dllimport
  4702. else
  4703. TARGET_COMPILER_ABI=msvc
  4704. HOST_LD='$(LD)'
  4705. if test "$AS_BIN"; then
  4706. AS="$(basename "$AS_BIN")"
  4707. fi
  4708. AR='lib'
  4709. AR_FLAGS='-NOLOGO -OUT:$@'
  4710. AR_EXTRACT=
  4711. RANLIB='echo not_ranlib'
  4712. STRIP='echo not_strip'
  4713. PKG_SKIP_STRIP=1
  4714. OBJ_SUFFIX=obj
  4715. LIB_SUFFIX=lib
  4716. DLL_PREFIX=
  4717. LIB_PREFIX=
  4718. IMPORT_LIB_SUFFIX=lib
  4719. MKSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ -PDB:$(LINK_PDBFILE) $(DSO_LDOPTS)'
  4720. MKCSHLIB='$(LD) -NOLOGO -DLL -OUT:$@ -PDB:$(LINK_PDBFILE) $(DSO_LDOPTS)'
  4721. WIN32_SUBSYSTEM_VERSION=6.01
  4722. WIN32_CONSOLE_EXE_LDFLAGS=-SUBSYSTEM:CONSOLE,$WIN32_SUBSYSTEM_VERSION
  4723. WIN32_GUI_EXE_LDFLAGS=-SUBSYSTEM:WINDOWS,$WIN32_SUBSYSTEM_VERSION
  4724. DSO_LDOPTS=-SUBSYSTEM:WINDOWS,$WIN32_SUBSYSTEM_VERSION
  4725. _USE_CPP_INCLUDE_FLAG=1
  4726. _DEFINES_CFLAGS='-FI $(topobjdir)/mozilla-config.h -DMOZILLA_CLIENT'
  4727. _DEFINES_CXXFLAGS='-FI $(topobjdir)/mozilla-config.h -DMOZILLA_CLIENT'
  4728. CFLAGS="$CFLAGS -W3 -Gy -Zc:inline"
  4729. CXXFLAGS="$CXXFLAGS -W3 -Gy -Zc:inline"
  4730. if test -z "$CLANG_CL"; then
  4731. CFLAGS="$CFLAGS -utf-8"
  4732. CXXFLAGS="$CXXFLAGS -utf-8"
  4733. fi
  4734. if test "$CPU_ARCH" = "x86"; then
  4735. SSE_FLAGS="-arch:SSE"
  4736. SSE2_FLAGS="-arch:SSE2"
  4737. SSSE3_FLAGS="-arch:SSE2"
  4738. fi
  4739. if test -n "$CLANG_CL"; then
  4740. SSSE3_FLAGS="-mssse3"
  4741. fi
  4742. CFLAGS="$CFLAGS -FS"
  4743. CXXFLAGS="$CXXFLAGS -FS"
  4744. if test -z "$MOZ_ASAN"; then
  4745. CFLAGS="$CFLAGS -Gw"
  4746. CXXFLAGS="$CXXFLAGS -Gw"
  4747. fi
  4748. # khuey says we can safely ignore MSVC warning C4251
  4749. # MSVC warning C4244 (implicit type conversion may lose data) warns
  4750. # and requires workarounds for perfectly valid code. Also, GCC/clang
  4751. # don't warn about it by default. So for consistency/sanity, we turn
  4752. # it off on MSVC, too.
  4753. # MSVC warning C4267 warns for narrowing type conversions from size_t
  4754. # to 32-bit integer types on 64-bit platforms. Since this is virtually
  4755. # the same thing as C4244, we disable C4267, too.
  4756. # MSVC warning C4345 warns of newly conformant behavior as of VS2003.
  4757. # MSVC warning C4351 warns of newly conformant behavior as of VS2005.
  4758. # MSVC warning C4800 warns when a value is implicitly cast to bool,
  4759. # because this also forces narrowing to a single byte, which can be a
  4760. # perf hit. But this matters so little in practice (and often we want
  4761. # that behavior) that it's better to turn it off.
  4762. # MSVC warning wd4595 warns non-member operator new or delete functions
  4763. # may not be declared inline, as of VS2015 Update 2.
  4764. CFLAGS="$CFLAGS -wd4244 -wd4267"
  4765. CXXFLAGS="$CXXFLAGS -wd4251 -wd4244 -wd4267 -wd4345 -wd4351 -wd4800 -wd4595"
  4766. if test -n "$CLANG_CL"; then
  4767. # XXX We should combine some of these with our generic GCC-style
  4768. # warning checks.
  4769. #
  4770. # Suppress the clang-cl warning for the inline 'new' and 'delete' in mozalloc
  4771. CXXFLAGS="$CXXFLAGS -Wno-inline-new-delete"
  4772. # We use offsetof on non-POD objects all the time.
  4773. # We also suppress this warning on other platforms.
  4774. CXXFLAGS="$CXXFLAGS -Wno-invalid-offsetof"
  4775. # MFBT thinks clang-cl supports constexpr, which it does, but
  4776. # not everything in Windows C++ headers supports constexpr
  4777. # as we might expect until MSVC 2015, so turn off this warning
  4778. # for now.
  4779. CXXFLAGS="$CXXFLAGS -Wno-invalid-constexpr"
  4780. # This warns for reasonable things like:
  4781. # enum { X = 0xffffffffU };
  4782. # which is annoying for IDL headers.
  4783. CXXFLAGS="$CXXFLAGS -Wno-microsoft-enum-value"
  4784. # This warns for cases that would be reached by the Microsoft
  4785. # #include rules, but also currently warns on cases that would
  4786. # *also* be reached by standard C++ include rules. That
  4787. # behavior doesn't seem useful, so we turn it off.
  4788. CXXFLAGS="$CXXFLAGS -Wno-microsoft-include"
  4789. # We normally error out on unknown pragmas, but since clang-cl
  4790. # claims to be MSVC, it would be difficult to add
  4791. # #if defined(_MSC_VER) && !defined(__clang__) everywhere we
  4792. # use such pragmas, so just ignore them.
  4793. CFLAGS="$CFLAGS -Wno-unknown-pragmas"
  4794. CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas"
  4795. # We get errors about various #pragma intrinsic directives from
  4796. # clang-cl, and we don't need to hear about those.
  4797. CFLAGS="$CFLAGS -Wno-ignored-pragmas"
  4798. CXXFLAGS="$CXXFLAGS -Wno-ignored-pragmas"
  4799. # clang-cl's Intrin.h marks things like _ReadWriteBarrier
  4800. # as __attribute((__deprecated__)). This is nice to know,
  4801. # but since we don't get the equivalent warning from MSVC,
  4802. # let's just ignore it.
  4803. CFLAGS="$CFLAGS -Wno-deprecated-declarations"
  4804. CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"
  4805. # We use a function like:
  4806. # __declspec(noreturn) __inline void f() {}
  4807. # which -Winvalid-noreturn complains about. Again, MSVC seems
  4808. # OK with it, so let's silence the warning.
  4809. CFLAGS="$CFLAGS -Wno-invalid-noreturn"
  4810. CXXFLAGS="$CXXFLAGS -Wno-invalid-noreturn"
  4811. # Missing |override| on virtual function declarations isn't
  4812. # something that MSVC currently warns about.
  4813. CXXFLAGS="$CXXFLAGS -Wno-inconsistent-missing-override"
  4814. # We use -DHAS_EXCEPTIONS=0, which removes the |throw()|
  4815. # declaration on |operator delete(void*)|. However, clang-cl
  4816. # must internally declare |operator delete(void*)| differently,
  4817. # which causes this warning for virtually every file in the
  4818. # tree. clang-cl doesn't support -fno-exceptions or equivalent,
  4819. # so there doesn't seem to be any way to convince clang-cl to
  4820. # declare |delete| differently. Therefore, suppress this
  4821. # warning.
  4822. CXXFLAGS="$CXXFLAGS -Wno-implicit-exception-spec-mismatch"
  4823. # At least one MSVC header and several headers in-tree have
  4824. # unused typedefs, so turn this on.
  4825. CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedef"
  4826. # Several JS engine header files use __declspec(dllimport) on
  4827. # classes, and clang-cl helpfully warns about its non-support
  4828. # for such cases. We're not particularly worried about that,
  4829. # so ignore that warning.
  4830. CXXFLAGS="$CXXFLAGS -Wno-ignored-attributes"
  4831. fi
  4832. # make 'foo == bar;' error out
  4833. CFLAGS="$CFLAGS -we4553"
  4834. CXXFLAGS="$CXXFLAGS -we4553"
  4835. LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
  4836. MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'
  4837. WARNINGS_AS_ERRORS='-WX'
  4838. MOZ_OPTIMIZE_FLAGS='-O1 -Oi'
  4839. MOZ_FIX_LINK_PATHS=
  4840. num_cores=$($PYTHON -c 'import multiprocessing; print(min(8,multiprocessing.cpu_count()))')
  4841. cgthreads="-CGTHREADS:${num_cores}"
  4842. LDFLAGS="$LDFLAGS -LARGEADDRESSAWARE -NXCOMPAT -DYNAMICBASE -OPT:REF -OPT:ICF=${num_cores} $cgthreads"
  4843. if test -z "$DEVELOPER_OPTIONS"; then
  4844. LDFLAGS="$LDFLAGS -RELEASE"
  4845. fi
  4846. PROFILE_GEN_CFLAGS="-GL"
  4847. PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT"
  4848. PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952"
  4849. PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE"
  4850. RCFLAGS="-nologo"
  4851. HAVE_TOOLCHAIN_SUPPORT_MSSSE3=1
  4852. HAVE_TOOLCHAIN_SUPPORT_MSSE4_1=1
  4853. HAVE_X86_AVX2=1
  4854. fi
  4855. cat >> confdefs.pytmp <<\EOF
  4856. (''' WIN32_LEAN_AND_MEAN ''', ' 1 ')
  4857. EOF
  4858. cat >> confdefs.h <<\EOF
  4859. #define WIN32_LEAN_AND_MEAN 1
  4860. EOF
  4861. cat >> confdefs.pytmp <<\EOF
  4862. (''' NOMINMAX ''', ' 1 ')
  4863. EOF
  4864. cat >> confdefs.h <<\EOF
  4865. #define NOMINMAX 1
  4866. EOF
  4867. BIN_SUFFIX='.exe'
  4868. MOZ_USER_DIR="Mozilla"
  4869. case "$host_os" in
  4870. cygwin*|msvc*|mks*)
  4871. { echo "configure: error: Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites." 1>&2; echo "configure: error: Using a Cygwin build environment is unsupported. Configure cannot check for presence of necessary headers. Please upgrade to MozillaBuild; see https://developer.mozilla.org/en/Windows_Build_Prerequisites." 1>&5; exit 1; }
  4872. ;;
  4873. esac
  4874. case "$target" in
  4875. i*86-*)
  4876. if test -n "$GNU_CC"; then
  4877. CFLAGS="$CFLAGS -mstackrealign -fno-keep-inline-dllexport"
  4878. CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport"
  4879. LDFLAGS="$LDFLAGS -Wl,--enable-stdcall-fixup -Wl,--large-address-aware"
  4880. else
  4881. DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X86"
  4882. LDFLAGS="$LDFLAGS -SAFESEH"
  4883. fi
  4884. cat >> confdefs.pytmp <<\EOF
  4885. (''' _X86_ ''', ' 1 ')
  4886. EOF
  4887. cat >> confdefs.h <<\EOF
  4888. #define _X86_ 1
  4889. EOF
  4890. ;;
  4891. x86_64-*)
  4892. if test -n "$_WIN32_MSVC"; then
  4893. DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X64"
  4894. fi
  4895. cat >> confdefs.pytmp <<\EOF
  4896. (''' _AMD64_ ''', ' 1 ')
  4897. EOF
  4898. cat >> confdefs.h <<\EOF
  4899. #define _AMD64_ 1
  4900. EOF
  4901. ;;
  4902. *)
  4903. cat >> confdefs.pytmp <<\EOF
  4904. (''' _CPU_ARCH_NOT_DEFINED ''', ' 1 ')
  4905. EOF
  4906. cat >> confdefs.h <<\EOF
  4907. #define _CPU_ARCH_NOT_DEFINED 1
  4908. EOF
  4909. ;;
  4910. esac
  4911. ;;
  4912. *-netbsd*)
  4913. DSO_CFLAGS=''
  4914. CFLAGS="$CFLAGS -Dunix"
  4915. CXXFLAGS="$CXXFLAGS -Dunix"
  4916. if $CC -E - -dM </dev/null | grep __ELF__ >/dev/null; then
  4917. DLL_SUFFIX=".so"
  4918. DSO_PIC_CFLAGS='-fPIC -DPIC'
  4919. DSO_LDOPTS='-shared'
  4920. BIN_FLAGS='-Wl,--export-dynamic'
  4921. else
  4922. DSO_PIC_CFLAGS='-fPIC -DPIC'
  4923. DLL_SUFFIX=".so.1.0"
  4924. DSO_LDOPTS='-shared'
  4925. fi
  4926. # This will fail on a.out systems prior to 1.5.1_ALPHA.
  4927. if test "$LIBRUNPATH"; then
  4928. DSO_LDOPTS="-Wl,-R$LIBRUNPATH $DSO_LDOPTS"
  4929. fi
  4930. MKSHLIB='$(CXX) $(CXXFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$(DSO_SONAME) -o $@'
  4931. MKCSHLIB='$(CC) $(CFLAGS) $(DSO_PIC_CFLAGS) $(DSO_LDOPTS) -Wl,-soname,$(DSO_SONAME) -o $@'
  4932. ;;
  4933. *-openbsd*)
  4934. if test "$SO_VERSION"; then
  4935. DLL_SUFFIX=".so.$SO_VERSION"
  4936. else
  4937. DLL_SUFFIX=".so.1.0"
  4938. fi
  4939. if test -z "$X11BASE"; then
  4940. X11BASE=/usr/X11R6
  4941. fi
  4942. MOZ_FIX_LINK_PATHS="$MOZ_FIX_LINK_PATHS -Wl,-rpath-link,${X11BASE}/lib"
  4943. DSO_CFLAGS=''
  4944. DSO_PIC_CFLAGS='-fPIC'
  4945. DSO_LDOPTS='-shared -fPIC'
  4946. if test "$LIBRUNPATH"; then
  4947. DSO_LDOPTS="-R$LIBRUNPATH $DSO_LDOPTS"
  4948. fi
  4949. ;;
  4950. i*86-*-solaris*)
  4951. MOZ_FIX_LINK_PATHS="-L${DIST}/bin -R'\$\$ORIGIN':/usr/gcc/7/lib"
  4952. ;;
  4953. x86_64-*-solaris*)
  4954. MOZ_FIX_LINK_PATHS="-L${DIST}/bin -R'\$\$ORIGIN':/usr/gcc/7/lib/amd64"
  4955. ;;
  4956. esac
  4957. if test -n "$MOZ_LINKER"; then
  4958. cat >> confdefs.pytmp <<\EOF
  4959. (''' MOZ_LINKER ''', ' 1 ')
  4960. EOF
  4961. cat >> confdefs.h <<\EOF
  4962. #define MOZ_LINKER 1
  4963. EOF
  4964. MOZ_LINKER_EXTRACT=1
  4965. for ac_prog in xz
  4966. do
  4967. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4968. set dummy $ac_prog; ac_word=$2
  4969. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  4970. echo "configure:5552: checking for $ac_word" >&5
  4971. if eval "test \"`echo '$''{'ac_cv_prog_XZ'+set}'`\" = set"; then
  4972. echo $ac_n "(cached) $ac_c" 1>&6
  4973. else
  4974. if test -n "$XZ"; then
  4975. ac_cv_prog_XZ="$XZ" # Let the user override the test.
  4976. else
  4977. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4978. ac_dummy="$PATH"
  4979. for ac_dir in $ac_dummy; do
  4980. test -z "$ac_dir" && ac_dir=.
  4981. if test -f $ac_dir/$ac_word; then
  4982. ac_cv_prog_XZ="$ac_prog"
  4983. break
  4984. fi
  4985. done
  4986. IFS="$ac_save_ifs"
  4987. fi
  4988. fi
  4989. XZ="$ac_cv_prog_XZ"
  4990. if test -n "$XZ"; then
  4991. echo "$ac_t""$XZ" 1>&6
  4992. else
  4993. echo "$ac_t""no" 1>&6
  4994. fi
  4995. test -n "$XZ" && break
  4996. done
  4997. fi
  4998. cat >> confdefs.pytmp <<EOF
  4999. (''' D_INO ''', r''' $DIRENT_INO ''')
  5000. EOF
  5001. cat >> confdefs.h <<EOF
  5002. #define D_INO $DIRENT_INO
  5003. EOF
  5004. case "$target" in
  5005. *-linux*|*-kfreebsd*-gnu|*-gnu*)
  5006. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script -Wl,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  5007. ;;
  5008. *-mingw*)
  5009. if test -n "$GNU_CC"; then
  5010. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS='-Wl,--version-script,$(BUILD_TOOLS)/gnu-ld-scripts/components-version-script'
  5011. fi
  5012. ;;
  5013. esac
  5014. if test -z "$COMPILE_ENVIRONMENT"; then
  5015. SKIP_COMPILER_CHECKS=1
  5016. SKIP_LIBRARY_CHECKS=1
  5017. PKG_SKIP_STRIP=1
  5018. if test -z "$MOZ_DEBUG" -o -n "$MOZ_ASAN"; then
  5019. MOZ_NO_DEBUG_RTL=1
  5020. fi
  5021. MOZ_DEBUG_ENABLE_DEFS="DEBUG TRACING"
  5022. # Check whether --with-debug-label or --without-debug-label was given.
  5023. if test "${with_debug_label+set}" = set; then
  5024. withval="$with_debug_label"
  5025. for option in `echo $withval | sed 's/,/ /g'`; do
  5026. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS DEBUG_${option}"
  5027. done
  5028. fi
  5029. if test -n "$MOZ_DEBUG"; then
  5030. if test -n "$COMPILE_ENVIRONMENT"; then
  5031. echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6
  5032. echo "configure:5627: checking for valid debug flags" >&5
  5033. _SAVE_CFLAGS=$CFLAGS
  5034. CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
  5035. cat > conftest.$ac_ext <<EOF
  5036. #line 5631 "configure"
  5037. #include "confdefs.h"
  5038. #include <stdio.h>
  5039. int main() {
  5040. printf("Hello World\n");
  5041. ; return 0; }
  5042. EOF
  5043. if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5044. rm -rf conftest*
  5045. _results=yes
  5046. else
  5047. echo "configure: failed program was:" >&5
  5048. cat conftest.$ac_ext >&5
  5049. rm -rf conftest*
  5050. _results=no
  5051. fi
  5052. rm -f conftest*
  5053. echo "$ac_t""$_results" 1>&6
  5054. if test "$_results" = "no"; then
  5055. { echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&2; echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&5; exit 1; }
  5056. fi
  5057. CFLAGS=$_SAVE_CFLAGS
  5058. fi
  5059. MOZ_DEBUG_DEFINES="$MOZ_DEBUG_ENABLE_DEFS"
  5060. else
  5061. MOZ_DEBUG_DEFINES="NDEBUG TRIMMED"
  5062. fi
  5063. else
  5064. if test -z "$MOZ_DEBUG" -o -n "$MOZ_ASAN"; then
  5065. MOZ_NO_DEBUG_RTL=1
  5066. fi
  5067. MOZ_DEBUG_ENABLE_DEFS="DEBUG TRACING"
  5068. # Check whether --with-debug-label or --without-debug-label was given.
  5069. if test "${with_debug_label+set}" = set; then
  5070. withval="$with_debug_label"
  5071. for option in `echo $withval | sed 's/,/ /g'`; do
  5072. MOZ_DEBUG_ENABLE_DEFS="$MOZ_DEBUG_ENABLE_DEFS DEBUG_${option}"
  5073. done
  5074. fi
  5075. if test -n "$MOZ_DEBUG"; then
  5076. if test -n "$COMPILE_ENVIRONMENT"; then
  5077. echo $ac_n "checking for valid debug flags""... $ac_c" 1>&6
  5078. echo "configure:5686: checking for valid debug flags" >&5
  5079. _SAVE_CFLAGS=$CFLAGS
  5080. CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS"
  5081. cat > conftest.$ac_ext <<EOF
  5082. #line 5690 "configure"
  5083. #include "confdefs.h"
  5084. #include <stdio.h>
  5085. int main() {
  5086. printf("Hello World\n");
  5087. ; return 0; }
  5088. EOF
  5089. if { (eval echo configure:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5090. rm -rf conftest*
  5091. _results=yes
  5092. else
  5093. echo "configure: failed program was:" >&5
  5094. cat conftest.$ac_ext >&5
  5095. rm -rf conftest*
  5096. _results=no
  5097. fi
  5098. rm -f conftest*
  5099. echo "$ac_t""$_results" 1>&6
  5100. if test "$_results" = "no"; then
  5101. { echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&2; echo "configure: error: These compiler flags are invalid: $MOZ_DEBUG_FLAGS" 1>&5; exit 1; }
  5102. fi
  5103. CFLAGS=$_SAVE_CFLAGS
  5104. fi
  5105. MOZ_DEBUG_DEFINES="$MOZ_DEBUG_ENABLE_DEFS"
  5106. else
  5107. MOZ_DEBUG_DEFINES="NDEBUG TRIMMED"
  5108. fi
  5109. # Check whether --enable-cpp-rtti or --disable-cpp-rtti was given.
  5110. if test "${enable_cpp_rtti+set}" = set; then
  5111. enableval="$enable_cpp_rtti"
  5112. if test "$enableval" = "yes"; then
  5113. _MOZ_USE_RTTI=1
  5114. elif test "$enableval" = "no"; then
  5115. _MOZ_USE_RTTI=
  5116. else
  5117. { echo "configure: error: Option, cpp-rtti, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, cpp-rtti, does not take an argument ($enableval)." 1>&5; exit 1; }
  5118. fi
  5119. fi
  5120. if test -z "$_MOZ_USE_RTTI"; then
  5121. if test "$GNU_CC"; then
  5122. CXXFLAGS="$CXXFLAGS -fno-rtti"
  5123. else
  5124. case "$target" in
  5125. *-mingw*)
  5126. CXXFLAGS="$CXXFLAGS -GR-"
  5127. esac
  5128. fi
  5129. fi
  5130. if test "$CLANG_CXX"; then
  5131. ## We disable return-type-c-linkage because jsval is defined as a C++ type but is
  5132. ## returned by C functions. This is possible because we use knowledge about the ABI
  5133. ## to typedef it to a C type with the same layout when the headers are included
  5134. ## from C.
  5135. _WARNINGS_CXXFLAGS="${_WARNINGS_CXXFLAGS} -Wno-unknown-warning-option -Wno-return-type-c-linkage"
  5136. fi
  5137. if test -n "$DEVELOPER_OPTIONS"; then
  5138. MOZ_FORCE_GOLD=1
  5139. fi
  5140. # Check whether --enable-gold or --disable-gold was given.
  5141. if test "${enable_gold+set}" = set; then
  5142. enableval="$enable_gold"
  5143. if test "$enableval" = "yes"; then
  5144. MOZ_FORCE_GOLD=1
  5145. elif test "$enableval" = "no"; then
  5146. MOZ_FORCE_GOLD=
  5147. else
  5148. { echo "configure: error: Option, gold, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, gold, does not take an argument ($enableval)." 1>&5; exit 1; }
  5149. fi
  5150. fi
  5151. if test "$GNU_CC" -a -n "$MOZ_FORCE_GOLD"; then
  5152. if $CC -Wl,--version 2>&1 | grep -q "GNU ld"; then
  5153. GOLD=$($CC -print-prog-name=ld.gold)
  5154. case "$GOLD" in
  5155. /*)
  5156. ;;
  5157. *)
  5158. GOLD=$(which $GOLD)
  5159. ;;
  5160. esac
  5161. if test -n "$GOLD"; then
  5162. mkdir -p $_objdir/build/unix/gold
  5163. rm -f $_objdir/build/unix/gold/ld
  5164. ln -s "$GOLD" $_objdir/build/unix/gold/ld
  5165. if $CC -B $_objdir/build/unix/gold -Wl,--version 2>&1 | grep -q "GNU gold"; then
  5166. LDFLAGS="$LDFLAGS -B $_objdir/build/unix/gold"
  5167. else
  5168. rm -rf $_objdir/build/unix/gold
  5169. fi
  5170. fi
  5171. fi
  5172. fi
  5173. if test "$GNU_CC"; then
  5174. if $CC $LDFLAGS -Wl,--version 2>&1 | grep -q "GNU ld"; then
  5175. LD_IS_BFD=1
  5176. fi
  5177. fi
  5178. if test "$GNU_CC"; then
  5179. if test -z "$DEVELOPER_OPTIONS"; then
  5180. CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
  5181. CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
  5182. fi
  5183. CFLAGS="$CFLAGS -fno-math-errno"
  5184. CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
  5185. if test "$CPU_ARCH" = "x86" -o "$CPU_ARCH" = "x86_64"; then
  5186. CFLAGS="$CFLAGS -msse2 -mfpmath=sse"
  5187. CXXFLAGS="$CXXFLAGS -msse2 -mfpmath=sse"
  5188. fi
  5189. if test -z "$CLANG_CC"; then
  5190. case "$CC_VERSION" in
  5191. 4.* | 5.*)
  5192. ;;
  5193. *)
  5194. # Lifetime Dead Store Elimination level 2 (default in GCC6+) breaks Gecko.
  5195. # Instead of completely disabling this optimization on newer GCC's,
  5196. # we'll force them to use level 1 optimization with -flifetime-dse=1.
  5197. # Add it first so that a mozconfig can override by setting CFLAGS/CXXFLAGS.
  5198. CFLAGS="-flifetime-dse=1 $CFLAGS"
  5199. CXXFLAGS="-flifetime-dse=1 $CXXFLAGS"
  5200. ;;
  5201. esac
  5202. fi
  5203. fi
  5204. # Check whether --enable-icf or --disable-icf was given.
  5205. if test "${enable_icf+set}" = set; then
  5206. enableval="$enable_icf"
  5207. if test "$enableval" = "no"; then
  5208. MOZ_DISABLE_ICF=1
  5209. elif test "$enableval" = "yes"; then
  5210. MOZ_DISABLE_ICF=
  5211. else
  5212. { echo "configure: error: Option, icf, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, icf, does not take an argument ($enableval)." 1>&5; exit 1; }
  5213. fi
  5214. fi
  5215. if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$MOZ_DISABLE_ICF" -a -z "$DEVELOPER_OPTIONS"; then
  5216. echo $ac_n "checking whether the linker supports Identical Code Folding""... $ac_c" 1>&6
  5217. echo "configure:5848: checking whether the linker supports Identical Code Folding" >&5
  5218. if eval "test \"`echo '$''{'LD_SUPPORTS_ICF'+set}'`\" = set"; then
  5219. echo $ac_n "(cached) $ac_c" 1>&6
  5220. else
  5221. echo 'int foo() {return 42;}' \
  5222. 'int bar() {return 42;}' \
  5223. 'int main() {return foo() - bar();}' > conftest.${ac_ext}
  5224. # If the linker supports ICF, foo and bar symbols will have
  5225. # the same address
  5226. if { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS -Wl,--icf=safe -ffunction-sections conftest.${ac_ext} $LIBS 1>&2'; { (eval echo configure:5857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  5227. test -s conftest${ac_exeext} &&
  5228. objdump -t conftest${ac_exeext} | awk '{a[$6] = $1} END {if (a["foo"] && (a["foo"] != a["bar"])) { exit 1 }}'; then
  5229. LD_SUPPORTS_ICF=yes
  5230. else
  5231. LD_SUPPORTS_ICF=no
  5232. fi
  5233. rm -rf conftest*
  5234. fi
  5235. echo "$ac_t""$LD_SUPPORTS_ICF" 1>&6
  5236. if test "$LD_SUPPORTS_ICF" = yes; then
  5237. _SAVE_LDFLAGS="$LDFLAGS -Wl,--icf=safe"
  5238. LDFLAGS="$LDFLAGS -Wl,--icf=safe -Wl,--print-icf-sections"
  5239. cat > conftest.$ac_ext <<EOF
  5240. #line 5872 "configure"
  5241. #include "confdefs.h"
  5242. int main() {
  5243. ; return 0; }
  5244. EOF
  5245. if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5246. rm -rf conftest*
  5247. LD_PRINT_ICF_SECTIONS=-Wl,--print-icf-sections
  5248. else
  5249. echo "configure: failed program was:" >&5
  5250. cat conftest.$ac_ext >&5
  5251. rm -rf conftest*
  5252. LD_PRINT_ICF_SECTIONS=
  5253. fi
  5254. rm -f conftest*
  5255. LDFLAGS="$_SAVE_LDFLAGS"
  5256. fi
  5257. fi
  5258. if test "$GNU_CC" -a "$GCC_USE_GNU_LD" -a -z "$DEVELOPER_OPTIONS"; then
  5259. if test -n "$MOZ_DEBUG_FLAGS"; then
  5260. echo $ac_n "checking whether removing dead symbols breaks debugging""... $ac_c" 1>&6
  5261. echo "configure:5898: checking whether removing dead symbols breaks debugging" >&5
  5262. if eval "test \"`echo '$''{'GC_SECTIONS_BREAKS_DEBUG_RANGES'+set}'`\" = set"; then
  5263. echo $ac_n "(cached) $ac_c" 1>&6
  5264. else
  5265. echo 'int foo() {return 42;}' \
  5266. 'int bar() {return 1;}' \
  5267. 'int main() {return foo();}' > conftest.${ac_ext}
  5268. if { ac_try='${CC-cc} -o conftest.${ac_objext} $CFLAGS $MOZ_DEBUG_FLAGS -c conftest.${ac_ext} 1>&2'; { (eval echo configure:5905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  5269. { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS $MOZ_DEBUG_FLAGS -Wl,--gc-sections conftest.${ac_objext} $LIBS 1>&2'; { (eval echo configure:5906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  5270. test -s conftest${ac_exeext} -a -s conftest.${ac_objext}; then
  5271. if test "`$PYTHON -m mozbuild.configure.check_debug_ranges conftest.${ac_objext} conftest.${ac_ext}`" = \
  5272. "`$PYTHON -m mozbuild.configure.check_debug_ranges conftest${ac_exeext} conftest.${ac_ext}`"; then
  5273. GC_SECTIONS_BREAKS_DEBUG_RANGES=no
  5274. else
  5275. GC_SECTIONS_BREAKS_DEBUG_RANGES=yes
  5276. fi
  5277. else
  5278. GC_SECTIONS_BREAKS_DEBUG_RANGES="no, but it's broken in some other way"
  5279. fi
  5280. rm -rf conftest*
  5281. fi
  5282. echo "$ac_t""$GC_SECTIONS_BREAKS_DEBUG_RANGES" 1>&6
  5283. if test "$GC_SECTIONS_BREAKS_DEBUG_RANGES" = no; then
  5284. DSO_LDOPTS="$DSO_LDOPTS -Wl,--gc-sections"
  5285. fi
  5286. else
  5287. DSO_LDOPTS="$DSO_LDOPTS -Wl,--gc-sections"
  5288. fi
  5289. fi
  5290. # bionic in Android < 4.1 doesn't support PIE
  5291. # On OSX, the linker defaults to building PIE programs when targetting OSX 10.7+,
  5292. # but not when targetting OSX < 10.7. OSX < 10.7 doesn't support running PIE
  5293. # programs, so as long as support for OSX 10.6 is kept, we can't build PIE.
  5294. # Even after dropping 10.6 support, MOZ_PIE would not be useful since it's the
  5295. # default (and clang says the -pie option is not used).
  5296. # On other Unix systems, some file managers (Nautilus) can't start PIE programs
  5297. if test -n "$gonkdir" && test "$ANDROID_VERSION" -ge 16; then
  5298. MOZ_PIE=1
  5299. else
  5300. MOZ_PIE=
  5301. fi
  5302. # Check whether --enable-pie or --disable-pie was given.
  5303. if test "${enable_pie+set}" = set; then
  5304. enableval="$enable_pie"
  5305. if test "$enableval" = "yes"; then
  5306. MOZ_PIE=1
  5307. elif test "$enableval" = "no"; then
  5308. MOZ_PIE=
  5309. else
  5310. { echo "configure: error: Option, pie, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, pie, does not take an argument ($enableval)." 1>&5; exit 1; }
  5311. fi
  5312. fi
  5313. if test "$GNU_CC" -a -n "$MOZ_PIE"; then
  5314. echo $ac_n "checking for PIE support""... $ac_c" 1>&6
  5315. echo "configure:5957: checking for PIE support" >&5
  5316. _SAVE_LDFLAGS=$LDFLAGS
  5317. LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS -pie"
  5318. cat > conftest.$ac_ext <<EOF
  5319. #line 5961 "configure"
  5320. #include "confdefs.h"
  5321. int main() {
  5322. ; return 0; }
  5323. EOF
  5324. if { (eval echo configure:5968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5325. rm -rf conftest*
  5326. echo "$ac_t""yes" 1>&6
  5327. MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"
  5328. else
  5329. echo "configure: failed program was:" >&5
  5330. cat conftest.$ac_ext >&5
  5331. rm -rf conftest*
  5332. echo "$ac_t""no" 1>&6
  5333. { echo "configure: error: --enable-pie requires PIE support from the linker." 1>&2; echo "configure: error: --enable-pie requires PIE support from the linker." 1>&5; exit 1; }
  5334. fi
  5335. rm -f conftest*
  5336. LDFLAGS=$_SAVE_LDFLAGS
  5337. fi
  5338. if test -n "$GCC_USE_GNU_LD"; then
  5339. case "$LDFLAGS" in
  5340. *-fsanitize=address*)
  5341. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
  5342. ;;
  5343. esac
  5344. fi
  5345. fi # COMPILE_ENVIRONMENT
  5346. if test -z "$SKIP_COMPILER_CHECKS"; then
  5347. echo $ac_n "checking for working const""... $ac_c" 1>&6
  5348. echo "configure:5998: checking for working const" >&5
  5349. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  5350. echo $ac_n "(cached) $ac_c" 1>&6
  5351. else
  5352. cat > conftest.$ac_ext <<EOF
  5353. #line 6003 "configure"
  5354. #include "confdefs.h"
  5355. int main() {
  5356. /* Ultrix mips cc rejects this. */
  5357. typedef int charset[2]; const charset x;
  5358. /* SunOS 4.1.1 cc rejects this. */
  5359. char const *const *ccp;
  5360. char **p;
  5361. /* NEC SVR4.0.2 mips cc rejects this. */
  5362. struct point {int x, y;};
  5363. static struct point const zero = {0,0};
  5364. /* AIX XL C 1.02.0.0 rejects this.
  5365. It does not let you subtract one const X* pointer from another in an arm
  5366. of an if-expression whose if-part is not a constant expression */
  5367. const char *g = "string";
  5368. ccp = &g + (g ? g-g : 0);
  5369. /* HPUX 7.0 cc rejects these. */
  5370. ++ccp;
  5371. p = (char**) ccp;
  5372. ccp = (char const *const *) p;
  5373. { /* SCO 3.2v4 cc rejects this. */
  5374. char *t;
  5375. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5376. *t++ = 0;
  5377. }
  5378. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5379. int x[] = {25, 17};
  5380. const int *foo = &x[0];
  5381. ++foo;
  5382. }
  5383. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5384. typedef const int *iptr;
  5385. iptr p = 0;
  5386. ++p;
  5387. }
  5388. { /* AIX XL C 1.02.0.0 rejects this saying
  5389. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5390. struct s { int j; const int *ap[3]; };
  5391. struct s *b; b->j = 5;
  5392. }
  5393. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5394. const int foo = 10;
  5395. }
  5396. ; return 0; }
  5397. EOF
  5398. if { (eval echo configure:6052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5399. rm -rf conftest*
  5400. ac_cv_c_const=yes
  5401. else
  5402. echo "configure: failed program was:" >&5
  5403. cat conftest.$ac_ext >&5
  5404. rm -rf conftest*
  5405. ac_cv_c_const=no
  5406. fi
  5407. rm -f conftest*
  5408. fi
  5409. echo "$ac_t""$ac_cv_c_const" 1>&6
  5410. if test $ac_cv_c_const = no; then
  5411. cat >> confdefs.pytmp <<\EOF
  5412. (''' const ''', r''' ''')
  5413. EOF
  5414. cat >> confdefs.h <<\EOF
  5415. #define const
  5416. EOF
  5417. fi
  5418. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  5419. echo "configure:6078: checking for mode_t" >&5
  5420. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  5421. echo $ac_n "(cached) $ac_c" 1>&6
  5422. else
  5423. cat > conftest.$ac_ext <<EOF
  5424. #line 6083 "configure"
  5425. #include "confdefs.h"
  5426. #include <sys/types.h>
  5427. #if STDC_HEADERS
  5428. #include <stdlib.h>
  5429. #include <stddef.h>
  5430. #endif
  5431. EOF
  5432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5433. egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5434. rm -rf conftest*
  5435. ac_cv_type_mode_t=yes
  5436. else
  5437. rm -rf conftest*
  5438. ac_cv_type_mode_t=no
  5439. fi
  5440. rm -f conftest*
  5441. fi
  5442. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  5443. if test $ac_cv_type_mode_t = no; then
  5444. cat >> confdefs.pytmp <<\EOF
  5445. (''' mode_t ''', r''' int ''')
  5446. EOF
  5447. cat >> confdefs.h <<\EOF
  5448. #define mode_t int
  5449. EOF
  5450. fi
  5451. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  5452. echo "configure:6116: checking for off_t" >&5
  5453. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  5454. echo $ac_n "(cached) $ac_c" 1>&6
  5455. else
  5456. cat > conftest.$ac_ext <<EOF
  5457. #line 6121 "configure"
  5458. #include "confdefs.h"
  5459. #include <sys/types.h>
  5460. #if STDC_HEADERS
  5461. #include <stdlib.h>
  5462. #include <stddef.h>
  5463. #endif
  5464. EOF
  5465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5466. egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5467. rm -rf conftest*
  5468. ac_cv_type_off_t=yes
  5469. else
  5470. rm -rf conftest*
  5471. ac_cv_type_off_t=no
  5472. fi
  5473. rm -f conftest*
  5474. fi
  5475. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  5476. if test $ac_cv_type_off_t = no; then
  5477. cat >> confdefs.pytmp <<\EOF
  5478. (''' off_t ''', r''' long ''')
  5479. EOF
  5480. cat >> confdefs.h <<\EOF
  5481. #define off_t long
  5482. EOF
  5483. fi
  5484. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  5485. echo "configure:6154: checking for pid_t" >&5
  5486. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  5487. echo $ac_n "(cached) $ac_c" 1>&6
  5488. else
  5489. cat > conftest.$ac_ext <<EOF
  5490. #line 6159 "configure"
  5491. #include "confdefs.h"
  5492. #include <sys/types.h>
  5493. #if STDC_HEADERS
  5494. #include <stdlib.h>
  5495. #include <stddef.h>
  5496. #endif
  5497. EOF
  5498. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5499. egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5500. rm -rf conftest*
  5501. ac_cv_type_pid_t=yes
  5502. else
  5503. rm -rf conftest*
  5504. ac_cv_type_pid_t=no
  5505. fi
  5506. rm -f conftest*
  5507. fi
  5508. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  5509. if test $ac_cv_type_pid_t = no; then
  5510. cat >> confdefs.pytmp <<\EOF
  5511. (''' pid_t ''', r''' int ''')
  5512. EOF
  5513. cat >> confdefs.h <<\EOF
  5514. #define pid_t int
  5515. EOF
  5516. fi
  5517. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  5518. echo "configure:6192: checking for size_t" >&5
  5519. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  5520. echo $ac_n "(cached) $ac_c" 1>&6
  5521. else
  5522. cat > conftest.$ac_ext <<EOF
  5523. #line 6197 "configure"
  5524. #include "confdefs.h"
  5525. #include <sys/types.h>
  5526. #if STDC_HEADERS
  5527. #include <stdlib.h>
  5528. #include <stddef.h>
  5529. #endif
  5530. EOF
  5531. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5532. egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  5533. rm -rf conftest*
  5534. ac_cv_type_size_t=yes
  5535. else
  5536. rm -rf conftest*
  5537. ac_cv_type_size_t=no
  5538. fi
  5539. rm -f conftest*
  5540. fi
  5541. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  5542. if test $ac_cv_type_size_t = no; then
  5543. cat >> confdefs.pytmp <<\EOF
  5544. (''' size_t ''', r''' unsigned ''')
  5545. EOF
  5546. cat >> confdefs.h <<\EOF
  5547. #define size_t unsigned
  5548. EOF
  5549. fi
  5550. ac_ext=C
  5551. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5552. ac_cpp='$CXXCPP $CPPFLAGS'
  5553. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5554. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5555. cross_compiling=$ac_cv_prog_cxx_cross
  5556. ac_ext=c
  5557. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5558. ac_cpp='$CPP $CPPFLAGS'
  5559. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5560. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5561. cross_compiling=$ac_cv_prog_cc_cross
  5562. ac_ext=C
  5563. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5564. ac_cpp='$CXXCPP $CPPFLAGS'
  5565. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5566. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5567. cross_compiling=$ac_cv_prog_cxx_cross
  5568. ac_ext=C
  5569. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5570. ac_cpp='$CXXCPP $CPPFLAGS'
  5571. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5572. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5573. cross_compiling=$ac_cv_prog_cxx_cross
  5574. if test "$GNU_CXX"; then
  5575. echo $ac_n "checking whether 64-bits std::atomic requires -latomic""... $ac_c" 1>&6
  5576. echo "configure:6260: checking whether 64-bits std::atomic requires -latomic" >&5
  5577. if eval "test \"`echo '$''{'ac_cv_needs_atomic'+set}'`\" = set"; then
  5578. echo $ac_n "(cached) $ac_c" 1>&6
  5579. else
  5580. cat > conftest.$ac_ext <<EOF
  5581. #line 6265 "configure"
  5582. #include "confdefs.h"
  5583. #include <cstdint>
  5584. #include <atomic>
  5585. int main() {
  5586. std::atomic<uint64_t> foo; foo = 1;
  5587. ; return 0; }
  5588. EOF
  5589. if { (eval echo configure:6273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5590. rm -rf conftest*
  5591. ac_cv_needs_atomic=no
  5592. else
  5593. echo "configure: failed program was:" >&5
  5594. cat conftest.$ac_ext >&5
  5595. rm -rf conftest*
  5596. _SAVE_LIBS="$LIBS"
  5597. LIBS="$LIBS -latomic"
  5598. cat > conftest.$ac_ext <<EOF
  5599. #line 6283 "configure"
  5600. #include "confdefs.h"
  5601. #include <cstdint>
  5602. #include <atomic>
  5603. int main() {
  5604. std::atomic<uint64_t> foo; foo = 1;
  5605. ; return 0; }
  5606. EOF
  5607. if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5608. rm -rf conftest*
  5609. ac_cv_needs_atomic=yes
  5610. else
  5611. echo "configure: failed program was:" >&5
  5612. cat conftest.$ac_ext >&5
  5613. rm -rf conftest*
  5614. ac_cv_needs_atomic="do not know; assuming no"
  5615. fi
  5616. rm -f conftest*
  5617. LIBS="$_SAVE_LIBS"
  5618. fi
  5619. rm -f conftest*
  5620. fi
  5621. echo "$ac_t""$ac_cv_needs_atomic" 1>&6
  5622. if test "$ac_cv_needs_atomic" = yes; then
  5623. MOZ_NEEDS_LIBATOMIC=1
  5624. else
  5625. MOZ_NEEDS_LIBATOMIC=
  5626. fi
  5627. fi
  5628. ac_ext=c
  5629. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5630. ac_cpp='$CPP $CPPFLAGS'
  5631. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5632. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5633. cross_compiling=$ac_cv_prog_cc_cross
  5634. ac_ext=c
  5635. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5636. ac_cpp='$CPP $CPPFLAGS'
  5637. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5638. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5639. cross_compiling=$ac_cv_prog_cc_cross
  5640. case "${OS_TARGET}" in
  5641. *)
  5642. STL_FLAGS="-I${DIST}/stl_wrappers"
  5643. WRAP_STL_INCLUDES=1
  5644. ;;
  5645. esac
  5646. ac_header_dirent=no
  5647. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  5648. do
  5649. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  5650. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  5651. echo "configure:6345: checking for $ac_hdr that defines DIR" >&5
  5652. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  5653. echo $ac_n "(cached) $ac_c" 1>&6
  5654. else
  5655. cat > conftest.$ac_ext <<EOF
  5656. #line 6350 "configure"
  5657. #include "confdefs.h"
  5658. #include <sys/types.h>
  5659. #include <$ac_hdr>
  5660. int main() {
  5661. DIR *dirp = 0;
  5662. ; return 0; }
  5663. EOF
  5664. if { (eval echo configure:6358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5665. rm -rf conftest*
  5666. eval "ac_cv_header_dirent_$ac_safe=yes"
  5667. else
  5668. echo "configure: failed program was:" >&5
  5669. cat conftest.$ac_ext >&5
  5670. rm -rf conftest*
  5671. eval "ac_cv_header_dirent_$ac_safe=no"
  5672. fi
  5673. rm -f conftest*
  5674. fi
  5675. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  5676. echo "$ac_t""yes" 1>&6
  5677. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  5678. cat >> confdefs.pytmp <<EOF
  5679. (''' $ac_tr_hdr ''', ' 1 ')
  5680. EOF
  5681. cat >> confdefs.h <<EOF
  5682. #define $ac_tr_hdr 1
  5683. EOF
  5684. ac_header_dirent=$ac_hdr; break
  5685. else
  5686. echo "$ac_t""no" 1>&6
  5687. fi
  5688. done
  5689. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5690. if test $ac_header_dirent = dirent.h; then
  5691. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  5692. echo "configure:6386: checking for opendir in -ldir" >&5
  5693. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  5694. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5695. echo $ac_n "(cached) $ac_c" 1>&6
  5696. else
  5697. ac_save_LIBS="$LIBS"
  5698. LIBS="-ldir $LIBS"
  5699. cat > conftest.$ac_ext <<EOF
  5700. #line 6394 "configure"
  5701. #include "confdefs.h"
  5702. /* Override any gcc2 internal prototype to avoid an error. */
  5703. /* We use char because int might match the return type of a gcc2
  5704. builtin and then its argument prototype would still apply. */
  5705. char opendir();
  5706. int main() {
  5707. opendir()
  5708. ; return 0; }
  5709. EOF
  5710. if { (eval echo configure:6405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5711. rm -rf conftest*
  5712. eval "ac_cv_lib_$ac_lib_var=yes"
  5713. else
  5714. echo "configure: failed program was:" >&5
  5715. cat conftest.$ac_ext >&5
  5716. rm -rf conftest*
  5717. eval "ac_cv_lib_$ac_lib_var=no"
  5718. fi
  5719. rm -f conftest*
  5720. LIBS="$ac_save_LIBS"
  5721. fi
  5722. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5723. echo "$ac_t""yes" 1>&6
  5724. LIBS="$LIBS -ldir"
  5725. else
  5726. echo "$ac_t""no" 1>&6
  5727. fi
  5728. else
  5729. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  5730. echo "configure:6427: checking for opendir in -lx" >&5
  5731. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  5732. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5733. echo $ac_n "(cached) $ac_c" 1>&6
  5734. else
  5735. ac_save_LIBS="$LIBS"
  5736. LIBS="-lx $LIBS"
  5737. cat > conftest.$ac_ext <<EOF
  5738. #line 6435 "configure"
  5739. #include "confdefs.h"
  5740. /* Override any gcc2 internal prototype to avoid an error. */
  5741. /* We use char because int might match the return type of a gcc2
  5742. builtin and then its argument prototype would still apply. */
  5743. char opendir();
  5744. int main() {
  5745. opendir()
  5746. ; return 0; }
  5747. EOF
  5748. if { (eval echo configure:6446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5749. rm -rf conftest*
  5750. eval "ac_cv_lib_$ac_lib_var=yes"
  5751. else
  5752. echo "configure: failed program was:" >&5
  5753. cat conftest.$ac_ext >&5
  5754. rm -rf conftest*
  5755. eval "ac_cv_lib_$ac_lib_var=no"
  5756. fi
  5757. rm -f conftest*
  5758. LIBS="$ac_save_LIBS"
  5759. fi
  5760. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5761. echo "$ac_t""yes" 1>&6
  5762. LIBS="$LIBS -lx"
  5763. else
  5764. echo "$ac_t""no" 1>&6
  5765. fi
  5766. fi
  5767. case "$target_os" in
  5768. bitrig*|dragonfly*|freebsd*|openbsd*)
  5769. # for stuff like -lXshm
  5770. CPPFLAGS="${CPPFLAGS} ${X_CFLAGS}"
  5771. ;;
  5772. esac
  5773. echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6
  5774. echo "configure:6476: checking for sockaddr_in.sin_len" >&5
  5775. if eval "test \"`echo '$''{'ac_cv_sockaddr_in_sin_len'+set}'`\" = set"; then
  5776. echo $ac_n "(cached) $ac_c" 1>&6
  5777. else
  5778. cat > conftest.$ac_ext <<EOF
  5779. #line 6481 "configure"
  5780. #include "confdefs.h"
  5781. #ifdef HAVE_SYS_TYPES_H
  5782. #include <sys/types.h>
  5783. #endif
  5784. #include <netinet/in.h>
  5785. struct sockaddr_in x;
  5786. void *foo = (void*) &x.sin_len;
  5787. int main() {
  5788. ; return 0; }
  5789. EOF
  5790. if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5791. rm -rf conftest*
  5792. ac_cv_sockaddr_in_sin_len=true
  5793. else
  5794. echo "configure: failed program was:" >&5
  5795. cat conftest.$ac_ext >&5
  5796. rm -rf conftest*
  5797. ac_cv_sockaddr_in_sin_len=false
  5798. fi
  5799. rm -f conftest*
  5800. fi
  5801. echo "$ac_t""$ac_cv_sockaddr_in_sin_len" 1>&6
  5802. if test "$ac_cv_sockaddr_in_sin_len" = true ; then
  5803. cat >> confdefs.pytmp <<\EOF
  5804. (''' HAVE_SIN_LEN ''', ' 1 ')
  5805. EOF
  5806. cat >> confdefs.h <<\EOF
  5807. #define HAVE_SIN_LEN 1
  5808. EOF
  5809. cat >> confdefs.pytmp <<\EOF
  5810. (''' HAVE_SCONN_LEN ''', ' 1 ')
  5811. EOF
  5812. cat >> confdefs.h <<\EOF
  5813. #define HAVE_SCONN_LEN 1
  5814. EOF
  5815. fi
  5816. echo $ac_n "checking for sockaddr_in6.sin6_len""... $ac_c" 1>&6
  5817. echo "configure:6524: checking for sockaddr_in6.sin6_len" >&5
  5818. if eval "test \"`echo '$''{'ac_cv_sockaddr_in6_sin6_len'+set}'`\" = set"; then
  5819. echo $ac_n "(cached) $ac_c" 1>&6
  5820. else
  5821. cat > conftest.$ac_ext <<EOF
  5822. #line 6529 "configure"
  5823. #include "confdefs.h"
  5824. #ifdef HAVE_SYS_TYPES_H
  5825. #include <sys/types.h>
  5826. #endif
  5827. #include <netinet/in.h>
  5828. struct sockaddr_in6 x;
  5829. void *foo = (void*) &x.sin6_len;
  5830. int main() {
  5831. ; return 0; }
  5832. EOF
  5833. if { (eval echo configure:6541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5834. rm -rf conftest*
  5835. ac_cv_sockaddr_in6_sin6_len=true
  5836. else
  5837. echo "configure: failed program was:" >&5
  5838. cat conftest.$ac_ext >&5
  5839. rm -rf conftest*
  5840. ac_cv_sockaddr_in6_sin6_len=false
  5841. fi
  5842. rm -f conftest*
  5843. fi
  5844. echo "$ac_t""$ac_cv_sockaddr_in6_sin6_len" 1>&6
  5845. if test "$ac_cv_sockaddr_in6_sin6_len" = true ; then
  5846. cat >> confdefs.pytmp <<\EOF
  5847. (''' HAVE_SIN6_LEN ''', ' 1 ')
  5848. EOF
  5849. cat >> confdefs.h <<\EOF
  5850. #define HAVE_SIN6_LEN 1
  5851. EOF
  5852. fi
  5853. echo $ac_n "checking for sockaddr.sa_len""... $ac_c" 1>&6
  5854. echo "configure:6565: checking for sockaddr.sa_len" >&5
  5855. if eval "test \"`echo '$''{'ac_cv_sockaddr_sa_len'+set}'`\" = set"; then
  5856. echo $ac_n "(cached) $ac_c" 1>&6
  5857. else
  5858. cat > conftest.$ac_ext <<EOF
  5859. #line 6570 "configure"
  5860. #include "confdefs.h"
  5861. #ifdef HAVE_SYS_TYPES_H
  5862. #include <sys/types.h>
  5863. #endif
  5864. #include <sys/socket.h>
  5865. struct sockaddr x;
  5866. void *foo = (void*) &x.sa_len;
  5867. int main() {
  5868. ; return 0; }
  5869. EOF
  5870. if { (eval echo configure:6582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5871. rm -rf conftest*
  5872. ac_cv_sockaddr_sa_len=true
  5873. else
  5874. echo "configure: failed program was:" >&5
  5875. cat conftest.$ac_ext >&5
  5876. rm -rf conftest*
  5877. ac_cv_sockaddr_sa_len=false
  5878. fi
  5879. rm -f conftest*
  5880. fi
  5881. echo "$ac_t""$ac_cv_sockaddr_sa_len" 1>&6
  5882. if test "$ac_cv_sockaddr_sa_len" = true ; then
  5883. cat >> confdefs.pytmp <<\EOF
  5884. (''' HAVE_SA_LEN ''', ' 1 ')
  5885. EOF
  5886. cat >> confdefs.h <<\EOF
  5887. #define HAVE_SA_LEN 1
  5888. EOF
  5889. fi
  5890. # Check whether --enable-dtrace or --disable-dtrace was given.
  5891. if test "${enable_dtrace+set}" = set; then
  5892. enableval="$enable_dtrace"
  5893. if test "$enableval" = "yes"; then
  5894. enable_dtrace="yes"
  5895. elif test "$enableval" = "no"; then
  5896. :
  5897. else
  5898. { echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, dtrace, does not take an argument ($enableval)." 1>&5; exit 1; }
  5899. fi
  5900. fi
  5901. if test "x$enable_dtrace" = "xyes"; then
  5902. ac_safe=`echo "sys/sdt.h" | sed 'y%./+-%__p_%'`
  5903. echo $ac_n "checking for sys/sdt.h""... $ac_c" 1>&6
  5904. echo "configure:6620: checking for sys/sdt.h" >&5
  5905. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  5906. echo $ac_n "(cached) $ac_c" 1>&6
  5907. else
  5908. cat > conftest.$ac_ext <<EOF
  5909. #line 6625 "configure"
  5910. #include "confdefs.h"
  5911. #include <sys/sdt.h>
  5912. int main() {
  5913. ; return 0; }
  5914. EOF
  5915. if { (eval echo configure:6633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  5916. rm -rf conftest*
  5917. eval "ac_cv_header_$ac_safe=yes"
  5918. else
  5919. echo "configure: failed program was:" >&5
  5920. cat conftest.$ac_ext >&5
  5921. rm -rf conftest*
  5922. eval "ac_cv_header_$ac_safe=no"
  5923. fi
  5924. rm -f conftest*
  5925. fi
  5926. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  5927. echo "$ac_t""yes" 1>&6
  5928. HAVE_DTRACE=1
  5929. else
  5930. echo "$ac_t""no" 1>&6
  5931. fi
  5932. if test -n "$HAVE_DTRACE"; then
  5933. cat >> confdefs.pytmp <<\EOF
  5934. (''' INCLUDE_MOZILLA_DTRACE ''', ' 1 ')
  5935. EOF
  5936. cat >> confdefs.h <<\EOF
  5937. #define INCLUDE_MOZILLA_DTRACE 1
  5938. EOF
  5939. else
  5940. { echo "configure: error: dtrace enabled but sys/sdt.h not found" 1>&2; echo "configure: error: dtrace enabled but sys/sdt.h not found" 1>&5; exit 1; };
  5941. fi
  5942. fi
  5943. echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6
  5944. echo "configure:6668: checking for gethostbyname_r in -lc_r" >&5
  5945. ac_lib_var=`echo c_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
  5946. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  5947. echo $ac_n "(cached) $ac_c" 1>&6
  5948. else
  5949. ac_save_LIBS="$LIBS"
  5950. LIBS="-lc_r $LIBS"
  5951. cat > conftest.$ac_ext <<EOF
  5952. #line 6676 "configure"
  5953. #include "confdefs.h"
  5954. /* Override any gcc2 internal prototype to avoid an error. */
  5955. /* We use char because int might match the return type of a gcc2
  5956. builtin and then its argument prototype would still apply. */
  5957. char gethostbyname_r();
  5958. int main() {
  5959. gethostbyname_r()
  5960. ; return 0; }
  5961. EOF
  5962. if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5963. rm -rf conftest*
  5964. eval "ac_cv_lib_$ac_lib_var=yes"
  5965. else
  5966. echo "configure: failed program was:" >&5
  5967. cat conftest.$ac_ext >&5
  5968. rm -rf conftest*
  5969. eval "ac_cv_lib_$ac_lib_var=no"
  5970. fi
  5971. rm -f conftest*
  5972. LIBS="$ac_save_LIBS"
  5973. fi
  5974. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  5975. echo "$ac_t""yes" 1>&6
  5976. ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  5977. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  5978. cat >> confdefs.pytmp <<EOF
  5979. (''' $ac_tr_lib ''', ' 1 ')
  5980. EOF
  5981. cat >> confdefs.h <<EOF
  5982. #define $ac_tr_lib 1
  5983. EOF
  5984. LIBS="-lc_r $LIBS"
  5985. else
  5986. echo "$ac_t""no" 1>&6
  5987. fi
  5988. case $target in
  5989. *)
  5990. echo $ac_n "checking for library containing dlopen""... $ac_c" 1>&6
  5991. echo "configure:6722: checking for library containing dlopen" >&5
  5992. if eval "test \"`echo '$''{'ac_cv_search_dlopen'+set}'`\" = set"; then
  5993. echo $ac_n "(cached) $ac_c" 1>&6
  5994. else
  5995. ac_func_search_save_LIBS="$LIBS"
  5996. ac_cv_search_dlopen="no"
  5997. cat > conftest.$ac_ext <<EOF
  5998. #line 6729 "configure"
  5999. #include "confdefs.h"
  6000. /* Override any gcc2 internal prototype to avoid an error. */
  6001. /* We use char because int might match the return type of a gcc2
  6002. builtin and then its argument prototype would still apply. */
  6003. char dlopen();
  6004. int main() {
  6005. dlopen()
  6006. ; return 0; }
  6007. EOF
  6008. if { (eval echo configure:6740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6009. rm -rf conftest*
  6010. ac_cv_search_dlopen="none required"
  6011. else
  6012. echo "configure: failed program was:" >&5
  6013. cat conftest.$ac_ext >&5
  6014. fi
  6015. rm -f conftest*
  6016. test "$ac_cv_search_dlopen" = "no" && for i in dl; do
  6017. LIBS="-l$i $ac_func_search_save_LIBS"
  6018. cat > conftest.$ac_ext <<EOF
  6019. #line 6751 "configure"
  6020. #include "confdefs.h"
  6021. /* Override any gcc2 internal prototype to avoid an error. */
  6022. /* We use char because int might match the return type of a gcc2
  6023. builtin and then its argument prototype would still apply. */
  6024. char dlopen();
  6025. int main() {
  6026. dlopen()
  6027. ; return 0; }
  6028. EOF
  6029. if { (eval echo configure:6762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6030. rm -rf conftest*
  6031. ac_cv_search_dlopen="-l$i"
  6032. break
  6033. else
  6034. echo "configure: failed program was:" >&5
  6035. cat conftest.$ac_ext >&5
  6036. fi
  6037. rm -f conftest*
  6038. done
  6039. LIBS="$ac_func_search_save_LIBS"
  6040. fi
  6041. echo "$ac_t""$ac_cv_search_dlopen" 1>&6
  6042. if test "$ac_cv_search_dlopen" != "no"; then
  6043. test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
  6044. ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
  6045. echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
  6046. echo "configure:6780: checking for dlfcn.h" >&5
  6047. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6048. echo $ac_n "(cached) $ac_c" 1>&6
  6049. else
  6050. cat > conftest.$ac_ext <<EOF
  6051. #line 6785 "configure"
  6052. #include "confdefs.h"
  6053. #include <dlfcn.h>
  6054. int main() {
  6055. ; return 0; }
  6056. EOF
  6057. if { (eval echo configure:6793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6058. rm -rf conftest*
  6059. eval "ac_cv_header_$ac_safe=yes"
  6060. else
  6061. echo "configure: failed program was:" >&5
  6062. cat conftest.$ac_ext >&5
  6063. rm -rf conftest*
  6064. eval "ac_cv_header_$ac_safe=no"
  6065. fi
  6066. rm -f conftest*
  6067. fi
  6068. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6069. echo "$ac_t""yes" 1>&6
  6070. cat >> confdefs.pytmp <<\EOF
  6071. (''' HAVE_DLOPEN ''', ' 1 ')
  6072. EOF
  6073. cat >> confdefs.h <<\EOF
  6074. #define HAVE_DLOPEN 1
  6075. EOF
  6076. else
  6077. echo "$ac_t""no" 1>&6
  6078. fi
  6079. else :
  6080. fi
  6081. ;;
  6082. esac
  6083. _SAVE_CFLAGS="$CFLAGS"
  6084. CFLAGS="$CFLAGS -D_GNU_SOURCE"
  6085. for ac_func in dladdr memmem
  6086. do
  6087. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  6088. echo "configure:6830: checking for $ac_func" >&5
  6089. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  6090. echo $ac_n "(cached) $ac_c" 1>&6
  6091. else
  6092. cat > conftest.$ac_ext <<EOF
  6093. #line 6835 "configure"
  6094. #define $ac_func innocuous_$ac_func
  6095. #include "confdefs.h"
  6096. #undef $ac_func
  6097. /* System header to define __stub macros and hopefully few prototypes,
  6098. which can conflict with char $ac_func(); below. */
  6099. #define $ac_func innocuous_$ac_func
  6100. #include <assert.h>
  6101. #undef $ac_func
  6102. /* Override any gcc2 internal prototype to avoid an error. */
  6103. /* We use char because int might match the return type of a gcc2
  6104. builtin and then its argument prototype would still apply. */
  6105. char $ac_func();
  6106. int main() {
  6107. /* The GNU C library defines this for functions which it implements
  6108. to always fail with ENOSYS. Some functions are actually named
  6109. something starting with __ and the normal name is an alias. */
  6110. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6111. choke me
  6112. #else
  6113. $ac_func();
  6114. #endif
  6115. ; return 0; }
  6116. EOF
  6117. if { (eval echo configure:6862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6118. rm -rf conftest*
  6119. eval "ac_cv_func_$ac_func=yes"
  6120. else
  6121. echo "configure: failed program was:" >&5
  6122. cat conftest.$ac_ext >&5
  6123. rm -rf conftest*
  6124. eval "ac_cv_func_$ac_func=no"
  6125. fi
  6126. rm -f conftest*
  6127. fi
  6128. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  6129. echo "$ac_t""yes" 1>&6
  6130. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  6131. cat >> confdefs.pytmp <<EOF
  6132. (''' $ac_tr_func ''', ' 1 ')
  6133. EOF
  6134. cat >> confdefs.h <<EOF
  6135. #define $ac_tr_func 1
  6136. EOF
  6137. else
  6138. echo "$ac_t""no" 1>&6
  6139. fi
  6140. done
  6141. CFLAGS="$_SAVE_CFLAGS"
  6142. if test ! "$GNU_CXX"; then
  6143. echo $ac_n "checking for demangle in -lC""... $ac_c" 1>&6
  6144. echo "configure:6893: checking for demangle in -lC" >&5
  6145. ac_lib_var=`echo C'_'demangle | sed 'y%./+-%__p_%'`
  6146. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6147. echo $ac_n "(cached) $ac_c" 1>&6
  6148. else
  6149. ac_save_LIBS="$LIBS"
  6150. LIBS="-lC $LIBS"
  6151. cat > conftest.$ac_ext <<EOF
  6152. #line 6901 "configure"
  6153. #include "confdefs.h"
  6154. /* Override any gcc2 internal prototype to avoid an error. */
  6155. /* We use char because int might match the return type of a gcc2
  6156. builtin and then its argument prototype would still apply. */
  6157. char demangle();
  6158. int main() {
  6159. demangle()
  6160. ; return 0; }
  6161. EOF
  6162. if { (eval echo configure:6912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6163. rm -rf conftest*
  6164. eval "ac_cv_lib_$ac_lib_var=yes"
  6165. else
  6166. echo "configure: failed program was:" >&5
  6167. cat conftest.$ac_ext >&5
  6168. rm -rf conftest*
  6169. eval "ac_cv_lib_$ac_lib_var=no"
  6170. fi
  6171. rm -f conftest*
  6172. LIBS="$ac_save_LIBS"
  6173. fi
  6174. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6175. echo "$ac_t""yes" 1>&6
  6176. ac_tr_lib=HAVE_LIB`echo C | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  6177. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  6178. cat >> confdefs.pytmp <<EOF
  6179. (''' $ac_tr_lib ''', ' 1 ')
  6180. EOF
  6181. cat >> confdefs.h <<EOF
  6182. #define $ac_tr_lib 1
  6183. EOF
  6184. LIBS="-lC $LIBS"
  6185. else
  6186. echo "$ac_t""no" 1>&6
  6187. fi
  6188. fi
  6189. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  6190. echo "configure:6945: checking for socket in -lsocket" >&5
  6191. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  6192. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6193. echo $ac_n "(cached) $ac_c" 1>&6
  6194. else
  6195. ac_save_LIBS="$LIBS"
  6196. LIBS="-lsocket $LIBS"
  6197. cat > conftest.$ac_ext <<EOF
  6198. #line 6953 "configure"
  6199. #include "confdefs.h"
  6200. /* Override any gcc2 internal prototype to avoid an error. */
  6201. /* We use char because int might match the return type of a gcc2
  6202. builtin and then its argument prototype would still apply. */
  6203. char socket();
  6204. int main() {
  6205. socket()
  6206. ; return 0; }
  6207. EOF
  6208. if { (eval echo configure:6964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6209. rm -rf conftest*
  6210. eval "ac_cv_lib_$ac_lib_var=yes"
  6211. else
  6212. echo "configure: failed program was:" >&5
  6213. cat conftest.$ac_ext >&5
  6214. rm -rf conftest*
  6215. eval "ac_cv_lib_$ac_lib_var=no"
  6216. fi
  6217. rm -f conftest*
  6218. LIBS="$ac_save_LIBS"
  6219. fi
  6220. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6221. echo "$ac_t""yes" 1>&6
  6222. ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  6223. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  6224. cat >> confdefs.pytmp <<EOF
  6225. (''' $ac_tr_lib ''', ' 1 ')
  6226. EOF
  6227. cat >> confdefs.h <<EOF
  6228. #define $ac_tr_lib 1
  6229. EOF
  6230. LIBS="-lsocket $LIBS"
  6231. else
  6232. echo "$ac_t""no" 1>&6
  6233. fi
  6234. XLDFLAGS="$X_LIBS"
  6235. XLIBS="$X_EXTRA_LIBS"
  6236. if test -n "$MOZ_X11"; then
  6237. cat >> confdefs.pytmp <<EOF
  6238. (''' FUNCPROTO ''', r''' 15 ''')
  6239. EOF
  6240. cat >> confdefs.h <<EOF
  6241. #define FUNCPROTO 15
  6242. EOF
  6243. _SAVE_LDFLAGS="$LDFLAGS"
  6244. _SAVE_LIBS="$LIBS"
  6245. LDFLAGS="$XLDFLAGS $LDFLAGS"
  6246. echo $ac_n "checking for XDrawLines in -lX11""... $ac_c" 1>&6
  6247. echo "configure:7010: checking for XDrawLines in -lX11" >&5
  6248. ac_lib_var=`echo X11'_'XDrawLines | sed 'y%./+-%__p_%'`
  6249. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6250. echo $ac_n "(cached) $ac_c" 1>&6
  6251. else
  6252. ac_save_LIBS="$LIBS"
  6253. LIBS="-lX11 $XLIBS $LIBS"
  6254. cat > conftest.$ac_ext <<EOF
  6255. #line 7018 "configure"
  6256. #include "confdefs.h"
  6257. /* Override any gcc2 internal prototype to avoid an error. */
  6258. /* We use char because int might match the return type of a gcc2
  6259. builtin and then its argument prototype would still apply. */
  6260. char XDrawLines();
  6261. int main() {
  6262. XDrawLines()
  6263. ; return 0; }
  6264. EOF
  6265. if { (eval echo configure:7029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6266. rm -rf conftest*
  6267. eval "ac_cv_lib_$ac_lib_var=yes"
  6268. else
  6269. echo "configure: failed program was:" >&5
  6270. cat conftest.$ac_ext >&5
  6271. rm -rf conftest*
  6272. eval "ac_cv_lib_$ac_lib_var=no"
  6273. fi
  6274. rm -f conftest*
  6275. LIBS="$ac_save_LIBS"
  6276. fi
  6277. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6278. echo "$ac_t""yes" 1>&6
  6279. XLIBS="-lX11 $XLIBS"
  6280. else
  6281. echo "$ac_t""no" 1>&6
  6282. MISSING_X="$MISSING_X -lX11"
  6283. fi
  6284. echo $ac_n "checking for XextAddDisplay in -lXext""... $ac_c" 1>&6
  6285. echo "configure:7051: checking for XextAddDisplay in -lXext" >&5
  6286. ac_lib_var=`echo Xext'_'XextAddDisplay | sed 'y%./+-%__p_%'`
  6287. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6288. echo $ac_n "(cached) $ac_c" 1>&6
  6289. else
  6290. ac_save_LIBS="$LIBS"
  6291. LIBS="-lXext $XLIBS $LIBS"
  6292. cat > conftest.$ac_ext <<EOF
  6293. #line 7059 "configure"
  6294. #include "confdefs.h"
  6295. /* Override any gcc2 internal prototype to avoid an error. */
  6296. /* We use char because int might match the return type of a gcc2
  6297. builtin and then its argument prototype would still apply. */
  6298. char XextAddDisplay();
  6299. int main() {
  6300. XextAddDisplay()
  6301. ; return 0; }
  6302. EOF
  6303. if { (eval echo configure:7070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6304. rm -rf conftest*
  6305. eval "ac_cv_lib_$ac_lib_var=yes"
  6306. else
  6307. echo "configure: failed program was:" >&5
  6308. cat conftest.$ac_ext >&5
  6309. rm -rf conftest*
  6310. eval "ac_cv_lib_$ac_lib_var=no"
  6311. fi
  6312. rm -f conftest*
  6313. LIBS="$ac_save_LIBS"
  6314. fi
  6315. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6316. echo "$ac_t""yes" 1>&6
  6317. XEXT_LIBS="-lXext"
  6318. else
  6319. echo "$ac_t""no" 1>&6
  6320. MISSING_X="$MISSING_X -lXext"
  6321. fi
  6322. echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
  6323. echo "configure:7093: checking for XtFree in -lXt" >&5
  6324. ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
  6325. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6326. echo $ac_n "(cached) $ac_c" 1>&6
  6327. else
  6328. ac_save_LIBS="$LIBS"
  6329. LIBS="-lXt $LIBS"
  6330. cat > conftest.$ac_ext <<EOF
  6331. #line 7101 "configure"
  6332. #include "confdefs.h"
  6333. /* Override any gcc2 internal prototype to avoid an error. */
  6334. /* We use char because int might match the return type of a gcc2
  6335. builtin and then its argument prototype would still apply. */
  6336. char XtFree();
  6337. int main() {
  6338. XtFree()
  6339. ; return 0; }
  6340. EOF
  6341. if { (eval echo configure:7112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6342. rm -rf conftest*
  6343. eval "ac_cv_lib_$ac_lib_var=yes"
  6344. else
  6345. echo "configure: failed program was:" >&5
  6346. cat conftest.$ac_ext >&5
  6347. rm -rf conftest*
  6348. eval "ac_cv_lib_$ac_lib_var=no"
  6349. fi
  6350. rm -f conftest*
  6351. LIBS="$ac_save_LIBS"
  6352. fi
  6353. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6354. echo "$ac_t""yes" 1>&6
  6355. XT_LIBS="-lXt"
  6356. else
  6357. echo "$ac_t""no" 1>&6
  6358. unset ac_cv_lib_Xt_XtFree
  6359. echo $ac_n "checking for IceFlush in -lICE""... $ac_c" 1>&6
  6360. echo "configure:7133: checking for IceFlush in -lICE" >&5
  6361. ac_lib_var=`echo ICE'_'IceFlush | sed 'y%./+-%__p_%'`
  6362. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6363. echo $ac_n "(cached) $ac_c" 1>&6
  6364. else
  6365. ac_save_LIBS="$LIBS"
  6366. LIBS="-lICE $XT_LIBS $XLIBS $LIBS"
  6367. cat > conftest.$ac_ext <<EOF
  6368. #line 7141 "configure"
  6369. #include "confdefs.h"
  6370. /* Override any gcc2 internal prototype to avoid an error. */
  6371. /* We use char because int might match the return type of a gcc2
  6372. builtin and then its argument prototype would still apply. */
  6373. char IceFlush();
  6374. int main() {
  6375. IceFlush()
  6376. ; return 0; }
  6377. EOF
  6378. if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6379. rm -rf conftest*
  6380. eval "ac_cv_lib_$ac_lib_var=yes"
  6381. else
  6382. echo "configure: failed program was:" >&5
  6383. cat conftest.$ac_ext >&5
  6384. rm -rf conftest*
  6385. eval "ac_cv_lib_$ac_lib_var=no"
  6386. fi
  6387. rm -f conftest*
  6388. LIBS="$ac_save_LIBS"
  6389. fi
  6390. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6391. echo "$ac_t""yes" 1>&6
  6392. XT_LIBS="-lICE $XT_LIBS"
  6393. else
  6394. echo "$ac_t""no" 1>&6
  6395. fi
  6396. echo $ac_n "checking for SmcCloseConnection in -lSM""... $ac_c" 1>&6
  6397. echo "configure:7173: checking for SmcCloseConnection in -lSM" >&5
  6398. ac_lib_var=`echo SM'_'SmcCloseConnection | sed 'y%./+-%__p_%'`
  6399. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6400. echo $ac_n "(cached) $ac_c" 1>&6
  6401. else
  6402. ac_save_LIBS="$LIBS"
  6403. LIBS="-lSM $XT_LIBS $XLIBS $LIBS"
  6404. cat > conftest.$ac_ext <<EOF
  6405. #line 7181 "configure"
  6406. #include "confdefs.h"
  6407. /* Override any gcc2 internal prototype to avoid an error. */
  6408. /* We use char because int might match the return type of a gcc2
  6409. builtin and then its argument prototype would still apply. */
  6410. char SmcCloseConnection();
  6411. int main() {
  6412. SmcCloseConnection()
  6413. ; return 0; }
  6414. EOF
  6415. if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6416. rm -rf conftest*
  6417. eval "ac_cv_lib_$ac_lib_var=yes"
  6418. else
  6419. echo "configure: failed program was:" >&5
  6420. cat conftest.$ac_ext >&5
  6421. rm -rf conftest*
  6422. eval "ac_cv_lib_$ac_lib_var=no"
  6423. fi
  6424. rm -f conftest*
  6425. LIBS="$ac_save_LIBS"
  6426. fi
  6427. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6428. echo "$ac_t""yes" 1>&6
  6429. XT_LIBS="-lSM $XT_LIBS"
  6430. else
  6431. echo "$ac_t""no" 1>&6
  6432. fi
  6433. echo $ac_n "checking for XtFree in -lXt""... $ac_c" 1>&6
  6434. echo "configure:7213: checking for XtFree in -lXt" >&5
  6435. ac_lib_var=`echo Xt'_'XtFree | sed 'y%./+-%__p_%'`
  6436. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6437. echo $ac_n "(cached) $ac_c" 1>&6
  6438. else
  6439. ac_save_LIBS="$LIBS"
  6440. LIBS="-lXt $X_PRE_LIBS $XT_LIBS $XLIBS $LIBS"
  6441. cat > conftest.$ac_ext <<EOF
  6442. #line 7221 "configure"
  6443. #include "confdefs.h"
  6444. /* Override any gcc2 internal prototype to avoid an error. */
  6445. /* We use char because int might match the return type of a gcc2
  6446. builtin and then its argument prototype would still apply. */
  6447. char XtFree();
  6448. int main() {
  6449. XtFree()
  6450. ; return 0; }
  6451. EOF
  6452. if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6453. rm -rf conftest*
  6454. eval "ac_cv_lib_$ac_lib_var=yes"
  6455. else
  6456. echo "configure: failed program was:" >&5
  6457. cat conftest.$ac_ext >&5
  6458. rm -rf conftest*
  6459. eval "ac_cv_lib_$ac_lib_var=no"
  6460. fi
  6461. rm -f conftest*
  6462. LIBS="$ac_save_LIBS"
  6463. fi
  6464. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6465. echo "$ac_t""yes" 1>&6
  6466. XT_LIBS="-lXt $XT_LIBS"
  6467. else
  6468. echo "$ac_t""no" 1>&6
  6469. MISSING_X="$MISSING_X -lXt"
  6470. fi
  6471. fi
  6472. echo $ac_n "checking for xcb_connect in -lxcb""... $ac_c" 1>&6
  6473. echo "configure:7258: checking for xcb_connect in -lxcb" >&5
  6474. ac_lib_var=`echo xcb'_'xcb_connect | sed 'y%./+-%__p_%'`
  6475. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6476. echo $ac_n "(cached) $ac_c" 1>&6
  6477. else
  6478. ac_save_LIBS="$LIBS"
  6479. LIBS="-lxcb $XLIBS $LIBS"
  6480. cat > conftest.$ac_ext <<EOF
  6481. #line 7266 "configure"
  6482. #include "confdefs.h"
  6483. /* Override any gcc2 internal prototype to avoid an error. */
  6484. /* We use char because int might match the return type of a gcc2
  6485. builtin and then its argument prototype would still apply. */
  6486. char xcb_connect();
  6487. int main() {
  6488. xcb_connect()
  6489. ; return 0; }
  6490. EOF
  6491. if { (eval echo configure:7277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6492. rm -rf conftest*
  6493. eval "ac_cv_lib_$ac_lib_var=yes"
  6494. else
  6495. echo "configure: failed program was:" >&5
  6496. cat conftest.$ac_ext >&5
  6497. rm -rf conftest*
  6498. eval "ac_cv_lib_$ac_lib_var=no"
  6499. fi
  6500. rm -f conftest*
  6501. LIBS="$ac_save_LIBS"
  6502. fi
  6503. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6504. echo "$ac_t""yes" 1>&6
  6505. XLIBS="-lxcb $XLIBS"
  6506. else
  6507. echo "$ac_t""no" 1>&6
  6508. MISSING_X="$MISSING_X -lxcb"
  6509. fi
  6510. echo $ac_n "checking for xcb_shm_query_version in -lxcb-shm""... $ac_c" 1>&6
  6511. echo "configure:7299: checking for xcb_shm_query_version in -lxcb-shm" >&5
  6512. ac_lib_var=`echo xcb-shm'_'xcb_shm_query_version | sed 'y%./+-%__p_%'`
  6513. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6514. echo $ac_n "(cached) $ac_c" 1>&6
  6515. else
  6516. ac_save_LIBS="$LIBS"
  6517. LIBS="-lxcb-shm $XLIBS $LIBS"
  6518. cat > conftest.$ac_ext <<EOF
  6519. #line 7307 "configure"
  6520. #include "confdefs.h"
  6521. /* Override any gcc2 internal prototype to avoid an error. */
  6522. /* We use char because int might match the return type of a gcc2
  6523. builtin and then its argument prototype would still apply. */
  6524. char xcb_shm_query_version();
  6525. int main() {
  6526. xcb_shm_query_version()
  6527. ; return 0; }
  6528. EOF
  6529. if { (eval echo configure:7318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6530. rm -rf conftest*
  6531. eval "ac_cv_lib_$ac_lib_var=yes"
  6532. else
  6533. echo "configure: failed program was:" >&5
  6534. cat conftest.$ac_ext >&5
  6535. rm -rf conftest*
  6536. eval "ac_cv_lib_$ac_lib_var=no"
  6537. fi
  6538. rm -f conftest*
  6539. LIBS="$ac_save_LIBS"
  6540. fi
  6541. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6542. echo "$ac_t""yes" 1>&6
  6543. XLIBS="-lxcb-shm $XLIBS"
  6544. else
  6545. echo "$ac_t""no" 1>&6
  6546. MISSING_X="$MISSING_X -lxcb-shm"
  6547. fi
  6548. echo $ac_n "checking for XGetXCBConnection in -lX11-xcb""... $ac_c" 1>&6
  6549. echo "configure:7340: checking for XGetXCBConnection in -lX11-xcb" >&5
  6550. ac_lib_var=`echo X11-xcb'_'XGetXCBConnection | sed 'y%./+-%__p_%'`
  6551. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6552. echo $ac_n "(cached) $ac_c" 1>&6
  6553. else
  6554. ac_save_LIBS="$LIBS"
  6555. LIBS="-lX11-xcb $XLIBS $LIBS"
  6556. cat > conftest.$ac_ext <<EOF
  6557. #line 7348 "configure"
  6558. #include "confdefs.h"
  6559. /* Override any gcc2 internal prototype to avoid an error. */
  6560. /* We use char because int might match the return type of a gcc2
  6561. builtin and then its argument prototype would still apply. */
  6562. char XGetXCBConnection();
  6563. int main() {
  6564. XGetXCBConnection()
  6565. ; return 0; }
  6566. EOF
  6567. if { (eval echo configure:7359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6568. rm -rf conftest*
  6569. eval "ac_cv_lib_$ac_lib_var=yes"
  6570. else
  6571. echo "configure: failed program was:" >&5
  6572. cat conftest.$ac_ext >&5
  6573. rm -rf conftest*
  6574. eval "ac_cv_lib_$ac_lib_var=no"
  6575. fi
  6576. rm -f conftest*
  6577. LIBS="$ac_save_LIBS"
  6578. fi
  6579. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6580. echo "$ac_t""yes" 1>&6
  6581. XLIBS="-lX11-xcb $XLIBS"
  6582. else
  6583. echo "$ac_t""no" 1>&6
  6584. MISSING_X="$MISSING_X -lX11-xcb"
  6585. fi
  6586. ac_safe=`echo "X11/extensions/scrnsaver.h" | sed 'y%./+-%__p_%'`
  6587. echo $ac_n "checking for X11/extensions/scrnsaver.h""... $ac_c" 1>&6
  6588. echo "configure:7383: checking for X11/extensions/scrnsaver.h" >&5
  6589. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6590. echo $ac_n "(cached) $ac_c" 1>&6
  6591. else
  6592. cat > conftest.$ac_ext <<EOF
  6593. #line 7388 "configure"
  6594. #include "confdefs.h"
  6595. #include <X11/extensions/scrnsaver.h>
  6596. int main() {
  6597. ; return 0; }
  6598. EOF
  6599. if { (eval echo configure:7396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6600. rm -rf conftest*
  6601. eval "ac_cv_header_$ac_safe=yes"
  6602. else
  6603. echo "configure: failed program was:" >&5
  6604. cat conftest.$ac_ext >&5
  6605. rm -rf conftest*
  6606. eval "ac_cv_header_$ac_safe=no"
  6607. fi
  6608. rm -f conftest*
  6609. fi
  6610. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6611. echo "$ac_t""yes" 1>&6
  6612. echo $ac_n "checking for XScreenSaverQueryInfo in -lXss""... $ac_c" 1>&6
  6613. echo "configure:7411: checking for XScreenSaverQueryInfo in -lXss" >&5
  6614. ac_lib_var=`echo Xss'_'XScreenSaverQueryInfo | sed 'y%./+-%__p_%'`
  6615. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6616. echo $ac_n "(cached) $ac_c" 1>&6
  6617. else
  6618. ac_save_LIBS="$LIBS"
  6619. LIBS="-lXss $XEXT_LIBS $XLIBS $LIBS"
  6620. cat > conftest.$ac_ext <<EOF
  6621. #line 7419 "configure"
  6622. #include "confdefs.h"
  6623. /* Override any gcc2 internal prototype to avoid an error. */
  6624. /* We use char because int might match the return type of a gcc2
  6625. builtin and then its argument prototype would still apply. */
  6626. char XScreenSaverQueryInfo();
  6627. int main() {
  6628. XScreenSaverQueryInfo()
  6629. ; return 0; }
  6630. EOF
  6631. if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6632. rm -rf conftest*
  6633. eval "ac_cv_lib_$ac_lib_var=yes"
  6634. else
  6635. echo "configure: failed program was:" >&5
  6636. cat conftest.$ac_ext >&5
  6637. rm -rf conftest*
  6638. eval "ac_cv_lib_$ac_lib_var=no"
  6639. fi
  6640. rm -f conftest*
  6641. LIBS="$ac_save_LIBS"
  6642. fi
  6643. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6644. echo "$ac_t""yes" 1>&6
  6645. XSS_LIBS="-lXss $XEXT_LIBS $XLIBS"
  6646. cat >> confdefs.pytmp <<\EOF
  6647. (''' HAVE_LIBXSS ''', ' 1 ')
  6648. EOF
  6649. cat >> confdefs.h <<\EOF
  6650. #define HAVE_LIBXSS 1
  6651. EOF
  6652. else
  6653. echo "$ac_t""no" 1>&6
  6654. fi
  6655. else
  6656. echo "$ac_t""no" 1>&6
  6657. fi
  6658. LDFLAGS="$_SAVE_LDFLAGS"
  6659. LIBS="$_SAVE_LIBS"
  6660. fi # $MOZ_X11
  6661. echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
  6662. echo "configure:7476: checking for pthread_create in -lpthreads" >&5
  6663. ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
  6664. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6665. echo $ac_n "(cached) $ac_c" 1>&6
  6666. else
  6667. ac_save_LIBS="$LIBS"
  6668. LIBS="-lpthreads $LIBS"
  6669. cat > conftest.$ac_ext <<EOF
  6670. #line 7484 "configure"
  6671. #include "confdefs.h"
  6672. /* Override any gcc2 internal prototype to avoid an error. */
  6673. /* We use char because int might match the return type of a gcc2
  6674. builtin and then its argument prototype would still apply. */
  6675. char pthread_create();
  6676. int main() {
  6677. pthread_create()
  6678. ; return 0; }
  6679. EOF
  6680. if { (eval echo configure:7495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6681. rm -rf conftest*
  6682. eval "ac_cv_lib_$ac_lib_var=yes"
  6683. else
  6684. echo "configure: failed program was:" >&5
  6685. cat conftest.$ac_ext >&5
  6686. rm -rf conftest*
  6687. eval "ac_cv_lib_$ac_lib_var=no"
  6688. fi
  6689. rm -f conftest*
  6690. LIBS="$ac_save_LIBS"
  6691. fi
  6692. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6693. echo "$ac_t""yes" 1>&6
  6694. MOZ_USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads"
  6695. else
  6696. echo "$ac_t""no" 1>&6
  6697. echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
  6698. echo "configure:7514: checking for pthread_create in -lpthread" >&5
  6699. ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
  6700. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6701. echo $ac_n "(cached) $ac_c" 1>&6
  6702. else
  6703. ac_save_LIBS="$LIBS"
  6704. LIBS="-lpthread $LIBS"
  6705. cat > conftest.$ac_ext <<EOF
  6706. #line 7522 "configure"
  6707. #include "confdefs.h"
  6708. /* Override any gcc2 internal prototype to avoid an error. */
  6709. /* We use char because int might match the return type of a gcc2
  6710. builtin and then its argument prototype would still apply. */
  6711. char pthread_create();
  6712. int main() {
  6713. pthread_create()
  6714. ; return 0; }
  6715. EOF
  6716. if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6717. rm -rf conftest*
  6718. eval "ac_cv_lib_$ac_lib_var=yes"
  6719. else
  6720. echo "configure: failed program was:" >&5
  6721. cat conftest.$ac_ext >&5
  6722. rm -rf conftest*
  6723. eval "ac_cv_lib_$ac_lib_var=no"
  6724. fi
  6725. rm -f conftest*
  6726. LIBS="$ac_save_LIBS"
  6727. fi
  6728. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6729. echo "$ac_t""yes" 1>&6
  6730. MOZ_USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread"
  6731. else
  6732. echo "$ac_t""no" 1>&6
  6733. echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
  6734. echo "configure:7552: checking for pthread_create in -lc_r" >&5
  6735. ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
  6736. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6737. echo $ac_n "(cached) $ac_c" 1>&6
  6738. else
  6739. ac_save_LIBS="$LIBS"
  6740. LIBS="-lc_r $LIBS"
  6741. cat > conftest.$ac_ext <<EOF
  6742. #line 7560 "configure"
  6743. #include "confdefs.h"
  6744. /* Override any gcc2 internal prototype to avoid an error. */
  6745. /* We use char because int might match the return type of a gcc2
  6746. builtin and then its argument prototype would still apply. */
  6747. char pthread_create();
  6748. int main() {
  6749. pthread_create()
  6750. ; return 0; }
  6751. EOF
  6752. if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6753. rm -rf conftest*
  6754. eval "ac_cv_lib_$ac_lib_var=yes"
  6755. else
  6756. echo "configure: failed program was:" >&5
  6757. cat conftest.$ac_ext >&5
  6758. rm -rf conftest*
  6759. eval "ac_cv_lib_$ac_lib_var=no"
  6760. fi
  6761. rm -f conftest*
  6762. LIBS="$ac_save_LIBS"
  6763. fi
  6764. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6765. echo "$ac_t""yes" 1>&6
  6766. MOZ_USE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r"
  6767. else
  6768. echo "$ac_t""no" 1>&6
  6769. echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
  6770. echo "configure:7590: checking for pthread_create in -lc" >&5
  6771. ac_lib_var=`echo c'_'pthread_create | sed 'y%./+-%__p_%'`
  6772. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6773. echo $ac_n "(cached) $ac_c" 1>&6
  6774. else
  6775. ac_save_LIBS="$LIBS"
  6776. LIBS="-lc $LIBS"
  6777. cat > conftest.$ac_ext <<EOF
  6778. #line 7598 "configure"
  6779. #include "confdefs.h"
  6780. /* Override any gcc2 internal prototype to avoid an error. */
  6781. /* We use char because int might match the return type of a gcc2
  6782. builtin and then its argument prototype would still apply. */
  6783. char pthread_create();
  6784. int main() {
  6785. pthread_create()
  6786. ; return 0; }
  6787. EOF
  6788. if { (eval echo configure:7609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6789. rm -rf conftest*
  6790. eval "ac_cv_lib_$ac_lib_var=yes"
  6791. else
  6792. echo "configure: failed program was:" >&5
  6793. cat conftest.$ac_ext >&5
  6794. rm -rf conftest*
  6795. eval "ac_cv_lib_$ac_lib_var=no"
  6796. fi
  6797. rm -f conftest*
  6798. LIBS="$ac_save_LIBS"
  6799. fi
  6800. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6801. echo "$ac_t""yes" 1>&6
  6802. MOZ_USE_PTHREADS=1
  6803. else
  6804. echo "$ac_t""no" 1>&6
  6805. fi
  6806. fi
  6807. fi
  6808. fi
  6809. # Check whether --with-pthreads or --without-pthreads was given.
  6810. if test "${with_pthreads+set}" = set; then
  6811. withval="$with_pthreads"
  6812. if test "$withval" = "yes"; then
  6813. if test "$MOZ_USE_PTHREADS"x = x; then
  6814. { echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&5; exit 1; };
  6815. fi
  6816. elif test "$withval" = "no"; then
  6817. MOZ_USE_PTHREADS=
  6818. _PTHREAD_LDFLAGS=
  6819. else
  6820. { echo "configure: error: Option, pthreads, does not take an argument ($withval)." 1>&2; echo "configure: error: Option, pthreads, does not take an argument ($withval)." 1>&5; exit 1; }
  6821. fi
  6822. fi
  6823. if test "$MOZ_USE_PTHREADS"x != x
  6824. then
  6825. rm -f conftest*
  6826. ac_cv_have_dash_pthread=no
  6827. echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
  6828. echo "configure:7662: checking whether ${CC-cc} accepts -pthread" >&5
  6829. echo 'int main() { return 0; }' | cat > conftest.c
  6830. ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
  6831. if test $? -eq 0; then
  6832. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" -a -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  6833. ac_cv_have_dash_pthread=yes
  6834. case "$target_os" in
  6835. freebsd*)
  6836. # Freebsd doesn't use -pthread for compiles, it uses them for linking
  6837. ;;
  6838. *)
  6839. CFLAGS="$CFLAGS -pthread"
  6840. CXXFLAGS="$CXXFLAGS -pthread"
  6841. ;;
  6842. esac
  6843. fi
  6844. fi
  6845. rm -f conftest*
  6846. echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6
  6847. ac_cv_have_dash_pthreads=no
  6848. if test "$ac_cv_have_dash_pthread" = "no"; then
  6849. echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
  6850. echo "configure:7685: checking whether ${CC-cc} accepts -pthreads" >&5
  6851. echo 'int main() { return 0; }' | cat > conftest.c
  6852. ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
  6853. if test $? -eq 0; then
  6854. if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" -a -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
  6855. ac_cv_have_dash_pthreads=yes
  6856. CFLAGS="$CFLAGS -pthreads"
  6857. CXXFLAGS="$CXXFLAGS -pthreads"
  6858. fi
  6859. fi
  6860. rm -f conftest*
  6861. echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6
  6862. fi
  6863. case "$target" in
  6864. *-*-freebsd*)
  6865. cat >> confdefs.pytmp <<\EOF
  6866. (''' _REENTRANT ''', ' 1 ')
  6867. EOF
  6868. cat >> confdefs.h <<\EOF
  6869. #define _REENTRANT 1
  6870. EOF
  6871. cat >> confdefs.pytmp <<\EOF
  6872. (''' _THREAD_SAFE ''', ' 1 ')
  6873. EOF
  6874. cat >> confdefs.h <<\EOF
  6875. #define _THREAD_SAFE 1
  6876. EOF
  6877. if test "$ac_cv_have_dash_pthread" = "yes"; then
  6878. _PTHREAD_LDFLAGS="-pthread"
  6879. fi
  6880. ;;
  6881. *-*-openbsd*|*-*-bsdi*)
  6882. cat >> confdefs.pytmp <<\EOF
  6883. (''' _REENTRANT ''', ' 1 ')
  6884. EOF
  6885. cat >> confdefs.h <<\EOF
  6886. #define _REENTRANT 1
  6887. EOF
  6888. cat >> confdefs.pytmp <<\EOF
  6889. (''' _THREAD_SAFE ''', ' 1 ')
  6890. EOF
  6891. cat >> confdefs.h <<\EOF
  6892. #define _THREAD_SAFE 1
  6893. EOF
  6894. if test "$ac_cv_have_dash_pthread" = "yes"; then
  6895. _PTHREAD_LDFLAGS="-pthread"
  6896. fi
  6897. ;;
  6898. *-*-linux*|*-*-kfreebsd*-gnu|*-*-gnu*)
  6899. cat >> confdefs.pytmp <<\EOF
  6900. (''' _REENTRANT ''', ' 1 ')
  6901. EOF
  6902. cat >> confdefs.h <<\EOF
  6903. #define _REENTRANT 1
  6904. EOF
  6905. ;;
  6906. esac
  6907. LDFLAGS="${_PTHREAD_LDFLAGS} ${LDFLAGS}"
  6908. for ac_hdr in pthread.h
  6909. do
  6910. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  6911. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  6912. echo "configure:7757: checking for $ac_hdr" >&5
  6913. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  6914. echo $ac_n "(cached) $ac_c" 1>&6
  6915. else
  6916. cat > conftest.$ac_ext <<EOF
  6917. #line 7762 "configure"
  6918. #include "confdefs.h"
  6919. #include <$ac_hdr>
  6920. int main() {
  6921. ; return 0; }
  6922. EOF
  6923. if { (eval echo configure:7770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6924. rm -rf conftest*
  6925. eval "ac_cv_header_$ac_safe=yes"
  6926. else
  6927. echo "configure: failed program was:" >&5
  6928. cat conftest.$ac_ext >&5
  6929. rm -rf conftest*
  6930. eval "ac_cv_header_$ac_safe=no"
  6931. fi
  6932. rm -f conftest*
  6933. fi
  6934. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  6935. echo "$ac_t""yes" 1>&6
  6936. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  6937. cat >> confdefs.pytmp <<EOF
  6938. (''' $ac_tr_hdr ''', ' 1 ')
  6939. EOF
  6940. cat >> confdefs.h <<EOF
  6941. #define $ac_tr_hdr 1
  6942. EOF
  6943. else
  6944. echo "$ac_t""no" 1>&6
  6945. fi
  6946. done
  6947. fi
  6948. if test $ac_cv_prog_gcc = yes; then
  6949. echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  6950. echo "configure:7807: checking whether ${CC-cc} needs -traditional" >&5
  6951. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  6952. echo $ac_n "(cached) $ac_c" 1>&6
  6953. else
  6954. ac_pattern="Autoconf.*'x'"
  6955. cat > conftest.$ac_ext <<EOF
  6956. #line 7813 "configure"
  6957. #include "confdefs.h"
  6958. #include <sgtty.h>
  6959. Autoconf TIOCGETP
  6960. EOF
  6961. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6962. egrep "$ac_pattern" >/dev/null 2>&1; then
  6963. rm -rf conftest*
  6964. ac_cv_prog_gcc_traditional=yes
  6965. else
  6966. rm -rf conftest*
  6967. ac_cv_prog_gcc_traditional=no
  6968. fi
  6969. rm -f conftest*
  6970. if test $ac_cv_prog_gcc_traditional = no; then
  6971. cat > conftest.$ac_ext <<EOF
  6972. #line 7831 "configure"
  6973. #include "confdefs.h"
  6974. #include <termio.h>
  6975. Autoconf TCGETA
  6976. EOF
  6977. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6978. egrep "$ac_pattern" >/dev/null 2>&1; then
  6979. rm -rf conftest*
  6980. ac_cv_prog_gcc_traditional=yes
  6981. fi
  6982. rm -f conftest*
  6983. fi
  6984. fi
  6985. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  6986. if test $ac_cv_prog_gcc_traditional = yes; then
  6987. CC="$CC -traditional"
  6988. fi
  6989. fi
  6990. echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
  6991. echo "configure:7853: checking for 8-bit clean memcmp" >&5
  6992. if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
  6993. echo $ac_n "(cached) $ac_c" 1>&6
  6994. else
  6995. if test "$cross_compiling" = yes; then
  6996. ac_cv_func_memcmp_clean=no
  6997. else
  6998. cat > conftest.$ac_ext <<EOF
  6999. #line 7861 "configure"
  7000. #include "confdefs.h"
  7001. main()
  7002. {
  7003. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  7004. exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
  7005. }
  7006. EOF
  7007. if { (eval echo configure:7871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7008. then
  7009. ac_cv_func_memcmp_clean=yes
  7010. else
  7011. echo "configure: failed program was:" >&5
  7012. cat conftest.$ac_ext >&5
  7013. rm -fr conftest*
  7014. ac_cv_func_memcmp_clean=no
  7015. fi
  7016. rm -fr conftest*
  7017. fi
  7018. fi
  7019. echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
  7020. test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
  7021. for ac_func in stat64 lstat64 truncate64 statvfs64 statvfs statfs64 statfs getpagesize gmtime_r localtime_r arc4random arc4random_buf mallinfo gettid lchown setpriority strerror syscall
  7022. do
  7023. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7024. echo "configure:7891: checking for $ac_func" >&5
  7025. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7026. echo $ac_n "(cached) $ac_c" 1>&6
  7027. else
  7028. cat > conftest.$ac_ext <<EOF
  7029. #line 7896 "configure"
  7030. #define $ac_func innocuous_$ac_func
  7031. #include "confdefs.h"
  7032. #undef $ac_func
  7033. /* System header to define __stub macros and hopefully few prototypes,
  7034. which can conflict with char $ac_func(); below. */
  7035. #define $ac_func innocuous_$ac_func
  7036. #include <assert.h>
  7037. #undef $ac_func
  7038. /* Override any gcc2 internal prototype to avoid an error. */
  7039. /* We use char because int might match the return type of a gcc2
  7040. builtin and then its argument prototype would still apply. */
  7041. char $ac_func();
  7042. int main() {
  7043. /* The GNU C library defines this for functions which it implements
  7044. to always fail with ENOSYS. Some functions are actually named
  7045. something starting with __ and the normal name is an alias. */
  7046. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7047. choke me
  7048. #else
  7049. $ac_func();
  7050. #endif
  7051. ; return 0; }
  7052. EOF
  7053. if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7054. rm -rf conftest*
  7055. eval "ac_cv_func_$ac_func=yes"
  7056. else
  7057. echo "configure: failed program was:" >&5
  7058. cat conftest.$ac_ext >&5
  7059. rm -rf conftest*
  7060. eval "ac_cv_func_$ac_func=no"
  7061. fi
  7062. rm -f conftest*
  7063. fi
  7064. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7065. echo "$ac_t""yes" 1>&6
  7066. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7067. cat >> confdefs.pytmp <<EOF
  7068. (''' $ac_tr_func ''', ' 1 ')
  7069. EOF
  7070. cat >> confdefs.h <<EOF
  7071. #define $ac_tr_func 1
  7072. EOF
  7073. else
  7074. echo "$ac_t""no" 1>&6
  7075. fi
  7076. done
  7077. echo $ac_n "checking for clock_gettime(CLOCK_MONOTONIC)""... $ac_c" 1>&6
  7078. echo "configure:7952: checking for clock_gettime(CLOCK_MONOTONIC)" >&5
  7079. if eval "test \"`echo '$''{'ac_cv_clock_monotonic'+set}'`\" = set"; then
  7080. echo $ac_n "(cached) $ac_c" 1>&6
  7081. else
  7082. for libs in "" -lrt; do
  7083. _SAVE_LIBS="$LIBS"
  7084. LIBS="$LIBS $libs"
  7085. cat > conftest.$ac_ext <<EOF
  7086. #line 7960 "configure"
  7087. #include "confdefs.h"
  7088. #include <time.h>
  7089. int main() {
  7090. struct timespec ts;
  7091. clock_gettime(CLOCK_MONOTONIC, &ts);
  7092. ; return 0; }
  7093. EOF
  7094. if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7095. rm -rf conftest*
  7096. ac_cv_clock_monotonic=$libs
  7097. LIBS="$_SAVE_LIBS"
  7098. break
  7099. else
  7100. echo "configure: failed program was:" >&5
  7101. cat conftest.$ac_ext >&5
  7102. rm -rf conftest*
  7103. ac_cv_clock_monotonic=no
  7104. fi
  7105. rm -f conftest*
  7106. LIBS="$_SAVE_LIBS"
  7107. done
  7108. fi
  7109. echo "$ac_t""$ac_cv_clock_monotonic" 1>&6
  7110. if test "$ac_cv_clock_monotonic" != "no"; then
  7111. HAVE_CLOCK_MONOTONIC=1
  7112. REALTIME_LIBS=$ac_cv_clock_monotonic
  7113. cat >> confdefs.pytmp <<\EOF
  7114. (''' HAVE_CLOCK_MONOTONIC ''', ' 1 ')
  7115. EOF
  7116. cat >> confdefs.h <<\EOF
  7117. #define HAVE_CLOCK_MONOTONIC 1
  7118. EOF
  7119. fi
  7120. echo $ac_n "checking for pthread_cond_timedwait_monotonic_np""... $ac_c" 1>&6
  7121. echo "configure:8000: checking for pthread_cond_timedwait_monotonic_np" >&5
  7122. if eval "test \"`echo '$''{'ac_cv_pthread_cond_timedwait_monotonic_np'+set}'`\" = set"; then
  7123. echo $ac_n "(cached) $ac_c" 1>&6
  7124. else
  7125. cat > conftest.$ac_ext <<EOF
  7126. #line 8005 "configure"
  7127. #include "confdefs.h"
  7128. #include <pthread.h>
  7129. int main() {
  7130. pthread_cond_timedwait_monotonic_np(0, 0, 0);
  7131. ; return 0; }
  7132. EOF
  7133. if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7134. rm -rf conftest*
  7135. ac_cv_pthread_cond_timewait_monotonic_np=yes
  7136. else
  7137. echo "configure: failed program was:" >&5
  7138. cat conftest.$ac_ext >&5
  7139. rm -rf conftest*
  7140. ac_cv_pthread_cond_timewait_monotonic_np=no
  7141. fi
  7142. rm -f conftest*
  7143. fi
  7144. echo "$ac_t""$ac_cv_pthread_cond_timedwait_monotonic_np" 1>&6
  7145. if test "$ac_cv_pthread_cond_timewait_monotonic_np" != "no"; then
  7146. cat >> confdefs.pytmp <<\EOF
  7147. (''' HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC ''', ' 1 ')
  7148. EOF
  7149. cat >> confdefs.h <<\EOF
  7150. #define HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC 1
  7151. EOF
  7152. fi
  7153. if test -z "$MACOS_DEPLOYMENT_TARGET" || test "$MACOS_DEPLOYMENT_TARGET" -ge "100300"; then
  7154. ac_ext=C
  7155. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7156. ac_cpp='$CXXCPP $CPPFLAGS'
  7157. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7158. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7159. cross_compiling=$ac_cv_prog_cxx_cross
  7160. echo $ac_n "checking for wcrtomb""... $ac_c" 1>&6
  7161. echo "configure:8045: checking for wcrtomb" >&5
  7162. if eval "test \"`echo '$''{'ac_cv_have_wcrtomb'+set}'`\" = set"; then
  7163. echo $ac_n "(cached) $ac_c" 1>&6
  7164. else
  7165. cat > conftest.$ac_ext <<EOF
  7166. #line 8050 "configure"
  7167. #include "confdefs.h"
  7168. #include <wchar.h>
  7169. int main() {
  7170. mbstate_t ps={0};wcrtomb(0,'f',&ps);
  7171. ; return 0; }
  7172. EOF
  7173. if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7174. rm -rf conftest*
  7175. ac_cv_have_wcrtomb="yes"
  7176. else
  7177. echo "configure: failed program was:" >&5
  7178. cat conftest.$ac_ext >&5
  7179. rm -rf conftest*
  7180. ac_cv_have_wcrtomb="no"
  7181. fi
  7182. rm -f conftest*
  7183. fi
  7184. echo "$ac_t""$ac_cv_have_wcrtomb" 1>&6
  7185. if test "$ac_cv_have_wcrtomb" = "yes"; then
  7186. cat >> confdefs.pytmp <<\EOF
  7187. (''' HAVE_WCRTOMB ''', ' 1 ')
  7188. EOF
  7189. cat >> confdefs.h <<\EOF
  7190. #define HAVE_WCRTOMB 1
  7191. EOF
  7192. fi
  7193. echo $ac_n "checking for mbrtowc""... $ac_c" 1>&6
  7194. echo "configure:8080: checking for mbrtowc" >&5
  7195. if eval "test \"`echo '$''{'ac_cv_have_mbrtowc'+set}'`\" = set"; then
  7196. echo $ac_n "(cached) $ac_c" 1>&6
  7197. else
  7198. cat > conftest.$ac_ext <<EOF
  7199. #line 8085 "configure"
  7200. #include "confdefs.h"
  7201. #include <wchar.h>
  7202. int main() {
  7203. mbstate_t ps={0};mbrtowc(0,0,0,&ps);
  7204. ; return 0; }
  7205. EOF
  7206. if { (eval echo configure:8092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7207. rm -rf conftest*
  7208. ac_cv_have_mbrtowc="yes"
  7209. else
  7210. echo "configure: failed program was:" >&5
  7211. cat conftest.$ac_ext >&5
  7212. rm -rf conftest*
  7213. ac_cv_have_mbrtowc="no"
  7214. fi
  7215. rm -f conftest*
  7216. fi
  7217. echo "$ac_t""$ac_cv_have_mbrtowc" 1>&6
  7218. if test "$ac_cv_have_mbrtowc" = "yes"; then
  7219. cat >> confdefs.pytmp <<\EOF
  7220. (''' HAVE_MBRTOWC ''', ' 1 ')
  7221. EOF
  7222. cat >> confdefs.h <<\EOF
  7223. #define HAVE_MBRTOWC 1
  7224. EOF
  7225. fi
  7226. ac_ext=c
  7227. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7228. ac_cpp='$CPP $CPPFLAGS'
  7229. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7230. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7231. cross_compiling=$ac_cv_prog_cc_cross
  7232. fi
  7233. echo $ac_n "checking for res_ninit()""... $ac_c" 1>&6
  7234. echo "configure:8124: checking for res_ninit()" >&5
  7235. if eval "test \"`echo '$''{'ac_cv_func_res_ninit'+set}'`\" = set"; then
  7236. echo $ac_n "(cached) $ac_c" 1>&6
  7237. else
  7238. if test "$OS_TARGET" = NetBSD -o "$OS_TARGET" = OpenBSD; then
  7239. ac_cv_func_res_ninit=no
  7240. else
  7241. cat > conftest.$ac_ext <<EOF
  7242. #line 8132 "configure"
  7243. #include "confdefs.h"
  7244. #ifdef linux
  7245. #define _BSD_SOURCE 1
  7246. #endif
  7247. #include <sys/types.h>
  7248. #include <netinet/in.h>
  7249. #include <arpa/nameser.h>
  7250. #include <resolv.h>
  7251. int main() {
  7252. int foo = res_ninit(&_res);
  7253. ; return 0; }
  7254. EOF
  7255. if { (eval echo configure:8147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7256. rm -rf conftest*
  7257. ac_cv_func_res_ninit=yes
  7258. else
  7259. echo "configure: failed program was:" >&5
  7260. cat conftest.$ac_ext >&5
  7261. rm -rf conftest*
  7262. ac_cv_func_res_ninit=no
  7263. fi
  7264. rm -f conftest*
  7265. fi
  7266. fi
  7267. echo "$ac_t""$ac_cv_func_res_ninit" 1>&6
  7268. if test "$ac_cv_func_res_ninit" = "yes"; then
  7269. cat >> confdefs.pytmp <<\EOF
  7270. (''' HAVE_RES_NINIT ''', ' 1 ')
  7271. EOF
  7272. cat >> confdefs.h <<\EOF
  7273. #define HAVE_RES_NINIT 1
  7274. EOF
  7275. fi
  7276. ac_ext=C
  7277. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7278. ac_cpp='$CXXCPP $CPPFLAGS'
  7279. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7280. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7281. cross_compiling=$ac_cv_prog_cxx_cross
  7282. ICONV_LIBS=
  7283. echo $ac_n "checking for iconv in -lc""... $ac_c" 1>&6
  7284. echo "configure:8184: checking for iconv in -lc" >&5
  7285. ac_lib_var=`echo c'_'iconv | sed 'y%./+-%__p_%'`
  7286. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7287. echo $ac_n "(cached) $ac_c" 1>&6
  7288. else
  7289. ac_save_LIBS="$LIBS"
  7290. LIBS="-lc $LIBS"
  7291. cat > conftest.$ac_ext <<EOF
  7292. #line 8192 "configure"
  7293. #include "confdefs.h"
  7294. /* Override any gcc2 internal prototype to avoid an error. */
  7295. #ifdef __cplusplus
  7296. extern "C"
  7297. #endif
  7298. /* We use char because int might match the return type of a gcc2
  7299. builtin and then its argument prototype would still apply. */
  7300. char iconv();
  7301. int main() {
  7302. iconv()
  7303. ; return 0; }
  7304. EOF
  7305. if { (eval echo configure:8206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7306. rm -rf conftest*
  7307. eval "ac_cv_lib_$ac_lib_var=yes"
  7308. else
  7309. echo "configure: failed program was:" >&5
  7310. cat conftest.$ac_ext >&5
  7311. rm -rf conftest*
  7312. eval "ac_cv_lib_$ac_lib_var=no"
  7313. fi
  7314. rm -f conftest*
  7315. LIBS="$ac_save_LIBS"
  7316. fi
  7317. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7318. echo "$ac_t""yes" 1>&6
  7319. ICONV_LIBS=
  7320. else
  7321. echo "$ac_t""no" 1>&6
  7322. echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
  7323. echo "configure:8225: checking for iconv in -liconv" >&5
  7324. ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
  7325. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7326. echo $ac_n "(cached) $ac_c" 1>&6
  7327. else
  7328. ac_save_LIBS="$LIBS"
  7329. LIBS="-liconv $LIBS"
  7330. cat > conftest.$ac_ext <<EOF
  7331. #line 8233 "configure"
  7332. #include "confdefs.h"
  7333. /* Override any gcc2 internal prototype to avoid an error. */
  7334. #ifdef __cplusplus
  7335. extern "C"
  7336. #endif
  7337. /* We use char because int might match the return type of a gcc2
  7338. builtin and then its argument prototype would still apply. */
  7339. char iconv();
  7340. int main() {
  7341. iconv()
  7342. ; return 0; }
  7343. EOF
  7344. if { (eval echo configure:8247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7345. rm -rf conftest*
  7346. eval "ac_cv_lib_$ac_lib_var=yes"
  7347. else
  7348. echo "configure: failed program was:" >&5
  7349. cat conftest.$ac_ext >&5
  7350. rm -rf conftest*
  7351. eval "ac_cv_lib_$ac_lib_var=no"
  7352. fi
  7353. rm -f conftest*
  7354. LIBS="$ac_save_LIBS"
  7355. fi
  7356. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7357. echo "$ac_t""yes" 1>&6
  7358. ICONV_LIBS="-liconv"
  7359. else
  7360. echo "$ac_t""no" 1>&6
  7361. echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
  7362. echo "configure:8266: checking for libiconv in -liconv" >&5
  7363. ac_lib_var=`echo iconv'_'libiconv | sed 'y%./+-%__p_%'`
  7364. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  7365. echo $ac_n "(cached) $ac_c" 1>&6
  7366. else
  7367. ac_save_LIBS="$LIBS"
  7368. LIBS="-liconv $LIBS"
  7369. cat > conftest.$ac_ext <<EOF
  7370. #line 8274 "configure"
  7371. #include "confdefs.h"
  7372. /* Override any gcc2 internal prototype to avoid an error. */
  7373. #ifdef __cplusplus
  7374. extern "C"
  7375. #endif
  7376. /* We use char because int might match the return type of a gcc2
  7377. builtin and then its argument prototype would still apply. */
  7378. char libiconv();
  7379. int main() {
  7380. libiconv()
  7381. ; return 0; }
  7382. EOF
  7383. if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7384. rm -rf conftest*
  7385. eval "ac_cv_lib_$ac_lib_var=yes"
  7386. else
  7387. echo "configure: failed program was:" >&5
  7388. cat conftest.$ac_ext >&5
  7389. rm -rf conftest*
  7390. eval "ac_cv_lib_$ac_lib_var=no"
  7391. fi
  7392. rm -f conftest*
  7393. LIBS="$ac_save_LIBS"
  7394. fi
  7395. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  7396. echo "$ac_t""yes" 1>&6
  7397. ICONV_LIBS="-liconv"
  7398. else
  7399. echo "$ac_t""no" 1>&6
  7400. fi
  7401. fi
  7402. fi
  7403. _SAVE_LIBS=$LIBS
  7404. LIBS="$LIBS $ICONV_LIBS"
  7405. echo $ac_n "checking for iconv()""... $ac_c" 1>&6
  7406. echo "configure:8315: checking for iconv()" >&5
  7407. if eval "test \"`echo '$''{'ac_cv_func_iconv'+set}'`\" = set"; then
  7408. echo $ac_n "(cached) $ac_c" 1>&6
  7409. else
  7410. cat > conftest.$ac_ext <<EOF
  7411. #line 8320 "configure"
  7412. #include "confdefs.h"
  7413. #include <stdlib.h>
  7414. #include <iconv.h>
  7415. int main() {
  7416. iconv_t h = iconv_open("", "");
  7417. iconv(h, NULL, NULL, NULL, NULL);
  7418. iconv_close(h);
  7419. ; return 0; }
  7420. EOF
  7421. if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7422. rm -rf conftest*
  7423. ac_cv_func_iconv=yes
  7424. else
  7425. echo "configure: failed program was:" >&5
  7426. cat conftest.$ac_ext >&5
  7427. rm -rf conftest*
  7428. ac_cv_func_iconv=no
  7429. fi
  7430. rm -f conftest*
  7431. fi
  7432. echo "$ac_t""$ac_cv_func_iconv" 1>&6
  7433. if test "$ac_cv_func_iconv" = "yes"; then
  7434. cat >> confdefs.pytmp <<\EOF
  7435. (''' HAVE_ICONV ''', ' 1 ')
  7436. EOF
  7437. cat >> confdefs.h <<\EOF
  7438. #define HAVE_ICONV 1
  7439. EOF
  7440. LIBICONV="$ICONV_LIBS"
  7441. echo $ac_n "checking for iconv() with const input""... $ac_c" 1>&6
  7442. echo "configure:8359: checking for iconv() with const input" >&5
  7443. if eval "test \"`echo '$''{'ac_cv_func_const_iconv'+set}'`\" = set"; then
  7444. echo $ac_n "(cached) $ac_c" 1>&6
  7445. else
  7446. cat > conftest.$ac_ext <<EOF
  7447. #line 8364 "configure"
  7448. #include "confdefs.h"
  7449. #include <stdlib.h>
  7450. #include <iconv.h>
  7451. int main() {
  7452. const char *input = "testing";
  7453. iconv_t h = iconv_open("", "");
  7454. iconv(h, &input, NULL, NULL, NULL);
  7455. iconv_close(h);
  7456. ; return 0; }
  7457. EOF
  7458. if { (eval echo configure:8379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7459. rm -rf conftest*
  7460. ac_cv_func_const_iconv=yes
  7461. else
  7462. echo "configure: failed program was:" >&5
  7463. cat conftest.$ac_ext >&5
  7464. rm -rf conftest*
  7465. ac_cv_func_const_iconv=no
  7466. fi
  7467. rm -f conftest*
  7468. fi
  7469. echo "$ac_t""$ac_cv_func_const_iconv" 1>&6
  7470. if test "$ac_cv_func_const_iconv" = "yes"; then
  7471. cat >> confdefs.pytmp <<\EOF
  7472. (''' HAVE_ICONV_WITH_CONST_INPUT ''', ' 1 ')
  7473. EOF
  7474. cat >> confdefs.h <<\EOF
  7475. #define HAVE_ICONV_WITH_CONST_INPUT 1
  7476. EOF
  7477. fi
  7478. fi
  7479. LIBS=$_SAVE_LIBS
  7480. echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
  7481. echo "configure:8410: checking for nl_langinfo and CODESET" >&5
  7482. if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
  7483. echo $ac_n "(cached) $ac_c" 1>&6
  7484. else
  7485. cat > conftest.$ac_ext <<EOF
  7486. #line 8415 "configure"
  7487. #include "confdefs.h"
  7488. #include <langinfo.h>
  7489. int main() {
  7490. char* cs = nl_langinfo(CODESET);
  7491. ; return 0; }
  7492. EOF
  7493. if { (eval echo configure:8422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7494. rm -rf conftest*
  7495. am_cv_langinfo_codeset=yes
  7496. else
  7497. echo "configure: failed program was:" >&5
  7498. cat conftest.$ac_ext >&5
  7499. rm -rf conftest*
  7500. am_cv_langinfo_codeset=no
  7501. fi
  7502. rm -f conftest*
  7503. fi
  7504. echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
  7505. if test $am_cv_langinfo_codeset = yes; then
  7506. cat >> confdefs.pytmp <<\EOF
  7507. (''' HAVE_LANGINFO_CODESET ''', r''' 1 ''')
  7508. EOF
  7509. cat >> confdefs.h <<\EOF
  7510. #define HAVE_LANGINFO_CODESET 1
  7511. EOF
  7512. HAVE_LANGINFO_CODESET=1
  7513. fi
  7514. ac_ext=c
  7515. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7516. ac_cpp='$CPP $CPPFLAGS'
  7517. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7518. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7519. cross_compiling=$ac_cv_prog_cc_cross
  7520. echo $ac_n "checking for an implementation of va_copy()""... $ac_c" 1>&6
  7521. echo "configure:8458: checking for an implementation of va_copy()" >&5
  7522. if eval "test \"`echo '$''{'ac_cv_va_copy'+set}'`\" = set"; then
  7523. echo $ac_n "(cached) $ac_c" 1>&6
  7524. else
  7525. cat > conftest.$ac_ext <<EOF
  7526. #line 8463 "configure"
  7527. #include "confdefs.h"
  7528. #include <stdarg.h>
  7529. #include <stdlib.h>
  7530. void f (int i, ...) {
  7531. va_list args1, args2;
  7532. va_start (args1, i);
  7533. va_copy (args2, args1);
  7534. if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
  7535. exit (1);
  7536. va_end (args1); va_end (args2);
  7537. }
  7538. int main() {
  7539. f(0, 42); return 0
  7540. ; return 0; }
  7541. EOF
  7542. if { (eval echo configure:8479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7543. rm -rf conftest*
  7544. ac_cv_va_copy=yes
  7545. else
  7546. echo "configure: failed program was:" >&5
  7547. cat conftest.$ac_ext >&5
  7548. rm -rf conftest*
  7549. ac_cv_va_copy=no
  7550. fi
  7551. rm -f conftest*
  7552. fi
  7553. echo "$ac_t""$ac_cv_va_copy" 1>&6
  7554. echo $ac_n "checking whether va_list can be copied by value""... $ac_c" 1>&6
  7555. echo "configure:8495: checking whether va_list can be copied by value" >&5
  7556. if eval "test \"`echo '$''{'ac_cv_va_val_copy'+set}'`\" = set"; then
  7557. echo $ac_n "(cached) $ac_c" 1>&6
  7558. else
  7559. cat > conftest.$ac_ext <<EOF
  7560. #line 8500 "configure"
  7561. #include "confdefs.h"
  7562. #include <stdarg.h>
  7563. #include <stdlib.h>
  7564. void f (int i, ...) {
  7565. va_list args1, args2;
  7566. va_start (args1, i);
  7567. args2 = args1;
  7568. if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
  7569. exit (1);
  7570. va_end (args1); va_end (args2);
  7571. }
  7572. int main() {
  7573. f(0, 42); return 0
  7574. ; return 0; }
  7575. EOF
  7576. if { (eval echo configure:8516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7577. rm -rf conftest*
  7578. ac_cv_va_val_copy=yes
  7579. else
  7580. echo "configure: failed program was:" >&5
  7581. cat conftest.$ac_ext >&5
  7582. rm -rf conftest*
  7583. ac_cv_va_val_copy=no
  7584. fi
  7585. rm -f conftest*
  7586. fi
  7587. echo "$ac_t""$ac_cv_va_val_copy" 1>&6
  7588. if test "x$ac_cv_va_copy" = "xyes"; then
  7589. cat >> confdefs.pytmp <<\EOF
  7590. (''' VA_COPY ''', r''' va_copy ''')
  7591. EOF
  7592. cat >> confdefs.h <<\EOF
  7593. #define VA_COPY va_copy
  7594. EOF
  7595. cat >> confdefs.pytmp <<\EOF
  7596. (''' HAVE_VA_COPY ''', ' 1 ')
  7597. EOF
  7598. cat >> confdefs.h <<\EOF
  7599. #define HAVE_VA_COPY 1
  7600. EOF
  7601. fi
  7602. if test "x$ac_cv_va_val_copy" = "xno"; then
  7603. cat >> confdefs.pytmp <<\EOF
  7604. (''' HAVE_VA_LIST_AS_ARRAY ''', ' 1 ')
  7605. EOF
  7606. cat >> confdefs.h <<\EOF
  7607. #define HAVE_VA_LIST_AS_ARRAY 1
  7608. EOF
  7609. fi
  7610. ac_ext=C
  7611. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7612. ac_cpp='$CXXCPP $CPPFLAGS'
  7613. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7614. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7615. cross_compiling=$ac_cv_prog_cxx_cross
  7616. ARM_ABI_PREFIX=
  7617. if test "$GNU_CC"; then
  7618. if test "$CPU_ARCH" = "arm" ; then
  7619. echo $ac_n "checking for ARM EABI""... $ac_c" 1>&6
  7620. echo "configure:8569: checking for ARM EABI" >&5
  7621. if eval "test \"`echo '$''{'ac_cv_gcc_arm_eabi'+set}'`\" = set"; then
  7622. echo $ac_n "(cached) $ac_c" 1>&6
  7623. else
  7624. cat > conftest.$ac_ext <<EOF
  7625. #line 8574 "configure"
  7626. #include "confdefs.h"
  7627. int main() {
  7628. #if defined(__ARM_EABI__)
  7629. return 0;
  7630. #else
  7631. #error Not ARM EABI.
  7632. #endif
  7633. ; return 0; }
  7634. EOF
  7635. if { (eval echo configure:8587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7636. rm -rf conftest*
  7637. ac_cv_gcc_arm_eabi="yes"
  7638. else
  7639. echo "configure: failed program was:" >&5
  7640. cat conftest.$ac_ext >&5
  7641. rm -rf conftest*
  7642. ac_cv_gcc_arm_eabi="no"
  7643. fi
  7644. rm -f conftest*
  7645. fi
  7646. echo "$ac_t""$ac_cv_gcc_arm_eabi" 1>&6
  7647. if test "$ac_cv_gcc_arm_eabi" = "yes"; then
  7648. HAVE_ARM_EABI=1
  7649. ARM_ABI_PREFIX=eabi-
  7650. else
  7651. ARM_ABI_PREFIX=oabi-
  7652. fi
  7653. fi
  7654. TARGET_COMPILER_ABI="${TARGET_COMPILER_ABI-${ARM_ABI_PREFIX}gcc3}"
  7655. fi
  7656. echo $ac_n "checking whether the C++ \"using\" keyword resolves ambiguity""... $ac_c" 1>&6
  7657. echo "configure:8612: checking whether the C++ \"using\" keyword resolves ambiguity" >&5
  7658. if eval "test \"`echo '$''{'ac_cv_cpp_ambiguity_resolving_using'+set}'`\" = set"; then
  7659. echo $ac_n "(cached) $ac_c" 1>&6
  7660. else
  7661. cat > conftest.$ac_ext <<EOF
  7662. #line 8617 "configure"
  7663. #include "confdefs.h"
  7664. class X {
  7665. public: int go(const X&) {return 3;}
  7666. int jo(const X&) {return 3;}
  7667. };
  7668. class Y : public X {
  7669. public: int go(int) {return 2;}
  7670. int jo(int) {return 2;}
  7671. using X::jo;
  7672. private: using X::go;
  7673. };
  7674. int main() {
  7675. X x; Y y; y.jo(x);
  7676. ; return 0; }
  7677. EOF
  7678. if { (eval echo configure:8633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7679. rm -rf conftest*
  7680. ac_cv_cpp_ambiguity_resolving_using=yes
  7681. else
  7682. echo "configure: failed program was:" >&5
  7683. cat conftest.$ac_ext >&5
  7684. rm -rf conftest*
  7685. ac_cv_cpp_ambiguity_resolving_using=no
  7686. fi
  7687. rm -f conftest*
  7688. fi
  7689. echo "$ac_t""$ac_cv_cpp_ambiguity_resolving_using" 1>&6
  7690. if test "$ac_cv_cpp_ambiguity_resolving_using" = yes ; then
  7691. cat >> confdefs.pytmp <<\EOF
  7692. (''' HAVE_CPP_AMBIGUITY_RESOLVING_USING ''', ' 1 ')
  7693. EOF
  7694. cat >> confdefs.h <<\EOF
  7695. #define HAVE_CPP_AMBIGUITY_RESOLVING_USING 1
  7696. EOF
  7697. fi
  7698. echo $ac_n "checking for C++ dynamic_cast to void*""... $ac_c" 1>&6
  7699. echo "configure:8657: checking for C++ dynamic_cast to void*" >&5
  7700. if eval "test \"`echo '$''{'ac_cv_cpp_dynamic_cast_void_ptr'+set}'`\" = set"; then
  7701. echo $ac_n "(cached) $ac_c" 1>&6
  7702. else
  7703. if test "$cross_compiling" = yes; then
  7704. ac_cv_cpp_dynamic_cast_void_ptr=no
  7705. else
  7706. cat > conftest.$ac_ext <<EOF
  7707. #line 8665 "configure"
  7708. #include "confdefs.h"
  7709. #ifdef __cplusplus
  7710. extern "C" void exit(int);
  7711. #endif
  7712. class X { int i; public: virtual ~X() { } };
  7713. class Y { int j; public: virtual ~Y() { } };
  7714. class Z : public X, public Y { int k; };
  7715. int main() {
  7716. Z mdo;
  7717. X *subx = (X*)&mdo;
  7718. Y *suby = (Y*)&mdo;
  7719. return !((((void*)&mdo != (void*)subx) &&
  7720. ((void*)&mdo == dynamic_cast<void*>(subx))) ||
  7721. (((void*)&mdo != (void*)suby) &&
  7722. ((void*)&mdo == dynamic_cast<void*>(suby))));
  7723. }
  7724. EOF
  7725. if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  7726. then
  7727. ac_cv_cpp_dynamic_cast_void_ptr=yes
  7728. else
  7729. echo "configure: failed program was:" >&5
  7730. cat conftest.$ac_ext >&5
  7731. rm -fr conftest*
  7732. ac_cv_cpp_dynamic_cast_void_ptr=no
  7733. fi
  7734. rm -fr conftest*
  7735. fi
  7736. fi
  7737. echo "$ac_t""$ac_cv_cpp_dynamic_cast_void_ptr" 1>&6
  7738. if test "$ac_cv_cpp_dynamic_cast_void_ptr" = yes ; then
  7739. cat >> confdefs.pytmp <<\EOF
  7740. (''' HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR ''', ' 1 ')
  7741. EOF
  7742. cat >> confdefs.h <<\EOF
  7743. #define HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR 1
  7744. EOF
  7745. fi
  7746. # try harder, when checking for __thread support, see bug 521750 comment #33 and below
  7747. # We pass MOZ_OPTIMIZE_LDFLAGS to the linker because if dead_strip is
  7748. # enabled, the linker in xcode 4.1 will crash. Without this it would crash when
  7749. # linking XUL.
  7750. _SAVE_LDFLAGS=$LDFLAGS
  7751. LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS $DSO_LDOPTS $MOZ_OPTIMIZE_LDFLAGS"
  7752. echo $ac_n "checking for __thread keyword for TLS variables""... $ac_c" 1>&6
  7753. echo "configure:8717: checking for __thread keyword for TLS variables" >&5
  7754. if eval "test \"`echo '$''{'ac_cv_thread_keyword'+set}'`\" = set"; then
  7755. echo $ac_n "(cached) $ac_c" 1>&6
  7756. else
  7757. cat > conftest.$ac_ext <<EOF
  7758. #line 8722 "configure"
  7759. #include "confdefs.h"
  7760. __thread bool tlsIsMainThread = false;
  7761. int main() {
  7762. return tlsIsMainThread;
  7763. ; return 0; }
  7764. EOF
  7765. if { (eval echo configure:8729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7766. rm -rf conftest*
  7767. ac_cv_thread_keyword=yes
  7768. else
  7769. echo "configure: failed program was:" >&5
  7770. cat conftest.$ac_ext >&5
  7771. rm -rf conftest*
  7772. ac_cv_thread_keyword=no
  7773. fi
  7774. rm -f conftest*
  7775. fi
  7776. echo "$ac_t""$ac_cv_thread_keyword" 1>&6
  7777. LDFLAGS=$_SAVE_LDFLAGS
  7778. # The custom dynamic linker doesn't support TLS variables
  7779. MOZ_TLS=
  7780. if test "$ac_cv_thread_keyword" = yes -a "$MOZ_LINKER" != 1; then
  7781. # mips builds fail with TLS variables because of a binutils bug.
  7782. # See bug 528687
  7783. # OpenBSD doesn't have TLS support, and the test succeeds with clang++
  7784. case "${target}" in
  7785. mips*-*)
  7786. :
  7787. ;;
  7788. *-openbsd*)
  7789. :
  7790. ;;
  7791. *)
  7792. cat >> confdefs.pytmp <<\EOF
  7793. (''' HAVE_THREAD_TLS_KEYWORD ''', ' 1 ')
  7794. EOF
  7795. cat >> confdefs.h <<\EOF
  7796. #define HAVE_THREAD_TLS_KEYWORD 1
  7797. EOF
  7798. MOZ_TLS=1
  7799. ;;
  7800. esac
  7801. fi
  7802. if test -n "$MOZ_LINKER"; then
  7803. if test "$CPU_ARCH" = arm; then
  7804. if test -n "$ARM_ARCH" && test "$ARM_ARCH" -lt 7; then
  7805. LDFLAGS="$LDFLAGS -Wl,-z,max-page-size=0x4000 -Wl,-z,common-page-size=0x4000"
  7806. _SUBDIR_LDFLAGS="$_SUBDIR_LDFLAGS -Wl,-z,max-page-size=0x4000 -Wl,-z,common-page-size=0x4000"
  7807. fi
  7808. fi
  7809. LDFLAGS="$LDFLAGS -Wl,--hash-style=sysv"
  7810. fi
  7811. if test -n "$MOZ_LINKER" -a "$OS_TARGET" = "Android"; then
  7812. echo $ac_n "checking whether the CRT objects have text relocations""... $ac_c" 1>&6
  7813. echo "configure:8782: checking whether the CRT objects have text relocations" >&5
  7814. if eval "test \"`echo '$''{'ac_cv_crt_has_text_relocations'+set}'`\" = set"; then
  7815. echo $ac_n "(cached) $ac_c" 1>&6
  7816. else
  7817. echo 'int foo() { return 0; }' > conftest.cpp
  7818. if { ac_try='${CXX-g++} -o conftest${DLL_SUFFIX} $CXXFLAGS $DSO_LDOPTS $LDFLAGS conftest.cpp $LIBS 1>&5'; { (eval echo configure:8787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  7819. test -s conftest${DLL_SUFFIX}; then
  7820. if ${TOOLCHAIN_PREFIX}readelf -d conftest${DLL_SUFFIX} | grep TEXTREL > /dev/null; then
  7821. ac_cv_crt_has_text_relocations=yes
  7822. else
  7823. ac_cv_crt_has_text_relocations=no
  7824. fi
  7825. else
  7826. { echo "configure: error: couldn't compile a simple C file" 1>&2; echo "configure: error: couldn't compile a simple C file" 1>&5; exit 1; }
  7827. fi
  7828. rm -rf conftest*
  7829. fi
  7830. echo "$ac_t""$ac_cv_crt_has_text_relocations" 1>&6
  7831. if test "$ac_cv_crt_has_text_relocations" = yes; then
  7832. DSO_LDOPTS="$DSO_LDOPTS -nostartfiles"
  7833. NSPR_LDFLAGS="$NSPR_LDFLAGS -nostartfiles"
  7834. fi
  7835. fi
  7836. echo $ac_n "checking for __attribute__((always_inline))""... $ac_c" 1>&6
  7837. echo "configure:8809: checking for __attribute__((always_inline))" >&5
  7838. if eval "test \"`echo '$''{'ac_cv_attribute_always_inline'+set}'`\" = set"; then
  7839. echo $ac_n "(cached) $ac_c" 1>&6
  7840. else
  7841. cat > conftest.$ac_ext <<EOF
  7842. #line 8814 "configure"
  7843. #include "confdefs.h"
  7844. inline void f(void) __attribute__((always_inline));
  7845. int main() {
  7846. ; return 0; }
  7847. EOF
  7848. if { (eval echo configure:8821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7849. rm -rf conftest*
  7850. ac_cv_attribute_always_inline=yes
  7851. else
  7852. echo "configure: failed program was:" >&5
  7853. cat conftest.$ac_ext >&5
  7854. rm -rf conftest*
  7855. ac_cv_attribute_always_inline=no
  7856. fi
  7857. rm -f conftest*
  7858. fi
  7859. echo "$ac_t""$ac_cv_attribute_always_inline" 1>&6
  7860. ac_ext=c
  7861. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  7862. ac_cpp='$CPP $CPPFLAGS'
  7863. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  7864. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  7865. cross_compiling=$ac_cv_prog_cc_cross
  7866. echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
  7867. echo "configure:8845: checking for LC_MESSAGES" >&5
  7868. if eval "test \"`echo '$''{'ac_cv_i18n_lc_messages'+set}'`\" = set"; then
  7869. echo $ac_n "(cached) $ac_c" 1>&6
  7870. else
  7871. cat > conftest.$ac_ext <<EOF
  7872. #line 8850 "configure"
  7873. #include "confdefs.h"
  7874. #include <locale.h>
  7875. int main() {
  7876. int category = LC_MESSAGES;
  7877. ; return 0; }
  7878. EOF
  7879. if { (eval echo configure:8857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7880. rm -rf conftest*
  7881. ac_cv_i18n_lc_messages=yes
  7882. else
  7883. echo "configure: failed program was:" >&5
  7884. cat conftest.$ac_ext >&5
  7885. rm -rf conftest*
  7886. ac_cv_i18n_lc_messages=no
  7887. fi
  7888. rm -f conftest*
  7889. fi
  7890. echo "$ac_t""$ac_cv_i18n_lc_messages" 1>&6
  7891. if test "$ac_cv_i18n_lc_messages" = yes; then
  7892. cat >> confdefs.pytmp <<\EOF
  7893. (''' HAVE_I18N_LC_MESSAGES ''', ' 1 ')
  7894. EOF
  7895. cat >> confdefs.h <<\EOF
  7896. #define HAVE_I18N_LC_MESSAGES 1
  7897. EOF
  7898. fi
  7899. for ac_func in localeconv
  7900. do
  7901. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  7902. echo "configure:8883: checking for $ac_func" >&5
  7903. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  7904. echo $ac_n "(cached) $ac_c" 1>&6
  7905. else
  7906. cat > conftest.$ac_ext <<EOF
  7907. #line 8888 "configure"
  7908. #define $ac_func innocuous_$ac_func
  7909. #include "confdefs.h"
  7910. #undef $ac_func
  7911. /* System header to define __stub macros and hopefully few prototypes,
  7912. which can conflict with char $ac_func(); below. */
  7913. #define $ac_func innocuous_$ac_func
  7914. #include <assert.h>
  7915. #undef $ac_func
  7916. /* Override any gcc2 internal prototype to avoid an error. */
  7917. /* We use char because int might match the return type of a gcc2
  7918. builtin and then its argument prototype would still apply. */
  7919. char $ac_func();
  7920. int main() {
  7921. /* The GNU C library defines this for functions which it implements
  7922. to always fail with ENOSYS. Some functions are actually named
  7923. something starting with __ and the normal name is an alias. */
  7924. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7925. choke me
  7926. #else
  7927. $ac_func();
  7928. #endif
  7929. ; return 0; }
  7930. EOF
  7931. if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  7932. rm -rf conftest*
  7933. eval "ac_cv_func_$ac_func=yes"
  7934. else
  7935. echo "configure: failed program was:" >&5
  7936. cat conftest.$ac_ext >&5
  7937. rm -rf conftest*
  7938. eval "ac_cv_func_$ac_func=no"
  7939. fi
  7940. rm -f conftest*
  7941. fi
  7942. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  7943. echo "$ac_t""yes" 1>&6
  7944. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  7945. cat >> confdefs.pytmp <<EOF
  7946. (''' $ac_tr_func ''', ' 1 ')
  7947. EOF
  7948. cat >> confdefs.h <<EOF
  7949. #define $ac_tr_func 1
  7950. EOF
  7951. else
  7952. echo "$ac_t""no" 1>&6
  7953. fi
  7954. done
  7955. fi # ! SKIP_COMPILER_CHECKS
  7956. if test -n "${COMPILE_ENVIRONMENT}"; then
  7957. MALLOC_HEADERS="malloc.h malloc_np.h malloc/malloc.h sys/malloc.h"
  7958. MALLOC_H=
  7959. for file in $MALLOC_HEADERS; do
  7960. ac_safe=`echo "$file" | sed 'y%./+-%__p_%'`
  7961. echo $ac_n "checking for $file""... $ac_c" 1>&6
  7962. echo "configure:8956: checking for $file" >&5
  7963. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7964. echo $ac_n "(cached) $ac_c" 1>&6
  7965. else
  7966. cat > conftest.$ac_ext <<EOF
  7967. #line 8961 "configure"
  7968. #include "confdefs.h"
  7969. #include <$file>
  7970. int main() {
  7971. ; return 0; }
  7972. EOF
  7973. if { (eval echo configure:8969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7974. rm -rf conftest*
  7975. eval "ac_cv_header_$ac_safe=yes"
  7976. else
  7977. echo "configure: failed program was:" >&5
  7978. cat conftest.$ac_ext >&5
  7979. rm -rf conftest*
  7980. eval "ac_cv_header_$ac_safe=no"
  7981. fi
  7982. rm -f conftest*
  7983. fi
  7984. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7985. echo "$ac_t""yes" 1>&6
  7986. MALLOC_H=$file
  7987. else
  7988. echo "$ac_t""no" 1>&6
  7989. fi
  7990. if test "$MALLOC_H" != ""; then
  7991. cat >> confdefs.pytmp <<EOF
  7992. (''' MALLOC_H ''', r''' <$MALLOC_H> ''')
  7993. EOF
  7994. cat >> confdefs.h <<EOF
  7995. #define MALLOC_H <$MALLOC_H>
  7996. EOF
  7997. break
  7998. fi
  7999. done
  8000. for ac_func in strndup posix_memalign memalign
  8001. do
  8002. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8003. echo "configure:9004: checking for $ac_func" >&5
  8004. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8005. echo $ac_n "(cached) $ac_c" 1>&6
  8006. else
  8007. cat > conftest.$ac_ext <<EOF
  8008. #line 9009 "configure"
  8009. #define $ac_func innocuous_$ac_func
  8010. #include "confdefs.h"
  8011. #undef $ac_func
  8012. /* System header to define __stub macros and hopefully few prototypes,
  8013. which can conflict with char $ac_func(); below. */
  8014. #define $ac_func innocuous_$ac_func
  8015. #include <assert.h>
  8016. #undef $ac_func
  8017. /* Override any gcc2 internal prototype to avoid an error. */
  8018. /* We use char because int might match the return type of a gcc2
  8019. builtin and then its argument prototype would still apply. */
  8020. char $ac_func();
  8021. int main() {
  8022. /* The GNU C library defines this for functions which it implements
  8023. to always fail with ENOSYS. Some functions are actually named
  8024. something starting with __ and the normal name is an alias. */
  8025. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8026. choke me
  8027. #else
  8028. $ac_func();
  8029. #endif
  8030. ; return 0; }
  8031. EOF
  8032. if { (eval echo configure:9036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8033. rm -rf conftest*
  8034. eval "ac_cv_func_$ac_func=yes"
  8035. else
  8036. echo "configure: failed program was:" >&5
  8037. cat conftest.$ac_ext >&5
  8038. rm -rf conftest*
  8039. eval "ac_cv_func_$ac_func=no"
  8040. fi
  8041. rm -f conftest*
  8042. fi
  8043. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8044. echo "$ac_t""yes" 1>&6
  8045. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8046. cat >> confdefs.pytmp <<EOF
  8047. (''' $ac_tr_func ''', ' 1 ')
  8048. EOF
  8049. cat >> confdefs.h <<EOF
  8050. #define $ac_tr_func 1
  8051. EOF
  8052. else
  8053. echo "$ac_t""no" 1>&6
  8054. fi
  8055. done
  8056. for ac_func in malloc_usable_size
  8057. do
  8058. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  8059. echo "configure:9067: checking for $ac_func" >&5
  8060. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  8061. echo $ac_n "(cached) $ac_c" 1>&6
  8062. else
  8063. cat > conftest.$ac_ext <<EOF
  8064. #line 9072 "configure"
  8065. #define $ac_func innocuous_$ac_func
  8066. #include "confdefs.h"
  8067. #undef $ac_func
  8068. /* System header to define __stub macros and hopefully few prototypes,
  8069. which can conflict with char $ac_func(); below. */
  8070. #define $ac_func innocuous_$ac_func
  8071. #include <assert.h>
  8072. #undef $ac_func
  8073. /* Override any gcc2 internal prototype to avoid an error. */
  8074. /* We use char because int might match the return type of a gcc2
  8075. builtin and then its argument prototype would still apply. */
  8076. char $ac_func();
  8077. int main() {
  8078. /* The GNU C library defines this for functions which it implements
  8079. to always fail with ENOSYS. Some functions are actually named
  8080. something starting with __ and the normal name is an alias. */
  8081. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8082. choke me
  8083. #else
  8084. $ac_func();
  8085. #endif
  8086. ; return 0; }
  8087. EOF
  8088. if { (eval echo configure:9099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8089. rm -rf conftest*
  8090. eval "ac_cv_func_$ac_func=yes"
  8091. else
  8092. echo "configure: failed program was:" >&5
  8093. cat conftest.$ac_ext >&5
  8094. rm -rf conftest*
  8095. eval "ac_cv_func_$ac_func=no"
  8096. fi
  8097. rm -f conftest*
  8098. fi
  8099. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  8100. echo "$ac_t""yes" 1>&6
  8101. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  8102. cat >> confdefs.pytmp <<EOF
  8103. (''' $ac_tr_func ''', ' 1 ')
  8104. EOF
  8105. cat >> confdefs.h <<EOF
  8106. #define $ac_tr_func 1
  8107. EOF
  8108. else
  8109. echo "$ac_t""no" 1>&6
  8110. fi
  8111. done
  8112. MALLOC_USABLE_SIZE_CONST_PTR=const
  8113. if test -n "$HAVE_MALLOC_H"; then
  8114. echo $ac_n "checking whether malloc_usable_size definition can use const argument""... $ac_c" 1>&6
  8115. echo "configure:9129: checking whether malloc_usable_size definition can use const argument" >&5
  8116. cat > conftest.$ac_ext <<EOF
  8117. #line 9131 "configure"
  8118. #include "confdefs.h"
  8119. #include <malloc.h>
  8120. #include <stddef.h>
  8121. size_t malloc_usable_size(const void *ptr);
  8122. int main() {
  8123. return malloc_usable_size(0);
  8124. ; return 0; }
  8125. EOF
  8126. if { (eval echo configure:9140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8127. rm -rf conftest*
  8128. echo "$ac_t""yes" 1>&6
  8129. else
  8130. echo "configure: failed program was:" >&5
  8131. cat conftest.$ac_ext >&5
  8132. rm -rf conftest*
  8133. echo "$ac_t""no" 1>&6
  8134. MALLOC_USABLE_SIZE_CONST_PTR=
  8135. fi
  8136. rm -f conftest*
  8137. fi
  8138. cat >> confdefs.pytmp <<EOF
  8139. (''' MALLOC_USABLE_SIZE_CONST_PTR ''', r''' $MALLOC_USABLE_SIZE_CONST_PTR ''')
  8140. EOF
  8141. cat >> confdefs.h <<EOF
  8142. #define MALLOC_USABLE_SIZE_CONST_PTR $MALLOC_USABLE_SIZE_CONST_PTR
  8143. EOF
  8144. echo $ac_n "checking for valloc in malloc.h""... $ac_c" 1>&6
  8145. echo "configure:9162: checking for valloc in malloc.h" >&5
  8146. cat > conftest.$ac_ext <<EOF
  8147. #line 9164 "configure"
  8148. #include "confdefs.h"
  8149. #include <malloc.h>
  8150. EOF
  8151. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8152. egrep "valloc" >/dev/null 2>&1; then
  8153. rm -rf conftest*
  8154. cat >> confdefs.pytmp <<\EOF
  8155. (''' HAVE_VALLOC ''', ' 1 ')
  8156. EOF
  8157. cat >> confdefs.h <<\EOF
  8158. #define HAVE_VALLOC 1
  8159. EOF
  8160. echo "$ac_t""yes" 1>&6
  8161. else
  8162. rm -rf conftest*
  8163. echo "$ac_t""no" 1>&6
  8164. fi
  8165. rm -f conftest*
  8166. echo $ac_n "checking for valloc in unistd.h""... $ac_c" 1>&6
  8167. echo "configure:9187: checking for valloc in unistd.h" >&5
  8168. cat > conftest.$ac_ext <<EOF
  8169. #line 9189 "configure"
  8170. #include "confdefs.h"
  8171. #include <unistd.h>
  8172. EOF
  8173. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8174. egrep "valloc" >/dev/null 2>&1; then
  8175. rm -rf conftest*
  8176. cat >> confdefs.pytmp <<\EOF
  8177. (''' HAVE_VALLOC ''', ' 1 ')
  8178. EOF
  8179. cat >> confdefs.h <<\EOF
  8180. #define HAVE_VALLOC 1
  8181. EOF
  8182. echo "$ac_t""yes" 1>&6
  8183. else
  8184. rm -rf conftest*
  8185. echo "$ac_t""no" 1>&6
  8186. fi
  8187. rm -f conftest*
  8188. fi
  8189. TARGET_XPCOM_ABI=
  8190. if test -n "${CPU_ARCH}" -a -n "${TARGET_COMPILER_ABI}"; then
  8191. TARGET_XPCOM_ABI="${CPU_ARCH}-${TARGET_COMPILER_ABI}"
  8192. cat >> confdefs.pytmp <<EOF
  8193. (''' TARGET_XPCOM_ABI ''', r''' "${TARGET_XPCOM_ABI}" ''')
  8194. EOF
  8195. cat >> confdefs.h <<EOF
  8196. #define TARGET_XPCOM_ABI "${TARGET_XPCOM_ABI}"
  8197. EOF
  8198. fi
  8199. if test -n "$SKIP_COMPILER_CHECKS"; then
  8200. cat >> confdefs.pytmp <<\EOF
  8201. (''' MALLOC_H ''', r''' <malloc.h> ''')
  8202. EOF
  8203. cat >> confdefs.h <<\EOF
  8204. #define MALLOC_H <malloc.h>
  8205. EOF
  8206. cat >> confdefs.pytmp <<\EOF
  8207. (''' HAVE_FORCEINLINE ''', ' 1 ')
  8208. EOF
  8209. cat >> confdefs.h <<\EOF
  8210. #define HAVE_FORCEINLINE 1
  8211. EOF
  8212. cat >> confdefs.pytmp <<\EOF
  8213. (''' HAVE_LOCALECONV ''', ' 1 ')
  8214. EOF
  8215. cat >> confdefs.h <<\EOF
  8216. #define HAVE_LOCALECONV 1
  8217. EOF
  8218. fi # SKIP_COMPILER_CHECKS
  8219. # External Packages
  8220. case "$OS_TARGET" in
  8221. WINNT)
  8222. MOZ_FOLD_LIBS=1
  8223. ;;
  8224. *)
  8225. MOZ_FOLD_LIBS=
  8226. ;;
  8227. esac
  8228. # Check whether --with-nspr-cflags or --without-nspr-cflags was given.
  8229. if test "${with_nspr_cflags+set}" = set; then
  8230. withval="$with_nspr_cflags"
  8231. NSPR_CFLAGS=$withval
  8232. fi
  8233. # Check whether --with-nspr-libs or --without-nspr-libs was given.
  8234. if test "${with_nspr_libs+set}" = set; then
  8235. withval="$with_nspr_libs"
  8236. NSPR_LIBS=$withval
  8237. fi
  8238. # Check whether --enable-nspr-build or --disable-nspr-build was given.
  8239. if test "${enable_nspr_build+set}" = set; then
  8240. enableval="$enable_nspr_build"
  8241. if test "$enableval" = "yes"; then
  8242. MOZ_BUILD_NSPR=1
  8243. elif test "$enableval" = "no"; then
  8244. MOZ_BUILD_NSPR=
  8245. else
  8246. { echo "configure: error: Option, nspr-build, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, nspr-build, does not take an argument ($enableval)." 1>&5; exit 1; }
  8247. fi
  8248. fi
  8249. if test "$MOZ_BUILD_APP" != js || test -n "$JS_STANDALONE"; then
  8250. _IS_OUTER_CONFIGURE=1
  8251. fi
  8252. JS_POSIX_NSPR=unset
  8253. if test -n "$JS_STANDALONE"; then
  8254. case "$target" in
  8255. *linux*|*darwin*|*dragonfly*|*freebsd*|*netbsd*|*openbsd*)
  8256. if test -z "$_HAS_NSPR"; then
  8257. JS_POSIX_NSPR_DEFAULT=1
  8258. fi
  8259. ;;
  8260. esac
  8261. fi
  8262. # Check whether --enable-posix-nspr-emulation or --disable-posix-nspr-emulation was given.
  8263. if test "${enable_posix_nspr_emulation+set}" = set; then
  8264. enableval="$enable_posix_nspr_emulation"
  8265. if test "$enableval" = "yes"; then
  8266. JS_POSIX_NSPR=1
  8267. elif test "$enableval" = "no"; then
  8268. JS_POSIX_NSPR=
  8269. else
  8270. { echo "configure: error: Option, posix-nspr-emulation, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, posix-nspr-emulation, does not take an argument ($enableval)." 1>&5; exit 1; }
  8271. fi
  8272. fi
  8273. echo $ac_n "checking NSPR selection""... $ac_c" 1>&6
  8274. echo "configure:9329: checking NSPR selection" >&5
  8275. nspr_opts=
  8276. which_nspr=default
  8277. if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
  8278. nspr_opts="x$nspr_opts"
  8279. which_nspr="command-line"
  8280. fi
  8281. if test -n "$MOZ_BUILD_NSPR"; then
  8282. nspr_opts="x$nspr_opts"
  8283. which_nspr="source-tree"
  8284. fi
  8285. if test "$JS_POSIX_NSPR" = unset; then
  8286. JS_POSIX_NSPR=
  8287. else
  8288. nspr_opts="x$nspr_opts"
  8289. which_nspr="posix-wrapper"
  8290. fi
  8291. if test -z "$nspr_opts"; then
  8292. if test "$MOZ_BUILD_APP" != js; then
  8293. MOZ_BUILD_NSPR=1
  8294. which_nspr="source-tree"
  8295. else
  8296. JS_POSIX_NSPR="$JS_POSIX_NSPR_DEFAULT"
  8297. if test -z "$JS_POSIX_NSPR"; then
  8298. MOZ_BUILD_NSPR=1
  8299. which_nspr="source-tree"
  8300. else
  8301. which_nspr="posix-wrapper"
  8302. fi
  8303. fi
  8304. fi
  8305. if test -z "$nspr_opts" || test "$nspr_opts" = x; then
  8306. echo "$ac_t""$which_nspr" 1>&6
  8307. else
  8308. { echo "configure: error: only one way of using NSPR may be selected. See 'configure --help'." 1>&2; echo "configure: error: only one way of using NSPR may be selected. See 'configure --help'." 1>&5; exit 1; }
  8309. fi
  8310. if test "$MOZ_BUILD_APP" = js; then
  8311. if test "$JS_POSIX_NSPR" = 1; then
  8312. cat >> confdefs.pytmp <<\EOF
  8313. (''' JS_POSIX_NSPR ''', ' 1 ')
  8314. EOF
  8315. cat >> confdefs.h <<\EOF
  8316. #define JS_POSIX_NSPR 1
  8317. EOF
  8318. fi
  8319. fi
  8320. # A (sub)configure invoked by the toplevel configure will always receive
  8321. # --with-nspr-libs on the command line. It will never need to figure out
  8322. # anything itself.
  8323. if test -n "$_IS_OUTER_CONFIGURE"; then
  8324. if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
  8325. _SAVE_CFLAGS=$CFLAGS
  8326. CFLAGS="$CFLAGS $NSPR_CFLAGS"
  8327. cat > conftest.$ac_ext <<EOF
  8328. #line 9392 "configure"
  8329. #include "confdefs.h"
  8330. #include "prtypes.h"
  8331. int main() {
  8332. #ifndef PR_STATIC_ASSERT
  8333. #error PR_STATIC_ASSERT not defined or requires including prtypes.h
  8334. #endif
  8335. ; return 0; }
  8336. EOF
  8337. if { (eval echo configure:9401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8338. :
  8339. else
  8340. echo "configure: failed program was:" >&5
  8341. cat conftest.$ac_ext >&5
  8342. rm -rf conftest*
  8343. { echo "configure: error: system NSPR does not support PR_STATIC_ASSERT or including prtypes.h does not provide it" 1>&2; echo "configure: error: system NSPR does not support PR_STATIC_ASSERT or including prtypes.h does not provide it" 1>&5; exit 1; }
  8344. fi
  8345. rm -f conftest*
  8346. cat > conftest.$ac_ext <<EOF
  8347. #line 9411 "configure"
  8348. #include "confdefs.h"
  8349. #include "prtypes.h"
  8350. int main() {
  8351. #ifndef PR_UINT64
  8352. #error PR_UINT64 not defined or requires including prtypes.h
  8353. #endif
  8354. ; return 0; }
  8355. EOF
  8356. if { (eval echo configure:9420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8357. :
  8358. else
  8359. echo "configure: failed program was:" >&5
  8360. cat conftest.$ac_ext >&5
  8361. rm -rf conftest*
  8362. { echo "configure: error: system NSPR does not support PR_UINT64 or including prtypes.h does not provide it" 1>&2; echo "configure: error: system NSPR does not support PR_UINT64 or including prtypes.h does not provide it" 1>&5; exit 1; }
  8363. fi
  8364. rm -f conftest*
  8365. CFLAGS=$_SAVE_CFLAGS
  8366. elif test -z "$JS_POSIX_NSPR"; then
  8367. NSPR_INCLUDE_DIR="${DIST}/include/nspr"
  8368. NSPR_CFLAGS="-I${NSPR_INCLUDE_DIR}"
  8369. if test -n "$GNU_CC"; then
  8370. if test -n "$MOZ_FOLD_LIBS"; then
  8371. NSPR_LIB_DIR=${DIST}/lib
  8372. else
  8373. NSPR_LIB_DIR=${DIST}/bin
  8374. fi
  8375. NSPR_LIBS="-L${NSPR_LIB_DIR} -lnspr${NSPR_VERSION} -lplc${NSPR_VERSION} -lplds${NSPR_VERSION}"
  8376. else
  8377. # NSS needs actual static libs to link to, and this is where they are.
  8378. NSPR_LIBS="${DIST}/lib/nspr${NSPR_VERSION}.lib ${DIST}/lib/plc${NSPR_VERSION}.lib ${DIST}/lib/plds${NSPR_VERSION}.lib "
  8379. NSPR_LIB_DIR="${DIST}/lib"
  8380. fi
  8381. fi
  8382. PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr"
  8383. if test -n "$JS_POSIX_NSPR"; then
  8384. PKGCONF_REQUIRES_PRIVATE=
  8385. fi
  8386. fi # _IS_OUTER_CONFIGURE
  8387. # TODO: We need to find a better place to define this include
  8388. NSS_CFLAGS="-I${DIST}/include/nss"
  8389. if test -z "$SKIP_LIBRARY_CHECKS"; then
  8390. # Check whether --with-system-jpeg or --without-system-jpeg was given.
  8391. if test "${with_system_jpeg+set}" = set; then
  8392. withval="$with_system_jpeg"
  8393. JPEG_DIR=$withval
  8394. fi
  8395. _SAVE_CFLAGS=$CFLAGS
  8396. _SAVE_LDFLAGS=$LDFLAGS
  8397. _SAVE_LIBS=$LIBS
  8398. if test -n "${JPEG_DIR}" -a "${JPEG_DIR}" != "yes"; then
  8399. CFLAGS="-I${JPEG_DIR}/include $CFLAGS"
  8400. LDFLAGS="-L${JPEG_DIR}/lib $LDFLAGS"
  8401. fi
  8402. if test -z "$JPEG_DIR" -o "$JPEG_DIR" = no; then
  8403. MOZ_SYSTEM_JPEG=
  8404. else
  8405. echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
  8406. echo "configure:9484: checking for jpeg_destroy_compress in -ljpeg" >&5
  8407. ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
  8408. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8409. echo $ac_n "(cached) $ac_c" 1>&6
  8410. else
  8411. ac_save_LIBS="$LIBS"
  8412. LIBS="-ljpeg $LIBS"
  8413. cat > conftest.$ac_ext <<EOF
  8414. #line 9492 "configure"
  8415. #include "confdefs.h"
  8416. /* Override any gcc2 internal prototype to avoid an error. */
  8417. /* We use char because int might match the return type of a gcc2
  8418. builtin and then its argument prototype would still apply. */
  8419. char jpeg_destroy_compress();
  8420. int main() {
  8421. jpeg_destroy_compress()
  8422. ; return 0; }
  8423. EOF
  8424. if { (eval echo configure:9503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8425. rm -rf conftest*
  8426. eval "ac_cv_lib_$ac_lib_var=yes"
  8427. else
  8428. echo "configure: failed program was:" >&5
  8429. cat conftest.$ac_ext >&5
  8430. rm -rf conftest*
  8431. eval "ac_cv_lib_$ac_lib_var=no"
  8432. fi
  8433. rm -f conftest*
  8434. LIBS="$ac_save_LIBS"
  8435. fi
  8436. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8437. echo "$ac_t""yes" 1>&6
  8438. MOZ_SYSTEM_JPEG=1 MOZ_JPEG_LIBS="-ljpeg"
  8439. else
  8440. echo "$ac_t""no" 1>&6
  8441. MOZ_SYSTEM_JPEG=
  8442. fi
  8443. fi
  8444. if test "$MOZ_SYSTEM_JPEG" = 1; then
  8445. cat > conftest.$ac_ext <<EOF
  8446. #line 9528 "configure"
  8447. #include "confdefs.h"
  8448. #include <stdio.h>
  8449. #include <sys/types.h>
  8450. #include <jpeglib.h>
  8451. int main() {
  8452. #if JPEG_LIB_VERSION < $MOZJPEG
  8453. #error "Insufficient JPEG library version ($MOZJPEG required)."
  8454. #endif
  8455. #ifndef JCS_EXTENSIONS
  8456. #error "libjpeg-turbo JCS_EXTENSIONS required"
  8457. #endif
  8458. ; return 0; }
  8459. EOF
  8460. if { (eval echo configure:9543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8461. rm -rf conftest*
  8462. MOZ_SYSTEM_JPEG=1
  8463. else
  8464. echo "configure: failed program was:" >&5
  8465. cat conftest.$ac_ext >&5
  8466. rm -rf conftest*
  8467. { echo "configure: error: Insufficient JPEG library version for --with-system-jpeg" 1>&2; echo "configure: error: Insufficient JPEG library version for --with-system-jpeg" 1>&5; exit 1; }
  8468. fi
  8469. rm -f conftest*
  8470. fi
  8471. CFLAGS=$_SAVE_CFLAGS
  8472. LDFLAGS=$_SAVE_LDFLAGS
  8473. LIBS=$_SAVE_LIBS
  8474. if test -n "${JPEG_DIR}" -a -d "${JPEG_DIR}" -a "$MOZ_SYSTEM_JPEG" = 1; then
  8475. MOZ_JPEG_CFLAGS="-I${JPEG_DIR}/include"
  8476. MOZ_JPEG_LIBS="-L${JPEG_DIR}/lib ${MOZ_JPEG_LIBS}"
  8477. fi
  8478. fi # SKIP_LIBRARY_CHECKS
  8479. MOZZLIB=1.2.3
  8480. # Check whether --with-system-zlib or --without-system-zlib was given.
  8481. if test "${with_system_zlib+set}" = set; then
  8482. withval="$with_system_zlib"
  8483. ZLIB_DIR=$withval
  8484. fi
  8485. if test -z "$MOZ_ZLIB_LIBS$MOZ_ZLIB_CFLAGS$SKIP_LIBRARY_CHECKS"; then
  8486. _SAVE_CFLAGS=$CFLAGS
  8487. _SAVE_LDFLAGS=$LDFLAGS
  8488. _SAVE_LIBS=$LIBS
  8489. if test -n "${ZLIB_DIR}" -a "${ZLIB_DIR}" != "yes"; then
  8490. MOZ_ZLIB_CFLAGS="-I${ZLIB_DIR}/include"
  8491. MOZ_ZLIB_LIBS="-L${ZLIB_DIR}/lib"
  8492. CFLAGS="$MOZ_ZLIB_CFLAGS $CFLAGS"
  8493. LDFLAGS="$MOZ_ZLIB_LIBS $LDFLAGS"
  8494. fi
  8495. if test -z "$ZLIB_DIR" -o "$ZLIB_DIR" = no; then
  8496. MOZ_SYSTEM_ZLIB=
  8497. else
  8498. echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
  8499. echo "configure:9590: checking for gzread in -lz" >&5
  8500. ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
  8501. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8502. echo $ac_n "(cached) $ac_c" 1>&6
  8503. else
  8504. ac_save_LIBS="$LIBS"
  8505. LIBS="-lz $LIBS"
  8506. cat > conftest.$ac_ext <<EOF
  8507. #line 9598 "configure"
  8508. #include "confdefs.h"
  8509. /* Override any gcc2 internal prototype to avoid an error. */
  8510. /* We use char because int might match the return type of a gcc2
  8511. builtin and then its argument prototype would still apply. */
  8512. char gzread();
  8513. int main() {
  8514. gzread()
  8515. ; return 0; }
  8516. EOF
  8517. if { (eval echo configure:9609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8518. rm -rf conftest*
  8519. eval "ac_cv_lib_$ac_lib_var=yes"
  8520. else
  8521. echo "configure: failed program was:" >&5
  8522. cat conftest.$ac_ext >&5
  8523. rm -rf conftest*
  8524. eval "ac_cv_lib_$ac_lib_var=no"
  8525. fi
  8526. rm -f conftest*
  8527. LIBS="$ac_save_LIBS"
  8528. fi
  8529. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8530. echo "$ac_t""yes" 1>&6
  8531. MOZ_SYSTEM_ZLIB=1 MOZ_ZLIB_LIBS="$MOZ_ZLIB_LIBS -lz"
  8532. else
  8533. echo "$ac_t""no" 1>&6
  8534. MOZ_SYSTEM_ZLIB=
  8535. fi
  8536. if test "$MOZ_SYSTEM_ZLIB" = 1; then
  8537. MOZZLIBNUM=`echo $MOZZLIB | awk -F. '{printf "0x%x\n", ((($1 * 16 + $2) * 16) + $3) * 16 + $4}'`
  8538. cat > conftest.$ac_ext <<EOF
  8539. #line 9633 "configure"
  8540. #include "confdefs.h"
  8541. #include <stdio.h>
  8542. #include <string.h>
  8543. #include <zlib.h>
  8544. int main() {
  8545. #if ZLIB_VERNUM < $MOZZLIBNUM
  8546. #error "Insufficient zlib version ($MOZZLIBNUM required)."
  8547. #endif
  8548. ; return 0; }
  8549. EOF
  8550. if { (eval echo configure:9644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8551. rm -rf conftest*
  8552. MOZ_SYSTEM_ZLIB=1
  8553. else
  8554. echo "configure: failed program was:" >&5
  8555. cat conftest.$ac_ext >&5
  8556. rm -rf conftest*
  8557. { echo "configure: error: Insufficient zlib version for --with-system-zlib ($MOZZLIB required)" 1>&2; echo "configure: error: Insufficient zlib version for --with-system-zlib ($MOZZLIB required)" 1>&5; exit 1; }
  8558. fi
  8559. rm -f conftest*
  8560. fi
  8561. fi
  8562. CFLAGS=$_SAVE_CFLAGS
  8563. LDFLAGS=$_SAVE_LDFLAGS
  8564. LIBS=$_SAVE_LIBS
  8565. fi
  8566. if test "$MOZ_LINKER" = 1 -a "$MOZ_SYSTEM_ZLIB" != 1; then
  8567. { echo "configure: error: Custom dynamic linker requires --with-system-zlib" 1>&2; echo "configure: error: Custom dynamic linker requires --with-system-zlib" 1>&5; exit 1; }
  8568. fi
  8569. if test -z "$SKIP_LIBRARY_CHECKS"; then
  8570. # Check whether --with-system-bz2 or --without-system-bz2 was given.
  8571. if test "${with_system_bz2+set}" = set; then
  8572. withval="$with_system_bz2"
  8573. BZ2_DIR=$withval
  8574. fi
  8575. _SAVE_CFLAGS=$CFLAGS
  8576. _SAVE_LDFLAGS=$LDFLAGS
  8577. _SAVE_LIBS=$LIBS
  8578. if test -n "${BZ2_DIR}" -a "${BZ2_DIR}" != "yes"; then
  8579. CFLAGS="-I${BZ2_DIR}/include $CFLAGS"
  8580. LDFLAGS="-L${BZ2_DIR}/lib $LDFLAGS"
  8581. fi
  8582. if test -z "$BZ2_DIR" -o "$BZ2_DIR" = no; then
  8583. MOZ_SYSTEM_BZ2=
  8584. else
  8585. echo $ac_n "checking for BZ2_bzread in -lbz2""... $ac_c" 1>&6
  8586. echo "configure:9690: checking for BZ2_bzread in -lbz2" >&5
  8587. ac_lib_var=`echo bz2'_'BZ2_bzread | sed 'y%./+-%__p_%'`
  8588. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8589. echo $ac_n "(cached) $ac_c" 1>&6
  8590. else
  8591. ac_save_LIBS="$LIBS"
  8592. LIBS="-lbz2 $LIBS"
  8593. cat > conftest.$ac_ext <<EOF
  8594. #line 9698 "configure"
  8595. #include "confdefs.h"
  8596. /* Override any gcc2 internal prototype to avoid an error. */
  8597. /* We use char because int might match the return type of a gcc2
  8598. builtin and then its argument prototype would still apply. */
  8599. char BZ2_bzread();
  8600. int main() {
  8601. BZ2_bzread()
  8602. ; return 0; }
  8603. EOF
  8604. if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8605. rm -rf conftest*
  8606. eval "ac_cv_lib_$ac_lib_var=yes"
  8607. else
  8608. echo "configure: failed program was:" >&5
  8609. cat conftest.$ac_ext >&5
  8610. rm -rf conftest*
  8611. eval "ac_cv_lib_$ac_lib_var=no"
  8612. fi
  8613. rm -f conftest*
  8614. LIBS="$ac_save_LIBS"
  8615. fi
  8616. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8617. echo "$ac_t""yes" 1>&6
  8618. MOZ_SYSTEM_BZ2=1 MOZ_BZ2_LIBS="-lbz2"
  8619. else
  8620. echo "$ac_t""no" 1>&6
  8621. MOZ_SYSTEM_BZ2= MOZ_BZ2_CFLAGS= MOZ_BZ2_LIBS=
  8622. fi
  8623. fi
  8624. CFLAGS=$_SAVE_CFLAGS
  8625. LDFLAGS=$_SAVE_LDFLAGS
  8626. LIBS=$_SAVE_LIBS
  8627. if test "${BZ2_DIR}" -a -d "${BZ2_DIR}" -a "$MOZ_SYSTEM_BZ2" = 1; then
  8628. MOZ_BZ2_CFLAGS="-I${BZ2_DIR}/include"
  8629. MOZ_BZ2_LIBS="-L${BZ2_DIR}/lib ${MOZ_BZ2_LIBS}"
  8630. fi
  8631. fi # SKIP_LIBRARY_CHECKS
  8632. # Application
  8633. ENABLE_TESTS=
  8634. ENABLE_SYSTEM_EXTENSION_DIRS=1
  8635. MOZ_BRANDING_DIRECTORY=
  8636. MOZ_OFFICIAL_BRANDING=
  8637. MC_OFFICIAL=
  8638. MOZ_FEEDS=1
  8639. MOZ_AUTH_EXTENSION=1
  8640. if test "$MOZ_IOS"; then
  8641. MOZ_AUTH_EXTENSION=
  8642. fi
  8643. MOZ_RAW=
  8644. MOZ_AV1=
  8645. MOZ_VORBIS=
  8646. MOZ_TREMOR=
  8647. MOZ_SAMPLE_TYPE_FLOAT32=
  8648. MOZ_SAMPLE_TYPE_S16=
  8649. MOZ_WEBRTC=
  8650. MOZ_PEERCONNECTION=
  8651. MOZ_SRTP=
  8652. MOZ_WEBRTC_SIGNALING=
  8653. MOZ_WEBRTC_ASSERT_ALWAYS=1
  8654. MOZ_WEBRTC_HARDWARE_AEC_NS=
  8655. MOZ_SCTP=
  8656. MOZ_VPX_ERROR_CONCEALMENT=
  8657. VPX_USE_YASM=
  8658. VPX_ASFLAGS=
  8659. VPX_AS_CONVERSION=
  8660. VPX_X86_ASM=
  8661. VPX_ARM_ASM=
  8662. LIBJPEG_TURBO_AS=
  8663. LIBJPEG_TURBO_ASFLAGS=
  8664. MOZ_GAMEPAD=
  8665. MOZ_PREF_EXTENSIONS=1
  8666. MOZ_REFLOW_PERF=
  8667. MOZ_SAFE_BROWSING=
  8668. MOZ_SPELLCHECK=1
  8669. MOZ_TOOLKIT_SEARCH=1
  8670. MOZ_UI_LOCALE=en-US
  8671. MOZ_UNIVERSALCHARDET=1
  8672. MOZ_URL_CLASSIFIER=
  8673. MOZ_XUL=1
  8674. MOZ_ZIPWRITER=1
  8675. MOZ_NO_SMART_CARDS=
  8676. MOZ_NECKO_WIFI=1
  8677. NECKO_COOKIES=1
  8678. MOZ_USE_NATIVE_POPUP_WINDOWS=
  8679. MOZ_EXCLUDE_HYPHENATION_DICTIONARIES=
  8680. ACCESSIBILITY=1
  8681. MOZ_TIME_MANAGER=
  8682. MOZ_AUDIO_CHANNEL_MANAGER=
  8683. MOZ_JETPACK=1
  8684. MOZ_DEVTOOLS_SERVER=1
  8685. MOZ_DEVTOOLS=
  8686. MOZ_PLACES=1
  8687. MOZ_SECURITY_SQLSTORE=
  8688. MOZ_SERVICES_HEALTHREPORT=1
  8689. MOZ_SERVICES_SYNC=1
  8690. MOZ_USERINFO=1
  8691. NSS_DISABLE_DBM=
  8692. MOZ_MAILNEWS=
  8693. MOZ_MAILNEWS_OAUTH2=
  8694. MOZ_LDAP_XPCOM=
  8695. MOZ_MORK=
  8696. MOZ_MAPI_SUPPORT=
  8697. MOZ_INCOMPLETE_EXTERNAL_LINKAGE=
  8698. MOZ_CAN_DRAW_IN_TITLEBAR=
  8699. case "$target_os" in
  8700. mingw*)
  8701. NS_ENABLE_TSF=1
  8702. cat >> confdefs.pytmp <<\EOF
  8703. (''' NS_ENABLE_TSF ''', ' 1 ')
  8704. EOF
  8705. cat >> confdefs.h <<\EOF
  8706. #define NS_ENABLE_TSF 1
  8707. EOF
  8708. ;;
  8709. esac
  8710. # Check whether --enable-official-vendor or --disable-official-vendor was given.
  8711. if test "${enable_official_vendor+set}" = set; then
  8712. enableval="$enable_official_vendor"
  8713. if test "$enableval" = "yes"; then
  8714. MC_OFFICIAL=1
  8715. elif test "$enableval" = "no"; then
  8716. MC_OFFICIAL=
  8717. else
  8718. { echo "configure: error: Option, official-vendor, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, official-vendor, does not take an argument ($enableval)." 1>&5; exit 1; }
  8719. fi
  8720. fi
  8721. # Check whether --enable-official-branding or --disable-official-branding was given.
  8722. if test "${enable_official_branding+set}" = set; then
  8723. enableval="$enable_official_branding"
  8724. if test "$enableval" = "yes"; then
  8725. MOZ_OFFICIAL_BRANDING=1
  8726. elif test "$enableval" = "no"; then
  8727. MOZ_OFFICIAL_BRANDING=
  8728. else
  8729. { echo "configure: error: Option, official-branding, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, official-branding, does not take an argument ($enableval)." 1>&5; exit 1; }
  8730. fi
  8731. fi
  8732. # Allow the application to influence configure with a confvars.sh script.
  8733. echo $ac_n "checking if app-specific confvars.sh exists""... $ac_c" 1>&6
  8734. echo "configure:9854: checking if app-specific confvars.sh exists" >&5
  8735. if test -f "${srcdir}/${MOZ_BUILD_APP}/confvars.sh" ; then
  8736. echo "$ac_t""${srcdir}/${MOZ_BUILD_APP}/confvars.sh" 1>&6
  8737. . "${srcdir}/${MOZ_BUILD_APP}/confvars.sh"
  8738. else
  8739. echo "$ac_t""no" 1>&6
  8740. fi
  8741. # Allow someone to change MOZ_APP_NAME and MOZ_APP_BASENAME in mozconfig
  8742. # Check whether --with-app-name or --without-app-name was given.
  8743. if test "${with_app_name+set}" = set; then
  8744. withval="$with_app_name"
  8745. WITH_APP_NAME=$withval
  8746. fi
  8747. if test -n "$WITH_APP_NAME" ; then
  8748. MOZ_APP_NAME="$WITH_APP_NAME"
  8749. fi
  8750. # Check whether --with-app-basename or --without-app-basename was given.
  8751. if test "${with_app_basename+set}" = set; then
  8752. withval="$with_app_basename"
  8753. WITH_APP_BASENAME=$withval
  8754. fi
  8755. if test -n "$WITH_APP_BASENAME" ; then
  8756. MOZ_APP_BASENAME="$WITH_APP_BASENAME"
  8757. fi
  8758. # Toolkit Options
  8759. case "$MOZ_WIDGET_TOOLKIT" in
  8760. cocoa)
  8761. LDFLAGS="$LDFLAGS -framework Cocoa -lobjc"
  8762. # Use -Wl as a trick to avoid -framework and framework names from
  8763. # being separated by AC_SUBST_LIST.
  8764. TK_LIBS='-Wl,-framework,CoreLocation -Wl,-framework,QuartzCore -Wl,-framework,Carbon -Wl,-framework,CoreAudio -Wl,-framework,AudioToolbox -Wl,-framework,AudioUnit -Wl,-framework,AddressBook -Wl,-framework,OpenGL -Wl,-framework,Security -Wl,-framework,ServiceManagement'
  8765. TK_CFLAGS=""
  8766. CFLAGS="$CFLAGS $TK_CFLAGS"
  8767. CXXFLAGS="$CXXFLAGS $TK_CFLAGS"
  8768. MOZ_USER_DIR="Mozilla"
  8769. MOZ_FS_LAYOUT=bundle
  8770. ;;
  8771. uikit)
  8772. LDFLAGS="$LDFLAGS -framework UIKit -lobjc"
  8773. TK_CFLAGS=""
  8774. TK_LIBS='-Wl,-framework,Foundation -Wl,-framework,CoreFoundation -Wl,-framework,CoreGraphics -Wl,-framework,CoreText -Wl,-framework,AVFoundation -Wl,-framework,AudioToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo -Wl,-framework,OpenGLES -Wl,-framework,QuartzCore'
  8775. CFLAGS="$CFLAGS $TK_CFLAGS"
  8776. CXXFLAGS="$CXXFLAGS $TK_CFLAGS"
  8777. MOZ_USER_DIR="Mozilla"
  8778. MOZ_FS_LAYOUT=bundle
  8779. ;;
  8780. esac
  8781. case "$MOZ_WIDGET_TOOLKIT" in
  8782. gtk*)
  8783. MOZ_ENABLE_GTK=1
  8784. ;;
  8785. esac
  8786. if test "$COMPILE_ENVIRONMENT"; then
  8787. if test "$MOZ_WIDGET_TOOLKIT" = gtk3; then
  8788. succeeded=no
  8789. if test -z "$PKG_CONFIG"; then
  8790. echo "*** The pkg-config script could not be found. Make sure it is"
  8791. echo "*** in your path, or set the PKG_CONFIG environment variable"
  8792. echo "*** to the full path to pkg-config."
  8793. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  8794. else
  8795. PKG_CONFIG_MIN_VERSION=0.9.0
  8796. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  8797. echo $ac_n "checking for gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES""... $ac_c" 1>&6
  8798. echo "configure:9933: checking for gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES" >&5
  8799. if $PKG_CONFIG --exists "gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES" ; then
  8800. echo "$ac_t""yes" 1>&6
  8801. succeeded=yes
  8802. echo $ac_n "checking MOZ_GTK3_CFLAGS""... $ac_c" 1>&6
  8803. echo "configure:9940: checking MOZ_GTK3_CFLAGS" >&5
  8804. MOZ_GTK3_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES"`
  8805. echo "$ac_t""$MOZ_GTK3_CFLAGS" 1>&6
  8806. echo $ac_n "checking MOZ_GTK3_LIBS""... $ac_c" 1>&6
  8807. echo "configure:9945: checking MOZ_GTK3_LIBS" >&5
  8808. ## Remove evil flags like -Wl,--export-dynamic
  8809. MOZ_GTK3_LIBS="`$PKG_CONFIG --libs \"gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES\" |sed s/-Wl,--export-dynamic//g`"
  8810. echo "$ac_t""$MOZ_GTK3_LIBS" 1>&6
  8811. else
  8812. MOZ_GTK3_CFLAGS=""
  8813. MOZ_GTK3_LIBS=""
  8814. ## If we have a custom action on failure, don't print errors, but
  8815. ## do set a variable so people can do so.
  8816. MOZ_GTK3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES"`
  8817. echo $MOZ_GTK3_PKG_ERRORS
  8818. fi
  8819. else
  8820. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  8821. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  8822. fi
  8823. fi
  8824. if test $succeeded = yes; then
  8825. :
  8826. else
  8827. if test "$COMPILE_ENVIRONMENT"; then
  8828. { echo "configure: error: Library requirements (gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (gtk+-3.0 >= $GTK3_VERSION gtk+-unix-print-3.0 glib-2.0 gobject-2.0 $GDK_PACKAGES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  8829. fi
  8830. fi
  8831. MOZ_GTK3_CFLAGS="-I${_topsrcdir}/widget/gtk/compat-gtk3 $MOZ_GTK3_CFLAGS"
  8832. TK_CFLAGS=$MOZ_GTK3_CFLAGS
  8833. TK_LIBS=$MOZ_GTK3_LIBS
  8834. cat >> confdefs.pytmp <<EOF
  8835. (''' GDK_VERSION_MAX_ALLOWED ''', r''' $GDK_VERSION_MAX_ALLOWED ''')
  8836. EOF
  8837. cat >> confdefs.h <<EOF
  8838. #define GDK_VERSION_MAX_ALLOWED $GDK_VERSION_MAX_ALLOWED
  8839. EOF
  8840. GLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32
  8841. fi
  8842. if test "$MOZ_WIDGET_TOOLKIT" = gtk2; then
  8843. GLIB_VERSION_MAX_ALLOWED=$GLIB_VERSION_MIN_REQUIRED
  8844. fi
  8845. if test "$MOZ_ENABLE_GTK"; then
  8846. if test "$MOZ_X11"; then
  8847. GDK_PACKAGES=gdk-x11-2.0
  8848. fi
  8849. cat >> confdefs.pytmp <<EOF
  8850. (''' GLIB_VERSION_MIN_REQUIRED ''', r''' $GLIB_VERSION_MIN_REQUIRED ''')
  8851. EOF
  8852. cat >> confdefs.h <<EOF
  8853. #define GLIB_VERSION_MIN_REQUIRED $GLIB_VERSION_MIN_REQUIRED
  8854. EOF
  8855. cat >> confdefs.pytmp <<EOF
  8856. (''' GLIB_VERSION_MAX_ALLOWED ''', r''' $GLIB_VERSION_MAX_ALLOWED ''')
  8857. EOF
  8858. cat >> confdefs.h <<EOF
  8859. #define GLIB_VERSION_MAX_ALLOWED $GLIB_VERSION_MAX_ALLOWED
  8860. EOF
  8861. succeeded=no
  8862. if test -z "$PKG_CONFIG"; then
  8863. echo "*** The pkg-config script could not be found. Make sure it is"
  8864. echo "*** in your path, or set the PKG_CONFIG environment variable"
  8865. echo "*** to the full path to pkg-config."
  8866. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  8867. else
  8868. PKG_CONFIG_MIN_VERSION=0.9.0
  8869. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  8870. echo $ac_n "checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES""... $ac_c" 1>&6
  8871. echo "configure:10019: checking for gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES" >&5
  8872. if $PKG_CONFIG --exists "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES" ; then
  8873. echo "$ac_t""yes" 1>&6
  8874. succeeded=yes
  8875. echo $ac_n "checking MOZ_GTK2_CFLAGS""... $ac_c" 1>&6
  8876. echo "configure:10026: checking MOZ_GTK2_CFLAGS" >&5
  8877. MOZ_GTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES"`
  8878. echo "$ac_t""$MOZ_GTK2_CFLAGS" 1>&6
  8879. echo $ac_n "checking MOZ_GTK2_LIBS""... $ac_c" 1>&6
  8880. echo "configure:10031: checking MOZ_GTK2_LIBS" >&5
  8881. ## Remove evil flags like -Wl,--export-dynamic
  8882. MOZ_GTK2_LIBS="`$PKG_CONFIG --libs \"gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES\" |sed s/-Wl,--export-dynamic//g`"
  8883. echo "$ac_t""$MOZ_GTK2_LIBS" 1>&6
  8884. else
  8885. MOZ_GTK2_CFLAGS=""
  8886. MOZ_GTK2_LIBS=""
  8887. ## If we have a custom action on failure, don't print errors, but
  8888. ## do set a variable so people can do so.
  8889. MOZ_GTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES"`
  8890. echo $MOZ_GTK2_PKG_ERRORS
  8891. fi
  8892. else
  8893. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  8894. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  8895. fi
  8896. fi
  8897. if test $succeeded = yes; then
  8898. :
  8899. else
  8900. if test "$COMPILE_ENVIRONMENT"; then
  8901. { echo "configure: error: Library requirements (gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (gtk+-2.0 >= $GTK2_VERSION gtk+-unix-print-2.0 glib-2.0 >= $GLIB_VERSION gobject-2.0 $GDK_PACKAGES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  8902. fi
  8903. fi
  8904. MOZ_GTK2_CFLAGS="-I${_topsrcdir}/widget/gtk/compat $MOZ_GTK2_CFLAGS"
  8905. fi
  8906. if test "$MOZ_WIDGET_TOOLKIT" = gtk2; then
  8907. TK_CFLAGS=$MOZ_GTK2_CFLAGS
  8908. TK_LIBS=$MOZ_GTK2_LIBS
  8909. fi
  8910. fi # COMPILE_ENVIRONMENT
  8911. if test "$MOZ_ENABLE_GTK"
  8912. then
  8913. MOZ_ENABLE_STARTUP_NOTIFICATION=
  8914. # Check whether --enable-startup-notification or --disable-startup-notification was given.
  8915. if test "${enable_startup_notification+set}" = set; then
  8916. enableval="$enable_startup_notification"
  8917. if test "$enableval" = "yes"; then
  8918. MOZ_ENABLE_STARTUP_NOTIFICATION=force
  8919. elif test "$enableval" = "no"; then
  8920. MOZ_ENABLE_STARTUP_NOTIFICATION=
  8921. else
  8922. { echo "configure: error: Option, startup-notification, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, startup-notification, does not take an argument ($enableval)." 1>&5; exit 1; }
  8923. fi
  8924. fi
  8925. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"
  8926. then
  8927. succeeded=no
  8928. if test -z "$PKG_CONFIG"; then
  8929. echo "*** The pkg-config script could not be found. Make sure it is"
  8930. echo "*** in your path, or set the PKG_CONFIG environment variable"
  8931. echo "*** to the full path to pkg-config."
  8932. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  8933. else
  8934. PKG_CONFIG_MIN_VERSION=0.9.0
  8935. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  8936. echo $ac_n "checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION""... $ac_c" 1>&6
  8937. echo "configure:10100: checking for libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" >&5
  8938. if $PKG_CONFIG --exists "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION" ; then
  8939. echo "$ac_t""yes" 1>&6
  8940. succeeded=yes
  8941. echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_CFLAGS""... $ac_c" 1>&6
  8942. echo "configure:10107: checking MOZ_STARTUP_NOTIFICATION_CFLAGS" >&5
  8943. MOZ_STARTUP_NOTIFICATION_CFLAGS=`$PKG_CONFIG --cflags "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION"`
  8944. echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_CFLAGS" 1>&6
  8945. echo $ac_n "checking MOZ_STARTUP_NOTIFICATION_LIBS""... $ac_c" 1>&6
  8946. echo "configure:10112: checking MOZ_STARTUP_NOTIFICATION_LIBS" >&5
  8947. ## Remove evil flags like -Wl,--export-dynamic
  8948. MOZ_STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs \"libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  8949. echo "$ac_t""$MOZ_STARTUP_NOTIFICATION_LIBS" 1>&6
  8950. else
  8951. MOZ_STARTUP_NOTIFICATION_CFLAGS=""
  8952. MOZ_STARTUP_NOTIFICATION_LIBS=""
  8953. ## If we have a custom action on failure, don't print errors, but
  8954. ## do set a variable so people can do so.
  8955. MOZ_STARTUP_NOTIFICATION_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_VERSION"`
  8956. fi
  8957. else
  8958. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  8959. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  8960. fi
  8961. fi
  8962. if test $succeeded = yes; then
  8963. MOZ_ENABLE_STARTUP_NOTIFICATION=1
  8964. else
  8965. if test "$COMPILE_ENVIRONMENT"; then
  8966. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION" = "force"
  8967. then
  8968. { echo "configure: error: * * * Could not find startup-notification >= $STARTUP_NOTIFICATION_VERSION" 1>&2; echo "configure: error: * * * Could not find startup-notification >= $STARTUP_NOTIFICATION_VERSION" 1>&5; exit 1; }
  8969. fi
  8970. MOZ_ENABLE_STARTUP_NOTIFICATION=
  8971. fi
  8972. fi
  8973. fi
  8974. if test "$MOZ_ENABLE_STARTUP_NOTIFICATION"; then
  8975. cat >> confdefs.pytmp <<\EOF
  8976. (''' MOZ_ENABLE_STARTUP_NOTIFICATION ''', ' 1 ')
  8977. EOF
  8978. cat >> confdefs.h <<\EOF
  8979. #define MOZ_ENABLE_STARTUP_NOTIFICATION 1
  8980. EOF
  8981. fi
  8982. TK_LIBS="$TK_LIBS $MOZ_STARTUP_NOTIFICATION_LIBS"
  8983. fi
  8984. # Components and Features
  8985. # Check whether --enable-ui-locale or --disable-ui-locale was given.
  8986. if test "${enable_ui_locale+set}" = set; then
  8987. enableval="$enable_ui_locale"
  8988. MOZ_UI_LOCALE=$enableval
  8989. fi
  8990. if test -n "$MOZ_OFFICIAL_BRANDING"; then
  8991. if test -z "$MOZ_OFFICIAL_BRANDING_DIRECTORY"; then
  8992. { echo "configure: error: You must specify MOZ_OFFICIAL_BRANDING_DIRECTORY to use --enable-official-branding." 1>&2; echo "configure: error: You must specify MOZ_OFFICIAL_BRANDING_DIRECTORY to use --enable-official-branding." 1>&5; exit 1; }
  8993. else
  8994. MOZ_BRANDING_DIRECTORY=${MOZ_OFFICIAL_BRANDING_DIRECTORY}
  8995. cat >> confdefs.pytmp <<\EOF
  8996. (''' MOZ_OFFICIAL_BRANDING ''', ' 1 ')
  8997. EOF
  8998. cat >> confdefs.h <<\EOF
  8999. #define MOZ_OFFICIAL_BRANDING 1
  9000. EOF
  9001. MC_OFFICIAL=1
  9002. fi
  9003. fi
  9004. if test -n "$MC_OFFICIAL"; then
  9005. cat >> confdefs.pytmp <<\EOF
  9006. (''' MC_OFFICIAL ''', ' 1 ')
  9007. EOF
  9008. cat >> confdefs.h <<\EOF
  9009. #define MC_OFFICIAL 1
  9010. EOF
  9011. fi
  9012. # Check whether --with-branding or --without-branding was given.
  9013. if test "${with_branding+set}" = set; then
  9014. withval="$with_branding"
  9015. MOZ_BRANDING_DIRECTORY=$withval
  9016. fi
  9017. REAL_BRANDING_DIRECTORY="${MOZ_BRANDING_DIRECTORY}"
  9018. if test -z "$REAL_BRANDING_DIRECTORY"; then
  9019. REAL_BRANDING_DIRECTORY=${MOZ_BUILD_APP}/branding/nightly
  9020. fi
  9021. if test -f "${_topsrcdir}/$REAL_BRANDING_DIRECTORY/configure.sh"; then
  9022. . "${_topsrcdir}/$REAL_BRANDING_DIRECTORY/configure.sh"
  9023. elif test -f "${EXTERNAL_SOURCE_DIR}/$REAL_BRANDING_DIRECTORY/configure.sh"; then
  9024. . "${EXTERNAL_SOURCE_DIR}/$REAL_BRANDING_DIRECTORY/configure.sh"
  9025. fi
  9026. # Check whether --enable-private-build or --disable-private-build was given.
  9027. if test "${enable_private_build+set}" = set; then
  9028. enableval="$enable_private_build"
  9029. if test "$enableval" = "yes"; then
  9030. MC_PRIVATE_BUILD=1
  9031. elif test "$enableval" = "no"; then
  9032. MC_PRIVATE_BUILD=
  9033. else
  9034. { echo "configure: error: Option, private-build, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, private-build, does not take an argument ($enableval)." 1>&5; exit 1; }
  9035. fi
  9036. fi
  9037. if test -n "$MC_PRIVATE_BUILD"; then
  9038. cat >> confdefs.pytmp <<\EOF
  9039. (''' MC_PRIVATE_BUILD ''', ' 1 ')
  9040. EOF
  9041. cat >> confdefs.h <<\EOF
  9042. #define MC_PRIVATE_BUILD 1
  9043. EOF
  9044. fi
  9045. # Check whether --with-distribution-id or --without-distribution-id was given.
  9046. if test "${with_distribution_id+set}" = set; then
  9047. withval="$with_distribution_id"
  9048. val=`echo $withval`
  9049. MOZ_DISTRIBUTION_ID="$val"
  9050. fi
  9051. if test -z "$MOZ_DISTRIBUTION_ID"; then
  9052. MOZ_DISTRIBUTION_ID="org.mozilla"
  9053. fi
  9054. cat >> confdefs.pytmp <<EOF
  9055. (''' MOZ_DISTRIBUTION_ID ''', r''' "$MOZ_DISTRIBUTION_ID" ''')
  9056. EOF
  9057. cat >> confdefs.h <<EOF
  9058. #define MOZ_DISTRIBUTION_ID "$MOZ_DISTRIBUTION_ID"
  9059. EOF
  9060. if test "$MOZ_X11"
  9061. then
  9062. if test "$MOZ_ENABLE_GTK"
  9063. then
  9064. MOZ_ENABLE_GIO=1
  9065. MOZ_ENABLE_GCONF=1
  9066. fi
  9067. # Check whether --enable-gio or --disable-gio was given.
  9068. if test "${enable_gio+set}" = set; then
  9069. enableval="$enable_gio"
  9070. if test "$enableval" = "no"; then
  9071. MOZ_ENABLE_GIO=
  9072. elif test "$enableval" = "yes"; then
  9073. MOZ_ENABLE_GIO=force
  9074. else
  9075. { echo "configure: error: Option, gio, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, gio, does not take an argument ($enableval)." 1>&5; exit 1; }
  9076. fi
  9077. fi
  9078. if test "$MOZ_ENABLE_GIO" -a "$MOZ_ENABLE_GTK"
  9079. then
  9080. if test "$MOZ_WIDGET_TOOLKIT" = gtk2
  9081. then
  9082. succeeded=no
  9083. if test -z "$PKG_CONFIG"; then
  9084. echo "*** The pkg-config script could not be found. Make sure it is"
  9085. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9086. echo "*** to the full path to pkg-config."
  9087. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9088. else
  9089. PKG_CONFIG_MIN_VERSION=0.9.0
  9090. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9091. echo $ac_n "checking for gtk+-2.0 >= 2.14""... $ac_c" 1>&6
  9092. echo "configure:10309: checking for gtk+-2.0 >= 2.14" >&5
  9093. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.14" ; then
  9094. echo "$ac_t""yes" 1>&6
  9095. succeeded=yes
  9096. echo $ac_n "checking _GTKCHECK_CFLAGS""... $ac_c" 1>&6
  9097. echo "configure:10316: checking _GTKCHECK_CFLAGS" >&5
  9098. _GTKCHECK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.14"`
  9099. echo "$ac_t""$_GTKCHECK_CFLAGS" 1>&6
  9100. echo $ac_n "checking _GTKCHECK_LIBS""... $ac_c" 1>&6
  9101. echo "configure:10321: checking _GTKCHECK_LIBS" >&5
  9102. ## Remove evil flags like -Wl,--export-dynamic
  9103. _GTKCHECK_LIBS="`$PKG_CONFIG --libs \"gtk+-2.0 >= 2.14\" |sed s/-Wl,--export-dynamic//g`"
  9104. echo "$ac_t""$_GTKCHECK_LIBS" 1>&6
  9105. else
  9106. _GTKCHECK_CFLAGS=""
  9107. _GTKCHECK_LIBS=""
  9108. ## If we have a custom action on failure, don't print errors, but
  9109. ## do set a variable so people can do so.
  9110. _GTKCHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.14"`
  9111. fi
  9112. else
  9113. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9114. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9115. fi
  9116. fi
  9117. if test $succeeded = yes; then
  9118. :
  9119. else
  9120. if test "$COMPILE_ENVIRONMENT"; then
  9121. { echo "configure: error: * * * Could not find gtk+-2.0 > 2.14. Required for build with gio." 1>&2; echo "configure: error: * * * Could not find gtk+-2.0 > 2.14. Required for build with gio." 1>&5; exit 1; }
  9122. fi
  9123. fi
  9124. fi
  9125. succeeded=no
  9126. if test -z "$PKG_CONFIG"; then
  9127. echo "*** The pkg-config script could not be found. Make sure it is"
  9128. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9129. echo "*** to the full path to pkg-config."
  9130. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9131. else
  9132. PKG_CONFIG_MIN_VERSION=0.9.0
  9133. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9134. echo $ac_n "checking for gio-2.0 >= $GIO_VERSION""... $ac_c" 1>&6
  9135. echo "configure:10362: checking for gio-2.0 >= $GIO_VERSION" >&5
  9136. if $PKG_CONFIG --exists "gio-2.0 >= $GIO_VERSION" ; then
  9137. echo "$ac_t""yes" 1>&6
  9138. succeeded=yes
  9139. echo $ac_n "checking MOZ_GIO_CFLAGS""... $ac_c" 1>&6
  9140. echo "configure:10369: checking MOZ_GIO_CFLAGS" >&5
  9141. MOZ_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= $GIO_VERSION"`
  9142. echo "$ac_t""$MOZ_GIO_CFLAGS" 1>&6
  9143. echo $ac_n "checking MOZ_GIO_LIBS""... $ac_c" 1>&6
  9144. echo "configure:10374: checking MOZ_GIO_LIBS" >&5
  9145. ## Remove evil flags like -Wl,--export-dynamic
  9146. MOZ_GIO_LIBS="`$PKG_CONFIG --libs \"gio-2.0 >= $GIO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  9147. echo "$ac_t""$MOZ_GIO_LIBS" 1>&6
  9148. else
  9149. MOZ_GIO_CFLAGS=""
  9150. MOZ_GIO_LIBS=""
  9151. ## If we have a custom action on failure, don't print errors, but
  9152. ## do set a variable so people can do so.
  9153. MOZ_GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 >= $GIO_VERSION"`
  9154. fi
  9155. else
  9156. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9157. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9158. fi
  9159. fi
  9160. if test $succeeded = yes; then
  9161. MOZ_GIO_LIBS=`echo $MOZ_GIO_LIBS | sed 's/-llinc\>//'`
  9162. MOZ_ENABLE_GIO=1
  9163. cat >> confdefs.pytmp <<\EOF
  9164. (''' MOZ_ENABLE_GIO ''', ' 1 ')
  9165. EOF
  9166. cat >> confdefs.h <<\EOF
  9167. #define MOZ_ENABLE_GIO 1
  9168. EOF
  9169. else
  9170. if test "$COMPILE_ENVIRONMENT"; then
  9171. if test "$MOZ_ENABLE_GIO" = "force"
  9172. then
  9173. { echo "configure: error: * * * Could not find gio-2.0 >= $GIO_VERSION" 1>&2; echo "configure: error: * * * Could not find gio-2.0 >= $GIO_VERSION" 1>&5; exit 1; }
  9174. fi
  9175. MOZ_ENABLE_GIO=
  9176. fi
  9177. fi
  9178. fi
  9179. # Check whether --enable-gconf or --disable-gconf was given.
  9180. if test "${enable_gconf+set}" = set; then
  9181. enableval="$enable_gconf"
  9182. if test "$enableval" = "no"; then
  9183. MOZ_ENABLE_GCONF=
  9184. elif test "$enableval" = "yes"; then
  9185. MOZ_ENABLE_GCONF=1
  9186. else
  9187. { echo "configure: error: Option, gconf, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, gconf, does not take an argument ($enableval)." 1>&5; exit 1; }
  9188. fi
  9189. fi
  9190. if test "$MOZ_ENABLE_GCONF"
  9191. then
  9192. succeeded=no
  9193. if test -z "$PKG_CONFIG"; then
  9194. echo "*** The pkg-config script could not be found. Make sure it is"
  9195. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9196. echo "*** to the full path to pkg-config."
  9197. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9198. else
  9199. PKG_CONFIG_MIN_VERSION=0.9.0
  9200. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9201. echo $ac_n "checking for gconf-2.0 >= $GCONF_VERSION gobject-2.0 ""... $ac_c" 1>&6
  9202. echo "configure:10449: checking for gconf-2.0 >= $GCONF_VERSION gobject-2.0 " >&5
  9203. if $PKG_CONFIG --exists "gconf-2.0 >= $GCONF_VERSION gobject-2.0 " ; then
  9204. echo "$ac_t""yes" 1>&6
  9205. succeeded=yes
  9206. echo $ac_n "checking MOZ_GCONF_CFLAGS""... $ac_c" 1>&6
  9207. echo "configure:10456: checking MOZ_GCONF_CFLAGS" >&5
  9208. MOZ_GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= $GCONF_VERSION gobject-2.0 "`
  9209. echo "$ac_t""$MOZ_GCONF_CFLAGS" 1>&6
  9210. echo $ac_n "checking MOZ_GCONF_LIBS""... $ac_c" 1>&6
  9211. echo "configure:10461: checking MOZ_GCONF_LIBS" >&5
  9212. ## Remove evil flags like -Wl,--export-dynamic
  9213. MOZ_GCONF_LIBS="`$PKG_CONFIG --libs \"gconf-2.0 >= $GCONF_VERSION gobject-2.0 \" |sed s/-Wl,--export-dynamic//g`"
  9214. echo "$ac_t""$MOZ_GCONF_LIBS" 1>&6
  9215. else
  9216. MOZ_GCONF_CFLAGS=""
  9217. MOZ_GCONF_LIBS=""
  9218. ## If we have a custom action on failure, don't print errors, but
  9219. ## do set a variable so people can do so.
  9220. MOZ_GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= $GCONF_VERSION gobject-2.0 "`
  9221. fi
  9222. else
  9223. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9224. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9225. fi
  9226. fi
  9227. if test $succeeded = yes; then
  9228. MOZ_GCONF_LIBS=`$PKG_CONFIG --libs gobject-2.0`
  9229. MOZ_ENABLE_GCONF=1
  9230. else
  9231. if test "$COMPILE_ENVIRONMENT"; then
  9232. if test -n "$MOZ_ENABLE_GCONF";
  9233. then
  9234. { echo "configure: error: * * * Could not find gconf-2.0 " 1>&2; echo "configure: error: * * * Could not find gconf-2.0 " 1>&5; exit 1; }
  9235. else
  9236. echo "configure: warning: Many automated tests will fail with --disable-gconf. See bug 1167201." 1>&2
  9237. fi
  9238. fi
  9239. fi
  9240. fi
  9241. if test "$MOZ_ENABLE_GCONF"; then
  9242. cat >> confdefs.pytmp <<\EOF
  9243. (''' MOZ_ENABLE_GCONF ''', ' 1 ')
  9244. EOF
  9245. cat >> confdefs.h <<\EOF
  9246. #define MOZ_ENABLE_GCONF 1
  9247. EOF
  9248. fi
  9249. fi
  9250. if test "$MOZ_ENABLE_GTK"
  9251. then
  9252. MOZ_ENABLE_LIBPROXY=
  9253. # Check whether --enable-libproxy or --disable-libproxy was given.
  9254. if test "${enable_libproxy+set}" = set; then
  9255. enableval="$enable_libproxy"
  9256. if test "$enableval" = "yes"; then
  9257. MOZ_ENABLE_LIBPROXY=1
  9258. elif test "$enableval" = "no"; then
  9259. MOZ_ENABLE_LIBPROXY=
  9260. else
  9261. { echo "configure: error: Option, libproxy, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, libproxy, does not take an argument ($enableval)." 1>&5; exit 1; }
  9262. fi
  9263. fi
  9264. if test "$MOZ_ENABLE_LIBPROXY"
  9265. then
  9266. succeeded=no
  9267. if test -z "$PKG_CONFIG"; then
  9268. echo "*** The pkg-config script could not be found. Make sure it is"
  9269. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9270. echo "*** to the full path to pkg-config."
  9271. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9272. else
  9273. PKG_CONFIG_MIN_VERSION=0.9.0
  9274. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9275. echo $ac_n "checking for libproxy-1.0""... $ac_c" 1>&6
  9276. echo "configure:10546: checking for libproxy-1.0" >&5
  9277. if $PKG_CONFIG --exists "libproxy-1.0" ; then
  9278. echo "$ac_t""yes" 1>&6
  9279. succeeded=yes
  9280. echo $ac_n "checking MOZ_LIBPROXY_CFLAGS""... $ac_c" 1>&6
  9281. echo "configure:10553: checking MOZ_LIBPROXY_CFLAGS" >&5
  9282. MOZ_LIBPROXY_CFLAGS=`$PKG_CONFIG --cflags "libproxy-1.0"`
  9283. echo "$ac_t""$MOZ_LIBPROXY_CFLAGS" 1>&6
  9284. echo $ac_n "checking MOZ_LIBPROXY_LIBS""... $ac_c" 1>&6
  9285. echo "configure:10558: checking MOZ_LIBPROXY_LIBS" >&5
  9286. ## Remove evil flags like -Wl,--export-dynamic
  9287. MOZ_LIBPROXY_LIBS="`$PKG_CONFIG --libs \"libproxy-1.0\" |sed s/-Wl,--export-dynamic//g`"
  9288. echo "$ac_t""$MOZ_LIBPROXY_LIBS" 1>&6
  9289. else
  9290. MOZ_LIBPROXY_CFLAGS=""
  9291. MOZ_LIBPROXY_LIBS=""
  9292. ## If we have a custom action on failure, don't print errors, but
  9293. ## do set a variable so people can do so.
  9294. MOZ_LIBPROXY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libproxy-1.0"`
  9295. echo $MOZ_LIBPROXY_PKG_ERRORS
  9296. fi
  9297. else
  9298. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9299. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9300. fi
  9301. fi
  9302. if test $succeeded = yes; then
  9303. :
  9304. else
  9305. if test "$COMPILE_ENVIRONMENT"; then
  9306. { echo "configure: error: Library requirements (libproxy-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (libproxy-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  9307. fi
  9308. fi
  9309. cat >> confdefs.pytmp <<\EOF
  9310. (''' MOZ_ENABLE_LIBPROXY ''', ' 1 ')
  9311. EOF
  9312. cat >> confdefs.h <<\EOF
  9313. #define MOZ_ENABLE_LIBPROXY 1
  9314. EOF
  9315. fi
  9316. fi
  9317. if test "$MOZ_ENABLE_GTK"
  9318. then
  9319. # Check whether --enable-gnomeui or --disable-gnomeui was given.
  9320. if test "${enable_gnomeui+set}" = set; then
  9321. enableval="$enable_gnomeui"
  9322. if test "$enableval" = "yes"; then
  9323. MOZ_ENABLE_GNOMEUI=force
  9324. elif test "$enableval" = "no"; then
  9325. MOZ_ENABLE_GNOMEUI=
  9326. else
  9327. { echo "configure: error: Option, gnomeui, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, gnomeui, does not take an argument ($enableval)." 1>&5; exit 1; }
  9328. fi
  9329. fi
  9330. if test "$MOZ_ENABLE_GNOMEUI"
  9331. then
  9332. succeeded=no
  9333. if test -z "$PKG_CONFIG"; then
  9334. echo "*** The pkg-config script could not be found. Make sure it is"
  9335. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9336. echo "*** to the full path to pkg-config."
  9337. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9338. else
  9339. PKG_CONFIG_MIN_VERSION=0.9.0
  9340. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9341. echo $ac_n "checking for libgnomeui-2.0 >= $GNOMEUI_VERSION""... $ac_c" 1>&6
  9342. echo "configure:10627: checking for libgnomeui-2.0 >= $GNOMEUI_VERSION" >&5
  9343. if $PKG_CONFIG --exists "libgnomeui-2.0 >= $GNOMEUI_VERSION" ; then
  9344. echo "$ac_t""yes" 1>&6
  9345. succeeded=yes
  9346. echo $ac_n "checking MOZ_GNOMEUI_CFLAGS""... $ac_c" 1>&6
  9347. echo "configure:10634: checking MOZ_GNOMEUI_CFLAGS" >&5
  9348. MOZ_GNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= $GNOMEUI_VERSION"`
  9349. echo "$ac_t""$MOZ_GNOMEUI_CFLAGS" 1>&6
  9350. echo $ac_n "checking MOZ_GNOMEUI_LIBS""... $ac_c" 1>&6
  9351. echo "configure:10639: checking MOZ_GNOMEUI_LIBS" >&5
  9352. ## Remove evil flags like -Wl,--export-dynamic
  9353. MOZ_GNOMEUI_LIBS="`$PKG_CONFIG --libs \"libgnomeui-2.0 >= $GNOMEUI_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  9354. echo "$ac_t""$MOZ_GNOMEUI_LIBS" 1>&6
  9355. else
  9356. MOZ_GNOMEUI_CFLAGS=""
  9357. MOZ_GNOMEUI_LIBS=""
  9358. ## If we have a custom action on failure, don't print errors, but
  9359. ## do set a variable so people can do so.
  9360. MOZ_GNOMEUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= $GNOMEUI_VERSION"`
  9361. fi
  9362. else
  9363. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9364. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9365. fi
  9366. fi
  9367. if test $succeeded = yes; then
  9368. MOZ_ENABLE_GNOMEUI=1
  9369. else
  9370. if test "$COMPILE_ENVIRONMENT"; then
  9371. if test "$MOZ_ENABLE_GNOMEUI" = "force"
  9372. then
  9373. { echo "configure: error: * * * Could not find libgnomeui-2.0 >= $GNOMEUI_VERSION" 1>&2; echo "configure: error: * * * Could not find libgnomeui-2.0 >= $GNOMEUI_VERSION" 1>&5; exit 1; }
  9374. fi
  9375. MOZ_ENABLE_GNOMEUI=
  9376. fi
  9377. fi
  9378. fi
  9379. if test "$MOZ_ENABLE_GNOMEUI"; then
  9380. cat >> confdefs.pytmp <<\EOF
  9381. (''' MOZ_ENABLE_GNOMEUI ''', ' 1 ')
  9382. EOF
  9383. cat >> confdefs.h <<\EOF
  9384. #define MOZ_ENABLE_GNOMEUI 1
  9385. EOF
  9386. fi
  9387. fi
  9388. if test "$MOZ_ENABLE_GTK"
  9389. then
  9390. MOZ_ENABLE_DBUS=1
  9391. # Check whether --enable-dbus or --disable-dbus was given.
  9392. if test "${enable_dbus+set}" = set; then
  9393. enableval="$enable_dbus"
  9394. if test "$enableval" = "no"; then
  9395. MOZ_ENABLE_DBUS=
  9396. elif test "$enableval" = "yes"; then
  9397. MOZ_ENABLE_DBUS=1
  9398. else
  9399. { echo "configure: error: Option, dbus, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, dbus, does not take an argument ($enableval)." 1>&5; exit 1; }
  9400. fi
  9401. fi
  9402. if test "$MOZ_ENABLE_DBUS"
  9403. then
  9404. succeeded=no
  9405. if test -z "$PKG_CONFIG"; then
  9406. echo "*** The pkg-config script could not be found. Make sure it is"
  9407. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9408. echo "*** to the full path to pkg-config."
  9409. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9410. else
  9411. PKG_CONFIG_MIN_VERSION=0.9.0
  9412. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9413. echo $ac_n "checking for dbus-1 >= $DBUS_VERSION""... $ac_c" 1>&6
  9414. echo "configure:10722: checking for dbus-1 >= $DBUS_VERSION" >&5
  9415. if $PKG_CONFIG --exists "dbus-1 >= $DBUS_VERSION" ; then
  9416. echo "$ac_t""yes" 1>&6
  9417. succeeded=yes
  9418. echo $ac_n "checking MOZ_DBUS_CFLAGS""... $ac_c" 1>&6
  9419. echo "configure:10729: checking MOZ_DBUS_CFLAGS" >&5
  9420. MOZ_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= $DBUS_VERSION"`
  9421. echo "$ac_t""$MOZ_DBUS_CFLAGS" 1>&6
  9422. echo $ac_n "checking MOZ_DBUS_LIBS""... $ac_c" 1>&6
  9423. echo "configure:10734: checking MOZ_DBUS_LIBS" >&5
  9424. ## Remove evil flags like -Wl,--export-dynamic
  9425. MOZ_DBUS_LIBS="`$PKG_CONFIG --libs \"dbus-1 >= $DBUS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  9426. echo "$ac_t""$MOZ_DBUS_LIBS" 1>&6
  9427. else
  9428. MOZ_DBUS_CFLAGS=""
  9429. MOZ_DBUS_LIBS=""
  9430. ## If we have a custom action on failure, don't print errors, but
  9431. ## do set a variable so people can do so.
  9432. MOZ_DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= $DBUS_VERSION"`
  9433. echo $MOZ_DBUS_PKG_ERRORS
  9434. fi
  9435. else
  9436. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9437. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9438. fi
  9439. fi
  9440. if test $succeeded = yes; then
  9441. :
  9442. else
  9443. if test "$COMPILE_ENVIRONMENT"; then
  9444. { echo "configure: error: Library requirements (dbus-1 >= $DBUS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (dbus-1 >= $DBUS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  9445. fi
  9446. fi
  9447. succeeded=no
  9448. if test -z "$PKG_CONFIG"; then
  9449. echo "*** The pkg-config script could not be found. Make sure it is"
  9450. echo "*** in your path, or set the PKG_CONFIG environment variable"
  9451. echo "*** to the full path to pkg-config."
  9452. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  9453. else
  9454. PKG_CONFIG_MIN_VERSION=0.9.0
  9455. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  9456. echo $ac_n "checking for dbus-glib-1 >= $DBUS_VERSION""... $ac_c" 1>&6
  9457. echo "configure:10774: checking for dbus-glib-1 >= $DBUS_VERSION" >&5
  9458. if $PKG_CONFIG --exists "dbus-glib-1 >= $DBUS_VERSION" ; then
  9459. echo "$ac_t""yes" 1>&6
  9460. succeeded=yes
  9461. echo $ac_n "checking MOZ_DBUS_GLIB_CFLAGS""... $ac_c" 1>&6
  9462. echo "configure:10781: checking MOZ_DBUS_GLIB_CFLAGS" >&5
  9463. MOZ_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= $DBUS_VERSION"`
  9464. echo "$ac_t""$MOZ_DBUS_GLIB_CFLAGS" 1>&6
  9465. echo $ac_n "checking MOZ_DBUS_GLIB_LIBS""... $ac_c" 1>&6
  9466. echo "configure:10786: checking MOZ_DBUS_GLIB_LIBS" >&5
  9467. ## Remove evil flags like -Wl,--export-dynamic
  9468. MOZ_DBUS_GLIB_LIBS="`$PKG_CONFIG --libs \"dbus-glib-1 >= $DBUS_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  9469. echo "$ac_t""$MOZ_DBUS_GLIB_LIBS" 1>&6
  9470. else
  9471. MOZ_DBUS_GLIB_CFLAGS=""
  9472. MOZ_DBUS_GLIB_LIBS=""
  9473. ## If we have a custom action on failure, don't print errors, but
  9474. ## do set a variable so people can do so.
  9475. MOZ_DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= $DBUS_VERSION"`
  9476. echo $MOZ_DBUS_GLIB_PKG_ERRORS
  9477. fi
  9478. else
  9479. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  9480. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  9481. fi
  9482. fi
  9483. if test $succeeded = yes; then
  9484. :
  9485. else
  9486. if test "$COMPILE_ENVIRONMENT"; then
  9487. { echo "configure: error: Library requirements (dbus-glib-1 >= $DBUS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (dbus-glib-1 >= $DBUS_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  9488. fi
  9489. fi
  9490. cat >> confdefs.pytmp <<\EOF
  9491. (''' MOZ_ENABLE_DBUS ''', ' 1 ')
  9492. EOF
  9493. cat >> confdefs.h <<\EOF
  9494. #define MOZ_ENABLE_DBUS 1
  9495. EOF
  9496. fi
  9497. fi
  9498. if test -n "$MOZ_EXCLUDE_HYPHENATION_DICTIONARIES"; then
  9499. cat >> confdefs.pytmp <<\EOF
  9500. (''' MOZ_EXCLUDE_HYPHENATION_DICTIONARIES ''', ' 1 ')
  9501. EOF
  9502. cat >> confdefs.h <<\EOF
  9503. #define MOZ_EXCLUDE_HYPHENATION_DICTIONARIES 1
  9504. EOF
  9505. fi
  9506. # Check whether --enable-accessibility or --disable-accessibility was given.
  9507. if test "${enable_accessibility+set}" = set; then
  9508. enableval="$enable_accessibility"
  9509. if test "$enableval" = "no"; then
  9510. ACCESSIBILITY=
  9511. elif test "$enableval" = "yes"; then
  9512. ACCESSIBILITY=1
  9513. else
  9514. { echo "configure: error: Option, accessibility, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, accessibility, does not take an argument ($enableval)." 1>&5; exit 1; }
  9515. fi
  9516. fi
  9517. if test "$ACCESSIBILITY"; then
  9518. case "$target" in
  9519. *-mingw*)
  9520. if test -z "$MIDL"; then
  9521. if test "$GCC" != "yes"; then
  9522. { echo "configure: error: MIDL could not be found. Building accessibility without MIDL is not supported." 1>&2; echo "configure: error: MIDL could not be found. Building accessibility without MIDL is not supported." 1>&5; exit 1; }
  9523. else
  9524. { echo "configure: error: You have accessibility enabled, but widl could not be found. Add --disable-accessibility to your mozconfig or install widl. See https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32 for details." 1>&2; echo "configure: error: You have accessibility enabled, but widl could not be found. Add --disable-accessibility to your mozconfig or install widl. See https://developer.mozilla.org/en-US/docs/Cross_Compile_Mozilla_for_Mingw32 for details." 1>&5; exit 1; }
  9525. fi
  9526. fi
  9527. esac
  9528. cat >> confdefs.pytmp <<\EOF
  9529. (''' ACCESSIBILITY ''', ' 1 ')
  9530. EOF
  9531. cat >> confdefs.h <<\EOF
  9532. #define ACCESSIBILITY 1
  9533. EOF
  9534. fi
  9535. if test "${MOZ_WIDGET_TOOLKIT}" = "linuxgl" -a "$ACCESSIBILITY" != "1"; then
  9536. { echo "configure: error: "Accessibility is required for the linuxgl widget backend"" 1>&2; echo "configure: error: "Accessibility is required for the linuxgl widget backend"" 1>&5; exit 1; }
  9537. fi
  9538. if test -n "$MOZ_WEBRTC"; then
  9539. case "$target" in
  9540. *-linux*|*-mingw*|*-dragonfly*|*-freebsd*|*-netbsd*|*-openbsd*)
  9541. ;;
  9542. *)
  9543. MOZ_WEBRTC=
  9544. ;;
  9545. esac
  9546. fi
  9547. cat > conftest.$ac_ext <<EOF
  9548. #line 10883 "configure"
  9549. #include "confdefs.h"
  9550. #include <linux/ethtool.h>
  9551. int main() {
  9552. struct ethtool_cmd cmd; cmd.speed_hi = 0;
  9553. ; return 0; }
  9554. EOF
  9555. if { (eval echo configure:10890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9556. rm -rf conftest*
  9557. MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI=1
  9558. else
  9559. echo "configure: failed program was:" >&5
  9560. cat conftest.$ac_ext >&5
  9561. fi
  9562. rm -f conftest*
  9563. # target_arch is from {ia32|x64|arm|ppc}
  9564. case "$CPU_ARCH" in
  9565. x86_64 | arm | aarch64 | x86 | ppc* | ia64)
  9566. :
  9567. ;;
  9568. *)
  9569. # unsupported arch for webrtc
  9570. MOZ_WEBRTC=
  9571. ;;
  9572. esac
  9573. # Check whether --enable-dbm or --disable-dbm was given.
  9574. if test "${enable_dbm+set}" = set; then
  9575. enableval="$enable_dbm"
  9576. if test "$enableval" = "no"; then
  9577. NSS_DISABLE_DBM=1
  9578. elif test "$enableval" = "yes"; then
  9579. NSS_DISABLE_DBM=
  9580. else
  9581. { echo "configure: error: Option, dbm, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, dbm, does not take an argument ($enableval)." 1>&5; exit 1; }
  9582. fi
  9583. fi
  9584. if test -n "$NSS_DISABLE_DBM"; then
  9585. cat >> confdefs.pytmp <<\EOF
  9586. (''' NSS_DISABLE_DBM ''', ' 1 ')
  9587. EOF
  9588. cat >> confdefs.h <<\EOF
  9589. #define NSS_DISABLE_DBM 1
  9590. EOF
  9591. fi
  9592. # Check whether --enable-security-sqlstore or --disable-security-sqlstore was given.
  9593. if test "${enable_security_sqlstore+set}" = set; then
  9594. enableval="$enable_security_sqlstore"
  9595. if test "$enableval" = "yes"; then
  9596. MOZ_SECURITY_SQLSTORE=1
  9597. elif test "$enableval" = "no"; then
  9598. MOZ_SECURITY_SQLSTORE=
  9599. else
  9600. { echo "configure: error: Option, security-sqlstore, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, security-sqlstore, does not take an argument ($enableval)." 1>&5; exit 1; }
  9601. fi
  9602. fi
  9603. if test -n "$NSS_DISABLE_DBM" -a -z "$MOZ_SECURITY_SQLSTORE"; then
  9604. { echo "configure: error: DBM storage support is required if not using NSS SQL storage" 1>&2; echo "configure: error: DBM storage support is required if not using NSS SQL storage" 1>&5; exit 1; }
  9605. fi
  9606. if test -n "$MOZ_SECURITY_SQLSTORE"; then
  9607. cat >> confdefs.pytmp <<\EOF
  9608. (''' MOZ_SECURITY_SQLSTORE ''', ' 1 ')
  9609. EOF
  9610. cat >> confdefs.h <<\EOF
  9611. #define MOZ_SECURITY_SQLSTORE 1
  9612. EOF
  9613. fi
  9614. # Check whether --enable-incomplete-external-linkage or --disable-incomplete-external-linkage was given.
  9615. if test "${enable_incomplete_external_linkage+set}" = set; then
  9616. enableval="$enable_incomplete_external_linkage"
  9617. if test "$enableval" = "yes"; then
  9618. MOZ_INCOMPLETE_EXTERNAL_LINKAGE=1
  9619. elif test "$enableval" = "no"; then
  9620. MOZ_INCOMPLETE_EXTERNAL_LINKAGE=
  9621. else
  9622. { echo "configure: error: Option, incomplete-external-linkage, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, incomplete-external-linkage, does not take an argument ($enableval)." 1>&5; exit 1; }
  9623. fi
  9624. fi
  9625. # Check whether --enable-mailnews or --disable-mailnews was given.
  9626. if test "${enable_mailnews+set}" = set; then
  9627. enableval="$enable_mailnews"
  9628. if test "$enableval" = "yes"; then
  9629. MOZ_MAILNEWS=1
  9630. elif test "$enableval" = "no"; then
  9631. MOZ_MAILNEWS=
  9632. else
  9633. { echo "configure: error: Option, mailnews, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, mailnews, does not take an argument ($enableval)." 1>&5; exit 1; }
  9634. fi
  9635. fi
  9636. if test -n "$MOZ_MAILNEWS"; then
  9637. MOZ_MORK=1
  9638. MOZ_LDAP_XPCOM=1
  9639. if test "$OS_ARCH" == "WINNT"; then
  9640. MOZ_MAPI_SUPPORT=1
  9641. else
  9642. MOZ_MOVEMAIL=1
  9643. HAVE_MOVEMAIL=1
  9644. cat >> confdefs.pytmp <<\EOF
  9645. (''' HAVE_MOVEMAIL ''', ' 1 ')
  9646. EOF
  9647. cat >> confdefs.h <<\EOF
  9648. #define HAVE_MOVEMAIL 1
  9649. EOF
  9650. fi
  9651. cat >> confdefs.pytmp <<\EOF
  9652. (''' MOZ_MAILNEWS ''', ' 1 ')
  9653. EOF
  9654. cat >> confdefs.h <<\EOF
  9655. #define MOZ_MAILNEWS 1
  9656. EOF
  9657. cat >> confdefs.pytmp <<\EOF
  9658. (''' MOZ_MORK ''', ' 1 ')
  9659. EOF
  9660. cat >> confdefs.h <<\EOF
  9661. #define MOZ_MORK 1
  9662. EOF
  9663. fi
  9664. # Check whether --enable-mailnews-oauth2 or --disable-mailnews-oauth2 was given.
  9665. if test "${enable_mailnews_oauth2+set}" = set; then
  9666. enableval="$enable_mailnews_oauth2"
  9667. if test "$enableval" = "no"; then
  9668. MOZ_MAILNEWS_OAUTH2=
  9669. elif test "$enableval" = "yes"; then
  9670. MOZ_MAILNEWS_OAUTH2=1
  9671. else
  9672. { echo "configure: error: Option, mailnews-oauth2, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, mailnews-oauth2, does not take an argument ($enableval)." 1>&5; exit 1; }
  9673. fi
  9674. fi
  9675. if test -n "$MOZ_MAILNEWS_OAUTH2"; then
  9676. cat >> confdefs.pytmp <<\EOF
  9677. (''' MOZ_MAILNEWS_OAUTH2 ''', ' 1 ')
  9678. EOF
  9679. cat >> confdefs.h <<\EOF
  9680. #define MOZ_MAILNEWS_OAUTH2 1
  9681. EOF
  9682. fi
  9683. # Check whether --enable-ldap or --disable-ldap was given.
  9684. if test "${enable_ldap+set}" = set; then
  9685. enableval="$enable_ldap"
  9686. if test "$enableval" = "no"; then
  9687. MOZ_LDAP_XPCOM=
  9688. elif test "$enableval" = "yes"; then
  9689. :
  9690. else
  9691. { echo "configure: error: Option, ldap, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, ldap, does not take an argument ($enableval)." 1>&5; exit 1; }
  9692. fi
  9693. fi
  9694. if test -n "$MOZ_LDAP_XPCOM"; then
  9695. cat >> confdefs.pytmp <<\EOF
  9696. (''' MOZ_LDAP_XPCOM ''', ' 1 ')
  9697. EOF
  9698. cat >> confdefs.h <<\EOF
  9699. #define MOZ_LDAP_XPCOM 1
  9700. EOF
  9701. fi
  9702. # Check whether --enable-mapi or --disable-mapi was given.
  9703. if test "${enable_mapi+set}" = set; then
  9704. enableval="$enable_mapi"
  9705. if test "$enableval" = "no"; then
  9706. MOZ_MAPI_SUPPORT=
  9707. elif test "$enableval" = "yes"; then
  9708. :
  9709. else
  9710. { echo "configure: error: Option, mapi, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, mapi, does not take an argument ($enableval)." 1>&5; exit 1; }
  9711. fi
  9712. fi
  9713. if test -n "$MOZ_MAPI_SUPPORT"; then
  9714. cat >> confdefs.pytmp <<\EOF
  9715. (''' MOZ_MAPI_SUPPORT ''', ' 1 ')
  9716. EOF
  9717. cat >> confdefs.h <<\EOF
  9718. #define MOZ_MAPI_SUPPORT 1
  9719. EOF
  9720. fi
  9721. if test -n "$MOZ_CAN_DRAW_IN_TITLEBAR"; then
  9722. case "$OS_TARGET" in
  9723. WINNT)
  9724. cat >> confdefs.pytmp <<\EOF
  9725. (''' MOZ_CAN_DRAW_IN_TITLEBAR ''', ' 1 ')
  9726. EOF
  9727. cat >> confdefs.h <<\EOF
  9728. #define MOZ_CAN_DRAW_IN_TITLEBAR 1
  9729. EOF
  9730. ;;
  9731. *)
  9732. { echo "configure: error: Drawing in the titlebar is only supported on Windows targets" 1>&2; echo "configure: error: Drawing in the titlebar is only supported on Windows targets" 1>&5; exit 1; }
  9733. ;;
  9734. esac
  9735. fi
  9736. # Check whether --enable-webrtc or --disable-webrtc was given.
  9737. if test "${enable_webrtc+set}" = set; then
  9738. enableval="$enable_webrtc"
  9739. if test "$enableval" = "yes"; then
  9740. MOZ_WEBRTC=1
  9741. elif test "$enableval" = "no"; then
  9742. MOZ_WEBRTC=
  9743. else
  9744. { echo "configure: error: Option, webrtc, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, webrtc, does not take an argument ($enableval)." 1>&5; exit 1; }
  9745. fi
  9746. fi
  9747. if test -n "$MOZ_WEBRTC"; then
  9748. cat >> confdefs.pytmp <<\EOF
  9749. (''' MOZ_WEBRTC ''', ' 1 ')
  9750. EOF
  9751. cat >> confdefs.h <<\EOF
  9752. #define MOZ_WEBRTC 1
  9753. EOF
  9754. cat >> confdefs.pytmp <<\EOF
  9755. (''' MOZ_WEBRTC_ASSERT_ALWAYS ''', ' 1 ')
  9756. EOF
  9757. cat >> confdefs.h <<\EOF
  9758. #define MOZ_WEBRTC_ASSERT_ALWAYS 1
  9759. EOF
  9760. MOZ_RAW=1
  9761. MOZ_VPX_ERROR_CONCEALMENT=1
  9762. MOZ_WEBRTC_SIGNALING=1
  9763. cat >> confdefs.pytmp <<\EOF
  9764. (''' MOZ_WEBRTC_SIGNALING ''', ' 1 ')
  9765. EOF
  9766. cat >> confdefs.h <<\EOF
  9767. #define MOZ_WEBRTC_SIGNALING 1
  9768. EOF
  9769. MOZ_PEERCONNECTION=1
  9770. cat >> confdefs.pytmp <<\EOF
  9771. (''' MOZ_PEERCONNECTION ''', ' 1 ')
  9772. EOF
  9773. cat >> confdefs.h <<\EOF
  9774. #define MOZ_PEERCONNECTION 1
  9775. EOF
  9776. MOZ_SCTP=1
  9777. MOZ_SRTP=1
  9778. cat >> confdefs.pytmp <<\EOF
  9779. (''' MOZ_SCTP ''', ' 1 ')
  9780. EOF
  9781. cat >> confdefs.h <<\EOF
  9782. #define MOZ_SCTP 1
  9783. EOF
  9784. cat >> confdefs.pytmp <<\EOF
  9785. (''' MOZ_SRTP ''', ' 1 ')
  9786. EOF
  9787. cat >> confdefs.h <<\EOF
  9788. #define MOZ_SRTP 1
  9789. EOF
  9790. if test -n "$MOZ_X11"; then
  9791. MOZ_WEBRTC_X11_LIBS="-lXext -lXdamage -lXfixes -lXcomposite"
  9792. fi
  9793. else
  9794. MOZ_SYNTH_PICO=
  9795. fi
  9796. # Check whether --enable-hardware-aec-ns or --disable-hardware-aec-ns was given.
  9797. if test "${enable_hardware_aec_ns+set}" = set; then
  9798. enableval="$enable_hardware_aec_ns"
  9799. if test "$enableval" = "yes"; then
  9800. MOZ_WEBRTC_HARDWARE_AEC_NS=1
  9801. elif test "$enableval" = "no"; then
  9802. MOZ_WEBRTC_HARDWARE_AEC_NS=
  9803. else
  9804. { echo "configure: error: Option, hardware-aec-ns, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, hardware-aec-ns, does not take an argument ($enableval)." 1>&5; exit 1; }
  9805. fi
  9806. fi
  9807. if test -n "$MOZ_WEBRTC_HARDWARE_AEC_NS"; then
  9808. cat >> confdefs.pytmp <<\EOF
  9809. (''' MOZ_WEBRTC_HARDWARE_AEC_NS ''', ' 1 ')
  9810. EOF
  9811. cat >> confdefs.h <<\EOF
  9812. #define MOZ_WEBRTC_HARDWARE_AEC_NS 1
  9813. EOF
  9814. fi
  9815. if test "$OS_TARGET" = "Android" -o "$CPU_ARCH" = "arm"; then
  9816. MOZ_SAMPLE_TYPE_S16=1
  9817. cat >> confdefs.pytmp <<\EOF
  9818. (''' MOZ_SAMPLE_TYPE_S16 ''', ' 1 ')
  9819. EOF
  9820. cat >> confdefs.h <<\EOF
  9821. #define MOZ_SAMPLE_TYPE_S16 1
  9822. EOF
  9823. else
  9824. MOZ_SAMPLE_TYPE_FLOAT32=1
  9825. cat >> confdefs.pytmp <<\EOF
  9826. (''' MOZ_SAMPLE_TYPE_FLOAT32 ''', ' 1 ')
  9827. EOF
  9828. cat >> confdefs.h <<\EOF
  9829. #define MOZ_SAMPLE_TYPE_FLOAT32 1
  9830. EOF
  9831. fi
  9832. # Check whether --enable-raw or --disable-raw was given.
  9833. if test "${enable_raw+set}" = set; then
  9834. enableval="$enable_raw"
  9835. if test "$enableval" = "yes"; then
  9836. MOZ_RAW=1
  9837. elif test "$enableval" = "no"; then
  9838. MOZ_RAW=
  9839. else
  9840. { echo "configure: error: Option, raw, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, raw, does not take an argument ($enableval)." 1>&5; exit 1; }
  9841. fi
  9842. fi
  9843. if test -n "$MOZ_RAW"; then
  9844. cat >> confdefs.pytmp <<\EOF
  9845. (''' MOZ_RAW ''', ' 1 ')
  9846. EOF
  9847. cat >> confdefs.h <<\EOF
  9848. #define MOZ_RAW 1
  9849. EOF
  9850. fi
  9851. # Check whether --enable-av1 or --disable-av1 was given.
  9852. if test "${enable_av1+set}" = set; then
  9853. enableval="$enable_av1"
  9854. if test "$enableval" = "yes"; then
  9855. MOZ_AV1=1
  9856. elif test "$enableval" = "no"; then
  9857. MOZ_AV1=
  9858. else
  9859. { echo "configure: error: Option, av1, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, av1, does not take an argument ($enableval)." 1>&5; exit 1; }
  9860. fi
  9861. fi
  9862. if test -n "$MOZ_AV1"; then
  9863. cat >> confdefs.pytmp <<\EOF
  9864. (''' MOZ_AV1 ''', ' 1 ')
  9865. EOF
  9866. cat >> confdefs.h <<\EOF
  9867. #define MOZ_AV1 1
  9868. EOF
  9869. fi
  9870. if test "$COMPILE_ENVIRONMENT"; then
  9871. if test -n "$MOZ_APPLEMEDIA"; then
  9872. # hack in frameworks for fmp4 - see bug 1029974
  9873. # We load VideoToolbox and CoreMedia dynamically, so they don't appear here.
  9874. LDFLAGS="$LDFLAGS -framework AudioToolbox"
  9875. ac_safe=`echo "CoreMedia/CoreMedia.h" | sed 'y%./+-%__p_%'`
  9876. echo $ac_n "checking for CoreMedia/CoreMedia.h""... $ac_c" 1>&6
  9877. echo "configure:11310: checking for CoreMedia/CoreMedia.h" >&5
  9878. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9879. echo $ac_n "(cached) $ac_c" 1>&6
  9880. else
  9881. cat > conftest.$ac_ext <<EOF
  9882. #line 11315 "configure"
  9883. #include "confdefs.h"
  9884. #include <CoreMedia/CoreMedia.h>
  9885. EOF
  9886. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9887. { (eval echo configure:11320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9888. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9889. if test -z "$ac_err"; then
  9890. rm -rf conftest*
  9891. eval "ac_cv_header_$ac_safe=yes"
  9892. else
  9893. echo "$ac_err" >&5
  9894. echo "configure: failed program was:" >&5
  9895. cat conftest.$ac_ext >&5
  9896. rm -rf conftest*
  9897. eval "ac_cv_header_$ac_safe=no"
  9898. fi
  9899. rm -f conftest*
  9900. fi
  9901. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9902. echo "$ac_t""yes" 1>&6
  9903. :
  9904. else
  9905. echo "$ac_t""no" 1>&6
  9906. { echo "configure: error: MacOS X 10.7 SDK or later is required" 1>&2; echo "configure: error: MacOS X 10.7 SDK or later is required" 1>&5; exit 1; }
  9907. fi
  9908. fi
  9909. fi # COMPILE_ENVIRONMENT
  9910. # Check whether --enable-eme or --disable-eme was given.
  9911. if test "${enable_eme+set}" = set; then
  9912. enableval="$enable_eme"
  9913. if test "$enableval" = "yes"; then
  9914. MOZ_EME=1
  9915. elif test "$enableval" = "no"; then
  9916. MOZ_EME=
  9917. else
  9918. { echo "configure: error: Option, eme, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, eme, does not take an argument ($enableval)." 1>&5; exit 1; }
  9919. fi
  9920. fi
  9921. if test -n "$MOZ_EME"; then
  9922. if test -z "$MOZ_FMP4"; then
  9923. { echo "configure: error: Encrypted Media Extension support requires Fragmented MP4 support" 1>&2; echo "configure: error: Encrypted Media Extension support requires Fragmented MP4 support" 1>&5; exit 1; }
  9924. fi
  9925. cat >> confdefs.pytmp <<\EOF
  9926. (''' MOZ_EME ''', ' 1 ')
  9927. EOF
  9928. cat >> confdefs.h <<\EOF
  9929. #define MOZ_EME 1
  9930. EOF
  9931. fi
  9932. MOZ_LIBVPX_CFLAGS=
  9933. MOZ_LIBVPX_LIBS=
  9934. if test -n "$MOZ_VPX_ERROR_CONCEALMENT" ; then
  9935. cat >> confdefs.pytmp <<\EOF
  9936. (''' MOZ_VPX_ERROR_CONCEALMENT ''', ' 1 ')
  9937. EOF
  9938. cat >> confdefs.h <<\EOF
  9939. #define MOZ_VPX_ERROR_CONCEALMENT 1
  9940. EOF
  9941. fi
  9942. if test "$MOZ_SAMPLE_TYPE_FLOAT32"; then
  9943. MOZ_VORBIS=1
  9944. else
  9945. MOZ_TREMOR=1
  9946. fi
  9947. if test -z "$MOZ_SYSTEM_LIBVPX"; then
  9948. case "$OS_ARCH:$CPU_ARCH" in
  9949. WINNT:x86_64)
  9950. VPX_USE_YASM=1
  9951. VPX_X86_ASM=1
  9952. ;;
  9953. WINNT:x86)
  9954. if test -n "$COMPILE_ENVIRONMENT" -a -z "$YASM"; then
  9955. { echo "configure: error: yasm 1.1 or greater is required to build libvpx on Win32, but it appears not to be installed. Install it (included in MozillaBuild 1.5.1 and newer) or configure with --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: yasm 1.1 or greater is required to build libvpx on Win32, but it appears not to be installed. Install it (included in MozillaBuild 1.5.1 and newer) or configure with --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  9956. elif test -n "$COMPILE_ENVIRONMENT" -a "$_YASM_MAJOR_VERSION" -lt "1" -o \( "$_YASM_MAJOR_VERSION" -eq "1" -a "$_YASM_MINOR_VERSION" -lt "1" \) ; then
  9957. { echo "configure: error: yasm 1.1 or greater is required to build libvpx on Win32, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION. Upgrade to the newest version (included in MozillaBuild 1.5.1 and newer) or configure with --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: yasm 1.1 or greater is required to build libvpx on Win32, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION. Upgrade to the newest version (included in MozillaBuild 1.5.1 and newer) or configure with --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  9958. else
  9959. VPX_USE_YASM=1
  9960. VPX_X86_ASM=1
  9961. fi # COMPILE_ENVIRONMENT and others
  9962. ;;
  9963. *:arm*)
  9964. if test -n "$GNU_AS" ; then
  9965. VPX_ASFLAGS="-march=armv7-a -mfpu=neon"
  9966. VPX_AS_CONVERSION='$(PERL) $(topsrcdir)/media/libvpx/build/make/ads2gas.pl'
  9967. VPX_ARM_ASM=1
  9968. cat > conftest.$ac_ext <<EOF
  9969. #line 11421 "configure"
  9970. #include "confdefs.h"
  9971. int main() {
  9972. #ifndef __SOFTFP__
  9973. #error "compiler target supports -mfpu=neon, so we don't have to add extra flags"
  9974. #endif
  9975. ; return 0; }
  9976. EOF
  9977. if { (eval echo configure:11430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  9978. rm -rf conftest*
  9979. VPX_ASFLAGS="$VPX_ASFLAGS -mfloat-abi=softfp"
  9980. else
  9981. echo "configure: failed program was:" >&5
  9982. cat conftest.$ac_ext >&5
  9983. fi
  9984. rm -f conftest*
  9985. fi
  9986. ;;
  9987. *:x86)
  9988. if $CC -E -dM -</dev/null | grep -q __ELF__; then
  9989. VPX_USE_YASM=1
  9990. VPX_X86_ASM=1
  9991. fi
  9992. ;;
  9993. *:x86_64)
  9994. if $CC -E -dM -</dev/null | grep -q __ELF__; then
  9995. VPX_USE_YASM=1
  9996. VPX_X86_ASM=1
  9997. fi
  9998. ;;
  9999. esac
  10000. if test -n "$COMPILE_ENVIRONMENT" -a -n "$VPX_USE_YASM" -a -z "$YASM"; then
  10001. { echo "configure: error: yasm is a required build tool for this architecture when webm is enabled. You may either install yasm or --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: yasm is a required build tool for this architecture when webm is enabled. You may either install yasm or --disable-webm (which disables the WebM video format). See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10002. fi # COMPILE_ENVIRONMENT and others
  10003. if test -n "$VPX_USE_YASM" && test "$OS_ARCH:$CPU_ARCH" != "WINNT:x86_64"; then
  10004. VPX_ASFLAGS="-DPIC"
  10005. fi
  10006. if test -n "$VPX_X86_ASM"; then
  10007. cat >> confdefs.pytmp <<\EOF
  10008. (''' VPX_X86_ASM ''', ' 1 ')
  10009. EOF
  10010. cat >> confdefs.h <<\EOF
  10011. #define VPX_X86_ASM 1
  10012. EOF
  10013. elif test -n "$VPX_ARM_ASM"; then
  10014. cat >> confdefs.pytmp <<\EOF
  10015. (''' VPX_ARM_ASM ''', ' 1 ')
  10016. EOF
  10017. cat >> confdefs.h <<\EOF
  10018. #define VPX_ARM_ASM 1
  10019. EOF
  10020. else
  10021. echo "configure: warning: No assembler or assembly support for libvpx. Using unoptimized C routines." 1>&2
  10022. fi
  10023. cat >> confdefs.pytmp <<\EOF
  10024. (''' MOZ_VPX_NO_MEM_REPORTING ''', ' 1 ')
  10025. EOF
  10026. cat >> confdefs.h <<\EOF
  10027. #define MOZ_VPX_NO_MEM_REPORTING 1
  10028. EOF
  10029. fi
  10030. if test -n "$MOZ_VORBIS" -a -n "$MOZ_TREMOR"; then
  10031. { echo "configure: error: MOZ_VORBIS and MOZ_TREMOR are mutually exclusive! The build system should not allow them both to be set, but they are. Please file a bug at https://bugzilla.mozilla.org/" 1>&2; echo "configure: error: MOZ_VORBIS and MOZ_TREMOR are mutually exclusive! The build system should not allow them both to be set, but they are. Please file a bug at https://bugzilla.mozilla.org/" 1>&5; exit 1; }
  10032. fi
  10033. if test -n "$MOZ_VORBIS"; then
  10034. cat >> confdefs.pytmp <<\EOF
  10035. (''' MOZ_VORBIS ''', ' 1 ')
  10036. EOF
  10037. cat >> confdefs.h <<\EOF
  10038. #define MOZ_VORBIS 1
  10039. EOF
  10040. fi
  10041. if test -n "$MOZ_TREMOR"; then
  10042. cat >> confdefs.pytmp <<\EOF
  10043. (''' MOZ_TREMOR ''', ' 1 ')
  10044. EOF
  10045. cat >> confdefs.h <<\EOF
  10046. #define MOZ_TREMOR 1
  10047. EOF
  10048. fi
  10049. MOZ_WEBM_ENCODER=1
  10050. cat >> confdefs.pytmp <<\EOF
  10051. (''' MOZ_WEBM_ENCODER ''', ' 1 ')
  10052. EOF
  10053. cat >> confdefs.h <<\EOF
  10054. #define MOZ_WEBM_ENCODER 1
  10055. EOF
  10056. if test "$OS_TARGET" = "Linux"; then
  10057. MOZ_ALSA=1
  10058. fi
  10059. # Check whether --enable-alsa or --disable-alsa was given.
  10060. if test "${enable_alsa+set}" = set; then
  10061. enableval="$enable_alsa"
  10062. if test "$enableval" = "yes"; then
  10063. MOZ_ALSA=1
  10064. elif test "$enableval" = "no"; then
  10065. MOZ_ALSA=
  10066. else
  10067. { echo "configure: error: Option, alsa, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, alsa, does not take an argument ($enableval)." 1>&5; exit 1; }
  10068. fi
  10069. fi
  10070. if test -n "$MOZ_ALSA"; then
  10071. succeeded=no
  10072. if test -z "$PKG_CONFIG"; then
  10073. echo "*** The pkg-config script could not be found. Make sure it is"
  10074. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10075. echo "*** to the full path to pkg-config."
  10076. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10077. else
  10078. PKG_CONFIG_MIN_VERSION=0.9.0
  10079. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10080. echo $ac_n "checking for alsa""... $ac_c" 1>&6
  10081. echo "configure:11557: checking for alsa" >&5
  10082. if $PKG_CONFIG --exists "alsa" ; then
  10083. echo "$ac_t""yes" 1>&6
  10084. succeeded=yes
  10085. echo $ac_n "checking MOZ_ALSA_CFLAGS""... $ac_c" 1>&6
  10086. echo "configure:11564: checking MOZ_ALSA_CFLAGS" >&5
  10087. MOZ_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa"`
  10088. echo "$ac_t""$MOZ_ALSA_CFLAGS" 1>&6
  10089. echo $ac_n "checking MOZ_ALSA_LIBS""... $ac_c" 1>&6
  10090. echo "configure:11569: checking MOZ_ALSA_LIBS" >&5
  10091. ## Remove evil flags like -Wl,--export-dynamic
  10092. MOZ_ALSA_LIBS="`$PKG_CONFIG --libs \"alsa\" |sed s/-Wl,--export-dynamic//g`"
  10093. echo "$ac_t""$MOZ_ALSA_LIBS" 1>&6
  10094. else
  10095. MOZ_ALSA_CFLAGS=""
  10096. MOZ_ALSA_LIBS=""
  10097. ## If we have a custom action on failure, don't print errors, but
  10098. ## do set a variable so people can do so.
  10099. MOZ_ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
  10100. fi
  10101. else
  10102. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10103. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10104. fi
  10105. fi
  10106. if test $succeeded = yes; then
  10107. :
  10108. else
  10109. if test "$COMPILE_ENVIRONMENT"; then
  10110. echo "$MOZ_ALSA_PKG_ERRORS"
  10111. { echo "configure: error: You need ALSA for audio output on Linux." 1>&2; echo "configure: error: You need ALSA for audio output on Linux." 1>&5; exit 1; }
  10112. fi
  10113. fi
  10114. fi
  10115. case "$OS_TARGET" in
  10116. WINNT)
  10117. ;;
  10118. *)
  10119. MOZ_PULSEAUDIO=1
  10120. ;;
  10121. esac
  10122. # Check whether --enable-pulseaudio or --disable-pulseaudio was given.
  10123. if test "${enable_pulseaudio+set}" = set; then
  10124. enableval="$enable_pulseaudio"
  10125. if test "$enableval" = "no"; then
  10126. MOZ_PULSEAUDIO=
  10127. elif test "$enableval" = "yes"; then
  10128. MOZ_PULSEAUDIO=1
  10129. else
  10130. { echo "configure: error: Option, pulseaudio, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, pulseaudio, does not take an argument ($enableval)." 1>&5; exit 1; }
  10131. fi
  10132. fi
  10133. if test -n "$MOZ_PULSEAUDIO"; then
  10134. cat >> confdefs.pytmp <<\EOF
  10135. (''' MOZ_PULSEAUDIO ''', ' 1 ')
  10136. EOF
  10137. cat >> confdefs.h <<\EOF
  10138. #define MOZ_PULSEAUDIO 1
  10139. EOF
  10140. succeeded=no
  10141. if test -z "$PKG_CONFIG"; then
  10142. echo "*** The pkg-config script could not be found. Make sure it is"
  10143. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10144. echo "*** to the full path to pkg-config."
  10145. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10146. else
  10147. PKG_CONFIG_MIN_VERSION=0.9.0
  10148. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10149. echo $ac_n "checking for libpulse""... $ac_c" 1>&6
  10150. echo "configure:11644: checking for libpulse" >&5
  10151. if $PKG_CONFIG --exists "libpulse" ; then
  10152. echo "$ac_t""yes" 1>&6
  10153. succeeded=yes
  10154. echo $ac_n "checking MOZ_PULSEAUDIO_CFLAGS""... $ac_c" 1>&6
  10155. echo "configure:11651: checking MOZ_PULSEAUDIO_CFLAGS" >&5
  10156. MOZ_PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags "libpulse"`
  10157. echo "$ac_t""$MOZ_PULSEAUDIO_CFLAGS" 1>&6
  10158. echo $ac_n "checking MOZ_PULSEAUDIO_LIBS""... $ac_c" 1>&6
  10159. echo "configure:11656: checking MOZ_PULSEAUDIO_LIBS" >&5
  10160. ## Remove evil flags like -Wl,--export-dynamic
  10161. MOZ_PULSEAUDIO_LIBS="`$PKG_CONFIG --libs \"libpulse\" |sed s/-Wl,--export-dynamic//g`"
  10162. echo "$ac_t""$MOZ_PULSEAUDIO_LIBS" 1>&6
  10163. else
  10164. MOZ_PULSEAUDIO_CFLAGS=""
  10165. MOZ_PULSEAUDIO_LIBS=""
  10166. ## If we have a custom action on failure, don't print errors, but
  10167. ## do set a variable so people can do so.
  10168. MOZ_PULSEAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse"`
  10169. fi
  10170. else
  10171. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10172. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10173. fi
  10174. fi
  10175. if test $succeeded = yes; then
  10176. :
  10177. else
  10178. if test "$COMPILE_ENVIRONMENT"; then
  10179. echo "$MOZ_PULSEAUDIO_PKG_ERRORS"
  10180. { echo "configure: error: Building pulseaudio audio backend requires libpulse development package" 1>&2; echo "configure: error: Building pulseaudio audio backend requires libpulse development package" 1>&5; exit 1; }
  10181. fi
  10182. fi
  10183. fi
  10184. # Check whether --enable-sndio or --disable-sndio was given.
  10185. if test "${enable_sndio+set}" = set; then
  10186. enableval="$enable_sndio"
  10187. if test "$enableval" = "yes"; then
  10188. MOZ_SNDIO=1
  10189. elif test "$enableval" = "no"; then
  10190. MOZ_SNDIO=
  10191. else
  10192. { echo "configure: error: Option, sndio, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, sndio, does not take an argument ($enableval)." 1>&5; exit 1; }
  10193. fi
  10194. fi
  10195. if test -n "$MOZ_SNDIO"; then
  10196. cat >> confdefs.pytmp <<\EOF
  10197. (''' MOZ_SNDIO ''', ' 1 ')
  10198. EOF
  10199. cat >> confdefs.h <<\EOF
  10200. #define MOZ_SNDIO 1
  10201. EOF
  10202. ac_safe=`echo "sndio.h" | sed 'y%./+-%__p_%'`
  10203. echo $ac_n "checking for sndio.h""... $ac_c" 1>&6
  10204. echo "configure:11713: checking for sndio.h" >&5
  10205. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10206. echo $ac_n "(cached) $ac_c" 1>&6
  10207. else
  10208. cat > conftest.$ac_ext <<EOF
  10209. #line 11718 "configure"
  10210. #include "confdefs.h"
  10211. #include <sndio.h>
  10212. int main() {
  10213. ; return 0; }
  10214. EOF
  10215. if { (eval echo configure:11726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10216. rm -rf conftest*
  10217. eval "ac_cv_header_$ac_safe=yes"
  10218. else
  10219. echo "configure: failed program was:" >&5
  10220. cat conftest.$ac_ext >&5
  10221. rm -rf conftest*
  10222. eval "ac_cv_header_$ac_safe=no"
  10223. fi
  10224. rm -f conftest*
  10225. fi
  10226. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10227. echo "$ac_t""yes" 1>&6
  10228. :
  10229. else
  10230. echo "$ac_t""no" 1>&6
  10231. { echo "configure: error: --enable-sndio specified but it requires sndio development headers" 1>&2; echo "configure: error: --enable-sndio specified but it requires sndio development headers" 1>&5; exit 1; }
  10232. fi
  10233. cat >> confdefs.pytmp <<\EOF
  10234. (''' MOZ_SNDIO ''', ' 1 ')
  10235. EOF
  10236. cat >> confdefs.h <<\EOF
  10237. #define MOZ_SNDIO 1
  10238. EOF
  10239. fi
  10240. # Check whether --enable-negotiateauth or --disable-negotiateauth was given.
  10241. if test "${enable_negotiateauth+set}" = set; then
  10242. enableval="$enable_negotiateauth"
  10243. if test "$enableval" = "no"; then
  10244. MOZ_AUTH_EXTENSION=
  10245. elif test "$enableval" = "yes"; then
  10246. MOZ_AUTH_EXTENSION=1
  10247. else
  10248. { echo "configure: error: Option, negotiateauth, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, negotiateauth, does not take an argument ($enableval)." 1>&5; exit 1; }
  10249. fi
  10250. fi
  10251. if test -n "$MOZ_IOS" -a -n "$MOZ_AUTH_EXTENSION"; then
  10252. { echo "configure: error: negotiateauth is not supported on iOS." 1>&2; echo "configure: error: negotiateauth is not supported on iOS." 1>&5; exit 1; }
  10253. fi
  10254. # Check whether --enable-pref-extensions or --disable-pref-extensions was given.
  10255. if test "${enable_pref_extensions+set}" = set; then
  10256. enableval="$enable_pref_extensions"
  10257. if test "$enableval" = "no"; then
  10258. MOZ_PREF_EXTENSIONS=
  10259. elif test "$enableval" = "yes"; then
  10260. MOZ_PREF_EXTENSIONS=1
  10261. else
  10262. { echo "configure: error: Option, pref-extensions, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, pref-extensions, does not take an argument ($enableval)." 1>&5; exit 1; }
  10263. fi
  10264. fi
  10265. # Check whether --enable-system-extension-dirs or --disable-system-extension-dirs was given.
  10266. if test "${enable_system_extension_dirs+set}" = set; then
  10267. enableval="$enable_system_extension_dirs"
  10268. if test "$enableval" = "no"; then
  10269. ENABLE_SYSTEM_EXTENSION_DIRS=
  10270. elif test "$enableval" = "yes"; then
  10271. ENABLE_SYSTEM_EXTENSION_DIRS=1
  10272. else
  10273. { echo "configure: error: Option, system-extension-dirs, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, system-extension-dirs, does not take an argument ($enableval)." 1>&5; exit 1; }
  10274. fi
  10275. fi
  10276. if test "$ENABLE_SYSTEM_EXTENSION_DIRS"; then
  10277. cat >> confdefs.pytmp <<\EOF
  10278. (''' ENABLE_SYSTEM_EXTENSION_DIRS ''', ' 1 ')
  10279. EOF
  10280. cat >> confdefs.h <<\EOF
  10281. #define ENABLE_SYSTEM_EXTENSION_DIRS 1
  10282. EOF
  10283. fi
  10284. # Check whether --enable-universalchardet or --disable-universalchardet was given.
  10285. if test "${enable_universalchardet+set}" = set; then
  10286. enableval="$enable_universalchardet"
  10287. if test "$enableval" = "no"; then
  10288. MOZ_UNIVERSALCHARDET=
  10289. elif test "$enableval" = "yes"; then
  10290. MOZ_UNIVERSALCHARDET=1
  10291. else
  10292. { echo "configure: error: Option, universalchardet, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, universalchardet, does not take an argument ($enableval)." 1>&5; exit 1; }
  10293. fi
  10294. fi
  10295. MOZ_ANGLE_RENDERER=
  10296. MOZ_D3D_CPU_SUFFIX=
  10297. MOZ_HAS_WINSDK_WITH_D3D=
  10298. MOZ_D3DCOMPILER_VISTA_DLL=
  10299. MOZ_D3DCOMPILER_VISTA_DLL_PATH=
  10300. if test "$COMPILE_ENVIRONMENT" ; then
  10301. case "$target_os" in
  10302. *mingw*)
  10303. MOZ_ANGLE_RENDERER=1
  10304. ;;
  10305. esac
  10306. # The DirectX SDK libraries are split into x86 and x64 sub-directories
  10307. case "${target_cpu}" in
  10308. i*86)
  10309. MOZ_D3D_CPU_SUFFIX=x86
  10310. ;;
  10311. x86_64)
  10312. MOZ_D3D_CPU_SUFFIX=x64
  10313. ;;
  10314. esac
  10315. # This is potentially set in external mozconfig files; if it's set,
  10316. # then the build exposes the "webgl" context name, which is reserved
  10317. # for conformant implementations.
  10318. if test -n "$MOZ_WEBGL_CONFORMANT"; then
  10319. cat >> confdefs.pytmp <<\EOF
  10320. (''' MOZ_WEBGL_CONFORMANT ''', ' 1 ')
  10321. EOF
  10322. cat >> confdefs.h <<\EOF
  10323. #define MOZ_WEBGL_CONFORMANT 1
  10324. EOF
  10325. fi
  10326. MOZ_FOUND_D3D_COMPILERS=
  10327. if test -n "$MOZ_ANGLE_RENDERER"; then
  10328. if test -z "$MOZ_D3D_CPU_SUFFIX"; then
  10329. { echo "configure: error: Couldn't determine MOZ_D3D_CPU_SUFFIX." 1>&2; echo "configure: error: Couldn't determine MOZ_D3D_CPU_SUFFIX." 1>&5; exit 1; }
  10330. fi
  10331. ######################################
  10332. # Find _46+ for use by Vista+.
  10333. # Find a D3D compiler DLL in a Windows SDK.
  10334. MOZ_D3DCOMPILER_VISTA_DLL=
  10335. case "$MOZ_WINSDK_MAXVER" in
  10336. 0x0603*|0x0A00*)
  10337. MOZ_D3DCOMPILER_VISTA_DLL=d3dcompiler_47.dll
  10338. echo "$ac_t""Found D3D compiler in Windows SDK." 1>&6
  10339. ;;
  10340. esac
  10341. if test -n "$MOZ_D3DCOMPILER_VISTA_DLL"; then
  10342. # We have a name, now track down the path.
  10343. if test -n "$WINDOWSSDKDIR"; then
  10344. MOZ_D3DCOMPILER_VISTA_DLL_PATH="$WINDOWSSDKDIR/Redist/D3D/$MOZ_D3D_CPU_SUFFIX/$MOZ_D3DCOMPILER_VISTA_DLL"
  10345. if test -f "$MOZ_D3DCOMPILER_VISTA_DLL_PATH"; then
  10346. echo "$ac_t""Found MOZ_D3DCOMPILER_VISTA_DLL_PATH: $MOZ_D3DCOMPILER_VISTA_DLL_PATH" 1>&6
  10347. MOZ_HAS_WINSDK_WITH_D3D=1
  10348. else
  10349. echo "$ac_t""MOZ_D3DCOMPILER_VISTA_DLL_PATH doesn't exist: $MOZ_D3DCOMPILER_VISTA_DLL_PATH" 1>&6
  10350. { echo "configure: error: Windows SDK at "$WINDOWSSDKDIR" appears broken. Try updating to MozillaBuild 1.9 final or higher." 1>&2; echo "configure: error: Windows SDK at "$WINDOWSSDKDIR" appears broken. Try updating to MozillaBuild 1.9 final or higher." 1>&5; exit 1; }
  10351. MOZ_D3DCOMPILER_VISTA_DLL_PATH=
  10352. fi
  10353. else
  10354. echo "$ac_t""Windows SDK not found." 1>&6
  10355. fi
  10356. else
  10357. { echo "configure: error: Couldn't find Windows SDK 8.1 or higher needed for ANGLE." 1>&2; echo "configure: error: Couldn't find Windows SDK 8.1 or higher needed for ANGLE." 1>&5; exit 1; }
  10358. fi
  10359. if test -z "$MOZ_D3DCOMPILER_VISTA_DLL_PATH"; then
  10360. MOZ_D3DCOMPILER_VISTA_DLL=
  10361. fi
  10362. # On mingw, check if headers are provided by toolchain.
  10363. if test -n "$GNU_CC"; then
  10364. ac_safe=`echo "d3d10.h" | sed 'y%./+-%__p_%'`
  10365. echo $ac_n "checking for d3d10.h""... $ac_c" 1>&6
  10366. echo "configure:11905: checking for d3d10.h" >&5
  10367. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10368. echo $ac_n "(cached) $ac_c" 1>&6
  10369. else
  10370. cat > conftest.$ac_ext <<EOF
  10371. #line 11910 "configure"
  10372. #include "confdefs.h"
  10373. #include <d3d10.h>
  10374. int main() {
  10375. ; return 0; }
  10376. EOF
  10377. if { (eval echo configure:11918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10378. rm -rf conftest*
  10379. eval "ac_cv_header_$ac_safe=yes"
  10380. else
  10381. echo "configure: failed program was:" >&5
  10382. cat conftest.$ac_ext >&5
  10383. rm -rf conftest*
  10384. eval "ac_cv_header_$ac_safe=no"
  10385. fi
  10386. rm -f conftest*
  10387. fi
  10388. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10389. echo "$ac_t""yes" 1>&6
  10390. MOZ_HAS_WINSDK_WITH_D3D=1
  10391. else
  10392. echo "$ac_t""no" 1>&6
  10393. fi
  10394. fi
  10395. ######################################
  10396. # Check that we found what we needed.
  10397. MOZ_FOUND_A_D3D_COMPILER=
  10398. if test -n "$MOZ_D3DCOMPILER_VISTA_DLL"; then
  10399. MOZ_FOUND_A_D3D_COMPILER=1
  10400. echo "$ac_t""Found d3dcompiler DLL for Vista+: $MOZ_D3DCOMPILER_VISTA_DLL" 1>&6
  10401. fi
  10402. if test -z "$CROSS_COMPILE"; then
  10403. if test -z "MOZ_FOUND_A_D3D_COMPILER"; then
  10404. { echo "configure: error: Couldn't find an acceptable D3D compiler DLL." 1>&2; echo "configure: error: Couldn't find an acceptable D3D compiler DLL." 1>&5; exit 1; }
  10405. fi
  10406. fi
  10407. fi # MOZ_ANGLE_RENDERER
  10408. fi # COMPILE_ENVIRONMENT
  10409. MOZ_GAMEPAD_BACKEND=stub
  10410. # Check whether --enable-gamepad or --disable-gamepad was given.
  10411. if test "${enable_gamepad+set}" = set; then
  10412. enableval="$enable_gamepad"
  10413. if test "$enableval" = "yes"; then
  10414. MOZ_GAMEPAD=1
  10415. elif test "$enableval" = "no"; then
  10416. MOZ_GAMEPAD=
  10417. else
  10418. { echo "configure: error: Option, gamepad, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, gamepad, does not take an argument ($enableval)." 1>&5; exit 1; }
  10419. fi
  10420. fi
  10421. if test "$MOZ_GAMEPAD"; then
  10422. case "$OS_TARGET" in
  10423. WINNT)
  10424. MOZ_GAMEPAD_BACKEND=windows
  10425. ;;
  10426. Linux)
  10427. ac_safe=`echo "linux/joystick.h" | sed 'y%./+-%__p_%'`
  10428. echo $ac_n "checking for linux/joystick.h""... $ac_c" 1>&6
  10429. echo "configure:11982: checking for linux/joystick.h" >&5
  10430. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10431. echo $ac_n "(cached) $ac_c" 1>&6
  10432. else
  10433. cat > conftest.$ac_ext <<EOF
  10434. #line 11987 "configure"
  10435. #include "confdefs.h"
  10436. #include <linux/joystick.h>
  10437. int main() {
  10438. ; return 0; }
  10439. EOF
  10440. if { (eval echo configure:11995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10441. rm -rf conftest*
  10442. eval "ac_cv_header_$ac_safe=yes"
  10443. else
  10444. echo "configure: failed program was:" >&5
  10445. cat conftest.$ac_ext >&5
  10446. rm -rf conftest*
  10447. eval "ac_cv_header_$ac_safe=no"
  10448. fi
  10449. rm -f conftest*
  10450. fi
  10451. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10452. echo "$ac_t""yes" 1>&6
  10453. :
  10454. else
  10455. echo "$ac_t""no" 1>&6
  10456. fi
  10457. if test "$ac_cv_header_linux_joystick_h" != "yes"; then
  10458. { echo "configure: error: Can't find header linux/joystick.h, needed for gamepad support. Please install Linux kernel headers or reconfigure with --disable-gamepad to disable gamepad support." 1>&2; echo "configure: error: Can't find header linux/joystick.h, needed for gamepad support. Please install Linux kernel headers or reconfigure with --disable-gamepad to disable gamepad support." 1>&5; exit 1; }
  10459. fi
  10460. MOZ_GAMEPAD_BACKEND=linux
  10461. ;;
  10462. Android)
  10463. MOZ_GAMEPAD_BACKEND=android
  10464. ;;
  10465. *)
  10466. ;;
  10467. esac
  10468. cat >> confdefs.pytmp <<\EOF
  10469. (''' MOZ_GAMEPAD ''', ' 1 ')
  10470. EOF
  10471. cat >> confdefs.h <<\EOF
  10472. #define MOZ_GAMEPAD 1
  10473. EOF
  10474. fi
  10475. MOZ_LIBJPEG_TURBO=
  10476. LIBJPEG_TURBO_USE_YASM=
  10477. if test -z "$MOZ_SYSTEM_JPEG"; then
  10478. MOZ_LIBJPEG_TURBO=1
  10479. fi
  10480. # Check whether --enable-libjpeg_turbo or --disable-libjpeg_turbo was given.
  10481. if test "${enable_libjpeg_turbo+set}" = set; then
  10482. enableval="$enable_libjpeg_turbo"
  10483. if test "$enableval" = "no"; then
  10484. MOZ_LIBJPEG_TURBO=
  10485. elif test "$enableval" = "yes"; then
  10486. MOZ_LIBJPEG_TURBO=1
  10487. else
  10488. { echo "configure: error: Option, libjpeg_turbo, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, libjpeg_turbo, does not take an argument ($enableval)." 1>&5; exit 1; }
  10489. fi
  10490. fi
  10491. if test "$MOZ_SYSTEM_JPEG" = 1 -a "$MOZ_LIBJPEG_TURBO" = 1; then
  10492. { echo "configure: error: cannot use --with-system-jpeg with --enable-libjpeg-turbo." 1>&2; echo "configure: error: cannot use --with-system-jpeg with --enable-libjpeg-turbo." 1>&5; exit 1; }
  10493. fi
  10494. if test -n "$MOZ_LIBJPEG_TURBO" -a -n "$COMPILE_ENVIRONMENT"; then
  10495. case "$OS_ARCH:$CPU_ARCH" in
  10496. WINNT:x86)
  10497. LIBJPEG_TURBO_ASFLAGS="-DPIC -DWIN32"
  10498. ;;
  10499. WINNT:x86_64)
  10500. LIBJPEG_TURBO_ASFLAGS="-D__x86_64__ -DPIC -DWIN64 -DMSVC"
  10501. ;;
  10502. *:arm)
  10503. LIBJPEG_TURBO_ASFLAGS="-march=armv7-a -mfpu=neon"
  10504. ;;
  10505. *:aarch64)
  10506. LIBJPEG_TURBO_ASFLAGS="-march=armv8-a"
  10507. ;;
  10508. *:mips32)
  10509. LIBJPEG_TURBO_ASFLAGS="-mdspr2"
  10510. ;;
  10511. *:x86)
  10512. if $CC -E -dM -</dev/null | grep -q __ELF__; then
  10513. LIBJPEG_TURBO_ASFLAGS="-DPIC -DELF"
  10514. fi
  10515. ;;
  10516. *:x86_64)
  10517. if $CC -E -dM -</dev/null | grep -q __ELF__; then
  10518. LIBJPEG_TURBO_ASFLAGS="-D__x86_64__ -DPIC -DELF"
  10519. fi
  10520. ;;
  10521. esac
  10522. fi
  10523. if test -n "$LIBJPEG_TURBO_ASFLAGS"; then
  10524. case "$CPU_ARCH" in
  10525. x86_64|x86)
  10526. LIBJPEG_TURBO_USE_YASM=1
  10527. if test -z "$YASM" ; then
  10528. { echo "configure: error: Yasm is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you do not appear to have Yasm installed. Either install it or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you do not appear to have Yasm installed. Either install it or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10529. fi
  10530. if test "$OS_ARCH" = "Linux" ; then
  10531. if test "$_YASM_MAJOR_VERSION" -lt "1" -o \( "$_YASM_MAJOR_VERSION" -eq "1" -a "$_YASM_MINOR_VERSION" -eq "0" -a "$_YASM_RELEASE" -lt "1" \) ; then
  10532. { echo "configure: error: Yasm 1.0.1 or greater is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION.$_YASM_RELEASE. Upgrade to the newest version or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm 1.0.1 or greater is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION.$_YASM_RELEASE. Upgrade to the newest version or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10533. fi
  10534. else
  10535. if test "$_YASM_MAJOR_VERSION" -lt "1" -o \( "$_YASM_MAJOR_VERSION" -eq "1" -a "$_YASM_MINOR_VERSION" -lt "1" \) ; then
  10536. { echo "configure: error: Yasm 1.1 or greater is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION. Upgrade to the newest version or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm 1.1 or greater is required to build with libjpeg-turbo's optimized JPEG decoding routines, but you appear to have version $_YASM_MAJOR_VERSION.$_YASM_MINOR_VERSION. Upgrade to the newest version or configure with --disable-libjpeg-turbo to use the pure C JPEG decoder. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10537. fi
  10538. fi
  10539. ;;
  10540. esac
  10541. fi
  10542. MOZ_LIBAV_FFT=
  10543. case "$OS_ARCH:$CPU_ARCH" in
  10544. WINNT:x86)
  10545. MOZ_LIBAV_FFT=1
  10546. ;;
  10547. *:x86_64)
  10548. MOZ_LIBAV_FFT=1
  10549. ;;
  10550. esac
  10551. if test -n "$MOZ_LIBAV_FFT" -a -n "$COMPILE_ENVIRONMENT"; then
  10552. cat >> confdefs.pytmp <<\EOF
  10553. (''' MOZ_LIBAV_FFT ''', ' 1 ')
  10554. EOF
  10555. cat >> confdefs.h <<\EOF
  10556. #define MOZ_LIBAV_FFT 1
  10557. EOF
  10558. case "$OS_ARCH:$CPU_ARCH" in
  10559. WINNT:x86)
  10560. LIBAV_FFT_ASFLAGS="-DPIC -DWIN32"
  10561. ;;
  10562. WINNT:x86_64)
  10563. LIBAV_FFT_ASFLAGS="-D__x86_64__ -DPIC -DWIN64 -DMSVC"
  10564. ;;
  10565. *:x86_64)
  10566. if $CC -E -dM -</dev/null | grep -q __ELF__; then
  10567. LIBAV_FFT_ASFLAGS="-D__x86_64__ -DPIC -DELF"
  10568. fi
  10569. ;;
  10570. *)
  10571. { echo "configure: error: libav's FFT routines are only available for 32-bit windows or 64-bit x86 based platforms." 1>&2; echo "configure: error: libav's FFT routines are only available for 32-bit windows or 64-bit x86 based platforms." 1>&5; exit 1; }
  10572. ;;
  10573. esac
  10574. fi
  10575. if test -n "$LIBAV_FFT_ASFLAGS"; then
  10576. if test -z "$YASM" ; then
  10577. { echo "configure: error: Yasm is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10578. fi
  10579. if test "$OS_ARCH" = "Linux" ; then
  10580. if test "$_YASM_MAJOR_VERSION" -lt "1" -o \( "$_YASM_MAJOR_VERSION" -eq "1" -a "$_YASM_MINOR_VERSION" -eq "0" -a "$_YASM_RELEASE" -lt "1" \) ; then
  10581. { echo "configure: error: Yasm 1.0.1 or greater is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm 1.0.1 or greater is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10582. fi
  10583. else
  10584. if test "$_YASM_MAJOR_VERSION" -lt "1" -o \( "$_YASM_MAJOR_VERSION" -eq "1" -a "$_YASM_MINOR_VERSION" -lt "1" \) ; then
  10585. { echo "configure: error: Yasm 1.1 or greater is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&2; echo "configure: error: Yasm 1.1 or greater is required to build with libav's optimized FFT routines, but you do not appear to have Yasm installed. See https://developer.mozilla.org/en/YASM for more details." 1>&5; exit 1; }
  10586. fi
  10587. fi
  10588. elif test -n "$MOZ_LIBAV_FFT" -a "${CPU_ARCH}" != "arm"; then
  10589. echo "configure: warning: No assembler or assembly support for libav-fft. Using unoptimized C routines." 1>&2
  10590. fi
  10591. MOZ_FFVPX=
  10592. case "$OS_ARCH:$CPU_ARCH" in
  10593. WINNT:x86)
  10594. MOZ_FFVPX=1
  10595. ;;
  10596. *:x86_64)
  10597. MOZ_FFVPX=1
  10598. ;;
  10599. esac
  10600. if test -n "$MOZ_LIBAV_FFT"; then
  10601. FFVPX_ASFLAGS=$LIBAV_FFT_ASFLAGS
  10602. fi
  10603. if test -n "$MOZ_FFVPX"; then
  10604. cat >> confdefs.pytmp <<\EOF
  10605. (''' MOZ_FFVPX ''', ' 1 ')
  10606. EOF
  10607. cat >> confdefs.h <<\EOF
  10608. #define MOZ_FFVPX 1
  10609. EOF
  10610. fi
  10611. # Check whether --enable-extensions or --disable-extensions was given.
  10612. if test "${enable_extensions+set}" = set; then
  10613. enableval="$enable_extensions"
  10614. for option in `echo $enableval | sed 's/,/ /g'`; do
  10615. if test "$option" = "yes" -o "$option" = "all"; then
  10616. { echo "configure: error: --enable-extensions=$option is no longer supported." 1>&2; echo "configure: error: --enable-extensions=$option is no longer supported." 1>&5; exit 1; }
  10617. elif test "$option" = "no" -o "$option" = "none"; then
  10618. MOZ_EXTENSIONS=""
  10619. elif test "$option" = "default"; then
  10620. MOZ_EXTENSIONS="$MOZ_EXTENSIONS $MOZ_EXTENSIONS_DEFAULT"
  10621. elif test `echo "$option" | grep -c \^-` != 0; then
  10622. option=`echo $option | sed 's/^-//'`
  10623. MOZ_EXTENSIONS=`echo "$MOZ_EXTENSIONS" | sed "s/ ${option}//"`
  10624. else
  10625. MOZ_EXTENSIONS="$MOZ_EXTENSIONS $option"
  10626. fi
  10627. done
  10628. else
  10629. MOZ_EXTENSIONS="$MOZ_EXTENSIONS_DEFAULT"
  10630. fi
  10631. if test -z "$MOZ_ENABLE_GIO" -a `echo "$MOZ_EXTENSIONS" | grep -c gio` -ne 0; then
  10632. # Suppress warning on non-X11 platforms
  10633. if test -n "$MOZ_X11"; then
  10634. echo "configure: warning: Removing gio from MOZ_EXTENSIONS due to --disable-gio." 1>&2
  10635. fi
  10636. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gio||'`
  10637. fi
  10638. if test `echo "$MOZ_EXTENSIONS" | grep -c gio` -ne 0; then
  10639. MOZ_GIO_COMPONENT=1
  10640. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's|gio||'`
  10641. fi
  10642. for extension in $MOZ_EXTENSIONS; do
  10643. if test ! -d "${srcdir}/extensions/${extension}"; then
  10644. { echo "configure: error: Unrecognized extension provided to --enable-extensions: ${extension}." 1>&2; echo "configure: error: Unrecognized extension provided to --enable-extensions: ${extension}." 1>&5; exit 1; }
  10645. fi
  10646. done
  10647. if test -n "$MOZ_USE_NATIVE_POPUP_WINDOWS"; then
  10648. cat >> confdefs.pytmp <<\EOF
  10649. (''' MOZ_USE_NATIVE_POPUP_WINDOWS ''', ' 1 ')
  10650. EOF
  10651. cat >> confdefs.h <<\EOF
  10652. #define MOZ_USE_NATIVE_POPUP_WINDOWS 1
  10653. EOF
  10654. fi
  10655. if test -n "$MOZ_TREE_FREETYPE"; then
  10656. MOZ_ENABLE_CAIRO_FT=1
  10657. FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
  10658. CAIRO_FT_CFLAGS="-I$_topsrcdir/modules/freetype2/include"
  10659. fi
  10660. for ac_prog in wget
  10661. do
  10662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10663. set dummy $ac_prog; ac_word=$2
  10664. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10665. echo "configure:12263: checking for $ac_word" >&5
  10666. if eval "test \"`echo '$''{'ac_cv_prog_WGET'+set}'`\" = set"; then
  10667. echo $ac_n "(cached) $ac_c" 1>&6
  10668. else
  10669. if test -n "$WGET"; then
  10670. ac_cv_prog_WGET="$WGET" # Let the user override the test.
  10671. else
  10672. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10673. ac_dummy="$PATH"
  10674. for ac_dir in $ac_dummy; do
  10675. test -z "$ac_dir" && ac_dir=.
  10676. if test -f $ac_dir/$ac_word; then
  10677. ac_cv_prog_WGET="$ac_prog"
  10678. break
  10679. fi
  10680. done
  10681. IFS="$ac_save_ifs"
  10682. fi
  10683. fi
  10684. WGET="$ac_cv_prog_WGET"
  10685. if test -n "$WGET"; then
  10686. echo "$ac_t""$WGET" 1>&6
  10687. else
  10688. echo "$ac_t""no" 1>&6
  10689. fi
  10690. test -n "$WGET" && break
  10691. done
  10692. test -n "$WGET" || WGET=""""
  10693. # Check whether --enable-bundled-fonts or --disable-bundled-fonts was given.
  10694. if test "${enable_bundled_fonts+set}" = set; then
  10695. enableval="$enable_bundled_fonts"
  10696. if test "$enableval" = "yes"; then
  10697. MOZ_BUNDLED_FONTS=1
  10698. elif test "$enableval" = "no"; then
  10699. MOZ_BUNDLED_FONTS=
  10700. else
  10701. { echo "configure: error: Option, bundled-fonts, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, bundled-fonts, does not take an argument ($enableval)." 1>&5; exit 1; }
  10702. fi
  10703. fi
  10704. if test -n "$MOZ_BUNDLED_FONTS"; then
  10705. cat >> confdefs.pytmp <<\EOF
  10706. (''' MOZ_BUNDLED_FONTS ''', ' 1 ')
  10707. EOF
  10708. cat >> confdefs.h <<\EOF
  10709. #define MOZ_BUNDLED_FONTS 1
  10710. EOF
  10711. fi
  10712. # Check whether --enable-verify-mar or --disable-verify-mar was given.
  10713. if test "${enable_verify_mar+set}" = set; then
  10714. enableval="$enable_verify_mar"
  10715. if test "$enableval" = "yes"; then
  10716. MOZ_VERIFY_MAR_SIGNATURE=1
  10717. elif test "$enableval" = "no"; then
  10718. MOZ_VERIFY_MAR_SIGNATURE=
  10719. else
  10720. { echo "configure: error: Option, verify-mar, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, verify-mar, does not take an argument ($enableval)." 1>&5; exit 1; }
  10721. fi
  10722. fi
  10723. if test -n "$MOZ_VERIFY_MAR_SIGNATURE"; then
  10724. cat >> confdefs.pytmp <<\EOF
  10725. (''' MOZ_VERIFY_MAR_SIGNATURE ''', ' 1 ')
  10726. EOF
  10727. cat >> confdefs.h <<\EOF
  10728. #define MOZ_VERIFY_MAR_SIGNATURE 1
  10729. EOF
  10730. fi
  10731. # Check whether --enable-signmar or --disable-signmar was given.
  10732. if test "${enable_signmar+set}" = set; then
  10733. enableval="$enable_signmar"
  10734. if test "$enableval" = "yes"; then
  10735. MOZ_ENABLE_SIGNMAR=1
  10736. elif test "$enableval" = "no"; then
  10737. MOZ_ENABLE_SIGNMAR=
  10738. else
  10739. { echo "configure: error: Option, signmar, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, signmar, does not take an argument ($enableval)." 1>&5; exit 1; }
  10740. fi
  10741. fi
  10742. if test -n "$MOZ_ENABLE_SIGNMAR"; then
  10743. if test -z "$COMPILE_ENVIRONMENT" ; then
  10744. echo "configure: warning: Cannot --enable-signmar with --disable-compile-environment" 1>&2
  10745. MOZ_ENABLE_SIGNMAR=
  10746. else
  10747. cat >> confdefs.pytmp <<\EOF
  10748. (''' MOZ_ENABLE_SIGNMAR ''', ' 1 ')
  10749. EOF
  10750. cat >> confdefs.h <<\EOF
  10751. #define MOZ_ENABLE_SIGNMAR 1
  10752. EOF
  10753. fi
  10754. fi
  10755. if test "$MOZ_IOS"; then
  10756. MOZ_UPDATER=
  10757. fi
  10758. # Check whether --enable-updater or --disable-updater was given.
  10759. if test "${enable_updater+set}" = set; then
  10760. enableval="$enable_updater"
  10761. if test "$enableval" = "yes"; then
  10762. MOZ_UPDATER=1
  10763. elif test "$enableval" = "no"; then
  10764. MOZ_UPDATER=
  10765. else
  10766. { echo "configure: error: Option, updater, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, updater, does not take an argument ($enableval)." 1>&5; exit 1; }
  10767. fi
  10768. fi
  10769. if test -n "$MOZ_UPDATER"; then
  10770. cat >> confdefs.pytmp <<\EOF
  10771. (''' MOZ_UPDATER ''', ' 1 ')
  10772. EOF
  10773. cat >> confdefs.h <<\EOF
  10774. #define MOZ_UPDATER 1
  10775. EOF
  10776. fi
  10777. # Check whether --enable-tests or --disable-tests was given.
  10778. if test "${enable_tests+set}" = set; then
  10779. enableval="$enable_tests"
  10780. if test "$enableval" = "yes"; then
  10781. ENABLE_TESTS=1
  10782. elif test "$enableval" = "no"; then
  10783. ENABLE_TESTS=
  10784. else
  10785. { echo "configure: error: Option, tests, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, tests, does not take an argument ($enableval)." 1>&5; exit 1; }
  10786. fi
  10787. fi
  10788. if test -n "$ENABLE_TESTS"; then
  10789. GTEST_HAS_RTTI=0
  10790. cat >> confdefs.pytmp <<\EOF
  10791. (''' ENABLE_TESTS ''', ' 1 ')
  10792. EOF
  10793. cat >> confdefs.h <<\EOF
  10794. #define ENABLE_TESTS 1
  10795. EOF
  10796. cat >> confdefs.pytmp <<EOF
  10797. (''' GTEST_HAS_RTTI ''', r''' 0 ''')
  10798. EOF
  10799. cat >> confdefs.h <<EOF
  10800. #define GTEST_HAS_RTTI 0
  10801. EOF
  10802. if test -n "$_WIN32_MSVC"; then
  10803. cat >> confdefs.pytmp <<EOF
  10804. (''' _VARIADIC_MAX ''', r''' 10 ''')
  10805. EOF
  10806. cat >> confdefs.h <<EOF
  10807. #define _VARIADIC_MAX 10
  10808. EOF
  10809. fi
  10810. if test "${OS_TARGET}" = "Android"; then
  10811. cat >> confdefs.pytmp <<\EOF
  10812. (''' GTEST_OS_LINUX_ANDROID ''', ' 1 ')
  10813. EOF
  10814. cat >> confdefs.h <<\EOF
  10815. #define GTEST_OS_LINUX_ANDROID 1
  10816. EOF
  10817. cat >> confdefs.pytmp <<\EOF
  10818. (''' GTEST_USE_OWN_TR1_TUPLE ''', ' 1 ')
  10819. EOF
  10820. cat >> confdefs.h <<\EOF
  10821. #define GTEST_USE_OWN_TR1_TUPLE 1
  10822. EOF
  10823. cat >> confdefs.pytmp <<EOF
  10824. (''' GTEST_HAS_CLONE ''', r''' 0 ''')
  10825. EOF
  10826. cat >> confdefs.h <<EOF
  10827. #define GTEST_HAS_CLONE 0
  10828. EOF
  10829. fi
  10830. fi
  10831. # Check whether --enable-parental-controls or --disable-parental-controls was given.
  10832. if test "${enable_parental_controls+set}" = set; then
  10833. enableval="$enable_parental_controls"
  10834. if test "$enableval" = "no"; then
  10835. MOZ_DISABLE_PARENTAL_CONTROLS=1
  10836. elif test "$enableval" = "yes"; then
  10837. MOZ_DISABLE_PARENTAL_CONTROLS=
  10838. else
  10839. { echo "configure: error: Option, parental-controls, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, parental-controls, does not take an argument ($enableval)." 1>&5; exit 1; }
  10840. fi
  10841. fi
  10842. if test -n "$MOZ_DISABLE_PARENTAL_CONTROLS"; then
  10843. cat >> confdefs.pytmp <<\EOF
  10844. (''' MOZ_DISABLE_PARENTAL_CONTROLS ''', ' 1 ')
  10845. EOF
  10846. cat >> confdefs.h <<\EOF
  10847. #define MOZ_DISABLE_PARENTAL_CONTROLS 1
  10848. EOF
  10849. fi
  10850. if test -n "$MOZ_NO_SMART_CARDS"; then
  10851. cat >> confdefs.pytmp <<\EOF
  10852. (''' MOZ_NO_SMART_CARDS ''', ' 1 ')
  10853. EOF
  10854. cat >> confdefs.h <<\EOF
  10855. #define MOZ_NO_SMART_CARDS 1
  10856. EOF
  10857. fi
  10858. # Individual module options
  10859. # Check whether --enable-feeds or --disable-feeds was given.
  10860. if test "${enable_feeds+set}" = set; then
  10861. enableval="$enable_feeds"
  10862. if test "$enableval" = "no"; then
  10863. MOZ_FEEDS=
  10864. elif test "$enableval" = "yes"; then
  10865. MOZ_FEEDS=1
  10866. else
  10867. { echo "configure: error: Option, feeds, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, feeds, does not take an argument ($enableval)." 1>&5; exit 1; }
  10868. fi
  10869. fi
  10870. if test -n "$MOZ_FEEDS"; then
  10871. cat >> confdefs.pytmp <<\EOF
  10872. (''' MOZ_FEEDS ''', ' 1 ')
  10873. EOF
  10874. cat >> confdefs.h <<\EOF
  10875. #define MOZ_FEEDS 1
  10876. EOF
  10877. else
  10878. if test "$MOZ_BUILD_APP" = "browser"; then
  10879. { echo "configure: error: Cannot build Firefox with --disable-feeds." 1>&2; echo "configure: error: Cannot build Firefox with --disable-feeds." 1>&5; exit 1; }
  10880. fi
  10881. fi
  10882. # Check whether --enable-safe-browsing or --disable-safe-browsing was given.
  10883. if test "${enable_safe_browsing+set}" = set; then
  10884. enableval="$enable_safe_browsing"
  10885. if test "$enableval" = "yes"; then
  10886. MOZ_SAFE_BROWSING=1
  10887. elif test "$enableval" = "no"; then
  10888. MOZ_SAFE_BROWSING=
  10889. else
  10890. { echo "configure: error: Option, safe-browsing, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, safe-browsing, does not take an argument ($enableval)." 1>&5; exit 1; }
  10891. fi
  10892. fi
  10893. if test -n "$MOZ_SAFE_BROWSING"; then
  10894. cat >> confdefs.pytmp <<\EOF
  10895. (''' MOZ_SAFE_BROWSING ''', ' 1 ')
  10896. EOF
  10897. cat >> confdefs.h <<\EOF
  10898. #define MOZ_SAFE_BROWSING 1
  10899. EOF
  10900. fi
  10901. if test -n "$MOZ_SAFE_BROWSING"; then
  10902. MOZ_URL_CLASSIFIER=1
  10903. fi
  10904. # Check whether --enable-url-classifier or --disable-url-classifier was given.
  10905. if test "${enable_url_classifier+set}" = set; then
  10906. enableval="$enable_url_classifier"
  10907. if test "$enableval" = "yes"; then
  10908. MOZ_URL_CLASSIFIER=1
  10909. elif test "$enableval" = "no"; then
  10910. MOZ_URL_CLASSIFIER=
  10911. else
  10912. { echo "configure: error: Option, url-classifier, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, url-classifier, does not take an argument ($enableval)." 1>&5; exit 1; }
  10913. fi
  10914. fi
  10915. if test -n "$MOZ_URL_CLASSIFIER"; then
  10916. cat >> confdefs.pytmp <<\EOF
  10917. (''' MOZ_URL_CLASSIFIER ''', ' 1 ')
  10918. EOF
  10919. cat >> confdefs.h <<\EOF
  10920. #define MOZ_URL_CLASSIFIER 1
  10921. EOF
  10922. fi
  10923. # Check whether --enable-zipwriter or --disable-zipwriter was given.
  10924. if test "${enable_zipwriter+set}" = set; then
  10925. enableval="$enable_zipwriter"
  10926. if test "$enableval" = "no"; then
  10927. MOZ_ZIPWRITER=
  10928. elif test "$enableval" = "yes"; then
  10929. MOZ_ZIPWRITER=1
  10930. else
  10931. { echo "configure: error: Option, zipwriter, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, zipwriter, does not take an argument ($enableval)." 1>&5; exit 1; }
  10932. fi
  10933. fi
  10934. # Check whether --enable-faststripe or --disable-faststripe was given.
  10935. if test "${enable_faststripe+set}" = set; then
  10936. enableval="$enable_faststripe"
  10937. if test "$enableval" = "yes"; then
  10938. MOZ_THEME_FASTSTRIPE=1
  10939. elif test "$enableval" = "no"; then
  10940. MOZ_THEME_FASTSTRIPE=
  10941. else
  10942. { echo "configure: error: Option, faststripe, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, faststripe, does not take an argument ($enableval)." 1>&5; exit 1; }
  10943. fi
  10944. fi
  10945. # Runtime debugging and Optimizations
  10946. if test -z "$MOZ_OPTIMIZE_FLAGS"; then
  10947. MOZ_OPTIMIZE_FLAGS="-O"
  10948. fi
  10949. # Check whether --enable-optimize or --disable-optimize was given.
  10950. if test "${enable_optimize+set}" = set; then
  10951. enableval="$enable_optimize"
  10952. if test "$enableval" != "no"; then
  10953. MOZ_OPTIMIZE=1
  10954. if test -n "$enableval" -a "$enableval" != "yes"; then
  10955. MOZ_OPTIMIZE_FLAGS=`echo "$enableval" | sed -e 's|\\\ | |g'`
  10956. MOZ_OPTIMIZE=2
  10957. fi
  10958. else
  10959. MOZ_OPTIMIZE=
  10960. fi
  10961. else
  10962. MOZ_OPTIMIZE=1
  10963. fi
  10964. case "$target" in
  10965. *android*)
  10966. unwind_tables="-funwind-tables"
  10967. ;;
  10968. esac
  10969. if test "$GNU_CC"; then
  10970. MOZ_ENABLE_FRAME_PTR="-fno-omit-frame-pointer $unwind_tables"
  10971. MOZ_DISABLE_FRAME_PTR="-fomit-frame-pointer"
  10972. if test "$CPU_ARCH" = arm; then
  10973. # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54398
  10974. MOZ_ENABLE_FRAME_PTR="$unwind_tables"
  10975. fi
  10976. else
  10977. case "$target" in
  10978. *-mingw32*)
  10979. MOZ_ENABLE_FRAME_PTR="-Oy-"
  10980. MOZ_DISABLE_FRAME_PTR="-Oy"
  10981. ;;
  10982. esac
  10983. fi
  10984. # If we are debugging, profiling, using sanitizers, or on win32 we want a
  10985. # frame pointer.
  10986. if test -z "$MOZ_OPTIMIZE" -o \
  10987. -n "$MOZ_PROFILING" -o \
  10988. -n "$MOZ_DEBUG" -o \
  10989. -n "$MOZ_MSAN" -o \
  10990. -n "$MOZ_ASAN" -o \
  10991. "$OS_ARCH:$CPU_ARCH" = "WINNT:x86"; then
  10992. MOZ_FRAMEPTR_FLAGS="$MOZ_ENABLE_FRAME_PTR"
  10993. else
  10994. MOZ_FRAMEPTR_FLAGS="$MOZ_DISABLE_FRAME_PTR"
  10995. fi
  10996. if test "$COMPILE_ENVIRONMENT"; then
  10997. if test -n "$MOZ_OPTIMIZE"; then
  10998. echo $ac_n "checking for valid C compiler optimization flags""... $ac_c" 1>&6
  10999. echo "configure:12672: checking for valid C compiler optimization flags" >&5
  11000. _SAVE_CFLAGS=$CFLAGS
  11001. CFLAGS="$CFLAGS $MOZ_OPTIMIZE_FLAGS"
  11002. cat > conftest.$ac_ext <<EOF
  11003. #line 12676 "configure"
  11004. #include "confdefs.h"
  11005. #include <stdio.h>
  11006. int main() {
  11007. printf("Hello World\n");
  11008. ; return 0; }
  11009. EOF
  11010. if { (eval echo configure:12683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11011. rm -rf conftest*
  11012. _results=yes
  11013. else
  11014. echo "configure: failed program was:" >&5
  11015. cat conftest.$ac_ext >&5
  11016. rm -rf conftest*
  11017. _results=no
  11018. fi
  11019. rm -f conftest*
  11020. echo "$ac_t""$_results" 1>&6
  11021. if test "$_results" = "no"; then
  11022. { echo "configure: error: These compiler flags for C are invalid: $MOZ_OPTIMIZE_FLAGS" 1>&2; echo "configure: error: These compiler flags for C are invalid: $MOZ_OPTIMIZE_FLAGS" 1>&5; exit 1; }
  11023. fi
  11024. CFLAGS=$_SAVE_CFLAGS
  11025. fi
  11026. fi # COMPILE_ENVIRONMENT
  11027. if test -z "$MOZ_ENABLE_WARNINGS_AS_ERRORS"; then
  11028. WARNINGS_AS_ERRORS=''
  11029. fi
  11030. cat >> confdefs.pytmp <<\EOF
  11031. (''' MOZ_LOGGING ''', ' 1 ')
  11032. EOF
  11033. cat >> confdefs.h <<\EOF
  11034. #define MOZ_LOGGING 1
  11035. EOF
  11036. cat >> confdefs.pytmp <<\EOF
  11037. (''' FORCE_PR_LOG ''', ' 1 ')
  11038. EOF
  11039. cat >> confdefs.h <<\EOF
  11040. #define FORCE_PR_LOG 1
  11041. EOF
  11042. _ENABLE_LOGREFCNT=42
  11043. # Check whether --enable-logrefcnt or --disable-logrefcnt was given.
  11044. if test "${enable_logrefcnt+set}" = set; then
  11045. enableval="$enable_logrefcnt"
  11046. if test "$enableval" = "yes"; then
  11047. _ENABLE_LOGREFCNT=1
  11048. elif test "$enableval" = "no"; then
  11049. _ENABLE_LOGREFCNT=
  11050. else
  11051. { echo "configure: error: Option, logrefcnt, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, logrefcnt, does not take an argument ($enableval)." 1>&5; exit 1; }
  11052. fi
  11053. fi
  11054. if test "$_ENABLE_LOGREFCNT" = "1"; then
  11055. cat >> confdefs.pytmp <<\EOF
  11056. (''' FORCE_BUILD_REFCNT_LOGGING ''', ' 1 ')
  11057. EOF
  11058. cat >> confdefs.h <<\EOF
  11059. #define FORCE_BUILD_REFCNT_LOGGING 1
  11060. EOF
  11061. elif test -z "$_ENABLE_LOGREFCNT"; then
  11062. cat >> confdefs.pytmp <<\EOF
  11063. (''' NO_BUILD_REFCNT_LOGGING ''', ' 1 ')
  11064. EOF
  11065. cat >> confdefs.h <<\EOF
  11066. #define NO_BUILD_REFCNT_LOGGING 1
  11067. EOF
  11068. fi
  11069. # Check whether --enable-dump-painting or --disable-dump-painting was given.
  11070. if test "${enable_dump_painting+set}" = set; then
  11071. enableval="$enable_dump_painting"
  11072. if test "$enableval" = "yes"; then
  11073. MOZ_DUMP_PAINTING=1
  11074. elif test "$enableval" = "no"; then
  11075. MOZ_DUMP_PAINTING=
  11076. else
  11077. { echo "configure: error: Option, dump-painting, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, dump-painting, does not take an argument ($enableval)." 1>&5; exit 1; }
  11078. fi
  11079. fi
  11080. if test -n "$MOZ_DUMP_PAINTING"; then
  11081. cat >> confdefs.pytmp <<\EOF
  11082. (''' MOZ_DUMP_PAINTING ''', ' 1 ')
  11083. EOF
  11084. cat >> confdefs.h <<\EOF
  11085. #define MOZ_DUMP_PAINTING 1
  11086. EOF
  11087. cat >> confdefs.pytmp <<\EOF
  11088. (''' MOZ_LAYERS_HAVE_LOG ''', ' 1 ')
  11089. EOF
  11090. cat >> confdefs.h <<\EOF
  11091. #define MOZ_LAYERS_HAVE_LOG 1
  11092. EOF
  11093. fi
  11094. if test -n "$MOZ_DEBUG"; then
  11095. cat >> confdefs.pytmp <<\EOF
  11096. (''' MOZ_DUMP_PAINTING ''', ' 1 ')
  11097. EOF
  11098. cat >> confdefs.h <<\EOF
  11099. #define MOZ_DUMP_PAINTING 1
  11100. EOF
  11101. fi
  11102. case "${OS_TARGET}" in
  11103. WINNT)
  11104. MOZ_GLUE_IN_PROGRAM=
  11105. ;;
  11106. *)
  11107. MOZ_GLUE_IN_PROGRAM=1
  11108. cat >> confdefs.pytmp <<\EOF
  11109. (''' MOZ_GLUE_IN_PROGRAM ''', ' 1 ')
  11110. EOF
  11111. cat >> confdefs.h <<\EOF
  11112. #define MOZ_GLUE_IN_PROGRAM 1
  11113. EOF
  11114. ;;
  11115. esac
  11116. if test -n "$MOZ_REPLACE_MALLOC"; then
  11117. if test -n "$MACOSX_DEPLOYMENT_TARGET"; then
  11118. echo $ac_n "checking how to do weak dynamic linking""... $ac_c" 1>&6
  11119. echo "configure:12815: checking how to do weak dynamic linking" >&5
  11120. if eval "test \"`echo '$''{'ac_cv_weak_dynamic_linking'+set}'`\" = set"; then
  11121. echo $ac_n "(cached) $ac_c" 1>&6
  11122. else
  11123. echo 'extern void foo() __attribute__((weak_import));int bar() { if (foo) foo(); return 0; }' > conftest.c
  11124. if { ac_try='${CC-cc} -o conftest${DLL_SUFFIX} $CFLAGS -dynamiclib $LDFLAGS -Wl,-U,_foo conftest.c $LIBS 1>&5'; { (eval echo configure:12820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  11125. test -s conftest${DLL_SUFFIX}; then
  11126. if "$OTOOL" -l conftest${DLL_SUFFIX} 2> /dev/null | grep "LC_DYLD_INFO_ONLY" > /dev/null; then
  11127. _CLASSIC_INFO=
  11128. else
  11129. _CLASSIC_INFO=1
  11130. fi
  11131. if "$OTOOL" -l conftest${DLL_SUFFIX} 2> /dev/null | grep "LC_DYLD_INFO" > /dev/null; then
  11132. _DYLD_INFO=1
  11133. else
  11134. _DYLD_INFO=
  11135. fi
  11136. if test -n "$_DYLD_INFO" && dyldinfo -bind conftest${DLL_SUFFIX} 2> /dev/null | grep "_foo (weak import)" > /dev/null; then
  11137. if test -n "$_CLASSIC_INFO"; then
  11138. ac_cv_weak_dynamic_linking="flat namespace"
  11139. else
  11140. ac_cv_weak_dynamic_linking="compiler support"
  11141. fi
  11142. else
  11143. if test -n "$_DYLD_INFO"; then
  11144. ac_cv_weak_dynamic_linking="dummy library"
  11145. else
  11146. ac_cv_weak_dynamic_linking="flat namespace"
  11147. fi
  11148. fi
  11149. else
  11150. { echo "configure: error: couldn't compile a simple C file" 1>&2; echo "configure: error: couldn't compile a simple C file" 1>&5; exit 1; }
  11151. fi
  11152. rm -rf conftest*
  11153. fi
  11154. echo "$ac_t""$ac_cv_weak_dynamic_linking" 1>&6
  11155. MOZ_REPLACE_MALLOC_LINKAGE="$ac_cv_weak_dynamic_linking"
  11156. fi
  11157. fi
  11158. if test -z "$MOZ_MEMORY"; then
  11159. case "${target}" in
  11160. *-mingw*)
  11161. if test -z "$WIN32_REDIST_DIR" -a -z "$MOZ_DEBUG"; then
  11162. echo "configure: warning: When not building jemalloc, you need to set WIN32_REDIST_DIR to the path to the Visual C++ Redist (usually VCINSTALLDIR\redist\x86\Microsoft.VC80.CRT, for VC++ v8) if you intend to distribute your build." 1>&2
  11163. fi
  11164. ;;
  11165. esac
  11166. else
  11167. if test "x$MOZ_DEBUG" = "x1"; then
  11168. cat >> confdefs.pytmp <<\EOF
  11169. (''' MOZ_MEMORY_DEBUG ''', ' 1 ')
  11170. EOF
  11171. cat >> confdefs.h <<\EOF
  11172. #define MOZ_MEMORY_DEBUG 1
  11173. EOF
  11174. fi
  11175. case "${target}" in
  11176. *-mingw*)
  11177. export MOZ_NO_DEBUG_RTL=1
  11178. ;;
  11179. esac
  11180. fi # MOZ_MEMORY
  11181. # Allow the application to provide a subconfigure script.
  11182. # This should be after 'export MOZ_NO_DEBUG_RTL=1' since
  11183. # ldap/c-sdk/configure refers to the enviroment value.
  11184. if test -f "${srcdir}/${MOZ_BUILD_APP}/configure.in" ; then
  11185. do_output_subdirs() {
  11186. if test -n "$_subconfigure_subdirs"; then
  11187. { echo "configure: error: Cannot specify more than one sub-sub-configure" 1>&2; echo "configure: error: Cannot specify more than one sub-sub-configure" 1>&5; exit 1; }
  11188. fi
  11189. _subconfigure_subdir="$1"
  11190. _subconfigure_config_args="$ac_configure_args"
  11191. }
  11192. tmpscript=`$PYTHON -c 'import os, tempfile; print tempfile.mktemp(prefix="subscript.").replace(os.sep, "/")'` || exit 1
  11193. ${TOOLCHAIN_PREFIX}m4 "${srcdir}/build/autoconf/subconfigure.m4" \
  11194. "${srcdir}/build/autoconf/altoptions.m4" \
  11195. "${srcdir}/${MOZ_BUILD_APP}/configure.in" > $tmpscript
  11196. . $tmpscript
  11197. rm -f $tmpscript
  11198. fi
  11199. export MOZ_GLUE_WRAP_LDFLAGS
  11200. # Check whether --enable-clang-plugin or --disable-clang-plugin was given.
  11201. if test "${enable_clang_plugin+set}" = set; then
  11202. enableval="$enable_clang_plugin"
  11203. if test "$enableval" = "yes"; then
  11204. ENABLE_CLANG_PLUGIN=1
  11205. elif test "$enableval" = "no"; then
  11206. ENABLE_CLANG_PLUGIN=
  11207. else
  11208. { echo "configure: error: Option, clang-plugin, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, clang-plugin, does not take an argument ($enableval)." 1>&5; exit 1; }
  11209. fi
  11210. fi
  11211. if test -n "$ENABLE_CLANG_PLUGIN"; then
  11212. if test -z "${CLANG_CC}${CLANG_CL}"; then
  11213. { echo "configure: error: Can't use clang plugin without clang." 1>&2; echo "configure: error: Can't use clang plugin without clang." 1>&5; exit 1; }
  11214. fi
  11215. echo $ac_n "checking for llvm-config""... $ac_c" 1>&6
  11216. echo "configure:12926: checking for llvm-config" >&5
  11217. if test -z "$LLVMCONFIG"; then
  11218. if test -n "$CLANG_CL"; then
  11219. CXX_COMPILER="$(dirname "$CXX")/clang"
  11220. else
  11221. CXX_COMPILER="${CXX}"
  11222. fi
  11223. LLVMCONFIG=`$CXX_COMPILER -print-prog-name=llvm-config`
  11224. fi
  11225. if test -z "$LLVMCONFIG"; then
  11226. LLVMCONFIG=`which llvm-config`
  11227. fi
  11228. if test ! -x "$LLVMCONFIG"; then
  11229. echo "$ac_t""not found" 1>&6
  11230. { echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&2; echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&5; exit 1; }
  11231. fi
  11232. echo "$ac_t""$LLVMCONFIG" 1>&6
  11233. if test -z "$LLVMCONFIG"; then
  11234. { echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&2; echo "configure: error: Cannot find an llvm-config binary for building a clang plugin" 1>&5; exit 1; }
  11235. fi
  11236. LLVM_CXXFLAGS=`$LLVMCONFIG --cxxflags | sed -e 's/-isysroot [^ ]*//'`
  11237. LLVM_LDFLAGS=`$LLVMCONFIG --ldflags | tr '\n' ' '`
  11238. if test "${HOST_OS_ARCH}" = "Darwin"; then
  11239. CLANG_LDFLAGS="-Wl,-flat_namespace -Wl,-undefined,suppress -lclangASTMatchers"
  11240. elif test "${HOST_OS_ARCH}" = "WINNT"; then
  11241. CLANG_LDFLAGS="clangASTMatchers.lib"
  11242. else
  11243. CLANG_LDFLAGS="-lclangASTMatchers"
  11244. fi
  11245. if test -n "$CLANG_CL"; then
  11246. LLVM_REPLACE_CXXFLAGS=''
  11247. for arg in $LLVM_CXXFLAGS; do
  11248. arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'`
  11249. LLVM_REPLACE_CXXFLAGS="$LLVM_REPLACE_CXXFLAGS $arg"
  11250. done
  11251. LLVM_CXXFLAGS="$LLVM_REPLACE_CXXFLAGS"
  11252. LLVM_REPLACE_LDFLAGS=''
  11253. for arg in $LLVM_LDFLAGS; do
  11254. arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'`
  11255. LLVM_REPLACE_LDFLAGS="$LLVM_REPLACE_LDFLAGS $arg"
  11256. done
  11257. LLVM_LDFLAGS="$LLVM_REPLACE_LDFLAGS"
  11258. CLANG_REPLACE_LDFLAGS=''
  11259. for arg in $CLANG_LDFLAGS; do
  11260. arg=`echo "$arg"|sed -e 's/^\//-/' -e 's/\\\\/\//g'`
  11261. CLANG_REPLACE_LDFLAGS="$CLANG_REPLACE_LDFLAGS $arg"
  11262. done
  11263. CLANG_LDFLAGS="$CLANG_REPLACE_LDFLAGS"
  11264. fi
  11265. echo $ac_n "checking for new ASTMatcher API""... $ac_c" 1>&6
  11266. echo "configure:12986: checking for new ASTMatcher API" >&5
  11267. if eval "test \"`echo '$''{'ac_cv_have_new_ASTMatcher_api'+set}'`\" = set"; then
  11268. echo $ac_n "(cached) $ac_c" 1>&6
  11269. else
  11270. ac_ext=C
  11271. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11272. ac_cpp='$CXXCPP $CPPFLAGS'
  11273. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11274. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11275. cross_compiling=$ac_cv_prog_cxx_cross
  11276. _SAVE_CXXFLAGS="$CXXFLAGS"
  11277. _SAVE_CXX="$CXX"
  11278. _SAVE_MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET"
  11279. unset MACOSX_DEPLOYMENT_TARGET
  11280. CXXFLAGS="${LLVM_CXXFLAGS}"
  11281. CXX="${HOST_CXX}"
  11282. cat > conftest.$ac_ext <<EOF
  11283. #line 13006 "configure"
  11284. #include "confdefs.h"
  11285. #include "clang/ASTMatchers/ASTMatchers.h"
  11286. int main() {
  11287. clang::ast_matchers::cxxConstructExpr();
  11288. ; return 0; }
  11289. EOF
  11290. if { (eval echo configure:13013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11291. rm -rf conftest*
  11292. ac_cv_have_new_ASTMatcher_names="yes"
  11293. else
  11294. echo "configure: failed program was:" >&5
  11295. cat conftest.$ac_ext >&5
  11296. rm -rf conftest*
  11297. ac_cv_have_new_ASTMatcher_names="no"
  11298. fi
  11299. rm -f conftest*
  11300. CXX="$_SAVE_CXX"
  11301. CXXFLAGS="$_SAVE_CXXFLAGS"
  11302. export MACOSX_DEPLOYMENT_TARGET="$_SAVE_MACOSX_DEPLOYMENT_TARGET"
  11303. ac_ext=c
  11304. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11305. ac_cpp='$CPP $CPPFLAGS'
  11306. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11307. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11308. cross_compiling=$ac_cv_prog_cc_cross
  11309. fi
  11310. echo "$ac_t""$ac_cv_have_new_ASTMatcher_api" 1>&6
  11311. if test "$ac_cv_have_new_ASTMatcher_names" = "yes"; then
  11312. LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DHAVE_NEW_ASTMATCHER_NAMES"
  11313. fi
  11314. echo $ac_n "checking for has with ignoringParenImpCasts""... $ac_c" 1>&6
  11315. echo "configure:13042: checking for has with ignoringParenImpCasts" >&5
  11316. if eval "test \"`echo '$''{'ac_cv_has_accepts_ignoringParenImpCasts'+set}'`\" = set"; then
  11317. echo $ac_n "(cached) $ac_c" 1>&6
  11318. else
  11319. ac_ext=C
  11320. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11321. ac_cpp='$CXXCPP $CPPFLAGS'
  11322. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11323. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11324. cross_compiling=$ac_cv_prog_cxx_cross
  11325. _SAVE_CXXFLAGS="$CXXFLAGS"
  11326. _SAVE_CXX="$CXX"
  11327. _SAVE_MACOSX_DEPLOYMENT_TARGET="$MACOSX_DEPLOYMENT_TARGET"
  11328. unset MACOSX_DEPLOYMENT_TARGET
  11329. CXXFLAGS="${LLVM_CXXFLAGS}"
  11330. CXX="${HOST_CXX}"
  11331. cat > conftest.$ac_ext <<EOF
  11332. #line 13062 "configure"
  11333. #include "confdefs.h"
  11334. #include "clang/ASTMatchers/ASTMatchers.h"
  11335. int main() {
  11336. using namespace clang::ast_matchers;
  11337. expr(has(ignoringParenImpCasts(declRefExpr())));
  11338. ; return 0; }
  11339. EOF
  11340. if { (eval echo configure:13071: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11341. rm -rf conftest*
  11342. ac_cv_has_accepts_ignoringParenImpCasts="yes"
  11343. else
  11344. echo "configure: failed program was:" >&5
  11345. cat conftest.$ac_ext >&5
  11346. rm -rf conftest*
  11347. ac_cv_has_accepts_ignoringParenImpCasts="no"
  11348. fi
  11349. rm -f conftest*
  11350. CXX="$_SAVE_CXX"
  11351. CXXFLAGS="$_SAVE_CXXFLAGS"
  11352. export MACOSX_DEPLOYMENT_TARGET="$_SAVE_MACOSX_DEPLOYMENT_TARGET"
  11353. ac_ext=c
  11354. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11355. ac_cpp='$CPP $CPPFLAGS'
  11356. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11357. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11358. cross_compiling=$ac_cv_prog_cc_cross
  11359. fi
  11360. echo "$ac_t""$ac_cv_has_accepts_ignoringParenImpCasts" 1>&6
  11361. if test "$ac_cv_has_accepts_ignoringParenImpCasts" = "yes"; then
  11362. LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DHAS_ACCEPTS_IGNORINGPARENIMPCASTS"
  11363. fi
  11364. cat >> confdefs.pytmp <<\EOF
  11365. (''' MOZ_CLANG_PLUGIN ''', ' 1 ')
  11366. EOF
  11367. cat >> confdefs.h <<\EOF
  11368. #define MOZ_CLANG_PLUGIN 1
  11369. EOF
  11370. fi
  11371. # Check whether --enable-strip or --disable-strip was given.
  11372. if test "${enable_strip+set}" = set; then
  11373. enableval="$enable_strip"
  11374. if test "$enableval" = "yes"; then
  11375. ENABLE_STRIP=1
  11376. elif test "$enableval" = "no"; then
  11377. ENABLE_STRIP=
  11378. else
  11379. { echo "configure: error: Option, strip, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, strip, does not take an argument ($enableval)." 1>&5; exit 1; }
  11380. fi
  11381. fi
  11382. # Check whether --enable-install-strip or --disable-install-strip was given.
  11383. if test "${enable_install_strip+set}" = set; then
  11384. enableval="$enable_install_strip"
  11385. if test "$enableval" = "yes"; then
  11386. PKG_SKIP_STRIP=
  11387. elif test "$enableval" = "no"; then
  11388. PKG_SKIP_STRIP=1
  11389. else
  11390. { echo "configure: error: Option, install-strip, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, install-strip, does not take an argument ($enableval)." 1>&5; exit 1; }
  11391. fi
  11392. fi
  11393. USE_ELF_HACK=1
  11394. # Check whether --enable-elf-hack or --disable-elf-hack was given.
  11395. if test "${enable_elf_hack+set}" = set; then
  11396. enableval="$enable_elf_hack"
  11397. if test "$enableval" = "no"; then
  11398. USE_ELF_HACK=
  11399. elif test "$enableval" = "yes"; then
  11400. USE_ELF_HACK=1
  11401. else
  11402. { echo "configure: error: Option, elf-hack, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, elf-hack, does not take an argument ($enableval)." 1>&5; exit 1; }
  11403. fi
  11404. fi
  11405. # Only enable elfhack where supported
  11406. if test "$USE_ELF_HACK" = 1; then
  11407. case "${HOST_OS_ARCH},${OS_ARCH}" in
  11408. Linux,Linux)
  11409. case "${CPU_ARCH}" in
  11410. arm | x86 | x86_64)
  11411. USE_ELF_HACK=1
  11412. ;;
  11413. *)
  11414. USE_ELF_HACK=
  11415. ;;
  11416. esac
  11417. ;;
  11418. *)
  11419. USE_ELF_HACK=
  11420. ;;
  11421. esac
  11422. fi
  11423. if test -n "$COMPILE_ENVIRONMENT" -a -n "$USE_ELF_HACK"; then
  11424. echo $ac_n "checking whether linker creates PT_GNU_RELRO segments""... $ac_c" 1>&6
  11425. echo "configure:13178: checking whether linker creates PT_GNU_RELRO segments" >&5
  11426. if eval "test \"`echo '$''{'LINK_WITH_PT_GNU_RELRO'+set}'`\" = set"; then
  11427. echo $ac_n "(cached) $ac_c" 1>&6
  11428. else
  11429. echo "int main() {return 0;}" > conftest.${ac_ext}
  11430. if { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.${ac_ext} $LIBS 1>&2'; { (eval echo configure:13183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } &&
  11431. test -s conftest${ac_exeext}; then
  11432. if ${TOOLCHAIN_PREFIX}readelf -l conftest${ac_exeext} | grep GNU_RELRO > /dev/null; then
  11433. LINK_WITH_PT_GNU_RELRO=yes
  11434. else
  11435. LINK_WITH_PT_GNU_RELRO=no
  11436. fi
  11437. else
  11438. { echo "configure: error: couldn't compile a simple C file" 1>&2; echo "configure: error: couldn't compile a simple C file" 1>&5; exit 1; }
  11439. fi
  11440. rm -rf conftest*
  11441. fi
  11442. echo "$ac_t""$LINK_WITH_PT_GNU_RELRO" 1>&6
  11443. if test "$LINK_WITH_PT_GNU_RELRO" = yes; then
  11444. if test "$USE_ELF_HACK" = F; then
  11445. echo $ac_n "checking for -z norelro option to ld""... $ac_c" 1>&6
  11446. echo "configure:13200: checking for -z norelro option to ld" >&5
  11447. _SAVE_LDFLAGS=$LDFLAGS
  11448. LDFLAGS="$LDFLAGS -Wl,-z,norelro"
  11449. cat > conftest.$ac_ext <<EOF
  11450. #line 13204 "configure"
  11451. #include "confdefs.h"
  11452. int main() {
  11453. ; return 0; }
  11454. EOF
  11455. if { (eval echo configure:13211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11456. rm -rf conftest*
  11457. echo "$ac_t""yes" 1>&6
  11458. NSPR_LDFLAGS="$NSPR_LDFLAGS -Wl,-z,norelro"
  11459. else
  11460. echo "configure: failed program was:" >&5
  11461. cat conftest.$ac_ext >&5
  11462. rm -rf conftest*
  11463. { echo "configure: error: --enable-elf-hack is not compatible with a linker creating a PT_GNU_RELRO segment and that doesn't support the "-z norelro" option." 1>&2; echo "configure: error: --enable-elf-hack is not compatible with a linker creating a PT_GNU_RELRO segment and that doesn't support the "-z norelro" option." 1>&5; exit 1; }
  11464. fi
  11465. rm -f conftest*
  11466. USE_ELF_HACK=1
  11467. else
  11468. echo "configure: warning: Disabling elfhack" 1>&2
  11469. USE_ELF_HACK=
  11470. fi
  11471. fi
  11472. fi # COMPILE_ENVIRONMENT and others.
  11473. STDCXX_COMPAT=
  11474. # Check whether --enable-stdcxx-compat or --disable-stdcxx-compat was given.
  11475. if test "${enable_stdcxx_compat+set}" = set; then
  11476. enableval="$enable_stdcxx_compat"
  11477. if test "$enableval" = "yes"; then
  11478. STDCXX_COMPAT=1
  11479. elif test "$enableval" = "no"; then
  11480. :
  11481. else
  11482. { echo "configure: error: Option, stdcxx-compat, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, stdcxx-compat, does not take an argument ($enableval)." 1>&5; exit 1; }
  11483. fi
  11484. fi
  11485. if test -n "$STDCXX_COMPAT"; then
  11486. eval $(CXX="$CXX" HOST_CXX="$HOST_CXX" $PYTHON -m mozbuild.configure.libstdcxx)
  11487. CXXFLAGS="$CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
  11488. HOST_CXXFLAGS="$HOST_CXXFLAGS -D_GLIBCXX_USE_CXX11_ABI=0"
  11489. fi
  11490. # Check whether --enable-debug-js-modules or --disable-debug-js-modules was given.
  11491. if test "${enable_debug_js_modules+set}" = set; then
  11492. enableval="$enable_debug_js_modules"
  11493. if test "$enableval" = "yes"; then
  11494. DEBUG_JS_MODULES=1
  11495. elif test "$enableval" = "no"; then
  11496. DEBUG_JS_MODULES=
  11497. else
  11498. { echo "configure: error: Option, debug-js-modules, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, debug-js-modules, does not take an argument ($enableval)." 1>&5; exit 1; }
  11499. fi
  11500. fi
  11501. MOZ_DISABLE_PRECOMPILED_STARTUPCACHE=
  11502. # Check whether --enable-precompiled-startupcache or --disable-precompiled-startupcache was given.
  11503. if test "${enable_precompiled_startupcache+set}" = set; then
  11504. enableval="$enable_precompiled_startupcache"
  11505. if test "$enableval" = "no"; then
  11506. MOZ_DISABLE_PRECOMPILED_STARTUPCACHE=1
  11507. elif test "$enableval" = "yes"; then
  11508. MOZ_DISABLE_PRECOMPILED_STARTUPCACHE=
  11509. else
  11510. { echo "configure: error: Option, precompiled-startupcache, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, precompiled-startupcache, does not take an argument ($enableval)." 1>&5; exit 1; }
  11511. fi
  11512. fi
  11513. if test -n "$MOZ_DISABLE_PRECOMPILED_STARTUPCACHE"; then
  11514. cat >> confdefs.pytmp <<\EOF
  11515. (''' MOZ_DISABLE_PRECOMPILED_STARTUPCACHE ''', ' 1 ')
  11516. EOF
  11517. cat >> confdefs.h <<\EOF
  11518. #define MOZ_DISABLE_PRECOMPILED_STARTUPCACHE 1
  11519. EOF
  11520. fi
  11521. # Profiling and Instrumenting
  11522. # Check whether --enable-tasktracer or --disable-tasktracer was given.
  11523. if test "${enable_tasktracer+set}" = set; then
  11524. enableval="$enable_tasktracer"
  11525. if test "$enableval" = "yes"; then
  11526. MOZ_TASK_TRACER=1
  11527. elif test "$enableval" = "no"; then
  11528. MOZ_TASK_TRACER=
  11529. else
  11530. { echo "configure: error: Option, tasktracer, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, tasktracer, does not take an argument ($enableval)." 1>&5; exit 1; }
  11531. fi
  11532. fi
  11533. if test -n "$MOZ_TASK_TRACER"; then
  11534. cat >> confdefs.pytmp <<\EOF
  11535. (''' MOZ_TASK_TRACER ''', ' 1 ')
  11536. EOF
  11537. cat >> confdefs.h <<\EOF
  11538. #define MOZ_TASK_TRACER 1
  11539. EOF
  11540. fi
  11541. # Check whether --enable-reflow-perf or --disable-reflow-perf was given.
  11542. if test "${enable_reflow_perf+set}" = set; then
  11543. enableval="$enable_reflow_perf"
  11544. if test "$enableval" = "yes"; then
  11545. MOZ_REFLOW_PERF=1
  11546. elif test "$enableval" = "no"; then
  11547. MOZ_REFLOW_PERF=
  11548. else
  11549. { echo "configure: error: Option, reflow-perf, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, reflow-perf, does not take an argument ($enableval)." 1>&5; exit 1; }
  11550. fi
  11551. fi
  11552. if test -n "$MOZ_REFLOW_PERF"; then
  11553. cat >> confdefs.pytmp <<\EOF
  11554. (''' MOZ_REFLOW_PERF ''', ' 1 ')
  11555. EOF
  11556. cat >> confdefs.h <<\EOF
  11557. #define MOZ_REFLOW_PERF 1
  11558. EOF
  11559. fi
  11560. if test -n "$MOZ_HORIZON"; then
  11561. cat >> confdefs.pytmp <<\EOF
  11562. (''' MOZ_HORIZON ''', ' 1 ')
  11563. EOF
  11564. cat >> confdefs.h <<\EOF
  11565. #define MOZ_HORIZON 1
  11566. EOF
  11567. fi
  11568. # Check whether --enable-startupcache or --disable-startupcache was given.
  11569. if test "${enable_startupcache+set}" = set; then
  11570. enableval="$enable_startupcache"
  11571. if test "$enableval" = "no"; then
  11572. MOZ_DISABLE_STARTUPCACHE=1
  11573. elif test "$enableval" = "yes"; then
  11574. MOZ_DISABLE_STARTUPCACHE=
  11575. else
  11576. { echo "configure: error: Option, startupcache, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, startupcache, does not take an argument ($enableval)." 1>&5; exit 1; }
  11577. fi
  11578. fi
  11579. if test -n "$MOZ_DISABLE_STARTUPCACHE"; then
  11580. cat >> confdefs.pytmp <<\EOF
  11581. (''' MOZ_DISABLE_STARTUPCACHE ''', ' 1 ')
  11582. EOF
  11583. cat >> confdefs.h <<\EOF
  11584. #define MOZ_DISABLE_STARTUPCACHE 1
  11585. EOF
  11586. fi
  11587. if test -n "$GAIADIR" -a ! -d "$GAIADIR" ; then
  11588. { echo "configure: error: GAIADIR '$GAIADIR' isn't a valid directory" 1>&2; echo "configure: error: GAIADIR '$GAIADIR' isn't a valid directory" 1>&5; exit 1; }
  11589. fi
  11590. if test -n "$GAIADIR" ; then
  11591. cat >> confdefs.pytmp <<\EOF
  11592. (''' PACKAGE_GAIA ''', ' 1 ')
  11593. EOF
  11594. cat >> confdefs.h <<\EOF
  11595. #define PACKAGE_GAIA 1
  11596. EOF
  11597. fi
  11598. if test -n "$FXOS_SIMULATOR" -a -z "$GAIADIR" ; then
  11599. { echo "configure: error: FXOS_SIMULATOR=1 requires GAIADIR to be defined" 1>&2; echo "configure: error: FXOS_SIMULATOR=1 requires GAIADIR to be defined" 1>&5; exit 1; }
  11600. fi
  11601. if test -n "$FXOS_SIMULATOR" ; then
  11602. cat >> confdefs.pytmp <<\EOF
  11603. (''' FXOS_SIMULATOR ''', ' 1 ')
  11604. EOF
  11605. cat >> confdefs.h <<\EOF
  11606. #define FXOS_SIMULATOR 1
  11607. EOF
  11608. fi
  11609. # Check whether --enable-synth-pico or --disable-synth-pico was given.
  11610. if test "${enable_synth_pico+set}" = set; then
  11611. enableval="$enable_synth_pico"
  11612. if test "$enableval" = "yes"; then
  11613. MOZ_SYNTH_PICO=1
  11614. elif test "$enableval" = "no"; then
  11615. MOZ_SYNTH_PICO=
  11616. else
  11617. { echo "configure: error: Option, synth-pico, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, synth-pico, does not take an argument ($enableval)." 1>&5; exit 1; }
  11618. fi
  11619. fi
  11620. if test -n "$MOZ_SYNTH_PICO"; then
  11621. cat >> confdefs.pytmp <<\EOF
  11622. (''' MOZ_SYNTH_PICO ''', ' 1 ')
  11623. EOF
  11624. cat >> confdefs.h <<\EOF
  11625. #define MOZ_SYNTH_PICO 1
  11626. EOF
  11627. fi
  11628. if test -n "$MOZ_TIME_MANAGER"; then
  11629. cat >> confdefs.pytmp <<\EOF
  11630. (''' MOZ_TIME_MANAGER ''', ' 1 ')
  11631. EOF
  11632. cat >> confdefs.h <<\EOF
  11633. #define MOZ_TIME_MANAGER 1
  11634. EOF
  11635. fi
  11636. if test -n "$MOZ_AUDIO_CHANNEL_MANAGER"; then
  11637. cat >> confdefs.pytmp <<\EOF
  11638. (''' MOZ_AUDIO_CHANNEL_MANAGER ''', ' 1 ')
  11639. EOF
  11640. cat >> confdefs.h <<\EOF
  11641. #define MOZ_AUDIO_CHANNEL_MANAGER 1
  11642. EOF
  11643. fi
  11644. MOZ_SECUREELEMENT=1,
  11645. if test -n "$MOZ_SECUREELEMENT"; then
  11646. cat >> confdefs.pytmp <<\EOF
  11647. (''' MOZ_SECUREELEMENT ''', ' 1 ')
  11648. EOF
  11649. cat >> confdefs.h <<\EOF
  11650. #define MOZ_SECUREELEMENT 1
  11651. EOF
  11652. fi
  11653. if test -z "$SKIP_LIBRARY_CHECKS"; then
  11654. ac_ext=C
  11655. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11656. ac_cpp='$CXXCPP $CPPFLAGS'
  11657. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11658. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11659. cross_compiling=$ac_cv_prog_cxx_cross
  11660. for ac_func in __cxa_demangle
  11661. do
  11662. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  11663. echo "configure:13478: checking for $ac_func" >&5
  11664. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  11665. echo $ac_n "(cached) $ac_c" 1>&6
  11666. else
  11667. cat > conftest.$ac_ext <<EOF
  11668. #line 13483 "configure"
  11669. #define $ac_func innocuous_$ac_func
  11670. #include "confdefs.h"
  11671. #undef $ac_func
  11672. /* System header to define __stub macros and hopefully few prototypes,
  11673. which can conflict with char $ac_func(); below. */
  11674. #define $ac_func innocuous_$ac_func
  11675. #include <assert.h>
  11676. #undef $ac_func
  11677. /* Override any gcc2 internal prototype to avoid an error. */
  11678. #ifdef __cplusplus
  11679. extern "C"
  11680. #endif
  11681. /* We use char because int might match the return type of a gcc2
  11682. builtin and then its argument prototype would still apply. */
  11683. char $ac_func();
  11684. int main() {
  11685. /* The GNU C library defines this for functions which it implements
  11686. to always fail with ENOSYS. Some functions are actually named
  11687. something starting with __ and the normal name is an alias. */
  11688. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11689. choke me
  11690. #else
  11691. $ac_func();
  11692. #endif
  11693. ; return 0; }
  11694. EOF
  11695. if { (eval echo configure:13513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11696. rm -rf conftest*
  11697. eval "ac_cv_func_$ac_func=yes"
  11698. else
  11699. echo "configure: failed program was:" >&5
  11700. cat conftest.$ac_ext >&5
  11701. rm -rf conftest*
  11702. eval "ac_cv_func_$ac_func=no"
  11703. fi
  11704. rm -f conftest*
  11705. fi
  11706. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  11707. echo "$ac_t""yes" 1>&6
  11708. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  11709. cat >> confdefs.pytmp <<EOF
  11710. (''' $ac_tr_func ''', ' 1 ')
  11711. EOF
  11712. cat >> confdefs.h <<EOF
  11713. #define $ac_tr_func 1
  11714. EOF
  11715. HAVE_DEMANGLE=1
  11716. else
  11717. echo "$ac_t""no" 1>&6
  11718. HAVE_DEMANGLE=
  11719. fi
  11720. done
  11721. ac_ext=c
  11722. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11723. ac_cpp='$CPP $CPPFLAGS'
  11724. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11725. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11726. cross_compiling=$ac_cv_prog_cc_cross
  11727. fi
  11728. # Demangle only for debug or DMD builds
  11729. MOZ_DEMANGLE_SYMBOLS=
  11730. if test "$HAVE_DEMANGLE" && test "$MOZ_DEBUG"; then
  11731. MOZ_DEMANGLE_SYMBOLS=1
  11732. cat >> confdefs.pytmp <<\EOF
  11733. (''' MOZ_DEMANGLE_SYMBOLS ''', ' 1 ')
  11734. EOF
  11735. cat >> confdefs.h <<\EOF
  11736. #define MOZ_DEMANGLE_SYMBOLS 1
  11737. EOF
  11738. fi
  11739. if test -z "$SKIP_LIBRARY_CHECKS"; then
  11740. ac_ext=C
  11741. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11742. ac_cpp='$CXXCPP $CPPFLAGS'
  11743. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11744. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11745. cross_compiling=$ac_cv_prog_cxx_cross
  11746. ac_safe=`echo "unwind.h" | sed 'y%./+-%__p_%'`
  11747. echo $ac_n "checking for unwind.h""... $ac_c" 1>&6
  11748. echo "configure:13575: checking for unwind.h" >&5
  11749. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11750. echo $ac_n "(cached) $ac_c" 1>&6
  11751. else
  11752. cat > conftest.$ac_ext <<EOF
  11753. #line 13580 "configure"
  11754. #include "confdefs.h"
  11755. #include <unwind.h>
  11756. int main() {
  11757. ; return 0; }
  11758. EOF
  11759. if { (eval echo configure:13588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11760. rm -rf conftest*
  11761. eval "ac_cv_header_$ac_safe=yes"
  11762. else
  11763. echo "configure: failed program was:" >&5
  11764. cat conftest.$ac_ext >&5
  11765. rm -rf conftest*
  11766. eval "ac_cv_header_$ac_safe=no"
  11767. fi
  11768. rm -f conftest*
  11769. fi
  11770. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11771. echo "$ac_t""yes" 1>&6
  11772. for ac_func in _Unwind_Backtrace
  11773. do
  11774. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  11775. echo "configure:13605: checking for $ac_func" >&5
  11776. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  11777. echo $ac_n "(cached) $ac_c" 1>&6
  11778. else
  11779. cat > conftest.$ac_ext <<EOF
  11780. #line 13610 "configure"
  11781. #define $ac_func innocuous_$ac_func
  11782. #include "confdefs.h"
  11783. #undef $ac_func
  11784. /* System header to define __stub macros and hopefully few prototypes
  11785. else
  11786. echo "$ac_t""no" 1>&6
  11787. which can conflict with char $ac_func(); below. */
  11788. #define $ac_func innocuous_$ac_func
  11789. #include <assert.h>
  11790. #undef $ac_func
  11791. /* Override any gcc2 internal prototype to avoid an error. */
  11792. #ifdef __cplusplus
  11793. extern "C"
  11794. #endif
  11795. /* We use char because int might match the return type of a gcc2
  11796. builtin and then its argument prototype would still apply. */
  11797. char $ac_func();
  11798. int main() {
  11799. /* The GNU C library defines this for functions which it implements
  11800. to always fail with ENOSYS. Some functions are actually named
  11801. something starting with __ and the normal name is an alias. */
  11802. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11803. choke me
  11804. #else
  11805. $ac_func();
  11806. #endif
  11807. ; return 0; }
  11808. EOF
  11809. if { (eval echo configure:13642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11810. rm -rf conftest*
  11811. eval "ac_cv_func_$ac_func=yes"
  11812. else
  11813. echo "configure: failed program was:" >&5
  11814. cat conftest.$ac_ext >&5
  11815. rm -rf conftest*
  11816. eval "ac_cv_func_$ac_func=no"
  11817. fi
  11818. rm -f conftest*
  11819. fi
  11820. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  11821. echo "$ac_t""yes" 1>&6
  11822. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  11823. cat >> confdefs.pytmp <<EOF
  11824. (''' $ac_tr_func ''', ' 1 ')
  11825. EOF
  11826. cat >> confdefs.h <<EOF
  11827. #define $ac_tr_func 1
  11828. EOF
  11829. else
  11830. echo "$ac_t""no" 1>&6
  11831. fi
  11832. done
  11833. fi
  11834. ac_ext=c
  11835. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11836. ac_cpp='$CPP $CPPFLAGS'
  11837. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11838. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11839. cross_compiling=$ac_cv_prog_cc_cross
  11840. fi
  11841. # Check whether --with-jitreport-granularity or --without-jitreport-granularity was given.
  11842. if test "${with_jitreport_granularity+set}" = set; then
  11843. withval="$with_jitreport_granularity"
  11844. JITREPORT_GRANULARITY=$withval
  11845. else
  11846. JITREPORT_GRANULARITY=3
  11847. fi
  11848. cat >> confdefs.pytmp <<EOF
  11849. (''' JS_DEFAULT_JITREPORT_GRANULARITY ''', r''' $JITREPORT_GRANULARITY ''')
  11850. EOF
  11851. cat >> confdefs.h <<EOF
  11852. #define JS_DEFAULT_JITREPORT_GRANULARITY $JITREPORT_GRANULARITY
  11853. EOF
  11854. # Check whether --enable-mozril-geoloc or --disable-mozril-geoloc was given.
  11855. if test "${enable_mozril_geoloc+set}" = set; then
  11856. enableval="$enable_mozril_geoloc"
  11857. if test "$enableval" = "no"; then
  11858. DISABLE_MOZ_RIL_GEOLOC=1
  11859. elif test "$enableval" = "yes"; then
  11860. DISABLE_MOZ_RIL_GEOLOC=
  11861. else
  11862. { echo "configure: error: Option, mozril-geoloc, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, mozril-geoloc, does not take an argument ($enableval)." 1>&5; exit 1; }
  11863. fi
  11864. fi
  11865. if test -n "$DISABLE_MOZ_RIL_GEOLOC"; then
  11866. cat >> confdefs.pytmp <<\EOF
  11867. (''' DISABLE_MOZ_RIL_GEOLOC ''', ' 1 ')
  11868. EOF
  11869. cat >> confdefs.h <<\EOF
  11870. #define DISABLE_MOZ_RIL_GEOLOC 1
  11871. EOF
  11872. fi
  11873. # Misc. Options
  11874. # Check whether --enable-chrome-format or --disable-chrome-format was given.
  11875. if test "${enable_chrome_format+set}" = set; then
  11876. enableval="$enable_chrome_format"
  11877. MOZ_CHROME_FILE_FORMAT=`echo $enableval | tr A-Z a-z`
  11878. fi
  11879. if test -z "$MOZ_CHROME_FILE_FORMAT"; then
  11880. MOZ_CHROME_FILE_FORMAT=omni
  11881. fi
  11882. if test "$MOZ_CHROME_FILE_FORMAT" = "symlink"; then
  11883. { echo "configure: error: --enable-chrome-format=symlink has been deprecated. It is now used by default in $DIST/bin on platforms that support it" 1>&2; echo "configure: error: --enable-chrome-format=symlink has been deprecated. It is now used by default in $DIST/bin on platforms that support it" 1>&5; exit 1; }
  11884. fi
  11885. if test "$MOZ_CHROME_FILE_FORMAT" != "jar" &&
  11886. test "$MOZ_CHROME_FILE_FORMAT" != "flat" &&
  11887. test "$MOZ_CHROME_FILE_FORMAT" != "omni"; then
  11888. { echo "configure: error: --enable-chrome-format must be set to either jar, flat, or omni" 1>&2; echo "configure: error: --enable-chrome-format must be set to either jar, flat, or omni" 1>&5; exit 1; }
  11889. fi
  11890. # Check whether --enable-chrome-compression or --disable-chrome-compression was given.
  11891. if test "${enable_chrome_compression+set}" = set; then
  11892. enableval="$enable_chrome_compression"
  11893. JAR_COMPRESSION=`echo $enableval | tr A-Z a-z`
  11894. fi
  11895. if test -z "$JAR_COMPRESSION"; then
  11896. JAR_COMPRESSION=deflate
  11897. fi
  11898. if test "$JAR_COMPRESSION" != "none" &&
  11899. test "$JAR_COMPRESSION" != "deflate" &&
  11900. test "$JAR_COMPRESSION" != "brotli"; then
  11901. { echo "configure: error: --enable-chrome-compression must be set to either none, deflate, or brotli" 1>&2; echo "configure: error: --enable-chrome-compression must be set to either none, deflate, or brotli" 1>&5; exit 1; }
  11902. fi
  11903. if test "$MOZ_CHROME_FILE_FORMAT" = "omni"; then
  11904. MOZ_OMNIJAR=1
  11905. cat >> confdefs.pytmp <<\EOF
  11906. (''' MOZ_OMNIJAR ''', ' 1 ')
  11907. EOF
  11908. cat >> confdefs.h <<\EOF
  11909. #define MOZ_OMNIJAR 1
  11910. EOF
  11911. fi
  11912. # Allow someone to change OMNIJAR_NAME in mozconfig
  11913. # Check whether --with-chrome-name or --without-chrome-name was given.
  11914. if test "${with_chrome_name+set}" = set; then
  11915. withval="$with_chrome_name"
  11916. val=`echo $withval`
  11917. OMNIJAR_NAME="$val"
  11918. fi
  11919. # Default Omni Jar Name
  11920. if test -z "$OMNIJAR_NAME" ; then
  11921. OMNIJAR_NAME=omni.ja
  11922. fi
  11923. MOZ_PACKAGER_FORMAT="$MOZ_CHROME_FILE_FORMAT"
  11924. if test "$OS_ARCH" = "WINNT"; then
  11925. MOZ_CHROME_FILE_FORMAT=flat
  11926. else
  11927. MOZ_CHROME_FILE_FORMAT=symlink
  11928. fi
  11929. # Check whether --enable-jetpack or --disable-jetpack was given.
  11930. if test "${enable_jetpack+set}" = set; then
  11931. enableval="$enable_jetpack"
  11932. if test "$enableval" = "no"; then
  11933. MOZ_JETPACK=
  11934. elif test "$enableval" = "yes"; then
  11935. MOZ_JETPACK=1
  11936. else
  11937. { echo "configure: error: Option, jetpack, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, jetpack, does not take an argument ($enableval)." 1>&5; exit 1; }
  11938. fi
  11939. fi
  11940. if test -n "$MOZ_JETPACK"; then
  11941. cat >> confdefs.pytmp <<\EOF
  11942. (''' MOZ_JETPACK ''', ' 1 ')
  11943. EOF
  11944. cat >> confdefs.h <<\EOF
  11945. #define MOZ_JETPACK 1
  11946. EOF
  11947. fi
  11948. # Check whether --enable-devtools-server or --disable-devtools-server was given.
  11949. if test "${enable_devtools_server+set}" = set; then
  11950. enableval="$enable_devtools_server"
  11951. if test "$enableval" = "no"; then
  11952. MOZ_DEVTOOLS_SERVER=
  11953. elif test "$enableval" = "yes"; then
  11954. MOZ_DEVTOOLS_SERVER=1
  11955. else
  11956. { echo "configure: error: Option, devtools-server, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, devtools-server, does not take an argument ($enableval)." 1>&5; exit 1; }
  11957. fi
  11958. fi
  11959. if test -n "$MOZ_DEVTOOLS_SERVER"; then
  11960. if test ! -n "$MOZ_JETPACK"; then
  11961. { echo "configure: error: "Jetpack is required to include the Developer Tools Server"" 1>&2; echo "configure: error: "Jetpack is required to include the Developer Tools Server"" 1>&5; exit 1; }
  11962. fi
  11963. cat >> confdefs.pytmp <<\EOF
  11964. (''' MOZ_DEVTOOLS_SERVER ''', ' 1 ')
  11965. EOF
  11966. cat >> confdefs.h <<\EOF
  11967. #define MOZ_DEVTOOLS_SERVER 1
  11968. EOF
  11969. fi
  11970. # Check whether --enable-devtools or --disable-devtools was given.
  11971. if test "${enable_devtools+set}" = set; then
  11972. enableval="$enable_devtools"
  11973. if test "$enableval" = "yes"; then
  11974. MOZ_DEVTOOLS=1
  11975. elif test "$enableval" = "no"; then
  11976. MOZ_DEVTOOLS=
  11977. else
  11978. { echo "configure: error: Option, devtools, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, devtools, does not take an argument ($enableval)." 1>&5; exit 1; }
  11979. fi
  11980. fi
  11981. if test -n "$MOZ_DEVTOOLS"; then
  11982. if test ! -n "$MOZ_DEVTOOLS_SERVER"; then
  11983. { echo "configure: error: "The Developer Tools Server is required to include the client"" 1>&2; echo "configure: error: "The Developer Tools Server is required to include the client"" 1>&5; exit 1; }
  11984. fi
  11985. cat >> confdefs.pytmp <<\EOF
  11986. (''' MOZ_DEVTOOLS ''', ' 1 ')
  11987. EOF
  11988. cat >> confdefs.h <<\EOF
  11989. #define MOZ_DEVTOOLS 1
  11990. EOF
  11991. fi
  11992. # Check whether --enable-userinfo or --disable-userinfo was given.
  11993. if test "${enable_userinfo+set}" = set; then
  11994. enableval="$enable_userinfo"
  11995. if test "$enableval" = "no"; then
  11996. MOZ_USERINFO=
  11997. elif test "$enableval" = "yes"; then
  11998. MOZ_USERINFO=1
  11999. else
  12000. { echo "configure: error: Option, userinfo, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, userinfo, does not take an argument ($enableval)." 1>&5; exit 1; }
  12001. fi
  12002. fi
  12003. if test -n "$MOZ_USERINFO"; then
  12004. cat >> confdefs.pytmp <<\EOF
  12005. (''' MOZ_USERINFO ''', ' 1 ')
  12006. EOF
  12007. cat >> confdefs.h <<\EOF
  12008. #define MOZ_USERINFO 1
  12009. EOF
  12010. fi
  12011. # Check whether --with-default-mozilla-five-home or --without-default-mozilla-five-home was given.
  12012. if test "${with_default_mozilla_five_home+set}" = set; then
  12013. withval="$with_default_mozilla_five_home"
  12014. val=`echo $withval`
  12015. cat >> confdefs.pytmp <<EOF
  12016. (''' MOZ_DEFAULT_MOZILLA_FIVE_HOME ''', r''' "$val" ''')
  12017. EOF
  12018. cat >> confdefs.h <<EOF
  12019. #define MOZ_DEFAULT_MOZILLA_FIVE_HOME "$val"
  12020. EOF
  12021. fi
  12022. # Check whether --with-user-appdir or --without-user-appdir was given.
  12023. if test "${with_user_appdir+set}" = set; then
  12024. withval="$with_user_appdir"
  12025. val=`echo $withval`
  12026. if echo "$val" | grep "\/" >/dev/null; then
  12027. { echo "configure: error: "Homedir must be single relative path."" 1>&2; echo "configure: error: "Homedir must be single relative path."" 1>&5; exit 1; }
  12028. else
  12029. MOZ_USER_DIR="$val"
  12030. fi
  12031. fi
  12032. cat >> confdefs.pytmp <<EOF
  12033. (''' MOZ_USER_DIR ''', r''' "$MOZ_USER_DIR" ''')
  12034. EOF
  12035. cat >> confdefs.h <<EOF
  12036. #define MOZ_USER_DIR "$MOZ_USER_DIR"
  12037. EOF
  12038. MOZ_DOC_INPUT_DIRS='./dist/include ./dist/idl'
  12039. # Check whether --with-doc-input-dirs or --without-doc-input-dirs was given.
  12040. if test "${with_doc_input_dirs+set}" = set; then
  12041. withval="$with_doc_input_dirs"
  12042. MOZ_DOC_INPUT_DIRS=`echo "$withval" | sed "s/,/ /g"`
  12043. fi
  12044. MOZ_DOC_INCLUDE_DIRS='./dist/include ./dist/include/nspr'
  12045. # Check whether --with-doc-include-dirs or --without-doc-include-dirs was given.
  12046. if test "${with_doc_include_dirs+set}" = set; then
  12047. withval="$with_doc_include_dirs"
  12048. MOZ_DOC_INCLUDE_DIRS=`echo "$withval" | sed "s/,/ /g"`
  12049. fi
  12050. MOZ_DOC_OUTPUT_DIR='./dist/docs'
  12051. # Check whether --with-doc-output-dir or --without-doc-output-dir was given.
  12052. if test "${with_doc_output_dir+set}" = set; then
  12053. withval="$with_doc_output_dir"
  12054. MOZ_DOC_OUTPUT_DIR=$withval
  12055. fi
  12056. if test -z "$SKIP_COMPILER_CHECKS"; then
  12057. # Compiler Options
  12058. echo $ac_n "checking for -pipe support""... $ac_c" 1>&6
  12059. echo "configure:13974: checking for -pipe support" >&5
  12060. if test -n "$GNU_CC" -a -n "$GNU_CXX"; then
  12061. CFLAGS="$CFLAGS -pipe"
  12062. CXXFLAGS="$CXXFLAGS -pipe"
  12063. echo "$ac_t""yes" 1>&6
  12064. else
  12065. echo "$ac_t""no" 1>&6
  12066. fi
  12067. _SAVE_CFLAGS="$CFLAGS"
  12068. CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction"
  12069. echo $ac_n "checking whether C compiler supports -fprofile-generate""... $ac_c" 1>&6
  12070. echo "configure:13988: checking whether C compiler supports -fprofile-generate" >&5
  12071. cat > conftest.$ac_ext <<EOF
  12072. #line 13990 "configure"
  12073. #include "confdefs.h"
  12074. int main() {
  12075. return 0;
  12076. ; return 0; }
  12077. EOF
  12078. if { (eval echo configure:13997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12079. rm -rf conftest*
  12080. PROFILE_GEN_CFLAGS="-fprofile-generate"
  12081. result="yes"
  12082. else
  12083. echo "configure: failed program was:" >&5
  12084. cat conftest.$ac_ext >&5
  12085. rm -rf conftest*
  12086. result="no"
  12087. fi
  12088. rm -f conftest*
  12089. echo "$ac_t""$result" 1>&6
  12090. if test $result = "yes"; then
  12091. PROFILE_GEN_LDFLAGS="-fprofile-generate"
  12092. PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch"
  12093. PROFILE_USE_LDFLAGS="-fprofile-use"
  12094. fi
  12095. CFLAGS="$_SAVE_CFLAGS"
  12096. fi # ! SKIP_COMPILER_CHECKS
  12097. cat >> confdefs.pytmp <<\EOF
  12098. (''' CPP_THROW_NEW ''', r''' throw() ''')
  12099. EOF
  12100. cat >> confdefs.h <<\EOF
  12101. #define CPP_THROW_NEW throw()
  12102. EOF
  12103. ac_ext=c
  12104. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  12105. ac_cpp='$CPP $CPPFLAGS'
  12106. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  12107. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  12108. cross_compiling=$ac_cv_prog_cc_cross
  12109. if test "$COMPILE_ENVIRONMENT"; then
  12110. echo $ac_n "checking what kind of list files are supported by the linker""... $ac_c" 1>&6
  12111. echo "configure:14044: checking what kind of list files are supported by the linker" >&5
  12112. if eval "test \"`echo '$''{'EXPAND_LIBS_LIST_STYLE'+set}'`\" = set"; then
  12113. echo $ac_n "(cached) $ac_c" 1>&6
  12114. else
  12115. echo "int main() {return 0;}" > conftest.${ac_ext}
  12116. if { ac_try='${CC-cc} -o conftest.${OBJ_SUFFIX} -c $CFLAGS $CPPFLAGS conftest.${ac_ext} 1>&5'; { (eval echo configure:14049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest.${OBJ_SUFFIX}; then
  12117. echo "INPUT(conftest.${OBJ_SUFFIX})" > conftest.list
  12118. if { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS conftest.list $LIBS 1>&5'; { (eval echo configure:14051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then
  12119. EXPAND_LIBS_LIST_STYLE=linkerscript
  12120. else
  12121. echo "conftest.${OBJ_SUFFIX}" > conftest.list
  12122. if { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS -Wl,-filelist,conftest.list $LIBS 1>&5'; { (eval echo configure:14055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then
  12123. EXPAND_LIBS_LIST_STYLE=filelist
  12124. elif { ac_try='${CC-cc} -o conftest${ac_exeext} $LDFLAGS @conftest.list $LIBS 1>&5'; { (eval echo configure:14057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } && test -s conftest${ac_exeext}; then
  12125. EXPAND_LIBS_LIST_STYLE=list
  12126. else
  12127. EXPAND_LIBS_LIST_STYLE=none
  12128. fi
  12129. fi
  12130. else
  12131. { echo "configure: error: couldn't compile a simple C file" 1>&2; echo "configure: error: couldn't compile a simple C file" 1>&5; exit 1; }
  12132. fi
  12133. rm -rf conftest*
  12134. fi
  12135. echo "$ac_t""$EXPAND_LIBS_LIST_STYLE" 1>&6
  12136. LIBS_DESC_SUFFIX=desc
  12137. if test "$GCC_USE_GNU_LD"; then
  12138. echo $ac_n "checking what kind of ordering can be done with the linker""... $ac_c" 1>&6
  12139. echo "configure:14077: checking what kind of ordering can be done with the linker" >&5
  12140. if eval "test \"`echo '$''{'EXPAND_LIBS_ORDER_STYLE'+set}'`\" = set"; then
  12141. echo $ac_n "(cached) $ac_c" 1>&6
  12142. else
  12143. > conftest.order
  12144. _SAVE_LDFLAGS="$LDFLAGS"
  12145. LDFLAGS="${LDFLAGS} -Wl,--section-ordering-file,conftest.order"
  12146. cat > conftest.$ac_ext <<EOF
  12147. #line 14085 "configure"
  12148. #include "confdefs.h"
  12149. int main() {
  12150. ; return 0; }
  12151. EOF
  12152. if { (eval echo configure:14092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12153. rm -rf conftest*
  12154. EXPAND_LIBS_ORDER_STYLE=section-ordering-file
  12155. else
  12156. echo "configure: failed program was:" >&5
  12157. cat conftest.$ac_ext >&5
  12158. rm -rf conftest*
  12159. EXPAND_LIBS_ORDER_STYLE=
  12160. fi
  12161. rm -f conftest*
  12162. LDFLAGS="$_SAVE_LDFLAGS"
  12163. if test -z "$EXPAND_LIBS_ORDER_STYLE"; then
  12164. if { ac_try='${CC-cc} ${DSO_LDOPTS} ${LDFLAGS} -o ${DLL_PREFIX}conftest${DLL_SUFFIX} -Wl'; { (eval echo configure:14104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
  12165. EXPAND_LIBS_ORDER_STYLE=linkerscript
  12166. else
  12167. EXPAND_LIBS_ORDER_STYLE=none
  12168. fi
  12169. rm -f ${DLL_PREFIX}conftest${DLL_SUFFIX}
  12170. fi
  12171. fi
  12172. echo "$ac_t""$EXPAND_LIBS_ORDER_STYLE" 1>&6
  12173. fi
  12174. fi # COMPILE_ENVIRONMENT
  12175. # Build dependencies
  12176. if test "$GNU_CC" -a "$GNU_CXX"; then
  12177. _DEPEND_CFLAGS='-MD -MP -MF $(MDDEPDIR)/$(@F).pp'
  12178. else
  12179. if test -z "$_WIN32_MSVC"; then
  12180. _USE_CPP_INCLUDE_FLAG=
  12181. _DEFINES_CFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
  12182. _DEFINES_CXXFLAGS='$(ACDEFINES) -D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT'
  12183. else
  12184. echo '#include <stdio.h>' > dummy-hello.c
  12185. _CL_PREFIX_REGEX="^\([^:]*:.*[ :] \)\(.*\\\stdio.h\)$"
  12186. CL_INCLUDES_PREFIX=`${CC} -showIncludes -c -Fonul dummy-hello.c 2>&1 | sed -ne 's/'"$_CL_PREFIX_REGEX"'/\1/p'`
  12187. _CL_STDIO_PATH=`${CC} -showIncludes -c -Fonul dummy-hello.c 2>&1 | sed -ne 's/'"$_CL_PREFIX_REGEX"'/\2/p'`
  12188. if ! test -e "$_CL_STDIO_PATH"; then
  12189. { echo "configure: error: Unable to parse cl -showIncludes prefix. This compiler's locale has an unsupported formatting." 1>&2; echo "configure: error: Unable to parse cl -showIncludes prefix. This compiler's locale has an unsupported formatting." 1>&5; exit 1; }
  12190. fi
  12191. if test -z "$CL_INCLUDES_PREFIX"; then
  12192. { echo "configure: error: Cannot find cl -showIncludes prefix." 1>&2; echo "configure: error: Cannot find cl -showIncludes prefix." 1>&5; exit 1; }
  12193. fi
  12194. rm -f dummy-hello.c
  12195. NONASCII=$'\241\241'
  12196. fi
  12197. fi
  12198. # Static build options
  12199. # Option to enable shared gkmedias on other target operating systems.
  12200. # This is overriden for Windows regardless if it is set or not.
  12201. # Check whether --enable-shared-media or --disable-shared-media was given.
  12202. if test "${enable_shared_media+set}" = set; then
  12203. enableval="$enable_shared_media"
  12204. if test "$enableval" = "yes"; then
  12205. GKMEDIAS_SHARED_LIBRARY=1
  12206. elif test "$enableval" = "no"; then
  12207. GKMEDIAS_SHARED_LIBRARY=
  12208. else
  12209. { echo "configure: error: Option, shared-media, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, shared-media, does not take an argument ($enableval)." 1>&5; exit 1; }
  12210. fi
  12211. fi
  12212. # We want gkmedias always be enabled on Windows regardless of the enable bool.
  12213. if test "$OS_ARCH" = "WINNT"; then
  12214. GKMEDIAS_SHARED_LIBRARY=1
  12215. fi
  12216. if test -n "$GKMEDIAS_SHARED_LIBRARY"; then
  12217. cat >> confdefs.pytmp <<\EOF
  12218. (''' GKMEDIAS_SHARED_LIBRARY ''', ' 1 ')
  12219. EOF
  12220. cat >> confdefs.h <<\EOF
  12221. #define GKMEDIAS_SHARED_LIBRARY 1
  12222. EOF
  12223. fi
  12224. # Shared JS or gkmedias needs zlib in mozglue
  12225. if test -z "$MOZ_SYSTEM_ZLIB"; then
  12226. # XXX: Currently JS_SHARED_LIBRARY lives in mozconfigure
  12227. if test -n "$JS_SHARED_LIBRARY" -o "$GKMEDIAS_SHARED_LIBRARY"; then
  12228. ZLIB_IN_MOZGLUE=1
  12229. cat >> confdefs.pytmp <<\EOF
  12230. (''' ZLIB_IN_MOZGLUE ''', ' 1 ')
  12231. EOF
  12232. cat >> confdefs.h <<\EOF
  12233. #define ZLIB_IN_MOZGLUE 1
  12234. EOF
  12235. fi
  12236. fi
  12237. # Standalone module options (Not for building Mozilla)
  12238. if test -z "$SKIP_PATH_CHECKS"; then
  12239. if test -z "${GLIB_CFLAGS}" -o -z "${GLIB_LIBS}" ; then
  12240. if test "$MOZ_ENABLE_GTK" ; then
  12241. succeeded=no
  12242. if test -z "$PKG_CONFIG"; then
  12243. echo "*** The pkg-config script could not be found. Make sure it is"
  12244. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12245. echo "*** to the full path to pkg-config."
  12246. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12247. else
  12248. PKG_CONFIG_MIN_VERSION=0.9.0
  12249. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12250. echo $ac_n "checking for glib-2.0 >= 1.3.7 gobject-2.0""... $ac_c" 1>&6
  12251. echo "configure:14218: checking for glib-2.0 >= 1.3.7 gobject-2.0" >&5
  12252. if $PKG_CONFIG --exists "glib-2.0 >= 1.3.7 gobject-2.0" ; then
  12253. echo "$ac_t""yes" 1>&6
  12254. succeeded=yes
  12255. echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
  12256. echo "configure:14225: checking GLIB_CFLAGS" >&5
  12257. GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.7 gobject-2.0"`
  12258. echo "$ac_t""$GLIB_CFLAGS" 1>&6
  12259. echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
  12260. echo "configure:14230: checking GLIB_LIBS" >&5
  12261. ## Remove evil flags like -Wl,--export-dynamic
  12262. GLIB_LIBS="`$PKG_CONFIG --libs \"glib-2.0 >= 1.3.7 gobject-2.0\" |sed s/-Wl,--export-dynamic//g`"
  12263. echo "$ac_t""$GLIB_LIBS" 1>&6
  12264. else
  12265. GLIB_CFLAGS=""
  12266. GLIB_LIBS=""
  12267. ## If we have a custom action on failure, don't print errors, but
  12268. ## do set a variable so people can do so.
  12269. GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.7 gobject-2.0"`
  12270. echo $GLIB_PKG_ERRORS
  12271. fi
  12272. else
  12273. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12274. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12275. fi
  12276. fi
  12277. if test $succeeded = yes; then
  12278. :
  12279. else
  12280. if test "$COMPILE_ENVIRONMENT"; then
  12281. { echo "configure: error: Library requirements (glib-2.0 >= 1.3.7 gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (glib-2.0 >= 1.3.7 gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  12282. fi
  12283. fi
  12284. fi
  12285. fi
  12286. fi
  12287. if test -z "${GLIB_GMODULE_LIBS}" \
  12288. -a -n "${GLIB_CONFIG}"\
  12289. -a "${GLIB_CONFIG}" != no\
  12290. ; then
  12291. GLIB_GMODULE_LIBS=`$GLIB_CONFIG gmodule --libs`
  12292. fi
  12293. if test "$USE_FC_FREETYPE"; then
  12294. if test "$COMPILE_ENVIRONMENT"; then
  12295. if test "$_HAVE_FREETYPE2" -a -z "$MOZ_TREE_FREETYPE"; then
  12296. _SAVE_LIBS="$LIBS"
  12297. _SAVE_CFLAGS="$CFLAGS"
  12298. LIBS="$LIBS $FT2_LIBS"
  12299. CFLAGS="$CFLAGS $FT2_CFLAGS"
  12300. echo $ac_n "checking for FT_Bitmap_Size.y_ppem""... $ac_c" 1>&6
  12301. echo "configure:14281: checking for FT_Bitmap_Size.y_ppem" >&5
  12302. if eval "test \"`echo '$''{'ac_cv_member_FT_Bitmap_Size_y_ppem'+set}'`\" = set"; then
  12303. echo $ac_n "(cached) $ac_c" 1>&6
  12304. else
  12305. cat > conftest.$ac_ext <<EOF
  12306. #line 14286 "configure"
  12307. #include "confdefs.h"
  12308. #include <ft2build.h>
  12309. #include FT_FREETYPE_H
  12310. int main() {
  12311. FT_Bitmap_Size s;
  12312. if (sizeof s.y_ppem) return 0;
  12313. return 1
  12314. ; return 0; }
  12315. EOF
  12316. if { (eval echo configure:14296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12317. rm -rf conftest*
  12318. ac_cv_member_FT_Bitmap_Size_y_ppem=yes
  12319. else
  12320. echo "configure: failed program was:" >&5
  12321. cat conftest.$ac_ext >&5
  12322. rm -rf conftest*
  12323. ac_cv_member_FT_Bitmap_Size_y_ppem=no
  12324. fi
  12325. rm -f conftest*
  12326. fi
  12327. echo "$ac_t""$ac_cv_member_FT_Bitmap_Size_y_ppem" 1>&6
  12328. if test "$ac_cv_member_FT_Bitmap_Size_y_ppem" = yes; then
  12329. HAVE_FT_BITMAP_SIZE_Y_PPEM=1
  12330. else
  12331. HAVE_FT_BITMAP_SIZE_Y_PPEM=0
  12332. fi
  12333. cat >> confdefs.pytmp <<EOF
  12334. (''' HAVE_FT_BITMAP_SIZE_Y_PPEM ''', r''' $HAVE_FT_BITMAP_SIZE_Y_PPEM ''')
  12335. EOF
  12336. cat >> confdefs.h <<EOF
  12337. #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
  12338. EOF
  12339. for ac_func in FT_GlyphSlot_Embolden FT_Load_Sfnt_Table
  12340. do
  12341. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  12342. echo "configure:14325: checking for $ac_func" >&5
  12343. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  12344. echo $ac_n "(cached) $ac_c" 1>&6
  12345. else
  12346. cat > conftest.$ac_ext <<EOF
  12347. #line 14330 "configure"
  12348. #define $ac_func innocuous_$ac_func
  12349. #include "confdefs.h"
  12350. #undef $ac_func
  12351. /* System header to define __stub macros and hopefully few prototypes,
  12352. which can conflict with char $ac_func(); below. */
  12353. #define $ac_func innocuous_$ac_func
  12354. #include <assert.h>
  12355. #undef $ac_func
  12356. /* Override any gcc2 internal prototype to avoid an error. */
  12357. /* We use char because int might match the return type of a gcc2
  12358. builtin and then its argument prototype would still apply. */
  12359. char $ac_func();
  12360. int main() {
  12361. /* The GNU C library defines this for functions which it implements
  12362. to always fail with ENOSYS. Some functions are actually named
  12363. something starting with __ and the normal name is an alias. */
  12364. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  12365. choke me
  12366. #else
  12367. $ac_func();
  12368. #endif
  12369. ; return 0; }
  12370. EOF
  12371. if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12372. rm -rf conftest*
  12373. eval "ac_cv_func_$ac_func=yes"
  12374. else
  12375. echo "configure: failed program was:" >&5
  12376. cat conftest.$ac_ext >&5
  12377. rm -rf conftest*
  12378. eval "ac_cv_func_$ac_func=no"
  12379. fi
  12380. rm -f conftest*
  12381. fi
  12382. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  12383. echo "$ac_t""yes" 1>&6
  12384. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  12385. cat >> confdefs.pytmp <<EOF
  12386. (''' $ac_tr_func ''', ' 1 ')
  12387. EOF
  12388. cat >> confdefs.h <<EOF
  12389. #define $ac_tr_func 1
  12390. EOF
  12391. else
  12392. echo "$ac_t""no" 1>&6
  12393. fi
  12394. done
  12395. LIBS="$_SAVE_LIBS"
  12396. CFLAGS="$_SAVE_CFLAGS"
  12397. fi
  12398. _SAVE_CPPFLAGS="$CPPFLAGS"
  12399. CPPFLAGS="$CPPFLAGS $FT2_CFLAGS $XCFLAGS"
  12400. for ac_hdr in fontconfig/fcfreetype.h
  12401. do
  12402. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  12403. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  12404. echo "configure:14395: checking for $ac_hdr" >&5
  12405. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12406. echo $ac_n "(cached) $ac_c" 1>&6
  12407. else
  12408. cat > conftest.$ac_ext <<EOF
  12409. #line 14400 "configure"
  12410. #include "confdefs.h"
  12411. #include <fontconfig/fontconfig.h>
  12412. #include <$ac_hdr>
  12413. int main() {
  12414. ; return 0; }
  12415. EOF
  12416. if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12417. rm -rf conftest*
  12418. eval "ac_cv_header_$ac_safe=yes"
  12419. else
  12420. echo "configure: failed program was:" >&5
  12421. cat conftest.$ac_ext >&5
  12422. rm -rf conftest*
  12423. eval "ac_cv_header_$ac_safe=no"
  12424. fi
  12425. rm -f conftest*
  12426. fi
  12427. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12428. echo "$ac_t""yes" 1>&6
  12429. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  12430. cat >> confdefs.pytmp <<EOF
  12431. (''' $ac_tr_hdr ''', ' 1 ')
  12432. EOF
  12433. cat >> confdefs.h <<EOF
  12434. #define $ac_tr_hdr 1
  12435. EOF
  12436. else
  12437. echo "$ac_t""no" 1>&6
  12438. { echo "configure: error: Can't find header fontconfig/fcfreetype.h." 1>&2; echo "configure: error: Can't find header fontconfig/fcfreetype.h." 1>&5; exit 1; }
  12439. fi
  12440. done
  12441. CPPFLAGS="$_SAVE_CPPFLAGS"
  12442. fi
  12443. fi
  12444. MOZ_TREE_CAIRO=1
  12445. # Check whether --enable-system-cairo or --disable-system-cairo was given.
  12446. if test "${enable_system_cairo+set}" = set; then
  12447. enableval="$enable_system_cairo"
  12448. if test "$enableval" = "yes"; then
  12449. MOZ_TREE_CAIRO=
  12450. elif test "$enableval" = "no"; then
  12451. MOZ_TREE_CAIRO=1
  12452. else
  12453. { echo "configure: error: Option, system-cairo, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, system-cairo, does not take an argument ($enableval)." 1>&5; exit 1; }
  12454. fi
  12455. fi
  12456. MOZ_TREE_PIXMAN=1
  12457. # Check whether --enable-system-pixman or --disable-system-pixman was given.
  12458. if test "${enable_system_pixman+set}" = set; then
  12459. enableval="$enable_system_pixman"
  12460. if test "$enableval" = "yes"; then
  12461. MOZ_TREE_PIXMAN=
  12462. elif test "$enableval" = "no"; then
  12463. MOZ_TREE_PIXMAN=force
  12464. else
  12465. { echo "configure: error: Option, system-pixman, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, system-pixman, does not take an argument ($enableval)." 1>&5; exit 1; }
  12466. fi
  12467. else
  12468. MOZ_TREE_PIXMAN=1
  12469. fi
  12470. # System cairo depends on system pixman
  12471. if test "$MOZ_TREE_PIXMAN" = "force"; then
  12472. if test -z "$MOZ_TREE_CAIRO"; then
  12473. { echo "configure: error: --disable-system-pixman is incompatible with --enable-system-cairo." 1>&2; echo "configure: error: --disable-system-pixman is incompatible with --enable-system-cairo." 1>&5; exit 1; }
  12474. else
  12475. MOZ_TREE_PIXMAN=1
  12476. fi
  12477. elif test -z "$MOZ_TREE_CAIRO"; then
  12478. MOZ_TREE_PIXMAN=
  12479. fi
  12480. if test "$MOZ_TREE_PIXMAN"; then
  12481. cat >> confdefs.pytmp <<\EOF
  12482. (''' MOZ_TREE_PIXMAN ''', ' 1 ')
  12483. EOF
  12484. cat >> confdefs.h <<\EOF
  12485. #define MOZ_TREE_PIXMAN 1
  12486. EOF
  12487. else
  12488. succeeded=no
  12489. if test -z "$PKG_CONFIG"; then
  12490. echo "*** The pkg-config script could not be found. Make sure it is"
  12491. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12492. echo "*** to the full path to pkg-config."
  12493. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12494. else
  12495. PKG_CONFIG_MIN_VERSION=0.9.0
  12496. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12497. echo $ac_n "checking for pixman-1 >= 0.19.2""... $ac_c" 1>&6
  12498. echo "configure:14503: checking for pixman-1 >= 0.19.2" >&5
  12499. if $PKG_CONFIG --exists "pixman-1 >= 0.19.2" ; then
  12500. echo "$ac_t""yes" 1>&6
  12501. succeeded=yes
  12502. echo $ac_n "checking MOZ_PIXMAN_CFLAGS""... $ac_c" 1>&6
  12503. echo "configure:14510: checking MOZ_PIXMAN_CFLAGS" >&5
  12504. MOZ_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "pixman-1 >= 0.19.2"`
  12505. echo "$ac_t""$MOZ_PIXMAN_CFLAGS" 1>&6
  12506. echo $ac_n "checking MOZ_PIXMAN_LIBS""... $ac_c" 1>&6
  12507. echo "configure:14515: checking MOZ_PIXMAN_LIBS" >&5
  12508. ## Remove evil flags like -Wl,--export-dynamic
  12509. MOZ_PIXMAN_LIBS="`$PKG_CONFIG --libs \"pixman-1 >= 0.19.2\" |sed s/-Wl,--export-dynamic//g`"
  12510. echo "$ac_t""$MOZ_PIXMAN_LIBS" 1>&6
  12511. else
  12512. MOZ_PIXMAN_CFLAGS=""
  12513. MOZ_PIXMAN_LIBS=""
  12514. ## If we have a custom action on failure, don't print errors, but
  12515. ## do set a variable so people can do so.
  12516. MOZ_PIXMAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pixman-1 >= 0.19.2"`
  12517. echo $MOZ_PIXMAN_PKG_ERRORS
  12518. fi
  12519. else
  12520. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12521. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12522. fi
  12523. fi
  12524. if test $succeeded = yes; then
  12525. :
  12526. else
  12527. if test "$COMPILE_ENVIRONMENT"; then
  12528. { echo "configure: error: Library requirements (pixman-1 >= 0.19.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (pixman-1 >= 0.19.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  12529. fi
  12530. fi
  12531. fi
  12532. if test "$MOZ_TREE_CAIRO"; then
  12533. MOZ_CAIRO_CFLAGS="-I${DIST}/include/cairo"
  12534. cat >> confdefs.pytmp <<\EOF
  12535. (''' MOZ_TREE_CAIRO ''', ' 1 ')
  12536. EOF
  12537. cat >> confdefs.h <<\EOF
  12538. #define MOZ_TREE_CAIRO 1
  12539. EOF
  12540. if test "$OS_ARCH" = "WINNT"; then
  12541. # For now we assume that we will have a uint64_t available through
  12542. # one of the above headers or mozstdint.h.
  12543. cat >> confdefs.pytmp <<\EOF
  12544. (''' HAVE_UINT64_T ''', ' 1 ')
  12545. EOF
  12546. cat >> confdefs.h <<\EOF
  12547. #define HAVE_UINT64_T 1
  12548. EOF
  12549. fi
  12550. # Define macros for cairo-features.h
  12551. TEE_SURFACE_FEATURE="#define CAIRO_HAS_TEE_SURFACE 1"
  12552. if test "$MOZ_X11"; then
  12553. XLIB_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_SURFACE 1"
  12554. XLIB_XRENDER_SURFACE_FEATURE="#define CAIRO_HAS_XLIB_XRENDER_SURFACE 1"
  12555. PS_SURFACE_FEATURE="#define CAIRO_HAS_PS_SURFACE 1"
  12556. fi
  12557. if test "$_HAVE_FREETYPE2"; then
  12558. FT_FONT_FEATURE="#define CAIRO_HAS_FT_FONT 1"
  12559. MOZ_ENABLE_CAIRO_FT=1
  12560. CAIRO_FT_CFLAGS="$FT2_CFLAGS"
  12561. fi
  12562. case "$MOZ_WIDGET_TOOLKIT" in
  12563. cocoa | uikit)
  12564. QUARTZ_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_SURFACE 1"
  12565. QUARTZ_IMAGE_SURFACE_FEATURE="#define CAIRO_HAS_QUARTZ_IMAGE_SURFACE 1"
  12566. QUARTZ_FONT_FEATURE="#define CAIRO_HAS_QUARTZ_FONT 1"
  12567. ;;
  12568. windows)
  12569. WIN32_D2D_SURFACE_FEATURE="#define CAIRO_HAS_D2D_SURFACE 1"
  12570. WIN32_DWRITE_FONT_FEATURE="#define CAIRO_HAS_DWRITE_FONT 1"
  12571. WIN32_FONT_FEATURE="#define CAIRO_HAS_WIN32_FONT 1"
  12572. WIN32_SURFACE_FEATURE="#define CAIRO_HAS_WIN32_SURFACE 1"
  12573. MOZ_ENABLE_D2D_SURFACE=1
  12574. MOZ_ENABLE_DWRITE_FONT=1
  12575. if test "$COMPILE_ENVIRONMENT"; then
  12576. ac_safe=`echo "d3d9.h" | sed 'y%./+-%__p_%'`
  12577. echo $ac_n "checking for d3d9.h""... $ac_c" 1>&6
  12578. echo "configure:14599: checking for d3d9.h" >&5
  12579. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12580. echo $ac_n "(cached) $ac_c" 1>&6
  12581. else
  12582. cat > conftest.$ac_ext <<EOF
  12583. #line 14604 "configure"
  12584. #include "confdefs.h"
  12585. #include <d3d9.h>
  12586. int main() {
  12587. ; return 0; }
  12588. EOF
  12589. if { (eval echo configure:14612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12590. rm -rf conftest*
  12591. eval "ac_cv_header_$ac_safe=yes"
  12592. else
  12593. echo "configure: failed program was:" >&5
  12594. cat conftest.$ac_ext >&5
  12595. rm -rf conftest*
  12596. eval "ac_cv_header_$ac_safe=no"
  12597. fi
  12598. rm -f conftest*
  12599. fi
  12600. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12601. echo "$ac_t""yes" 1>&6
  12602. MOZ_ENABLE_D3D9_LAYER=1
  12603. else
  12604. echo "$ac_t""no" 1>&6
  12605. fi
  12606. if test -n "$WIN32_D2D_SURFACE_FEATURE"; then
  12607. ac_safe=`echo "d3d10.h" | sed 'y%./+-%__p_%'`
  12608. echo $ac_n "checking for d3d10.h""... $ac_c" 1>&6
  12609. echo "configure:14636: checking for d3d10.h" >&5
  12610. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  12611. echo $ac_n "(cached) $ac_c" 1>&6
  12612. else
  12613. cat > conftest.$ac_ext <<EOF
  12614. #line 14641 "configure"
  12615. #include "confdefs.h"
  12616. #include <d3d10.h>
  12617. int main() {
  12618. ; return 0; }
  12619. EOF
  12620. if { (eval echo configure:14649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  12621. rm -rf conftest*
  12622. eval "ac_cv_header_$ac_safe=yes"
  12623. else
  12624. echo "configure: failed program was:" >&5
  12625. cat conftest.$ac_ext >&5
  12626. rm -rf conftest*
  12627. eval "ac_cv_header_$ac_safe=no"
  12628. fi
  12629. rm -f conftest*
  12630. fi
  12631. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  12632. echo "$ac_t""yes" 1>&6
  12633. MOZ_ENABLE_D3D10_LAYER=1
  12634. else
  12635. echo "$ac_t""no" 1>&6
  12636. fi
  12637. fi
  12638. fi
  12639. ;;
  12640. esac
  12641. if test "$USE_FC_FREETYPE"; then
  12642. FC_FONT_FEATURE="#define CAIRO_HAS_FC_FONT 1"
  12643. fi
  12644. if test "$MOZ_X11"; then
  12645. MOZ_CAIRO_OSLIBS="$MOZ_CAIRO_OSLIBS $XLDFLAGS -lXrender"
  12646. fi
  12647. CAIRO_FEATURES_H=gfx/cairo/cairo/src/cairo-features.h
  12648. else
  12649. succeeded=no
  12650. if test -z "$PKG_CONFIG"; then
  12651. echo "*** The pkg-config script could not be found. Make sure it is"
  12652. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12653. echo "*** to the full path to pkg-config."
  12654. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12655. else
  12656. PKG_CONFIG_MIN_VERSION=0.9.0
  12657. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12658. echo $ac_n "checking for cairo >= $CAIRO_VERSION""... $ac_c" 1>&6
  12659. echo "configure:14718: checking for cairo >= $CAIRO_VERSION" >&5
  12660. if $PKG_CONFIG --exists "cairo >= $CAIRO_VERSION" ; then
  12661. echo "$ac_t""yes" 1>&6
  12662. succeeded=yes
  12663. echo $ac_n "checking CAIRO_CFLAGS""... $ac_c" 1>&6
  12664. echo "configure:14725: checking CAIRO_CFLAGS" >&5
  12665. CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= $CAIRO_VERSION"`
  12666. echo "$ac_t""$CAIRO_CFLAGS" 1>&6
  12667. echo $ac_n "checking CAIRO_LIBS""... $ac_c" 1>&6
  12668. echo "configure:14730: checking CAIRO_LIBS" >&5
  12669. ## Remove evil flags like -Wl,--export-dynamic
  12670. CAIRO_LIBS="`$PKG_CONFIG --libs \"cairo >= $CAIRO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12671. echo "$ac_t""$CAIRO_LIBS" 1>&6
  12672. else
  12673. CAIRO_CFLAGS=""
  12674. CAIRO_LIBS=""
  12675. ## If we have a custom action on failure, don't print errors, but
  12676. ## do set a variable so people can do so.
  12677. CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= $CAIRO_VERSION"`
  12678. echo $CAIRO_PKG_ERRORS
  12679. fi
  12680. else
  12681. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12682. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12683. fi
  12684. fi
  12685. if test $succeeded = yes; then
  12686. :
  12687. else
  12688. if test "$COMPILE_ENVIRONMENT"; then
  12689. { echo "configure: error: Library requirements (cairo >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (cairo >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  12690. fi
  12691. fi
  12692. MOZ_CAIRO_CFLAGS="$CAIRO_CFLAGS"
  12693. MOZ_CAIRO_LIBS="$CAIRO_LIBS"
  12694. succeeded=no
  12695. if test -z "$PKG_CONFIG"; then
  12696. echo "*** The pkg-config script could not be found. Make sure it is"
  12697. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12698. echo "*** to the full path to pkg-config."
  12699. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12700. else
  12701. PKG_CONFIG_MIN_VERSION=0.9.0
  12702. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12703. echo $ac_n "checking for cairo-tee >= $CAIRO_VERSION""... $ac_c" 1>&6
  12704. echo "configure:14772: checking for cairo-tee >= $CAIRO_VERSION" >&5
  12705. if $PKG_CONFIG --exists "cairo-tee >= $CAIRO_VERSION" ; then
  12706. echo "$ac_t""yes" 1>&6
  12707. succeeded=yes
  12708. echo $ac_n "checking CAIRO_TEE_CFLAGS""... $ac_c" 1>&6
  12709. echo "configure:14779: checking CAIRO_TEE_CFLAGS" >&5
  12710. CAIRO_TEE_CFLAGS=`$PKG_CONFIG --cflags "cairo-tee >= $CAIRO_VERSION"`
  12711. echo "$ac_t""$CAIRO_TEE_CFLAGS" 1>&6
  12712. echo $ac_n "checking CAIRO_TEE_LIBS""... $ac_c" 1>&6
  12713. echo "configure:14784: checking CAIRO_TEE_LIBS" >&5
  12714. ## Remove evil flags like -Wl,--export-dynamic
  12715. CAIRO_TEE_LIBS="`$PKG_CONFIG --libs \"cairo-tee >= $CAIRO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12716. echo "$ac_t""$CAIRO_TEE_LIBS" 1>&6
  12717. else
  12718. CAIRO_TEE_CFLAGS=""
  12719. CAIRO_TEE_LIBS=""
  12720. ## If we have a custom action on failure, don't print errors, but
  12721. ## do set a variable so people can do so.
  12722. CAIRO_TEE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-tee >= $CAIRO_VERSION"`
  12723. echo $CAIRO_TEE_PKG_ERRORS
  12724. fi
  12725. else
  12726. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12727. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12728. fi
  12729. fi
  12730. if test $succeeded = yes; then
  12731. :
  12732. else
  12733. if test "$COMPILE_ENVIRONMENT"; then
  12734. { echo "configure: error: Library requirements (cairo-tee >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (cairo-tee >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  12735. fi
  12736. fi
  12737. if test "$MOZ_X11"; then
  12738. succeeded=no
  12739. if test -z "$PKG_CONFIG"; then
  12740. echo "*** The pkg-config script could not be found. Make sure it is"
  12741. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12742. echo "*** to the full path to pkg-config."
  12743. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12744. else
  12745. PKG_CONFIG_MIN_VERSION=0.9.0
  12746. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12747. echo $ac_n "checking for cairo-xlib-xrender >= $CAIRO_VERSION""... $ac_c" 1>&6
  12748. echo "configure:14825: checking for cairo-xlib-xrender >= $CAIRO_VERSION" >&5
  12749. if $PKG_CONFIG --exists "cairo-xlib-xrender >= $CAIRO_VERSION" ; then
  12750. echo "$ac_t""yes" 1>&6
  12751. succeeded=yes
  12752. echo $ac_n "checking CAIRO_XRENDER_CFLAGS""... $ac_c" 1>&6
  12753. echo "configure:14832: checking CAIRO_XRENDER_CFLAGS" >&5
  12754. CAIRO_XRENDER_CFLAGS=`$PKG_CONFIG --cflags "cairo-xlib-xrender >= $CAIRO_VERSION"`
  12755. echo "$ac_t""$CAIRO_XRENDER_CFLAGS" 1>&6
  12756. echo $ac_n "checking CAIRO_XRENDER_LIBS""... $ac_c" 1>&6
  12757. echo "configure:14837: checking CAIRO_XRENDER_LIBS" >&5
  12758. ## Remove evil flags like -Wl,--export-dynamic
  12759. CAIRO_XRENDER_LIBS="`$PKG_CONFIG --libs \"cairo-xlib-xrender >= $CAIRO_VERSION\" |sed s/-Wl,--export-dynamic//g`"
  12760. echo "$ac_t""$CAIRO_XRENDER_LIBS" 1>&6
  12761. else
  12762. CAIRO_XRENDER_CFLAGS=""
  12763. CAIRO_XRENDER_LIBS=""
  12764. ## If we have a custom action on failure, don't print errors, but
  12765. ## do set a variable so people can do so.
  12766. CAIRO_XRENDER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-xlib-xrender >= $CAIRO_VERSION"`
  12767. echo $CAIRO_XRENDER_PKG_ERRORS
  12768. fi
  12769. else
  12770. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12771. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12772. fi
  12773. fi
  12774. if test $succeeded = yes; then
  12775. :
  12776. else
  12777. if test "$COMPILE_ENVIRONMENT"; then
  12778. { echo "configure: error: Library requirements (cairo-xlib-xrender >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; echo "configure: error: Library requirements (cairo-xlib-xrender >= $CAIRO_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&5; exit 1; }
  12779. fi
  12780. fi
  12781. MOZ_CAIRO_LIBS="$MOZ_CAIRO_LIBS $XLDFLAGS $CAIRO_XRENDER_LIBS"
  12782. MOZ_CAIRO_OSLIBS="$MOZ_CAIRO_LIBS"
  12783. MOZ_CAIRO_CFLAGS="$MOZ_CAIRO_CFLAGS $CAIRO_XRENDER_CFLAGS"
  12784. fi
  12785. fi
  12786. case "$MOZ_WIDGET_TOOLKIT" in
  12787. android)
  12788. TK_CFLAGS="$MOZ_CAIRO_CFLAGS $MOZ_PIXMAN_CFLAGS"
  12789. TK_LIBS="$MOZ_CAIRO_LIBS $MOZ_PIXMAN_LIBS"
  12790. ;;
  12791. esac
  12792. # Check whether --enable-xul or --disable-xul was given.
  12793. if test "${enable_xul+set}" = set; then
  12794. enableval="$enable_xul"
  12795. if test "$enableval" = "no"; then
  12796. MOZ_XUL=
  12797. elif test "$enableval" = "yes"; then
  12798. :
  12799. else
  12800. { echo "configure: error: Option, xul, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, xul, does not take an argument ($enableval)." 1>&5; exit 1; }
  12801. fi
  12802. fi
  12803. if test "$MOZ_XUL"; then
  12804. cat >> confdefs.pytmp <<\EOF
  12805. (''' MOZ_XUL ''', ' 1 ')
  12806. EOF
  12807. cat >> confdefs.h <<\EOF
  12808. #define MOZ_XUL 1
  12809. EOF
  12810. else
  12811. MOZ_EXTENSIONS=`echo $MOZ_EXTENSIONS | sed -e 's/inspector//' -e 's/irc//' -e 's/tasks//'`
  12812. fi
  12813. # Check whether --enable-necko-wifi or --disable-necko-wifi was given.
  12814. if test "${enable_necko_wifi+set}" = set; then
  12815. enableval="$enable_necko_wifi"
  12816. if test "$enableval" = "no"; then
  12817. MOZ_NECKO_WIFI=
  12818. elif test "$enableval" = "yes"; then
  12819. MOZ_NECKO_WIFI=1
  12820. else
  12821. { echo "configure: error: Option, necko-wifi, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, necko-wifi, does not take an argument ($enableval)." 1>&5; exit 1; }
  12822. fi
  12823. fi
  12824. if test "$MOZ_NECKO_WIFI"; then
  12825. case "$OS_TARGET" in
  12826. DragonFly|FreeBSD|WINNT)
  12827. NECKO_WIFI=1
  12828. ;;
  12829. Linux)
  12830. NECKO_WIFI=1
  12831. NECKO_WIFI_DBUS=1
  12832. ;;
  12833. esac
  12834. fi
  12835. if test "$NECKO_WIFI"; then
  12836. if test -z "$MOZ_ENABLE_DBUS" -a -n "$NECKO_WIFI_DBUS"; then
  12837. { echo "configure: error: Necko WiFi scanning needs DBus on your platform, remove --disable-dbus or use --disable-necko-wifi" 1>&2; echo "configure: error: Necko WiFi scanning needs DBus on your platform, remove --disable-dbus or use --disable-necko-wifi" 1>&5; exit 1; }
  12838. fi
  12839. cat >> confdefs.pytmp <<\EOF
  12840. (''' NECKO_WIFI ''', ' 1 ')
  12841. EOF
  12842. cat >> confdefs.h <<\EOF
  12843. #define NECKO_WIFI 1
  12844. EOF
  12845. _NON_GLOBAL_ACDEFINES="$_NON_GLOBAL_ACDEFINES NECKO_WIFI"
  12846. fi
  12847. # Check whether --enable-cookies or --disable-cookies was given.
  12848. if test "${enable_cookies+set}" = set; then
  12849. enableval="$enable_cookies"
  12850. if test "$enableval" = "no"; then
  12851. NECKO_COOKIES=
  12852. elif test "$enableval" = "yes"; then
  12853. NECKO_COOKIES=1
  12854. else
  12855. { echo "configure: error: Option, cookies, does not take an argument ($enableval)." 1>&2; echo "configure: error: Option, cookies, does not take an argument ($enableval)." 1>&5; exit 1; }
  12856. fi
  12857. fi
  12858. if test "$NECKO_COOKIES"; then
  12859. cat >> confdefs.pytmp <<\EOF
  12860. (''' NECKO_COOKIES ''', ' 1 ')
  12861. EOF
  12862. cat >> confdefs.h <<\EOF
  12863. #define NECKO_COOKIES 1
  12864. EOF
  12865. _NON_GLOBAL_ACDEFINES="$_NON_GLOBAL_ACDEFINES NECKO_COOKIES"
  12866. fi
  12867. if test "$OS_TARGET" != "Android"; then
  12868. cat >> confdefs.pytmp <<\EOF
  12869. (''' ENABLE_MARIONETTE ''', ' 1 ')
  12870. EOF
  12871. cat >> confdefs.h <<\EOF
  12872. #define ENABLE_MARIONETTE 1
  12873. EOF
  12874. fi
  12875. if test "$ENABLE_MARIONETTE"; then
  12876. cat >> confdefs.pytmp <<\EOF
  12877. (''' ENABLE_MARIONETTE ''', ' 1 ')
  12878. EOF
  12879. cat >> confdefs.h <<\EOF
  12880. #define ENABLE_MARIONETTE 1
  12881. EOF
  12882. fi
  12883. if test "$MOZ_PLACES"; then
  12884. cat >> confdefs.pytmp <<\EOF
  12885. (''' MOZ_PLACES ''', ' 1 ')
  12886. EOF
  12887. cat >> confdefs.h <<\EOF
  12888. #define MOZ_PLACES 1
  12889. EOF
  12890. fi
  12891. if test -n "$MOZ_SERVICES_HEALTHREPORT"; then
  12892. cat >> confdefs.pytmp <<\EOF
  12893. (''' MOZ_SERVICES_HEALTHREPORT ''', ' 1 ')
  12894. EOF
  12895. cat >> confdefs.h <<\EOF
  12896. #define MOZ_SERVICES_HEALTHREPORT 1
  12897. EOF
  12898. fi
  12899. if test -n "$MOZ_SERVICES_SYNC"; then
  12900. cat >> confdefs.pytmp <<\EOF
  12901. (''' MOZ_SERVICES_SYNC ''', ' 1 ')
  12902. EOF
  12903. cat >> confdefs.h <<\EOF
  12904. #define MOZ_SERVICES_SYNC 1
  12905. EOF
  12906. fi
  12907. if test "$MOZ_DEBUG"; then
  12908. MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS=
  12909. fi
  12910. if test -n "$MOZ_JSDOWNLOADS"; then
  12911. cat >> confdefs.pytmp <<\EOF
  12912. (''' MOZ_JSDOWNLOADS ''', ' 1 ')
  12913. EOF
  12914. cat >> confdefs.h <<\EOF
  12915. #define MOZ_JSDOWNLOADS 1
  12916. EOF
  12917. fi
  12918. # Check whether --with-macbundlename-prefix or --without-macbundlename-prefix was given.
  12919. if test "${with_macbundlename_prefix+set}" = set; then
  12920. withval="$with_macbundlename_prefix"
  12921. MOZ_MACBUNDLE_NAME_PREFIX="$withval"
  12922. fi
  12923. MOZ_MACBUNDLE_NAME=$MOZ_APP_DISPLAYNAME
  12924. if test "$MOZ_MACBUNDLE_NAME_PREFIX"; then
  12925. MOZ_MACBUNDLE_NAME="${MOZ_MACBUNDLE_NAME_PREFIX} ${MOZ_MACBUNDLE_NAME}"
  12926. fi
  12927. if test "$MOZ_DEBUG"; then
  12928. MOZ_MACBUNDLE_NAME="${MOZ_MACBUNDLE_NAME}Debug.app"
  12929. else
  12930. MOZ_MACBUNDLE_NAME=${MOZ_MACBUNDLE_NAME}.app
  12931. fi
  12932. MOZ_MACBUNDLE_ID=`echo $MOZ_APP_DISPLAYNAME | tr 'A-Z' 'a-z'`
  12933. MOZ_MACBUNDLE_ID=${MOZ_DISTRIBUTION_ID}.${MOZ_MACBUNDLE_ID}
  12934. if test "$MOZ_DEBUG"; then
  12935. MOZ_MACBUNDLE_ID=${MOZ_MACBUNDLE_ID}debug
  12936. fi
  12937. cat >> confdefs.pytmp <<EOF
  12938. (''' MOZ_MACBUNDLE_ID ''', r''' $MOZ_MACBUNDLE_ID ''')
  12939. EOF
  12940. cat >> confdefs.h <<EOF
  12941. #define MOZ_MACBUNDLE_ID $MOZ_MACBUNDLE_ID
  12942. EOF
  12943. if test "$MOZ_WIDGET_TOOLKIT" != "android"; then
  12944. MOZ_CHILD_PROCESS_NAME="plugin-container${BIN_SUFFIX}"
  12945. else
  12946. # We want to let Android unpack the file at install time, but it only does
  12947. # so if the file is named libsomething.so. The lib/ path is also required
  12948. # because the unpacked file will be under the lib/ subdirectory and will
  12949. # need to be executed from that path.
  12950. MOZ_CHILD_PROCESS_NAME="libplugin-container.so"
  12951. MOZ_CHILD_PROCESS_NAME_PIE="libplugin-container-pie.so"
  12952. fi
  12953. MOZ_CHILD_PROCESS_BUNDLE="plugin-container.app/Contents/MacOS/"
  12954. # The following variables are available to branding and application
  12955. # configuration ($BRANDING/configure.sh and $APPLICATION/confvars.sh):
  12956. # - MOZ_APP_VENDOR: Used for application.ini's "Vendor" field, which also
  12957. # impacts profile location and user-visible fields.
  12958. # - MOZ_APP_BASENAME: Typically stays consistent for multiple branded
  12959. # versions of a given application (e.g. Aurora and Firefox both use
  12960. # "Firefox"), but may vary for full rebrandings (e.g. Iceweasel). Used
  12961. # for application.ini's "Name" field, which controls profile location in
  12962. # the absence of a "Profile" field (see below), and various system
  12963. # integration hooks (Unix remoting, Windows MessageWindow name, etc.)
  12964. # - MOZ_APP_DISPLAYNAME: Used in user-visible fields (DLL properties,
  12965. # Mac Bundle name, Updater, Installer), it is typically used for nightly
  12966. # builds (e.g. Aurora for Firefox).
  12967. # - MOZ_APP_VERSION: Defines the application version number.
  12968. # - MOZ_APP_VERSION_DISPLAY: Defines the application version number. Used
  12969. # in the "About" window. If not set, defaults to MOZ_APP_VERSION.
  12970. # - MOZ_APP_NAME: Used for e.g. the binary program file name. If not set,
  12971. # defaults to a lowercase form of MOZ_APP_BASENAME.
  12972. # - MOZ_APP_REMOTINGNAME: Used for the internal program name, which affects
  12973. # profile name and remoting. If not set, defaults to MOZ_APP_NAME.
  12974. # - MOZ_APP_PROFILE: When set, used for application.ini's
  12975. # "Profile" field, which controls profile location.
  12976. # - MOZ_APP_ID: When set, used for application.ini's "ID" field, and
  12977. # crash reporter server url.
  12978. # - MOZ_APP_ANDROID_VERSION_CODE: On Android, "android:versionCode" for
  12979. # the main application is set to the value of this variable. If not
  12980. # set, it falls back to a Mozilla-specific value derived from the
  12981. # build ID.
  12982. # - MOZ_PROFILE_MIGRATOR: When set, enables profile migrator.
  12983. if test -z "$MOZ_APP_NAME"; then
  12984. MOZ_APP_NAME=`echo $MOZ_APP_BASENAME | tr A-Z a-z`
  12985. fi
  12986. if test -z "$MOZ_APP_REMOTINGNAME"; then
  12987. MOZ_APP_REMOTINGNAME=$MOZ_APP_NAME
  12988. fi
  12989. if test -z "$MOZ_APP_VERSION_DISPLAY"; then
  12990. MOZ_APP_VERSION_DISPLAY=$MOZ_APP_VERSION
  12991. fi
  12992. if test -z "$ANDROID_PACKAGE_NAME" ; then
  12993. ANDROID_PACKAGE_NAME="org.mozilla.$MOZ_APP_NAME"
  12994. fi
  12995. # For extensions and langpacks, we require a max version that is compatible
  12996. # across security releases. MOZ_APP_MAXVERSION is our method for doing that.
  12997. # 24.0a1 and 24.0a2 aren't affected
  12998. # 24.0 becomes 24.*
  12999. # 24.1.1 becomes 24.*
  13000. IS_ALPHA=`echo $MOZ_APP_VERSION | grep a`
  13001. if test -z "$IS_ALPHA"; then
  13002. if test "$(basename $MOZ_BUILD_APP)" = "suite"; then
  13003. MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*\.[0-9]*\).*|\1|"`.*
  13004. else
  13005. MOZ_APP_MAXVERSION=`echo $MOZ_APP_VERSION | sed "s|\(^[0-9]*\).*|\1|"`.*
  13006. fi
  13007. else
  13008. MOZ_APP_MAXVERSION=$MOZ_APP_VERSION
  13009. fi
  13010. cat >> confdefs.pytmp <<EOF
  13011. (''' MOZ_APP_UA_NAME ''', r''' "$MOZ_APP_UA_NAME" ''')
  13012. EOF
  13013. cat >> confdefs.h <<EOF
  13014. #define MOZ_APP_UA_NAME "$MOZ_APP_UA_NAME"
  13015. EOF
  13016. cat >> confdefs.pytmp <<EOF
  13017. (''' MOZ_APP_UA_VERSION ''', r''' "$MOZ_APP_VERSION" ''')
  13018. EOF
  13019. cat >> confdefs.h <<EOF
  13020. #define MOZ_APP_UA_VERSION "$MOZ_APP_VERSION"
  13021. EOF
  13022. if test -n "$MOZ_UA_OS_AGNOSTIC"; then
  13023. cat >> confdefs.pytmp <<\EOF
  13024. (''' MOZ_UA_OS_AGNOSTIC ''', ' 1 ')
  13025. EOF
  13026. cat >> confdefs.h <<\EOF
  13027. #define MOZ_UA_OS_AGNOSTIC 1
  13028. EOF
  13029. fi
  13030. cat >> confdefs.pytmp <<EOF
  13031. (''' MOZ_UA_BUILDID ''', r''' "$MOZ_UA_BUILDID" ''')
  13032. EOF
  13033. cat >> confdefs.h <<EOF
  13034. #define MOZ_UA_BUILDID "$MOZ_UA_BUILDID"
  13035. EOF
  13036. if test "$MOZILLA_OFFICIAL"; then
  13037. cat >> confdefs.pytmp <<\EOF
  13038. (''' MOZILLA_OFFICIAL ''', ' 1 ')
  13039. EOF
  13040. cat >> confdefs.h <<\EOF
  13041. #define MOZILLA_OFFICIAL 1
  13042. EOF
  13043. # Build revisions should always be present in official Mozilla builds
  13044. MOZ_INCLUDE_SOURCE_INFO=1
  13045. fi
  13046. # External builds (specifically Ubuntu) may drop the hg repo information, so we allow to
  13047. # explicitly set the repository and changeset information in.
  13048. if test "$MOZ_TELEMETRY_REPORTING"; then
  13049. cat >> confdefs.pytmp <<\EOF
  13050. (''' MOZ_TELEMETRY_REPORTING ''', ' 1 ')
  13051. EOF
  13052. cat >> confdefs.h <<\EOF
  13053. #define MOZ_TELEMETRY_REPORTING 1
  13054. EOF
  13055. # Enable Telemetry by default for nightly and aurora channels
  13056. if test -z "$RELEASE_OR_BETA"; then
  13057. cat >> confdefs.pytmp <<\EOF
  13058. (''' MOZ_TELEMETRY_ON_BY_DEFAULT ''', ' 1 ')
  13059. EOF
  13060. cat >> confdefs.h <<\EOF
  13061. #define MOZ_TELEMETRY_ON_BY_DEFAULT 1
  13062. EOF
  13063. fi
  13064. fi
  13065. if test -n "$MOZ_TELEMETRY_REPORTING" || test -n "$MOZ_SERVICES_HEALTHREPORT"; then
  13066. MOZ_DATA_REPORTING=1
  13067. cat >> confdefs.pytmp <<\EOF
  13068. (''' MOZ_DATA_REPORTING ''', ' 1 ')
  13069. EOF
  13070. cat >> confdefs.h <<\EOF
  13071. #define MOZ_DATA_REPORTING 1
  13072. EOF
  13073. fi
  13074. if test "$MOZ_WIDGET_TOOLKIT" = "cocoa"; then
  13075. USE_ICU=1
  13076. fi
  13077. ICU_LIB_NAMES=
  13078. USE_ICU=1
  13079. if test -n "$USE_ICU"; then
  13080. icudir="$_topsrcdir/intl/icu/source"
  13081. if test ! -d "$icudir"; then
  13082. icudir="$_topsrcdir/../../intl/icu/source"
  13083. if test ! -d "$icudir"; then
  13084. { echo "configure: error: Cannot find the ICU directory" 1>&2; echo "configure: error: Cannot find the ICU directory" 1>&5; exit 1; }
  13085. fi
  13086. fi
  13087. version=`${TOOLCHAIN_PREFIX}sed -n 's/^[[:space:]]*#[[:space:]]*define[[:space:]][[:space:]]*U_ICU_VERSION_MAJOR_NUM[[:space:]][[:space:]]*\([0-9][0-9]*\)[[:space:]]*$/\1/p' "$icudir/common/unicode/uvernum.h"`
  13088. if test x"$version" = x; then
  13089. { echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&2; echo "configure: error: cannot determine icu version number from uvernum.h header file $lineno" 1>&5; exit 1; }
  13090. fi
  13091. MOZ_ICU_VERSION="$version"
  13092. # TODO: the l is actually endian-dependent
  13093. # We could make this set as 'l' or 'b' for little or big, respectively,
  13094. # but we'd need to check in a big-endian version of the file.
  13095. ICU_DATA_FILE="icudt${version}l.dat"
  13096. if test -z "$JS_STANDALONE"; then
  13097. MOZ_ICU_DATA_ARCHIVE=1
  13098. else
  13099. MOZ_ICU_DATA_ARCHIVE=
  13100. fi
  13101. fi
  13102. if test -n "$USE_ICU"; then
  13103. if test -z "$YASM" -a -z "$GNU_AS" -a "$COMPILE_ENVIRONMENT"; then
  13104. { echo "configure: error: Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api" 1>&2; echo "configure: error: Building ICU requires either yasm or a GNU assembler. If you do not have either of those available for this platform you must use --without-intl-api" 1>&5; exit 1; }
  13105. fi
  13106. cat >> confdefs.pytmp <<\EOF
  13107. (''' U_STATIC_IMPLEMENTATION ''', ' 1 ')
  13108. EOF
  13109. cat >> confdefs.h <<\EOF
  13110. #define U_STATIC_IMPLEMENTATION 1
  13111. EOF
  13112. cat >> confdefs.pytmp <<\EOF
  13113. (''' U_USING_ICU_NAMESPACE ''', r''' 0 ''')
  13114. EOF
  13115. cat >> confdefs.h <<\EOF
  13116. #define U_USING_ICU_NAMESPACE 0
  13117. EOF
  13118. fi
  13119. CFLAGS=`echo \
  13120. $_WARNINGS_CFLAGS \
  13121. $CFLAGS`
  13122. CXXFLAGS=`echo \
  13123. $_WARNINGS_CXXFLAGS \
  13124. $CXXFLAGS`
  13125. COMPILE_CFLAGS=`echo \
  13126. $_DEFINES_CFLAGS \
  13127. $COMPILE_CFLAGS`
  13128. COMPILE_CXXFLAGS=`echo \
  13129. $_DEFINES_CXXFLAGS \
  13130. $COMPILE_CXXFLAGS`
  13131. HOST_CFLAGS=`echo \
  13132. $HOST_CFLAGS`
  13133. HOST_CXXFLAGS=`echo \
  13134. $HOST_CXXFLAGS`
  13135. HOST_CMFLAGS=-fobjc-exceptions
  13136. HOST_CMMFLAGS=-fobjc-exceptions
  13137. OS_COMPILE_CMFLAGS=-fobjc-exceptions
  13138. OS_COMPILE_CMMFLAGS=-fobjc-exceptions
  13139. if test "$MOZ_WIDGET_TOOLKIT" = uikit; then
  13140. OS_COMPILE_CMFLAGS="$OS_COMPILE_CMFLAGS -fobjc-abi-version=2 -fobjc-legacy-dispatch"
  13141. OS_COMPILE_CMMFLAGS="$OS_COMPILE_CMMFLAGS -fobjc-abi-version=2 -fobjc-legacy-dispatch"
  13142. fi
  13143. OS_CFLAGS="$CFLAGS"
  13144. OS_CXXFLAGS="$CXXFLAGS"
  13145. OS_CPPFLAGS="$CPPFLAGS"
  13146. OS_COMPILE_CFLAGS="$COMPILE_CFLAGS"
  13147. OS_COMPILE_CXXFLAGS="$COMPILE_CXXFLAGS"
  13148. OS_LDFLAGS="$LDFLAGS"
  13149. OS_LIBS="$LIBS"
  13150. cat >> confdefs.pytmp <<EOF
  13151. (''' MOZ_DLL_SUFFIX ''', r''' "$DLL_SUFFIX" ''')
  13152. EOF
  13153. cat >> confdefs.h <<EOF
  13154. #define MOZ_DLL_SUFFIX "$DLL_SUFFIX"
  13155. EOF
  13156. if test -n "$COMPILE_ENVIRONMENT"; then
  13157. for ac_func in posix_fadvise posix_fallocate
  13158. do
  13159. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  13160. echo "configure:15527: checking for $ac_func" >&5
  13161. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  13162. echo $ac_n "(cached) $ac_c" 1>&6
  13163. else
  13164. cat > conftest.$ac_ext <<EOF
  13165. #line 15532 "configure"
  13166. #define $ac_func innocuous_$ac_func
  13167. #include "confdefs.h"
  13168. #undef $ac_func
  13169. /* System header to define __stub macros and hopefully few prototypes,
  13170. which can conflict with char $ac_func(); below. */
  13171. #define $ac_func innocuous_$ac_func
  13172. #include <assert.h>
  13173. #undef $ac_func
  13174. /* Override any gcc2 internal prototype to avoid an error. */
  13175. /* We use char because int might match the return type of a gcc2
  13176. builtin and then its argument prototype would still apply. */
  13177. char $ac_func();
  13178. int main() {
  13179. /* The GNU C library defines this for functions which it implements
  13180. to always fail with ENOSYS. Some functions are actually named
  13181. something starting with __ and the normal name is an alias. */
  13182. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  13183. choke me
  13184. #else
  13185. $ac_func();
  13186. #endif
  13187. ; return 0; }
  13188. EOF
  13189. if { (eval echo configure:15559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13190. rm -rf conftest*
  13191. eval "ac_cv_func_$ac_func=yes"
  13192. else
  13193. echo "configure: failed program was:" >&5
  13194. cat conftest.$ac_ext >&5
  13195. rm -rf conftest*
  13196. eval "ac_cv_func_$ac_func=no"
  13197. fi
  13198. rm -f conftest*
  13199. fi
  13200. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  13201. echo "$ac_t""yes" 1>&6
  13202. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  13203. cat >> confdefs.pytmp <<EOF
  13204. (''' $ac_tr_func ''', ' 1 ')
  13205. EOF
  13206. cat >> confdefs.h <<EOF
  13207. #define $ac_tr_func 1
  13208. EOF
  13209. else
  13210. echo "$ac_t""no" 1>&6
  13211. fi
  13212. done
  13213. if test "$MOZ_X11"; then
  13214. _SAVE_CFLAGS=$CFLAGS
  13215. CFLAGS="$CFLAGS $XCFLAGS"
  13216. cat > conftest.$ac_ext <<EOF
  13217. #line 15591 "configure"
  13218. #include "confdefs.h"
  13219. #include <stdio.h>
  13220. #include <stdlib.h>
  13221. #include <X11/Xlib.h>
  13222. #include <X11/Intrinsic.h>
  13223. #include <X11/extensions/XShm.h>
  13224. int main() {
  13225. Display *dpy = 0;
  13226. if ((dpy = XOpenDisplay(NULL)) == NULL) {
  13227. fprintf(stderr, ": can't open %s\n", XDisplayName(NULL));
  13228. exit(1);
  13229. }
  13230. ; return 0; }
  13231. EOF
  13232. if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  13233. :
  13234. else
  13235. echo "configure: failed program was:" >&5
  13236. cat conftest.$ac_ext >&5
  13237. rm -rf conftest*
  13238. { echo "configure: error: Can't find X headers (install libxt-dev (Debian/Ubuntu), libXt-devel (Fedora), or xorg-x11-libXt-devel (SuSE))." 1>&2; echo "configure: error: Can't find X headers (install libxt-dev (Debian/Ubuntu), libXt-devel (Fedora), or xorg-x11-libXt-devel (SuSE))." 1>&5; exit 1; }
  13239. fi
  13240. rm -f conftest*
  13241. CFLAGS="$_SAVE_CFLAGS"
  13242. if test -n "$MISSING_X"; then
  13243. { echo "configure: error: Could not find the following X libraries: $MISSING_X " 1>&2; echo "configure: error: Could not find the following X libraries: $MISSING_X " 1>&5; exit 1; };
  13244. fi
  13245. fi # MOZ_X11
  13246. fi # COMPILE_ENVIRONMENT
  13247. if test "$MOZ_DEBUG"; then
  13248. cat >> confdefs.pytmp <<\EOF
  13249. (''' MOZ_REFLOW_PERF ''', ' 1 ')
  13250. EOF
  13251. cat >> confdefs.h <<\EOF
  13252. #define MOZ_REFLOW_PERF 1
  13253. EOF
  13254. cat >> confdefs.pytmp <<\EOF
  13255. (''' MOZ_REFLOW_PERF_DSP ''', ' 1 ')
  13256. EOF
  13257. cat >> confdefs.h <<\EOF
  13258. #define MOZ_REFLOW_PERF_DSP 1
  13259. EOF
  13260. fi
  13261. if test "$ACCESSIBILITY" -a "$MOZ_ENABLE_GTK" ; then
  13262. cat >> confdefs.pytmp <<\EOF
  13263. (''' MOZ_ACCESSIBILITY_ATK ''', ' 1 ')
  13264. EOF
  13265. cat >> confdefs.h <<\EOF
  13266. #define MOZ_ACCESSIBILITY_ATK 1
  13267. EOF
  13268. ATK_FULL_VERSION=`$PKG_CONFIG --modversion atk`
  13269. ATK_MAJOR_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $1 }'`
  13270. ATK_MINOR_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $2 }'`
  13271. ATK_REV_VERSION=`echo ${ATK_FULL_VERSION} | $AWK -F\. '{ print $3 }'`
  13272. cat >> confdefs.pytmp <<EOF
  13273. (''' ATK_MAJOR_VERSION ''', r''' $ATK_MAJOR_VERSION ''')
  13274. EOF
  13275. cat >> confdefs.h <<EOF
  13276. #define ATK_MAJOR_VERSION $ATK_MAJOR_VERSION
  13277. EOF
  13278. cat >> confdefs.pytmp <<EOF
  13279. (''' ATK_MINOR_VERSION ''', r''' $ATK_MINOR_VERSION ''')
  13280. EOF
  13281. cat >> confdefs.h <<EOF
  13282. #define ATK_MINOR_VERSION $ATK_MINOR_VERSION
  13283. EOF
  13284. cat >> confdefs.pytmp <<EOF
  13285. (''' ATK_REV_VERSION ''', r''' $ATK_REV_VERSION ''')
  13286. EOF
  13287. cat >> confdefs.h <<EOF
  13288. #define ATK_REV_VERSION $ATK_REV_VERSION
  13289. EOF
  13290. fi
  13291. if test "$MOZ_DEBUG"; then
  13292. A11Y_LOG=1
  13293. fi
  13294. case "$MOZ_UPDATE_CHANNEL" in
  13295. aurora|beta|release|esr)
  13296. ;;
  13297. *)
  13298. A11Y_LOG=1
  13299. ;;
  13300. esac
  13301. if test -n "$A11Y_LOG"; then
  13302. cat >> confdefs.pytmp <<\EOF
  13303. (''' A11Y_LOG ''', ' 1 ')
  13304. EOF
  13305. cat >> confdefs.h <<\EOF
  13306. #define A11Y_LOG 1
  13307. EOF
  13308. fi
  13309. DIRECTIVE4_LIST="
  13310. MOZ_OFFICIAL_BRANDING=$MOZ_OFFICIAL_BRANDING
  13311. MOZ_BRANDING_DIRECTORY=$MOZ_BRANDING_DIRECTORY
  13312. MC_BASILISK=$MC_BASILISK
  13313. MC_PALEMOON=$MC_PALEMOON
  13314. MOZ_EME=$MOZ_EME
  13315. MOZ_WEBRTC=$MOZ_WEBRTC
  13316. MOZ_SYSTEM_JPEG=$MOZ_SYSTEM_JPEG
  13317. MOZ_SYSTEM_ZLIB=$MOZ_SYSTEM_ZLIB
  13318. MOZ_SYSTEM_BZ2=$MOZ_SYSTEM_BZ2
  13319. MOZ_SYSTEM_PNG=$MOZ_SYSTEM_PNG
  13320. MOZ_SYSTEM_LIBVPX=$MOZ_SYSTEM_LIBVPX
  13321. MOZ_SYSTEM_SQLITE=$MOZ_SYSTEM_SQLITE
  13322. MOZ_SYSTEM_JEMALLOC=$MOZ_SYSTEM_JEMALLOC"
  13323. DIRECTIVE4=`$PYTHON $_topsrcdir/build/directive4.py $DIRECTIVE4_LIST`
  13324. if test -n "$DIRECTIVE4"; then
  13325. if test -n "$MC_PRIVATE_BUILD"; then
  13326. echo "configure: warning: Private Build - The configuration you have chosen to use with official branding deviates from official build configuration. Your build is thus for personal and private use only and must not be (re)distributed - Please see: http://www.palemoon.org/redist.shtml" 1>&2
  13327. else
  13328. { echo "configure: error: Branding Violation - Please see: http://www.palemoon.org/redist.shtml" 1>&2; echo "configure: error: Branding Violation - Please see: http://www.palemoon.org/redist.shtml" 1>&5; exit 1; }
  13329. fi
  13330. fi
  13331. _NON_GLOBAL_ACDEFINES="$_NON_GLOBAL_ACDEFINES
  13332. CPP_THROW_NEW
  13333. HAVE_CPP_AMBIGUITY_RESOLVING_USING
  13334. HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR
  13335. HAVE_CPP_PARTIAL_SPECIALIZATION
  13336. HAVE_GETPAGESIZE
  13337. HAVE_ICONV
  13338. HAVE_ICONV_WITH_CONST_INPUT
  13339. HAVE_MBRTOWC
  13340. HAVE_WCRTOMB
  13341. HAVE_STATVFS64
  13342. HAVE_STATVFS
  13343. HAVE_STATFS64
  13344. HAVE_STATFS
  13345. HAVE_SYS_STATVFS_H
  13346. HAVE_SYS_STATFS_H
  13347. HAVE_SYS_VFS_H
  13348. HAVE_SYS_MOUNT_H
  13349. "
  13350. if test -z "$GNU_CC" -a "$OS_ARCH" = "WINNT"; then
  13351. PREPROCESS_OPTION="-P -Fi"
  13352. else
  13353. PREPROCESS_OPTION="-E -o "
  13354. fi
  13355. # Avoid using obsolete NSPR features
  13356. cat >> confdefs.pytmp <<\EOF
  13357. (''' NO_NSPR_10_SUPPORT ''', ' 1 ')
  13358. EOF
  13359. cat >> confdefs.h <<\EOF
  13360. #define NO_NSPR_10_SUPPORT 1
  13361. EOF
  13362. # Don't build NSS libpkix
  13363. NSS_DISABLE_LIBPKIX=1
  13364. WIN_TOP_SRC=
  13365. case "$host_os" in
  13366. mingw*)
  13367. WIN_TOP_SRC=`cd $srcdir; pwd -W`
  13368. ;;
  13369. esac
  13370. top_srcdir=$srcdir
  13371. trap '' 1 2 15
  13372. cat > confcache <<\EOF
  13373. # This file is a shell script that caches the results of configure
  13374. # tests run on this system so they can be shared between configure
  13375. # scripts and configure runs. It is not useful on other systems.
  13376. # If it contains results you don't want to keep, you may remove or edit it.
  13377. #
  13378. # By default, configure uses ./config.cache as the cache file,
  13379. # creating it if it does not exist already. You can give configure
  13380. # the --cache-file=FILE option to use a different cache file; that is
  13381. # what configure does when it calls configure scripts in
  13382. # subdirectories, so they share the cache.
  13383. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  13384. # config.status only pays attention to the cache file if you give it the
  13385. # --recheck option to rerun configure.
  13386. #
  13387. EOF
  13388. # The following way of writing the cache mishandles newlines in values,
  13389. # but we know of no workaround that is simple, portable, and efficient.
  13390. # So, don't put newlines in cache variables' values.
  13391. # Ultrix sh set writes to stderr and can't be redirected directly,
  13392. # and sets the high bit in the cache file unless we assign to the vars.
  13393. (set) 2>&1 |
  13394. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  13395. *ac_space=\ *)
  13396. # `set' does not quote correctly, so add quotes (double-quote substitution
  13397. # turns \\\\ into \\, and sed turns \\ into \).
  13398. sed -n \
  13399. -e "s/'/'\\\\''/g" \
  13400. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  13401. ;;
  13402. *)
  13403. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13404. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  13405. ;;
  13406. esac >> confcache
  13407. if cmp -s $cache_file confcache; then
  13408. :
  13409. else
  13410. if test -w $cache_file; then
  13411. echo "updating cache $cache_file"
  13412. cat confcache > $cache_file
  13413. else
  13414. echo "not updating unwritable cache $cache_file"
  13415. fi
  13416. fi
  13417. rm -f confcache
  13418. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  13419. : ${CONFIG_STATUS=./config.data}
  13420. echo creating $CONFIG_STATUS
  13421. cat > $CONFIG_STATUS <<EOF
  13422. def unique_list(l):
  13423. result = []
  13424. for i in l:
  13425. if l not in result:
  13426. result.append(i)
  13427. return result
  13428. defines = [
  13429. EOF
  13430. sed 's/$/,/' confdefs.pytmp >> $CONFIG_STATUS
  13431. rm confdefs.pytmp confdefs.h
  13432. cat >> $CONFIG_STATUS <<\EOF
  13433. ]
  13434. substs = [
  13435. EOF
  13436. sed 's/$/,/' >> $CONFIG_STATUS <<EOF
  13437. (''' SHELL ''', r''' $SHELL ''')
  13438. (''' exec_prefix ''', r''' $exec_prefix ''')
  13439. (''' prefix ''', r''' $prefix ''')
  13440. (''' program_transform_name ''', r''' $program_transform_name ''')
  13441. (''' bindir ''', r''' $bindir ''')
  13442. (''' sbindir ''', r''' $sbindir ''')
  13443. (''' libexecdir ''', r''' $libexecdir ''')
  13444. (''' datadir ''', r''' $datadir ''')
  13445. (''' sysconfdir ''', r''' $sysconfdir ''')
  13446. (''' sharedstatedir ''', r''' $sharedstatedir ''')
  13447. (''' localstatedir ''', r''' $localstatedir ''')
  13448. (''' libdir ''', r''' $libdir ''')
  13449. (''' includedir ''', r''' $includedir ''')
  13450. (''' oldincludedir ''', r''' $oldincludedir ''')
  13451. (''' infodir ''', r''' $infodir ''')
  13452. (''' mandir ''', r''' $mandir ''')
  13453. (''' host ''', r''' $host ''')
  13454. (''' host_alias ''', r''' $host_alias ''')
  13455. (''' host_cpu ''', r''' $host_cpu ''')
  13456. (''' host_vendor ''', r''' $host_vendor ''')
  13457. (''' host_os ''', r''' $host_os ''')
  13458. (''' target ''', r''' $target ''')
  13459. (''' target_alias ''', r''' $target_alias ''')
  13460. (''' target_cpu ''', r''' $target_cpu ''')
  13461. (''' target_vendor ''', r''' $target_vendor ''')
  13462. (''' target_os ''', r''' $target_os ''')
  13463. (''' build ''', r''' $build ''')
  13464. (''' build_alias ''', r''' $build_alias ''')
  13465. (''' build_cpu ''', r''' $build_cpu ''')
  13466. (''' build_vendor ''', r''' $build_vendor ''')
  13467. (''' build_os ''', r''' $build_os ''')
  13468. (''' OBJCOPY ''', r''' $OBJCOPY ''')
  13469. (''' ANDROID_SOURCE ''', r''' $ANDROID_SOURCE ''')
  13470. (''' ANDROID_PACKAGE_NAME ''', r''' $ANDROID_PACKAGE_NAME ''')
  13471. (''' HOST_RANLIB ''', r''' $HOST_RANLIB ''')
  13472. (''' HOST_AR ''', r''' $HOST_AR ''')
  13473. (''' CC ''', r''' $CC ''')
  13474. (''' CXX ''', r''' $CXX ''')
  13475. (''' RANLIB ''', r''' $RANLIB ''')
  13476. (''' AR ''', r''' $AR ''')
  13477. (''' AS ''', r''' $AS ''')
  13478. (''' LD ''', r''' $LD ''')
  13479. (''' LIPO ''', r''' $LIPO ''')
  13480. (''' STRIP ''', r''' $STRIP ''')
  13481. (''' WINDRES ''', r''' $WINDRES ''')
  13482. (''' OTOOL ''', r''' $OTOOL ''')
  13483. (''' CLANG_CXX ''', r''' $CLANG_CXX ''')
  13484. (''' CLANG_CL ''', r''' $CLANG_CL ''')
  13485. (''' MIDL ''', r''' $MIDL ''')
  13486. (''' MSVS_VERSION ''', r''' $MSVS_VERSION ''')
  13487. (''' MSVC_HAS_DIA_SDK ''', r''' $MSVC_HAS_DIA_SDK ''')
  13488. (''' MSVC_C_RUNTIME_DLL ''', r''' $MSVC_C_RUNTIME_DLL ''')
  13489. (''' MSVC_CXX_RUNTIME_DLL ''', r''' $MSVC_CXX_RUNTIME_DLL ''')
  13490. (''' MIDL_FLAGS ''', r''' $MIDL_FLAGS ''')
  13491. (''' _MSC_VER ''', r''' $_MSC_VER ''')
  13492. (''' GNU_AS ''', r''' $GNU_AS ''')
  13493. (''' GNU_LD ''', r''' $GNU_LD ''')
  13494. (''' GNU_CC ''', r''' $GNU_CC ''')
  13495. (''' GNU_CXX ''', r''' $GNU_CXX ''')
  13496. (''' STL_FLAGS ''', r''' $STL_FLAGS ''')
  13497. (''' WRAP_STL_INCLUDES ''', r''' $WRAP_STL_INCLUDES ''')
  13498. (''' MOZ_MSVC_STL_WRAP_RAISE ''', r''' $MOZ_MSVC_STL_WRAP_RAISE ''')
  13499. (''' UNIVERSAL_BINARY ''', r''' $UNIVERSAL_BINARY ''')
  13500. (''' UNIFY_DIST ''', r''' $UNIFY_DIST ''')
  13501. (''' MACOS_SDK_DIR ''', r''' $MACOS_SDK_DIR ''')
  13502. (''' MACOS_PRIVATE_FRAMEWORKS_DIR ''', r''' $MACOS_PRIVATE_FRAMEWORKS_DIR ''')
  13503. (''' X_CFLAGS ''', r''' $X_CFLAGS ''')
  13504. (''' X_PRE_LIBS ''', r''' $X_PRE_LIBS ''')
  13505. (''' X_LIBS ''', r''' $X_LIBS ''')
  13506. (''' X_EXTRA_LIBS ''', r''' $X_EXTRA_LIBS ''')
  13507. (''' MOZ_THUMB2 ''', r''' $MOZ_THUMB2 ''')
  13508. (''' HAVE_ARM_SIMD ''', r''' $HAVE_ARM_SIMD ''')
  13509. (''' HAVE_ARM_NEON ''', r''' $HAVE_ARM_NEON ''')
  13510. (''' BUILD_ARM_NEON ''', r''' $BUILD_ARM_NEON ''')
  13511. (''' ARM_ARCH ''', r''' $ARM_ARCH ''')
  13512. (''' NEON_FLAGS ''', list(r''' $NEON_FLAGS '''.split()))
  13513. (''' MOZ_CLANG_RT_ASAN_LIB_PATH ''', r''' $MOZ_CLANG_RT_ASAN_LIB_PATH ''')
  13514. (''' LLVM_SYMBOLIZER ''', r''' $LLVM_SYMBOLIZER ''')
  13515. (''' MOZ_ASAN ''', r''' $MOZ_ASAN ''')
  13516. (''' MOZ_MSAN ''', r''' $MOZ_MSAN ''')
  13517. (''' MOZ_TSAN ''', r''' $MOZ_TSAN ''')
  13518. (''' MOZ_NO_WLZDEFS ''', r''' $MOZ_NO_WLZDEFS ''')
  13519. (''' MOZ_CFLAGS_NSS ''', r''' $MOZ_CFLAGS_NSS ''')
  13520. (''' MOZ_VALGRIND ''', r''' $MOZ_VALGRIND ''')
  13521. (''' MOZILLA_SYMBOLVERSION ''', r''' $MOZILLA_SYMBOLVERSION ''')
  13522. (''' MOZILLA_UAVERSION ''', r''' $MOZILLA_UAVERSION ''')
  13523. (''' MOZILLA_UAVERSION_U ''', r''' $MOZILLA_UAVERSION_U ''')
  13524. (''' MMX_FLAGS ''', list(r''' $MMX_FLAGS '''.split()))
  13525. (''' SSE_FLAGS ''', list(r''' $SSE_FLAGS '''.split()))
  13526. (''' SSE2_FLAGS ''', list(r''' $SSE2_FLAGS '''.split()))
  13527. (''' SSSE3_FLAGS ''', list(r''' $SSSE3_FLAGS '''.split()))
  13528. (''' MOZ_LINKER ''', r''' $MOZ_LINKER ''')
  13529. (''' XZ ''', r''' $XZ ''')
  13530. (''' MOZ_NO_DEBUG_RTL ''', r''' $MOZ_NO_DEBUG_RTL ''')
  13531. (''' MOZ_DEBUG_DEFINES ''', list(r''' $MOZ_DEBUG_DEFINES '''.split()))
  13532. (''' LD_IS_BFD ''', r''' $LD_IS_BFD ''')
  13533. (''' LD_PRINT_ICF_SECTIONS ''', r''' $LD_PRINT_ICF_SECTIONS ''')
  13534. (''' MOZ_PROGRAM_LDFLAGS ''', r''' $MOZ_PROGRAM_LDFLAGS ''')
  13535. (''' MOZ_NEEDS_LIBATOMIC ''', r''' $MOZ_NEEDS_LIBATOMIC ''')
  13536. (''' HAVE_DTRACE ''', r''' $HAVE_DTRACE ''')
  13537. (''' XCFLAGS ''', list(r''' $XCFLAGS '''.split()))
  13538. (''' XLDFLAGS ''', list(r''' $XLDFLAGS '''.split()))
  13539. (''' XLIBS ''', list(r''' $XLIBS '''.split()))
  13540. (''' XEXT_LIBS ''', list(r''' $XEXT_LIBS '''.split()))
  13541. (''' XT_LIBS ''', list(r''' $XT_LIBS '''.split()))
  13542. (''' XSS_LIBS ''', list(r''' $XSS_LIBS '''.split()))
  13543. (''' MOZ_USE_PTHREADS ''', r''' $MOZ_USE_PTHREADS ''')
  13544. (''' LIBOBJS ''', r''' $LIBOBJS ''')
  13545. (''' HAVE_CLOCK_MONOTONIC ''', r''' $HAVE_CLOCK_MONOTONIC ''')
  13546. (''' REALTIME_LIBS ''', list(r''' $REALTIME_LIBS '''.split()))
  13547. (''' ICONV_LIBS ''', list(r''' $ICONV_LIBS '''.split()))
  13548. (''' HAVE_LANGINFO_CODESET ''', r''' $HAVE_LANGINFO_CODESET ''')
  13549. (''' MOZ_BUILD_NSPR ''', r''' $MOZ_BUILD_NSPR ''')
  13550. (''' JS_POSIX_NSPR ''', r''' $JS_POSIX_NSPR ''')
  13551. (''' NSPR_CFLAGS ''', list(r''' $NSPR_CFLAGS '''.split()))
  13552. (''' NSPR_INCLUDE_DIR ''', r''' $NSPR_INCLUDE_DIR ''')
  13553. (''' NSPR_LIB_DIR ''', r''' $NSPR_LIB_DIR ''')
  13554. (''' PKGCONF_REQUIRES_PRIVATE ''', r''' $PKGCONF_REQUIRES_PRIVATE ''')
  13555. (''' NSS_CFLAGS ''', r''' $NSS_CFLAGS ''')
  13556. (''' MOZ_ZLIB_CFLAGS ''', list(r''' $MOZ_ZLIB_CFLAGS '''.split()))
  13557. (''' MOZ_ZLIB_LIBS ''', list(r''' $MOZ_ZLIB_LIBS '''.split()))
  13558. (''' MOZ_SYSTEM_ZLIB ''', r''' $MOZ_SYSTEM_ZLIB ''')
  13559. (''' MOZ_GTK3_CFLAGS ''', list(r''' $MOZ_GTK3_CFLAGS '''.split()))
  13560. (''' MOZ_GTK3_LIBS ''', list(r''' $MOZ_GTK3_LIBS '''.split()))
  13561. (''' MOZ_GTK2_CFLAGS ''', list(r''' $MOZ_GTK2_CFLAGS '''.split()))
  13562. (''' MOZ_GTK2_LIBS ''', list(r''' $MOZ_GTK2_LIBS '''.split()))
  13563. (''' MOZ_FS_LAYOUT ''', r''' $MOZ_FS_LAYOUT ''')
  13564. (''' MOZ_STARTUP_NOTIFICATION_CFLAGS ''', list(r''' $MOZ_STARTUP_NOTIFICATION_CFLAGS '''.split()))
  13565. (''' MOZ_STARTUP_NOTIFICATION_LIBS ''', list(r''' $MOZ_STARTUP_NOTIFICATION_LIBS '''.split()))
  13566. (''' MOZ_ENABLE_STARTUP_NOTIFICATION ''', r''' $MOZ_ENABLE_STARTUP_NOTIFICATION ''')
  13567. (''' TK_CFLAGS ''', list(r''' $TK_CFLAGS '''.split()))
  13568. (''' TK_LIBS ''', list(r''' $TK_LIBS '''.split()))
  13569. (''' MOC ''', r''' $MOC ''')
  13570. (''' RCC ''', r''' $RCC ''')
  13571. (''' MOZ_UI_LOCALE ''', r''' $MOZ_UI_LOCALE ''')
  13572. (''' MOZ_OFFICIAL_BRANDING ''', r''' $MOZ_OFFICIAL_BRANDING ''')
  13573. (''' MC_OFFICIAL ''', r''' $MC_OFFICIAL ''')
  13574. (''' MOZ_BRANDING_DIRECTORY ''', r''' $MOZ_BRANDING_DIRECTORY ''')
  13575. (''' MC_PRIVATE_BUILD ''', r''' $MC_PRIVATE_BUILD ''')
  13576. (''' MOZ_DISTRIBUTION_ID ''', r''' $MOZ_DISTRIBUTION_ID ''')
  13577. (''' _GTKCHECK_CFLAGS ''', list(r''' $_GTKCHECK_CFLAGS '''.split()))
  13578. (''' _GTKCHECK_LIBS ''', list(r''' $_GTKCHECK_LIBS '''.split()))
  13579. (''' MOZ_GIO_CFLAGS ''', list(r''' $MOZ_GIO_CFLAGS '''.split()))
  13580. (''' MOZ_GIO_LIBS ''', list(r''' $MOZ_GIO_LIBS '''.split()))
  13581. (''' MOZ_ENABLE_GIO ''', r''' $MOZ_ENABLE_GIO ''')
  13582. (''' MOZ_GCONF_CFLAGS ''', list(r''' $MOZ_GCONF_CFLAGS '''.split()))
  13583. (''' MOZ_GCONF_LIBS ''', list(r''' $MOZ_GCONF_LIBS '''.split()))
  13584. (''' MOZ_ENABLE_GCONF ''', r''' $MOZ_ENABLE_GCONF ''')
  13585. (''' MOZ_LIBPROXY_CFLAGS ''', list(r''' $MOZ_LIBPROXY_CFLAGS '''.split()))
  13586. (''' MOZ_LIBPROXY_LIBS ''', list(r''' $MOZ_LIBPROXY_LIBS '''.split()))
  13587. (''' MOZ_ENABLE_LIBPROXY ''', r''' $MOZ_ENABLE_LIBPROXY ''')
  13588. (''' MOZ_GNOMEUI_CFLAGS ''', list(r''' $MOZ_GNOMEUI_CFLAGS '''.split()))
  13589. (''' MOZ_GNOMEUI_LIBS ''', list(r''' $MOZ_GNOMEUI_LIBS '''.split()))
  13590. (''' MOZ_ENABLE_GNOMEUI ''', r''' $MOZ_ENABLE_GNOMEUI ''')
  13591. (''' MOZ_DBUS_CFLAGS ''', list(r''' $MOZ_DBUS_CFLAGS '''.split()))
  13592. (''' MOZ_DBUS_LIBS ''', list(r''' $MOZ_DBUS_LIBS '''.split()))
  13593. (''' MOZ_DBUS_GLIB_CFLAGS ''', list(r''' $MOZ_DBUS_GLIB_CFLAGS '''.split()))
  13594. (''' MOZ_DBUS_GLIB_LIBS ''', list(r''' $MOZ_DBUS_GLIB_LIBS '''.split()))
  13595. (''' MOZ_ENABLE_DBUS ''', r''' $MOZ_ENABLE_DBUS ''')
  13596. (''' MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI ''', r''' $MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI ''')
  13597. (''' NSS_DISABLE_DBM ''', r''' $NSS_DISABLE_DBM ''')
  13598. (''' MOZ_SECURITY_SQLSTORE ''', r''' $MOZ_SECURITY_SQLSTORE ''')
  13599. (''' MOZ_INCOMPLETE_EXTERNAL_LINKAGE ''', r''' $MOZ_INCOMPLETE_EXTERNAL_LINKAGE ''')
  13600. (''' MOZ_MAILNEWS ''', r''' $MOZ_MAILNEWS ''')
  13601. (''' MOZ_MORK ''', r''' $MOZ_MORK ''')
  13602. (''' MOZ_MOVEMAIL ''', r''' $MOZ_MOVEMAIL ''')
  13603. (''' MOZ_MAILNEWS_OAUTH2 ''', r''' $MOZ_MAILNEWS_OAUTH2 ''')
  13604. (''' MOZ_LDAP_XPCOM ''', r''' $MOZ_LDAP_XPCOM ''')
  13605. (''' MOZ_MAPI_SUPPORT ''', r''' $MOZ_MAPI_SUPPORT ''')
  13606. (''' MOZ_CAN_DRAW_IN_TITLEBAR ''', r''' $MOZ_CAN_DRAW_IN_TITLEBAR ''')
  13607. (''' MOZ_WEBRTC ''', r''' $MOZ_WEBRTC ''')
  13608. (''' MOZ_WEBRTC_SIGNALING ''', r''' $MOZ_WEBRTC_SIGNALING ''')
  13609. (''' MOZ_PEERCONNECTION ''', r''' $MOZ_PEERCONNECTION ''')
  13610. (''' MOZ_WEBRTC_ASSERT_ALWAYS ''', r''' $MOZ_WEBRTC_ASSERT_ALWAYS ''')
  13611. (''' MOZ_WEBRTC_HARDWARE_AEC_NS ''', r''' $MOZ_WEBRTC_HARDWARE_AEC_NS ''')
  13612. (''' MOZ_SCTP ''', r''' $MOZ_SCTP ''')
  13613. (''' MOZ_SRTP ''', r''' $MOZ_SRTP ''')
  13614. (''' MOZ_WEBRTC_X11_LIBS ''', list(r''' $MOZ_WEBRTC_X11_LIBS '''.split()))
  13615. (''' MOZ_SAMPLE_TYPE_S16 ''', r''' $MOZ_SAMPLE_TYPE_S16 ''')
  13616. (''' MOZ_SAMPLE_TYPE_FLOAT32 ''', r''' $MOZ_SAMPLE_TYPE_FLOAT32 ''')
  13617. (''' MOZ_RAW ''', r''' $MOZ_RAW ''')
  13618. (''' MOZ_AV1 ''', r''' $MOZ_AV1 ''')
  13619. (''' MOZ_EME ''', r''' $MOZ_EME ''')
  13620. (''' MOZ_LIBVPX_CFLAGS ''', list(r''' $MOZ_LIBVPX_CFLAGS '''.split()))
  13621. (''' MOZ_LIBVPX_LIBS ''', list(r''' $MOZ_LIBVPX_LIBS '''.split()))
  13622. (''' MOZ_WEBM_ENCODER ''', r''' $MOZ_WEBM_ENCODER ''')
  13623. (''' MOZ_ALSA_CFLAGS ''', list(r''' $MOZ_ALSA_CFLAGS '''.split()))
  13624. (''' MOZ_ALSA_LIBS ''', list(r''' $MOZ_ALSA_LIBS '''.split()))
  13625. (''' MOZ_ALSA ''', r''' $MOZ_ALSA ''')
  13626. (''' MOZ_PULSEAUDIO_CFLAGS ''', list(r''' $MOZ_PULSEAUDIO_CFLAGS '''.split()))
  13627. (''' MOZ_PULSEAUDIO_LIBS ''', list(r''' $MOZ_PULSEAUDIO_LIBS '''.split()))
  13628. (''' MOZ_PULSEAUDIO ''', r''' $MOZ_PULSEAUDIO ''')
  13629. (''' MOZ_SNDIO ''', r''' $MOZ_SNDIO ''')
  13630. (''' MOZ_GAMEPAD ''', r''' $MOZ_GAMEPAD ''')
  13631. (''' MOZ_GAMEPAD_BACKEND ''', r''' $MOZ_GAMEPAD_BACKEND ''')
  13632. (''' MOZ_GIO_COMPONENT ''', r''' $MOZ_GIO_COMPONENT ''')
  13633. (''' CAIRO_FT_CFLAGS ''', list(r''' $CAIRO_FT_CFLAGS '''.split()))
  13634. (''' WGET ''', r''' $WGET ''')
  13635. (''' MOZ_BUNDLED_FONTS ''', r''' $MOZ_BUNDLED_FONTS ''')
  13636. (''' GTEST_HAS_RTTI ''', r''' $GTEST_HAS_RTTI ''')
  13637. (''' GTEST_OS_LINUX_ANDROID ''', r''' $GTEST_OS_LINUX_ANDROID ''')
  13638. (''' GTEST_USE_OWN_TR1_TUPLE ''', r''' $GTEST_USE_OWN_TR1_TUPLE ''')
  13639. (''' GTEST_HAS_CLONE ''', r''' $GTEST_HAS_CLONE ''')
  13640. (''' MOZ_DISABLE_PARENTAL_CONTROLS ''', r''' $MOZ_DISABLE_PARENTAL_CONTROLS ''')
  13641. (''' MOZ_NO_SMART_CARDS ''', r''' $MOZ_NO_SMART_CARDS ''')
  13642. (''' MOZ_SAFE_BROWSING ''', r''' $MOZ_SAFE_BROWSING ''')
  13643. (''' MOZ_URL_CLASSIFIER ''', r''' $MOZ_URL_CLASSIFIER ''')
  13644. (''' MOZ_ZIPWRITER ''', r''' $MOZ_ZIPWRITER ''')
  13645. (''' MOZ_THEME_FASTSTRIPE ''', r''' $MOZ_THEME_FASTSTRIPE ''')
  13646. (''' MOZ_OPTIMIZE ''', r''' $MOZ_OPTIMIZE ''')
  13647. (''' MOZ_FRAMEPTR_FLAGS ''', r''' $MOZ_FRAMEPTR_FLAGS ''')
  13648. (''' MOZ_OPTIMIZE_FLAGS ''', r''' $MOZ_OPTIMIZE_FLAGS ''')
  13649. (''' MOZ_OPTIMIZE_LDFLAGS ''', r''' $MOZ_OPTIMIZE_LDFLAGS ''')
  13650. (''' MOZ_ALLOW_HEAP_EXECUTE_FLAGS ''', list(r''' $MOZ_ALLOW_HEAP_EXECUTE_FLAGS '''.split()))
  13651. (''' MOZ_PGO_OPTIMIZE_FLAGS ''', r''' $MOZ_PGO_OPTIMIZE_FLAGS ''')
  13652. (''' MOZ_REPLACE_MALLOC_LINKAGE ''', r''' $MOZ_REPLACE_MALLOC_LINKAGE ''')
  13653. (''' MOZ_GLUE_IN_PROGRAM ''', r''' $MOZ_GLUE_IN_PROGRAM ''')
  13654. (''' MOZ_GLUE_WRAP_LDFLAGS ''', list(r''' $MOZ_GLUE_WRAP_LDFLAGS '''.split()))
  13655. (''' LLVM_CXXFLAGS ''', r''' $LLVM_CXXFLAGS ''')
  13656. (''' LLVM_LDFLAGS ''', r''' $LLVM_LDFLAGS ''')
  13657. (''' CLANG_LDFLAGS ''', r''' $CLANG_LDFLAGS ''')
  13658. (''' ENABLE_CLANG_PLUGIN ''', r''' $ENABLE_CLANG_PLUGIN ''')
  13659. (''' MOZ_LIBSTDCXX_TARGET_VERSION ''', r''' $MOZ_LIBSTDCXX_TARGET_VERSION ''')
  13660. (''' MOZ_LIBSTDCXX_HOST_VERSION ''', r''' $MOZ_LIBSTDCXX_HOST_VERSION ''')
  13661. (''' DEBUG_JS_MODULES ''', r''' $DEBUG_JS_MODULES ''')
  13662. (''' MOZ_DISABLE_PRECOMPILED_STARTUPCACHE ''', r''' $MOZ_DISABLE_PRECOMPILED_STARTUPCACHE ''')
  13663. (''' MOZ_TASK_TRACER ''', r''' $MOZ_TASK_TRACER ''')
  13664. (''' MOZ_HORIZON ''', r''' $MOZ_HORIZON ''')
  13665. (''' MOZ_DISABLE_STARTUPCACHE ''', r''' $MOZ_DISABLE_STARTUPCACHE ''')
  13666. (''' GAIADIR ''', r''' $GAIADIR ''')
  13667. (''' FXOS_SIMULATOR ''', r''' $FXOS_SIMULATOR ''')
  13668. (''' MOZ_SYNTH_PICO ''', r''' $MOZ_SYNTH_PICO ''')
  13669. (''' MOZ_TIME_MANAGER ''', r''' $MOZ_TIME_MANAGER ''')
  13670. (''' MOZ_AUDIO_CHANNEL_MANAGER ''', r''' $MOZ_AUDIO_CHANNEL_MANAGER ''')
  13671. (''' MOZ_SECUREELEMENT ''', r''' $MOZ_SECUREELEMENT ''')
  13672. (''' MOZ_DEMANGLE_SYMBOLS ''', r''' $MOZ_DEMANGLE_SYMBOLS ''')
  13673. (''' DISABLE_MOZ_RIL_GEOLOC ''', r''' $DISABLE_MOZ_RIL_GEOLOC ''')
  13674. (''' JAR_COMPRESSION ''', r''' $JAR_COMPRESSION ''')
  13675. (''' OMNIJAR_NAME ''', r''' $OMNIJAR_NAME ''')
  13676. (''' MOZ_OMNIJAR ''', r''' $MOZ_OMNIJAR ''')
  13677. (''' MOZ_PACKAGER_FORMAT ''', r''' $MOZ_PACKAGER_FORMAT ''')
  13678. (''' MOZ_CHROME_FILE_FORMAT ''', r''' $MOZ_CHROME_FILE_FORMAT ''')
  13679. (''' MOZ_JETPACK ''', r''' $MOZ_JETPACK ''')
  13680. (''' MOZ_DEVTOOLS_SERVER ''', r''' $MOZ_DEVTOOLS_SERVER ''')
  13681. (''' MOZ_DEVTOOLS ''', r''' $MOZ_DEVTOOLS ''')
  13682. (''' MOZ_USERINFO ''', r''' $MOZ_USERINFO ''')
  13683. (''' MOZ_DOC_INPUT_DIRS ''', r''' $MOZ_DOC_INPUT_DIRS ''')
  13684. (''' MOZ_DOC_INCLUDE_DIRS ''', r''' $MOZ_DOC_INCLUDE_DIRS ''')
  13685. (''' MOZ_DOC_OUTPUT_DIR ''', r''' $MOZ_DOC_OUTPUT_DIR ''')
  13686. (''' PROFILE_GEN_CFLAGS ''', r''' $PROFILE_GEN_CFLAGS ''')
  13687. (''' PROFILE_GEN_LDFLAGS ''', r''' $PROFILE_GEN_LDFLAGS ''')
  13688. (''' PROFILE_USE_CFLAGS ''', r''' $PROFILE_USE_CFLAGS ''')
  13689. (''' PROFILE_USE_LDFLAGS ''', r''' $PROFILE_USE_LDFLAGS ''')
  13690. (''' LIBS_DESC_SUFFIX ''', r''' $LIBS_DESC_SUFFIX ''')
  13691. (''' EXPAND_LIBS_LIST_STYLE ''', r''' $EXPAND_LIBS_LIST_STYLE ''')
  13692. (''' EXPAND_LIBS_ORDER_STYLE ''', r''' $EXPAND_LIBS_ORDER_STYLE ''')
  13693. (''' CL_INCLUDES_PREFIX ''', r''' $CL_INCLUDES_PREFIX ''')
  13694. (''' NONASCII ''', r''' $NONASCII ''')
  13695. (''' GKMEDIAS_SHARED_LIBRARY ''', r''' $GKMEDIAS_SHARED_LIBRARY ''')
  13696. (''' ZLIB_IN_MOZGLUE ''', r''' $ZLIB_IN_MOZGLUE ''')
  13697. (''' GLIB_CFLAGS ''', list(r''' $GLIB_CFLAGS '''.split()))
  13698. (''' GLIB_LIBS ''', list(r''' $GLIB_LIBS '''.split()))
  13699. (''' GLIB_GMODULE_LIBS ''', list(r''' $GLIB_GMODULE_LIBS '''.split()))
  13700. (''' MOZ_PIXMAN_CFLAGS ''', list(r''' $MOZ_PIXMAN_CFLAGS '''.split()))
  13701. (''' MOZ_PIXMAN_LIBS ''', list(r''' $MOZ_PIXMAN_LIBS '''.split()))
  13702. (''' MOZ_ENABLE_CAIRO_FT ''', r''' $MOZ_ENABLE_CAIRO_FT ''')
  13703. (''' MOZ_ENABLE_DWRITE_FONT ''', r''' $MOZ_ENABLE_DWRITE_FONT ''')
  13704. (''' MOZ_ENABLE_D2D_SURFACE ''', r''' $MOZ_ENABLE_D2D_SURFACE ''')
  13705. (''' MOZ_ENABLE_D3D9_LAYER ''', r''' $MOZ_ENABLE_D3D9_LAYER ''')
  13706. (''' MOZ_ENABLE_D3D10_LAYER ''', r''' $MOZ_ENABLE_D3D10_LAYER ''')
  13707. (''' PS_SURFACE_FEATURE ''', r''' $PS_SURFACE_FEATURE ''')
  13708. (''' SVG_SURFACE_FEATURE ''', r''' $SVG_SURFACE_FEATURE ''')
  13709. (''' XLIB_SURFACE_FEATURE ''', r''' $XLIB_SURFACE_FEATURE ''')
  13710. (''' XLIB_XRENDER_SURFACE_FEATURE ''', r''' $XLIB_XRENDER_SURFACE_FEATURE ''')
  13711. (''' QUARTZ_SURFACE_FEATURE ''', r''' $QUARTZ_SURFACE_FEATURE ''')
  13712. (''' QUARTZ_IMAGE_SURFACE_FEATURE ''', r''' $QUARTZ_IMAGE_SURFACE_FEATURE ''')
  13713. (''' WIN32_SURFACE_FEATURE ''', r''' $WIN32_SURFACE_FEATURE ''')
  13714. (''' OS2_SURFACE_FEATURE ''', r''' $OS2_SURFACE_FEATURE ''')
  13715. (''' DIRECTFB_SURFACE_FEATURE ''', r''' $DIRECTFB_SURFACE_FEATURE ''')
  13716. (''' FT_FONT_FEATURE ''', r''' $FT_FONT_FEATURE ''')
  13717. (''' FC_FONT_FEATURE ''', r''' $FC_FONT_FEATURE ''')
  13718. (''' WIN32_FONT_FEATURE ''', r''' $WIN32_FONT_FEATURE ''')
  13719. (''' WIN32_DWRITE_FONT_FEATURE ''', r''' $WIN32_DWRITE_FONT_FEATURE ''')
  13720. (''' WIN32_D2D_SURFACE_FEATURE ''', r''' $WIN32_D2D_SURFACE_FEATURE ''')
  13721. (''' QUARTZ_FONT_FEATURE ''', r''' $QUARTZ_FONT_FEATURE ''')
  13722. (''' PNG_FUNCTIONS_FEATURE ''', r''' $PNG_FUNCTIONS_FEATURE ''')
  13723. (''' QT_SURFACE_FEATURE ''', r''' $QT_SURFACE_FEATURE ''')
  13724. (''' TEE_SURFACE_FEATURE ''', r''' $TEE_SURFACE_FEATURE ''')
  13725. (''' CAIRO_CFLAGS ''', list(r''' $CAIRO_CFLAGS '''.split()))
  13726. (''' CAIRO_LIBS ''', list(r''' $CAIRO_LIBS '''.split()))
  13727. (''' CAIRO_TEE_CFLAGS ''', list(r''' $CAIRO_TEE_CFLAGS '''.split()))
  13728. (''' CAIRO_TEE_LIBS ''', list(r''' $CAIRO_TEE_LIBS '''.split()))
  13729. (''' CAIRO_XRENDER_CFLAGS ''', list(r''' $CAIRO_XRENDER_CFLAGS '''.split()))
  13730. (''' CAIRO_XRENDER_LIBS ''', list(r''' $CAIRO_XRENDER_LIBS '''.split()))
  13731. (''' MOZ_TREE_CAIRO ''', r''' $MOZ_TREE_CAIRO ''')
  13732. (''' MOZ_CAIRO_CFLAGS ''', list(r''' $MOZ_CAIRO_CFLAGS '''.split()))
  13733. (''' MOZ_CAIRO_LIBS ''', list(r''' $MOZ_CAIRO_LIBS '''.split()))
  13734. (''' MOZ_CAIRO_OSLIBS ''', list(r''' $MOZ_CAIRO_OSLIBS '''.split()))
  13735. (''' MOZ_TREE_PIXMAN ''', r''' $MOZ_TREE_PIXMAN ''')
  13736. (''' MOZ_XUL ''', r''' $MOZ_XUL ''')
  13737. (''' NECKO_WIFI ''', r''' $NECKO_WIFI ''')
  13738. (''' NECKO_WIFI_DBUS ''', r''' $NECKO_WIFI_DBUS ''')
  13739. (''' NECKO_COOKIES ''', r''' $NECKO_COOKIES ''')
  13740. (''' ENABLE_MARIONETTE ''', r''' $ENABLE_MARIONETTE ''')
  13741. (''' MOZ_PLACES ''', r''' $MOZ_PLACES ''')
  13742. (''' MOZ_SERVICES_HEALTHREPORT ''', r''' $MOZ_SERVICES_HEALTHREPORT ''')
  13743. (''' MOZ_SERVICES_SYNC ''', r''' $MOZ_SERVICES_SYNC ''')
  13744. (''' AR_FLAGS ''', r''' $AR_FLAGS ''')
  13745. (''' AR_EXTRACT ''', r''' $AR_EXTRACT ''')
  13746. (''' ASFLAGS ''', r''' $ASFLAGS ''')
  13747. (''' AS_DASH_C_FLAG ''', r''' $AS_DASH_C_FLAG ''')
  13748. (''' RC ''', r''' $RC ''')
  13749. (''' RCFLAGS ''', r''' $RCFLAGS ''')
  13750. (''' IMPLIB ''', r''' $IMPLIB ''')
  13751. (''' FILTER ''', r''' $FILTER ''')
  13752. (''' BIN_FLAGS ''', r''' $BIN_FLAGS ''')
  13753. (''' MOZ_AUTH_EXTENSION ''', r''' $MOZ_AUTH_EXTENSION ''')
  13754. (''' MOZ_PREF_EXTENSIONS ''', r''' $MOZ_PREF_EXTENSIONS ''')
  13755. (''' MOZ_DEBUG ''', r''' $MOZ_DEBUG ''')
  13756. (''' MOZ_DEBUG_LDFLAGS ''', r''' $MOZ_DEBUG_LDFLAGS ''')
  13757. (''' WARNINGS_AS_ERRORS ''', r''' $WARNINGS_AS_ERRORS ''')
  13758. (''' MOZ_EXTENSIONS ''', unique_list(r''' $MOZ_EXTENSIONS '''.split()))
  13759. (''' LIBICONV ''', r''' $LIBICONV ''')
  13760. (''' MOZ_TOOLKIT_SEARCH ''', r''' $MOZ_TOOLKIT_SEARCH ''')
  13761. (''' MOZ_FEEDS ''', r''' $MOZ_FEEDS ''')
  13762. (''' ENABLE_TESTS ''', r''' $ENABLE_TESTS ''')
  13763. (''' MOZ_UNIVERSALCHARDET ''', r''' $MOZ_UNIVERSALCHARDET ''')
  13764. (''' ACCESSIBILITY ''', r''' $ACCESSIBILITY ''')
  13765. (''' MOZ_SPELLCHECK ''', r''' $MOZ_SPELLCHECK ''')
  13766. (''' MOZ_VERIFY_MAR_SIGNATURE ''', r''' $MOZ_VERIFY_MAR_SIGNATURE ''')
  13767. (''' MOZ_ENABLE_SIGNMAR ''', r''' $MOZ_ENABLE_SIGNMAR ''')
  13768. (''' MOZ_UPDATER ''', r''' $MOZ_UPDATER ''')
  13769. (''' MOZ_ANGLE_RENDERER ''', r''' $MOZ_ANGLE_RENDERER ''')
  13770. (''' MOZ_D3D_CPU_SUFFIX ''', r''' $MOZ_D3D_CPU_SUFFIX ''')
  13771. (''' MOZ_HAS_WINSDK_WITH_D3D ''', r''' $MOZ_HAS_WINSDK_WITH_D3D ''')
  13772. (''' MOZ_D3DCOMPILER_VISTA_DLL ''', r''' $MOZ_D3DCOMPILER_VISTA_DLL ''')
  13773. (''' MOZ_D3DCOMPILER_VISTA_DLL_PATH ''', r''' $MOZ_D3DCOMPILER_VISTA_DLL_PATH ''')
  13774. (''' MOZ_EXCLUDE_HYPHENATION_DICTIONARIES ''', r''' $MOZ_EXCLUDE_HYPHENATION_DICTIONARIES ''')
  13775. (''' ENABLE_STRIP ''', r''' $ENABLE_STRIP ''')
  13776. (''' PKG_SKIP_STRIP ''', r''' $PKG_SKIP_STRIP ''')
  13777. (''' STRIP_FLAGS ''', r''' $STRIP_FLAGS ''')
  13778. (''' USE_ELF_HACK ''', r''' $USE_ELF_HACK ''')
  13779. (''' INCREMENTAL_LINKER ''', r''' $INCREMENTAL_LINKER ''')
  13780. (''' MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS ''', r''' $MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS ''')
  13781. (''' MOZ_FIX_LINK_PATHS ''', r''' $MOZ_FIX_LINK_PATHS ''')
  13782. (''' MOZ_POST_PROGRAM_COMMAND ''', r''' $MOZ_POST_PROGRAM_COMMAND ''')
  13783. (''' MOZ_LINKER_EXTRACT ''', r''' $MOZ_LINKER_EXTRACT ''')
  13784. (''' MOZ_JSDOWNLOADS ''', r''' $MOZ_JSDOWNLOADS ''')
  13785. (''' MOZ_MACBUNDLE_NAME ''', r''' $MOZ_MACBUNDLE_NAME ''')
  13786. (''' MOZ_MACBUNDLE_ID ''', r''' $MOZ_MACBUNDLE_ID ''')
  13787. (''' MOZ_CHILD_PROCESS_NAME_PIE ''', r''' $MOZ_CHILD_PROCESS_NAME_PIE ''')
  13788. (''' MOZ_CHILD_PROCESS_NAME ''', r''' $MOZ_CHILD_PROCESS_NAME ''')
  13789. (''' MOZ_CHILD_PROCESS_BUNDLE ''', r''' $MOZ_CHILD_PROCESS_BUNDLE ''')
  13790. (''' MOZ_APP_NAME ''', r''' $MOZ_APP_NAME ''')
  13791. (''' MOZ_APP_REMOTINGNAME ''', r''' $MOZ_APP_REMOTINGNAME ''')
  13792. (''' MOZ_APP_DISPLAYNAME ''', r''' $MOZ_APP_DISPLAYNAME ''')
  13793. (''' MOZ_APP_BASENAME ''', r''' $MOZ_APP_BASENAME ''')
  13794. (''' MOZ_APP_VENDOR ''', r''' $MOZ_APP_VENDOR ''')
  13795. (''' MOZ_APP_PROFILE ''', r''' $MOZ_APP_PROFILE ''')
  13796. (''' MOZ_APP_ID ''', r''' $MOZ_APP_ID ''')
  13797. (''' MOZ_APP_ANDROID_VERSION_CODE ''', r''' $MOZ_APP_ANDROID_VERSION_CODE ''')
  13798. (''' MAR_CHANNEL_ID ''', r''' $MAR_CHANNEL_ID ''')
  13799. (''' ACCEPTED_MAR_CHANNEL_IDS ''', r''' $ACCEPTED_MAR_CHANNEL_IDS ''')
  13800. (''' MOZ_PROFILE_MIGRATOR ''', r''' $MOZ_PROFILE_MIGRATOR ''')
  13801. (''' MOZ_APP_UA_NAME ''', r''' $MOZ_APP_UA_NAME ''')
  13802. (''' MOZ_APP_VERSION ''', r''' $MOZ_APP_VERSION ''')
  13803. (''' MOZ_APP_VERSION_DISPLAY ''', r''' $MOZ_APP_VERSION_DISPLAY ''')
  13804. (''' MOZ_APP_MAXVERSION ''', r''' $MOZ_APP_MAXVERSION ''')
  13805. (''' MOZ_UA_OS_AGNOSTIC ''', r''' $MOZ_UA_OS_AGNOSTIC ''')
  13806. (''' MOZ_APP_STATIC_INI ''', r''' $MOZ_APP_STATIC_INI ''')
  13807. (''' MOZ_UA_BUILDID ''', r''' $MOZ_UA_BUILDID ''')
  13808. (''' MOZ_PKG_SPECIAL ''', r''' $MOZ_PKG_SPECIAL ''')
  13809. (''' MOZ_SIMPLE_PACKAGE_NAME ''', r''' $MOZ_SIMPLE_PACKAGE_NAME ''')
  13810. (''' MOZILLA_OFFICIAL ''', r''' $MOZILLA_OFFICIAL ''')
  13811. (''' MOZ_SOURCE_REPO ''', r''' $MOZ_SOURCE_REPO ''')
  13812. (''' MOZ_SOURCE_CHANGESET ''', r''' $MOZ_SOURCE_CHANGESET ''')
  13813. (''' MOZ_INCLUDE_SOURCE_INFO ''', r''' $MOZ_INCLUDE_SOURCE_INFO ''')
  13814. (''' MOZ_DATA_REPORTING ''', r''' $MOZ_DATA_REPORTING ''')
  13815. (''' WIN32_REDIST_DIR ''', r''' $WIN32_REDIST_DIR ''')
  13816. (''' WIN_UCRT_REDIST_DIR ''', r''' $WIN_UCRT_REDIST_DIR ''')
  13817. (''' MOZ_ICU_VERSION ''', r''' $MOZ_ICU_VERSION ''')
  13818. (''' ENABLE_INTL_API ''', r''' $ENABLE_INTL_API ''')
  13819. (''' USE_ICU ''', r''' $USE_ICU ''')
  13820. (''' ICU_DATA_FILE ''', r''' $ICU_DATA_FILE ''')
  13821. (''' MOZ_ICU_DATA_ARCHIVE ''', r''' $MOZ_ICU_DATA_ARCHIVE ''')
  13822. (''' _DEPEND_CFLAGS ''', r''' $_DEPEND_CFLAGS ''')
  13823. (''' MOZ_SYSTEM_JPEG ''', r''' $MOZ_SYSTEM_JPEG ''')
  13824. (''' MOZ_SYSTEM_PNG ''', r''' $MOZ_SYSTEM_PNG ''')
  13825. (''' MOZ_SYSTEM_BZ2 ''', r''' $MOZ_SYSTEM_BZ2 ''')
  13826. (''' MOZ_JPEG_CFLAGS ''', list(r''' $MOZ_JPEG_CFLAGS '''.split()))
  13827. (''' MOZ_JPEG_LIBS ''', list(r''' $MOZ_JPEG_LIBS '''.split()))
  13828. (''' MOZ_BZ2_CFLAGS ''', list(r''' $MOZ_BZ2_CFLAGS '''.split()))
  13829. (''' MOZ_BZ2_LIBS ''', list(r''' $MOZ_BZ2_LIBS '''.split()))
  13830. (''' MOZ_PNG_CFLAGS ''', list(r''' $MOZ_PNG_CFLAGS '''.split()))
  13831. (''' MOZ_PNG_LIBS ''', list(r''' $MOZ_PNG_LIBS '''.split()))
  13832. (''' HOST_CMFLAGS ''', r''' $HOST_CMFLAGS ''')
  13833. (''' HOST_CMMFLAGS ''', r''' $HOST_CMMFLAGS ''')
  13834. (''' OS_COMPILE_CMFLAGS ''', r''' $OS_COMPILE_CMFLAGS ''')
  13835. (''' OS_COMPILE_CMMFLAGS ''', r''' $OS_COMPILE_CMMFLAGS ''')
  13836. (''' OS_CFLAGS ''', r''' $OS_CFLAGS ''')
  13837. (''' OS_CXXFLAGS ''', r''' $OS_CXXFLAGS ''')
  13838. (''' OS_CPPFLAGS ''', r''' $OS_CPPFLAGS ''')
  13839. (''' OS_COMPILE_CFLAGS ''', r''' $OS_COMPILE_CFLAGS ''')
  13840. (''' OS_COMPILE_CXXFLAGS ''', r''' $OS_COMPILE_CXXFLAGS ''')
  13841. (''' OS_LDFLAGS ''', r''' $OS_LDFLAGS ''')
  13842. (''' OS_LIBS ''', r''' $OS_LIBS ''')
  13843. (''' HOST_CC ''', r''' $HOST_CC ''')
  13844. (''' HOST_CXX ''', r''' $HOST_CXX ''')
  13845. (''' HOST_CFLAGS ''', r''' $HOST_CFLAGS ''')
  13846. (''' HOST_CPPFLAGS ''', r''' $HOST_CPPFLAGS ''')
  13847. (''' HOST_CXXFLAGS ''', r''' $HOST_CXXFLAGS ''')
  13848. (''' HOST_LDFLAGS ''', r''' $HOST_LDFLAGS ''')
  13849. (''' HOST_OPTIMIZE_FLAGS ''', r''' $HOST_OPTIMIZE_FLAGS ''')
  13850. (''' HOST_AR_FLAGS ''', r''' $HOST_AR_FLAGS ''')
  13851. (''' HOST_LD ''', r''' $HOST_LD ''')
  13852. (''' HOST_BIN_SUFFIX ''', r''' $HOST_BIN_SUFFIX ''')
  13853. (''' TARGET_XPCOM_ABI ''', r''' $TARGET_XPCOM_ABI ''')
  13854. (''' HAVE_TOOLCHAIN_SUPPORT_MSSSE3 ''', r''' $HAVE_TOOLCHAIN_SUPPORT_MSSSE3 ''')
  13855. (''' HAVE_TOOLCHAIN_SUPPORT_MSSE4_1 ''', r''' $HAVE_TOOLCHAIN_SUPPORT_MSSE4_1 ''')
  13856. (''' HAVE_X86_AVX2 ''', r''' $HAVE_X86_AVX2 ''')
  13857. (''' HAVE_ALTIVEC ''', r''' $HAVE_ALTIVEC ''')
  13858. (''' GCC_USE_GNU_LD ''', r''' $GCC_USE_GNU_LD ''')
  13859. (''' WRAP_LDFLAGS ''', r''' $WRAP_LDFLAGS ''')
  13860. (''' MKSHLIB ''', r''' $MKSHLIB ''')
  13861. (''' MKCSHLIB ''', r''' $MKCSHLIB ''')
  13862. (''' DSO_CFLAGS ''', r''' $DSO_CFLAGS ''')
  13863. (''' DSO_PIC_CFLAGS ''', r''' $DSO_PIC_CFLAGS ''')
  13864. (''' DSO_LDOPTS ''', r''' $DSO_LDOPTS ''')
  13865. (''' LIB_PREFIX ''', r''' $LIB_PREFIX ''')
  13866. (''' DLL_PREFIX ''', r''' $DLL_PREFIX ''')
  13867. (''' DLL_SUFFIX ''', r''' $DLL_SUFFIX ''')
  13868. (''' LIB_SUFFIX ''', r''' $LIB_SUFFIX ''')
  13869. (''' OBJ_SUFFIX ''', r''' $OBJ_SUFFIX ''')
  13870. (''' BIN_SUFFIX ''', r''' $BIN_SUFFIX ''')
  13871. (''' IMPORT_LIB_SUFFIX ''', r''' $IMPORT_LIB_SUFFIX ''')
  13872. (''' USE_N32 ''', r''' $USE_N32 ''')
  13873. (''' CC_VERSION ''', r''' $CC_VERSION ''')
  13874. (''' NS_ENABLE_TSF ''', r''' $NS_ENABLE_TSF ''')
  13875. (''' WIN32_CONSOLE_EXE_LDFLAGS ''', r''' $WIN32_CONSOLE_EXE_LDFLAGS ''')
  13876. (''' WIN32_GUI_EXE_LDFLAGS ''', r''' $WIN32_GUI_EXE_LDFLAGS ''')
  13877. (''' MOZ_VORBIS ''', r''' $MOZ_VORBIS ''')
  13878. (''' MOZ_TREMOR ''', r''' $MOZ_TREMOR ''')
  13879. (''' MOZ_FFVPX ''', r''' $MOZ_FFVPX ''')
  13880. (''' FFVPX_ASFLAGS ''', list(r''' $FFVPX_ASFLAGS '''.split()))
  13881. (''' MOZ_VPX_ERROR_CONCEALMENT ''', r''' $MOZ_VPX_ERROR_CONCEALMENT ''')
  13882. (''' VPX_USE_YASM ''', r''' $VPX_USE_YASM ''')
  13883. (''' VPX_ASFLAGS ''', list(r''' $VPX_ASFLAGS '''.split()))
  13884. (''' VPX_AS_CONVERSION ''', r''' $VPX_AS_CONVERSION ''')
  13885. (''' VPX_X86_ASM ''', r''' $VPX_X86_ASM ''')
  13886. (''' VPX_ARM_ASM ''', r''' $VPX_ARM_ASM ''')
  13887. (''' MOZ_CODE_COVERAGE ''', r''' $MOZ_CODE_COVERAGE ''')
  13888. (''' LIBJPEG_TURBO_USE_YASM ''', r''' $LIBJPEG_TURBO_USE_YASM ''')
  13889. (''' LIBJPEG_TURBO_ASFLAGS ''', list(r''' $LIBJPEG_TURBO_ASFLAGS '''.split()))
  13890. (''' MOZ_LIBAV_FFT ''', r''' $MOZ_LIBAV_FFT ''')
  13891. (''' LIBAV_FFT_ASFLAGS ''', list(r''' $LIBAV_FFT_ASFLAGS '''.split()))
  13892. (''' MOZ_PACKAGE_JSSHELL ''', r''' $MOZ_PACKAGE_JSSHELL ''')
  13893. (''' MOZ_FOLD_LIBS ''', r''' $MOZ_FOLD_LIBS ''')
  13894. (''' MOZ_FOLD_LIBS_FLAGS ''', r''' $MOZ_FOLD_LIBS_FLAGS ''')
  13895. (''' SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE ''', r''' $SOCORRO_SYMBOL_UPLOAD_TOKEN_FILE ''')
  13896. (''' DMG_TOOL ''', r''' $DMG_TOOL ''')
  13897. (''' JS_BINARY ''', r''' $JS_BINARY ''')
  13898. (''' NSS_EXTRA_SYMBOLS_FILE ''', r''' $NSS_EXTRA_SYMBOLS_FILE ''')
  13899. (''' A11Y_LOG ''', r''' $A11Y_LOG ''')
  13900. (''' MOZILLA_VERSION ''', r''' $MOZILLA_VERSION ''')
  13901. (''' DIRECTIVE4 ''', r''' $DIRECTIVE4 ''')
  13902. (''' PREPROCESS_OPTION ''', r''' $PREPROCESS_OPTION ''')
  13903. (''' NSS_DISABLE_LIBPKIX ''', r''' $NSS_DISABLE_LIBPKIX ''')
  13904. (''' WIN_TOP_SRC ''', r''' $WIN_TOP_SRC ''')
  13905. (''' top_srcdir ''', r''' $top_srcdir ''')
  13906. EOF
  13907. for ac_subst_arg in $_subconfigure_ac_subst_args; do
  13908. variable='$'$ac_subst_arg
  13909. echo " (''' $ac_subst_arg ''', r''' `eval echo $variable` ''')," >> $CONFIG_STATUS
  13910. done
  13911. cat >> $CONFIG_STATUS <<\EOF
  13912. ]
  13913. non_global_defines = [
  13914. EOF
  13915. if test -n "$_NON_GLOBAL_ACDEFINES"; then
  13916. for var in $_NON_GLOBAL_ACDEFINES; do
  13917. echo " '$var'," >> $CONFIG_STATUS
  13918. done
  13919. fi
  13920. cat >> $CONFIG_STATUS <<EOF
  13921. ]
  13922. flags = [
  13923. '--enable-release',
  13924. '--with-unify-dist',
  13925. '--with-macos-sdk',
  13926. '--with-macos-private-frameworks',
  13927. '--with-arch',
  13928. '--with-thumb',
  13929. '--with-thumb-interwork',
  13930. '--with-fpu',
  13931. '--with-float-abi',
  13932. '--with-soft-float',
  13933. '--enable-address-sanitizer',
  13934. '--enable-memory-sanitizer',
  13935. '--enable-thread-sanitizer',
  13936. '--enable-llvm-hacks',
  13937. '--enable-valgrind',
  13938. '--with-debug-label',
  13939. '--with-debug-label',
  13940. '--enable-cpp-rtti',
  13941. '--enable-gold',
  13942. '--enable-icf',
  13943. '--enable-pie',
  13944. '--enable-dtrace',
  13945. '--with-pthreads',
  13946. '--with-nspr-cflags',
  13947. '--with-nspr-libs',
  13948. '--enable-nspr-build',
  13949. '--enable-posix-nspr-emulation',
  13950. '--with-system-jpeg',
  13951. '--with-system-zlib',
  13952. '--with-system-bz2',
  13953. '--enable-official-vendor',
  13954. '--enable-official-branding',
  13955. '--with-app-name',
  13956. '--with-app-basename',
  13957. '--enable-startup-notification',
  13958. '--enable-ui-locale',
  13959. '--with-branding',
  13960. '--enable-private-build',
  13961. '--with-distribution-id',
  13962. '--enable-gio',
  13963. '--enable-gconf',
  13964. '--enable-libproxy',
  13965. '--enable-gnomeui',
  13966. '--enable-dbus',
  13967. '--enable-accessibility',
  13968. '--enable-dbm',
  13969. '--enable-security-sqlstore',
  13970. '--enable-incomplete-external-linkage',
  13971. '--enable-mailnews',
  13972. '--enable-mailnews-oauth2',
  13973. '--enable-ldap',
  13974. '--enable-mapi',
  13975. '--enable-webrtc',
  13976. '--enable-hardware-aec-ns',
  13977. '--enable-raw',
  13978. '--enable-av1',
  13979. '--enable-eme',
  13980. '--enable-alsa',
  13981. '--enable-pulseaudio',
  13982. '--enable-sndio',
  13983. '--enable-negotiateauth',
  13984. '--enable-pref-extensions',
  13985. '--enable-system-extension-dirs',
  13986. '--enable-universalchardet',
  13987. '--enable-gamepad',
  13988. '--enable-libjpeg-turbo',
  13989. '--enable-extensions',
  13990. '--enable-bundled-fonts',
  13991. '--enable-verify-mar',
  13992. '--enable-signmar',
  13993. '--enable-updater',
  13994. '--enable-tests',
  13995. '--enable-parental-controls',
  13996. '--enable-feeds',
  13997. '--enable-safe-browsing',
  13998. '--enable-url-classifier',
  13999. '--enable-zipwriter',
  14000. '--enable-faststripe',
  14001. '--enable-optimize',
  14002. '--enable-logrefcnt',
  14003. '--enable-dump-painting',
  14004. '--enable-clang-plugin',
  14005. '--enable-strip',
  14006. '--enable-install-strip',
  14007. '--enable-elf-hack',
  14008. '--enable-stdcxx-compat',
  14009. '--enable-debug-js-modules',
  14010. '--enable-precompiled-startupcache',
  14011. '--enable-tasktracer',
  14012. '--enable-reflow-perf',
  14013. '--enable-startupcache',
  14014. '--enable-synth-pico',
  14015. '--with-jitreport-granularity',
  14016. '--enable-mozril-geoloc',
  14017. '--enable-chrome-format',
  14018. '--enable-chrome-compression',
  14019. '--with-chrome-name',
  14020. '--enable-jetpack',
  14021. '--enable-devtools-server',
  14022. '--enable-devtools',
  14023. '--enable-userinfo',
  14024. '--with-default-mozilla-five-home',
  14025. '--with-user-appdir',
  14026. '--with-doc-input-dirs',
  14027. '--with-doc-include-dirs',
  14028. '--with-doc-output-dir',
  14029. '--enable-shared-media',
  14030. '--enable-system-cairo',
  14031. '--enable-system-pixman',
  14032. '--enable-xul',
  14033. '--enable-necko-wifi',
  14034. '--enable-cookies',
  14035. '--with-macbundlename-prefix',
  14036. ]
  14037. EOF
  14038. # Run freetype configure script
  14039. if test "$MOZ_TREE_FREETYPE"; then
  14040. export CFLAGS="$CFLAGS $MOZ_DEBUG_FLAGS -std=c99"
  14041. export CPPFLAGS="$CPPFLAGS $MOZ_DEBUG_FLAGS"
  14042. export CXXFLAGS="$CXXFLAGS $MOZ_DEBUG_FLAGS"
  14043. export LDFLAGS="$LDFLAGS $MOZ_DEBUG_LDFLAGS"
  14044. # Spaces in the *_CFLAGS and *_LIBS variables are intentionally placed
  14045. # to force freetype to use our settings rather than autodetecting
  14046. if test -n "$MOZ_SYSTEM_PNG"; then
  14047. export LIBPNG_CFLAGS="$MOZ_PNG_CFLAGS "
  14048. else
  14049. export LIBPNG_CFLAGS="-I$_objdir/dist/include"
  14050. fi
  14051. export LIBPNG_LIBS="$MOZ_PNG_LIBS "
  14052. export ZLIB_CFLAGS="$MOZ_ZLIB_CFLAGS "
  14053. export ZLIB_LIBS="$MOZ_ZLIB_LIBS "
  14054. export CONFIG_FILES="unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
  14055. ac_configure_args="$ac_configure_args --host=$target --disable-shared --with-pic=yes --with-zlib=yes --without-bzip2 --with-png=yes --without-harfbuzz"
  14056. if ! test -e modules; then
  14057. mkdir modules
  14058. fi
  14059. # Only export CC, CXX and RANLIB for the subconfigure, and avoid spilling
  14060. # that further down the road.
  14061. (export CC CXX RANLIB;
  14062. for moz_config_dir in modules/freetype2; do
  14063. _CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14064. case "$moz_config_dir" in
  14065. *:*)
  14066. objdir=$(echo $moz_config_dir | awk -F: '{print $2}')
  14067. ;;
  14068. *)
  14069. objdir=$moz_config_dir
  14070. ;;
  14071. esac
  14072. echo $objdir >> subconfigures
  14073. dumpenv="true | "
  14074. case "$host" in
  14075. *-mingw*)
  14076. _CONFIG_SHELL=$(cd $(dirname $_CONFIG_SHELL); pwd -W)/$(basename $_CONFIG_SHELL)
  14077. if test ! -e "$_CONFIG_SHELL" -a -e "${_CONFIG_SHELL}.exe"; then
  14078. _CONFIG_SHELL="${_CONFIG_SHELL}.exe"
  14079. fi
  14080. dumpenv="$PERL $_topsrcdir/build/win32/dumpenv4python.pl $ac_configure_args | "
  14081. ;;
  14082. esac
  14083. eval $dumpenv $PYTHON $_topsrcdir/build/subconfigure.py --prepare "$srcdir" "$moz_config_dir" "$_CONFIG_SHELL" $ac_configure_args
  14084. done
  14085. ) || exit 1
  14086. fi
  14087. if test -z "$direct_nspr_config"; then
  14088. CC="$_SUBDIR_CC"
  14089. CXX="$_SUBDIR_CXX"
  14090. CFLAGS="$_SUBDIR_CFLAGS"
  14091. CPPFLAGS="$_SUBDIR_CPPFLAGS"
  14092. CXXFLAGS="$_SUBDIR_CXXFLAGS"
  14093. LDFLAGS="$_SUBDIR_LDFLAGS"
  14094. HOST_CC="$_SUBDIR_HOST_CC"
  14095. HOST_CFLAGS="$_SUBDIR_HOST_CFLAGS"
  14096. HOST_CXXFLAGS="$_SUBDIR_HOST_CXXFLAGS"
  14097. HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS"
  14098. RC=
  14099. fi
  14100. unset MAKEFILES
  14101. unset CONFIG_FILES
  14102. # Run all configure scripts specified by a subconfigure
  14103. if test -n "$_subconfigure_subdir"; then
  14104. _save_srcdir="$srcdir"
  14105. srcdir="$srcdir/.."
  14106. _save_ac_configure_args="$ac_configure_args"
  14107. ac_configure_args="$_subconfigure_config_args"
  14108. for moz_config_dir_ in "$_subconfigure_subdir"; do
  14109. for moz_config_dir in $moz_config_dir_; do
  14110. _CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14111. case "$moz_config_dir" in
  14112. *:*)
  14113. objdir=$(echo $moz_config_dir | awk -F: '{print $2}')
  14114. ;;
  14115. *)
  14116. objdir=$moz_config_dir
  14117. ;;
  14118. esac
  14119. echo $objdir >> subconfigures
  14120. dumpenv="true | "
  14121. case "$host" in
  14122. *-mingw*)
  14123. _CONFIG_SHELL=$(cd $(dirname $_CONFIG_SHELL); pwd -W)/$(basename $_CONFIG_SHELL)
  14124. if test ! -e "$_CONFIG_SHELL" -a -e "${_CONFIG_SHELL}.exe"; then
  14125. _CONFIG_SHELL="${_CONFIG_SHELL}.exe"
  14126. fi
  14127. dumpenv="$PERL $_topsrcdir/build/win32/dumpenv4python.pl $ac_configure_args | "
  14128. ;;
  14129. esac
  14130. eval $dumpenv $PYTHON $_topsrcdir/build/subconfigure.py --prepare "$srcdir" "$moz_config_dir" "$_CONFIG_SHELL" $ac_configure_args --cache-file="$cache_file"
  14131. done
  14132. tail -1 subconfigures >> skip_subconfigures
  14133. if test "$no_recursion" != yes; then
  14134. trap '' EXIT
  14135. if ! $PYTHON $_topsrcdir/build/subconfigure.py `tail -1 skip_subconfigures`; then
  14136. exit 1
  14137. fi
  14138. fi
  14139. done
  14140. ac_configure_args="$_save_ac_configure_args"
  14141. srcdir="$_save_srcdir"
  14142. fi
  14143. if test "$COMPILE_ENVIRONMENT"; then
  14144. export WRAP_LDFLAGS
  14145. CC="$_SUBDIR_CC"
  14146. CXX="$_SUBDIR_CXX"
  14147. CFLAGS="$_SUBDIR_CFLAGS"
  14148. CPPFLAGS="$_SUBDIR_CPPFLAGS"
  14149. CXXFLAGS="$_SUBDIR_CXXFLAGS"
  14150. LDFLAGS="$_SUBDIR_LDFLAGS"
  14151. HOST_CC="$_SUBDIR_HOST_CC"
  14152. HOST_CFLAGS="$_SUBDIR_HOST_CFLAGS"
  14153. HOST_CXXFLAGS="$_SUBDIR_HOST_CXXFLAGS"
  14154. HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS"
  14155. RC=
  14156. # Run the SpiderMonkey 'configure' script.
  14157. dist=$MOZ_BUILD_ROOT/dist
  14158. ac_configure_args="$_SUBDIR_CONFIG_ARGS"
  14159. # --with-system-nspr will have been converted into the relevant $NSPR_CFLAGS
  14160. # and $NSPR_LIBS.
  14161. ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr\S* *//'`"
  14162. if test "$_INTL_API" = no; then
  14163. ac_configure_args="$ac_configure_args --without-intl-api"
  14164. fi
  14165. if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
  14166. ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'"
  14167. ac_configure_args="$ac_configure_args --with-nspr-libs='$NSPR_LIBS'"
  14168. fi
  14169. ac_configure_args="$ac_configure_args --prefix=$dist"
  14170. if test -n "$ZLIB_IN_MOZGLUE"; then
  14171. MOZ_ZLIB_LIBS=
  14172. fi
  14173. export MOZ_SYSTEM_ZLIB
  14174. export MOZ_ZLIB_CFLAGS
  14175. export MOZ_ZLIB_LIBS
  14176. export MOZ_APP_NAME
  14177. export MOZ_APP_REMOTINGNAME
  14178. export MOZILLA_CENTRAL_PATH=$_topsrcdir
  14179. export STLPORT_CPPFLAGS
  14180. export STLPORT_LIBS
  14181. unset MOZ_BUILD_APP
  14182. export DIST
  14183. export MOZ_LINKER
  14184. export ZLIB_IN_MOZGLUE
  14185. export AR
  14186. export RANLIB
  14187. export CPP
  14188. export CC
  14189. export CXX
  14190. export LD
  14191. export ARFLAGS
  14192. export CPPFLAGS
  14193. export CFLAGS
  14194. export CXXFLAGS
  14195. export LDFLAGS
  14196. export HOST_CC
  14197. export HOST_CXX
  14198. export HOST_CFLAGS
  14199. export HOST_CPPFLAGS
  14200. export HOST_CXXFLAGS
  14201. export HOST_LDFLAGS
  14202. if ! test -e js; then
  14203. mkdir js
  14204. fi
  14205. ac_configure_args="$ac_configure_args JS_STANDALONE="
  14206. for moz_config_dir in js/src; do
  14207. _CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14208. case "$moz_config_dir" in
  14209. *:*)
  14210. objdir=$(echo $moz_config_dir | awk -F: '{print $2}')
  14211. ;;
  14212. *)
  14213. objdir=$moz_config_dir
  14214. ;;
  14215. esac
  14216. echo $objdir >> subconfigures
  14217. dumpenv="true | "
  14218. case "$host" in
  14219. *-mingw*)
  14220. _CONFIG_SHELL=$(cd $(dirname $_CONFIG_SHELL); pwd -W)/$(basename $_CONFIG_SHELL)
  14221. if test ! -e "$_CONFIG_SHELL" -a -e "${_CONFIG_SHELL}.exe"; then
  14222. _CONFIG_SHELL="${_CONFIG_SHELL}.exe"
  14223. fi
  14224. dumpenv="$PERL $_topsrcdir/build/win32/dumpenv4python.pl $ac_configure_args | "
  14225. ;;
  14226. esac
  14227. eval $dumpenv $PYTHON $_topsrcdir/build/subconfigure.py --prepare "$srcdir" "$moz_config_dir" "$_CONFIG_SHELL" $ac_configure_args --cache-file="$cache_file"
  14228. done
  14229. ac_configure_args="$_SUBDIR_CONFIG_ARGS"
  14230. fi # COMPILE_ENVIRONMENT
  14231. if test "$no_recursion" != yes; then
  14232. trap '' EXIT
  14233. if ! $PYTHON $_topsrcdir/build/subconfigure.py --list subconfigures --skip skip_subconfigures; then
  14234. exit 1
  14235. fi
  14236. fi
  14237. rm -fr confdefs* $ac_clean_files