configure 266 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for breakpad 0.1.
  4. #
  5. # Report bugs to <google-breakpad-dev@googlegroups.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: google-breakpad-dev@googlegroups.com about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME='breakpad'
  534. PACKAGE_TARNAME='breakpad'
  535. PACKAGE_VERSION='0.1'
  536. PACKAGE_STRING='breakpad 0.1'
  537. PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
  538. PACKAGE_URL=''
  539. ac_unique_file="README.md"
  540. # Factoring default headers for most tests.
  541. ac_includes_default="\
  542. #include <stdio.h>
  543. #ifdef HAVE_SYS_TYPES_H
  544. # include <sys/types.h>
  545. #endif
  546. #ifdef HAVE_SYS_STAT_H
  547. # include <sys/stat.h>
  548. #endif
  549. #ifdef STDC_HEADERS
  550. # include <stdlib.h>
  551. # include <stddef.h>
  552. #else
  553. # ifdef HAVE_STDLIB_H
  554. # include <stdlib.h>
  555. # endif
  556. #endif
  557. #ifdef HAVE_STRING_H
  558. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  559. # include <memory.h>
  560. # endif
  561. # include <string.h>
  562. #endif
  563. #ifdef HAVE_STRINGS_H
  564. # include <strings.h>
  565. #endif
  566. #ifdef HAVE_INTTYPES_H
  567. # include <inttypes.h>
  568. #endif
  569. #ifdef HAVE_STDINT_H
  570. # include <stdint.h>
  571. #endif
  572. #ifdef HAVE_UNISTD_H
  573. # include <unistd.h>
  574. #endif"
  575. ac_subst_vars='am__EXEEXT_FALSE
  576. am__EXEEXT_TRUE
  577. LTLIBOBJS
  578. LIBOBJS
  579. TESTS_AS_ROOT_FALSE
  580. TESTS_AS_ROOT_TRUE
  581. RUST_DEMANGLE_LIBS
  582. RUST_DEMANGLE_CFLAGS
  583. SELFTEST_FALSE
  584. SELFTEST_TRUE
  585. GTEST_LIBS
  586. GTEST_CFLAGS
  587. GMOCK_LIBS
  588. GMOCK_CFLAGS
  589. SYSTEM_TEST_LIBS_FALSE
  590. SYSTEM_TEST_LIBS_TRUE
  591. DISABLE_TOOLS_FALSE
  592. DISABLE_TOOLS_TRUE
  593. DISABLE_PROCESSOR_FALSE
  594. DISABLE_PROCESSOR_TRUE
  595. X86_HOST_FALSE
  596. X86_HOST_TRUE
  597. ANDROID_HOST_FALSE
  598. ANDROID_HOST_TRUE
  599. LINUX_HOST_FALSE
  600. LINUX_HOST_TRUE
  601. WARN_CXXFLAGS
  602. HAVE_CXX11
  603. HAVE_MEMFD_CREATE_FALSE
  604. HAVE_MEMFD_CREATE_TRUE
  605. HAVE_GETCONTEXT_FALSE
  606. HAVE_GETCONTEXT_TRUE
  607. PTHREAD_CFLAGS
  608. PTHREAD_LIBS
  609. PTHREAD_CC
  610. ax_pthread_config
  611. EGREP
  612. GREP
  613. RANLIB
  614. am__fastdepCXX_FALSE
  615. am__fastdepCXX_TRUE
  616. CXXDEPMODE
  617. ac_ct_CXX
  618. CXXFLAGS
  619. CXX
  620. CPP
  621. am__fastdepCCAS_FALSE
  622. am__fastdepCCAS_TRUE
  623. CCASDEPMODE
  624. CCASFLAGS
  625. CCAS
  626. am__fastdepCC_FALSE
  627. am__fastdepCC_TRUE
  628. CCDEPMODE
  629. am__nodep
  630. AMDEPBACKSLASH
  631. AMDEP_FALSE
  632. AMDEP_TRUE
  633. am__include
  634. DEPDIR
  635. OBJEXT
  636. EXEEXT
  637. ac_ct_CC
  638. CPPFLAGS
  639. LDFLAGS
  640. CFLAGS
  641. CC
  642. ac_ct_AR
  643. AR
  644. MAINT
  645. MAINTAINER_MODE_FALSE
  646. MAINTAINER_MODE_TRUE
  647. AM_BACKSLASH
  648. AM_DEFAULT_VERBOSITY
  649. AM_DEFAULT_V
  650. AM_V
  651. am__untar
  652. am__tar
  653. AMTAR
  654. am__leading_dot
  655. SET_MAKE
  656. AWK
  657. mkdir_p
  658. MKDIR_P
  659. INSTALL_STRIP_PROGRAM
  660. STRIP
  661. install_sh
  662. MAKEINFO
  663. AUTOHEADER
  664. AUTOMAKE
  665. AUTOCONF
  666. ACLOCAL
  667. VERSION
  668. PACKAGE
  669. CYGPATH_W
  670. am__isrc
  671. INSTALL_DATA
  672. INSTALL_SCRIPT
  673. INSTALL_PROGRAM
  674. host_os
  675. host_vendor
  676. host_cpu
  677. host
  678. build_os
  679. build_vendor
  680. build_cpu
  681. build
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. runstatedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL
  721. am__quote'
  722. ac_subst_files=''
  723. ac_user_opts='
  724. enable_option_checking
  725. enable_silent_rules
  726. enable_maintainer_mode
  727. enable_dependency_tracking
  728. enable_m32
  729. enable_largefile
  730. enable_processor
  731. enable_tools
  732. enable_system_test_libs
  733. enable_selftest
  734. with_rust_demangle
  735. with_tests_as_root
  736. '
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. LIBS
  744. CPPFLAGS
  745. CCAS
  746. CCASFLAGS
  747. CPP
  748. CXX
  749. CXXFLAGS
  750. CCC
  751. GMOCK_CFLAGS
  752. GMOCK_LIBS
  753. GTEST_CFLAGS
  754. GTEST_LIBS
  755. RUST_DEMANGLE_CFLAGS
  756. RUST_DEMANGLE_LIBS'
  757. # Initialize some variables set by options.
  758. ac_init_help=
  759. ac_init_version=false
  760. ac_unrecognized_opts=
  761. ac_unrecognized_sep=
  762. # The variables have the same names as the options, with
  763. # dashes changed to underlines.
  764. cache_file=/dev/null
  765. exec_prefix=NONE
  766. no_create=
  767. no_recursion=
  768. prefix=NONE
  769. program_prefix=NONE
  770. program_suffix=NONE
  771. program_transform_name=s,x,x,
  772. silent=
  773. site=
  774. srcdir=
  775. verbose=
  776. x_includes=NONE
  777. x_libraries=NONE
  778. # Installation directory options.
  779. # These are left unexpanded so users can "make install exec_prefix=/foo"
  780. # and all the variables that are supposed to be based on exec_prefix
  781. # by default will actually change.
  782. # Use braces instead of parens because sh, perl, etc. also accept them.
  783. # (The list follows the same order as the GNU Coding Standards.)
  784. bindir='${exec_prefix}/bin'
  785. sbindir='${exec_prefix}/sbin'
  786. libexecdir='${exec_prefix}/libexec'
  787. datarootdir='${prefix}/share'
  788. datadir='${datarootdir}'
  789. sysconfdir='${prefix}/etc'
  790. sharedstatedir='${prefix}/com'
  791. localstatedir='${prefix}/var'
  792. runstatedir='${localstatedir}/run'
  793. includedir='${prefix}/include'
  794. oldincludedir='/usr/include'
  795. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  796. infodir='${datarootdir}/info'
  797. htmldir='${docdir}'
  798. dvidir='${docdir}'
  799. pdfdir='${docdir}'
  800. psdir='${docdir}'
  801. libdir='${exec_prefix}/lib'
  802. localedir='${datarootdir}/locale'
  803. mandir='${datarootdir}/man'
  804. ac_prev=
  805. ac_dashdash=
  806. for ac_option
  807. do
  808. # If the previous option needs an argument, assign it.
  809. if test -n "$ac_prev"; then
  810. eval $ac_prev=\$ac_option
  811. ac_prev=
  812. continue
  813. fi
  814. case $ac_option in
  815. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  816. *=) ac_optarg= ;;
  817. *) ac_optarg=yes ;;
  818. esac
  819. # Accept the important Cygnus configure options, so we can diagnose typos.
  820. case $ac_dashdash$ac_option in
  821. --)
  822. ac_dashdash=yes ;;
  823. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  824. ac_prev=bindir ;;
  825. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  826. bindir=$ac_optarg ;;
  827. -build | --build | --buil | --bui | --bu)
  828. ac_prev=build_alias ;;
  829. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  830. build_alias=$ac_optarg ;;
  831. -cache-file | --cache-file | --cache-fil | --cache-fi \
  832. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  833. ac_prev=cache_file ;;
  834. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  835. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  836. cache_file=$ac_optarg ;;
  837. --config-cache | -C)
  838. cache_file=config.cache ;;
  839. -datadir | --datadir | --datadi | --datad)
  840. ac_prev=datadir ;;
  841. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  842. datadir=$ac_optarg ;;
  843. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  844. | --dataroo | --dataro | --datar)
  845. ac_prev=datarootdir ;;
  846. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  847. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  848. datarootdir=$ac_optarg ;;
  849. -disable-* | --disable-*)
  850. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  851. # Reject names that are not valid shell variable names.
  852. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  853. as_fn_error $? "invalid feature name: $ac_useropt"
  854. ac_useropt_orig=$ac_useropt
  855. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  856. case $ac_user_opts in
  857. *"
  858. "enable_$ac_useropt"
  859. "*) ;;
  860. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  861. ac_unrecognized_sep=', ';;
  862. esac
  863. eval enable_$ac_useropt=no ;;
  864. -docdir | --docdir | --docdi | --doc | --do)
  865. ac_prev=docdir ;;
  866. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  867. docdir=$ac_optarg ;;
  868. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  869. ac_prev=dvidir ;;
  870. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  871. dvidir=$ac_optarg ;;
  872. -enable-* | --enable-*)
  873. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  874. # Reject names that are not valid shell variable names.
  875. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  876. as_fn_error $? "invalid feature name: $ac_useropt"
  877. ac_useropt_orig=$ac_useropt
  878. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  879. case $ac_user_opts in
  880. *"
  881. "enable_$ac_useropt"
  882. "*) ;;
  883. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  884. ac_unrecognized_sep=', ';;
  885. esac
  886. eval enable_$ac_useropt=\$ac_optarg ;;
  887. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  888. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  889. | --exec | --exe | --ex)
  890. ac_prev=exec_prefix ;;
  891. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  892. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  893. | --exec=* | --exe=* | --ex=*)
  894. exec_prefix=$ac_optarg ;;
  895. -gas | --gas | --ga | --g)
  896. # Obsolete; use --with-gas.
  897. with_gas=yes ;;
  898. -help | --help | --hel | --he | -h)
  899. ac_init_help=long ;;
  900. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  901. ac_init_help=recursive ;;
  902. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  903. ac_init_help=short ;;
  904. -host | --host | --hos | --ho)
  905. ac_prev=host_alias ;;
  906. -host=* | --host=* | --hos=* | --ho=*)
  907. host_alias=$ac_optarg ;;
  908. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  909. ac_prev=htmldir ;;
  910. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  911. | --ht=*)
  912. htmldir=$ac_optarg ;;
  913. -includedir | --includedir | --includedi | --included | --include \
  914. | --includ | --inclu | --incl | --inc)
  915. ac_prev=includedir ;;
  916. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  917. | --includ=* | --inclu=* | --incl=* | --inc=*)
  918. includedir=$ac_optarg ;;
  919. -infodir | --infodir | --infodi | --infod | --info | --inf)
  920. ac_prev=infodir ;;
  921. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  922. infodir=$ac_optarg ;;
  923. -libdir | --libdir | --libdi | --libd)
  924. ac_prev=libdir ;;
  925. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  926. libdir=$ac_optarg ;;
  927. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  928. | --libexe | --libex | --libe)
  929. ac_prev=libexecdir ;;
  930. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  931. | --libexe=* | --libex=* | --libe=*)
  932. libexecdir=$ac_optarg ;;
  933. -localedir | --localedir | --localedi | --localed | --locale)
  934. ac_prev=localedir ;;
  935. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  936. localedir=$ac_optarg ;;
  937. -localstatedir | --localstatedir | --localstatedi | --localstated \
  938. | --localstate | --localstat | --localsta | --localst | --locals)
  939. ac_prev=localstatedir ;;
  940. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  941. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  942. localstatedir=$ac_optarg ;;
  943. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  944. ac_prev=mandir ;;
  945. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  946. mandir=$ac_optarg ;;
  947. -nfp | --nfp | --nf)
  948. # Obsolete; use --without-fp.
  949. with_fp=no ;;
  950. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  951. | --no-cr | --no-c | -n)
  952. no_create=yes ;;
  953. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  954. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  955. no_recursion=yes ;;
  956. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  957. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  958. | --oldin | --oldi | --old | --ol | --o)
  959. ac_prev=oldincludedir ;;
  960. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  961. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  962. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  963. oldincludedir=$ac_optarg ;;
  964. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  965. ac_prev=prefix ;;
  966. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  967. prefix=$ac_optarg ;;
  968. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  969. | --program-pre | --program-pr | --program-p)
  970. ac_prev=program_prefix ;;
  971. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  972. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  973. program_prefix=$ac_optarg ;;
  974. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  975. | --program-suf | --program-su | --program-s)
  976. ac_prev=program_suffix ;;
  977. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  978. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  979. program_suffix=$ac_optarg ;;
  980. -program-transform-name | --program-transform-name \
  981. | --program-transform-nam | --program-transform-na \
  982. | --program-transform-n | --program-transform- \
  983. | --program-transform | --program-transfor \
  984. | --program-transfo | --program-transf \
  985. | --program-trans | --program-tran \
  986. | --progr-tra | --program-tr | --program-t)
  987. ac_prev=program_transform_name ;;
  988. -program-transform-name=* | --program-transform-name=* \
  989. | --program-transform-nam=* | --program-transform-na=* \
  990. | --program-transform-n=* | --program-transform-=* \
  991. | --program-transform=* | --program-transfor=* \
  992. | --program-transfo=* | --program-transf=* \
  993. | --program-trans=* | --program-tran=* \
  994. | --progr-tra=* | --program-tr=* | --program-t=*)
  995. program_transform_name=$ac_optarg ;;
  996. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  997. ac_prev=pdfdir ;;
  998. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  999. pdfdir=$ac_optarg ;;
  1000. -psdir | --psdir | --psdi | --psd | --ps)
  1001. ac_prev=psdir ;;
  1002. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1003. psdir=$ac_optarg ;;
  1004. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1005. | -silent | --silent | --silen | --sile | --sil)
  1006. silent=yes ;;
  1007. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1008. | --runstate | --runstat | --runsta | --runst | --runs \
  1009. | --run | --ru | --r)
  1010. ac_prev=runstatedir ;;
  1011. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1012. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1013. | --run=* | --ru=* | --r=*)
  1014. runstatedir=$ac_optarg ;;
  1015. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1016. ac_prev=sbindir ;;
  1017. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1018. | --sbi=* | --sb=*)
  1019. sbindir=$ac_optarg ;;
  1020. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1021. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1022. | --sharedst | --shareds | --shared | --share | --shar \
  1023. | --sha | --sh)
  1024. ac_prev=sharedstatedir ;;
  1025. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1026. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1027. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1028. | --sha=* | --sh=*)
  1029. sharedstatedir=$ac_optarg ;;
  1030. -site | --site | --sit)
  1031. ac_prev=site ;;
  1032. -site=* | --site=* | --sit=*)
  1033. site=$ac_optarg ;;
  1034. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1035. ac_prev=srcdir ;;
  1036. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1037. srcdir=$ac_optarg ;;
  1038. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1039. | --syscon | --sysco | --sysc | --sys | --sy)
  1040. ac_prev=sysconfdir ;;
  1041. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1042. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1043. sysconfdir=$ac_optarg ;;
  1044. -target | --target | --targe | --targ | --tar | --ta | --t)
  1045. ac_prev=target_alias ;;
  1046. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1047. target_alias=$ac_optarg ;;
  1048. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1049. verbose=yes ;;
  1050. -version | --version | --versio | --versi | --vers | -V)
  1051. ac_init_version=: ;;
  1052. -with-* | --with-*)
  1053. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1054. # Reject names that are not valid shell variable names.
  1055. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1056. as_fn_error $? "invalid package name: $ac_useropt"
  1057. ac_useropt_orig=$ac_useropt
  1058. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1059. case $ac_user_opts in
  1060. *"
  1061. "with_$ac_useropt"
  1062. "*) ;;
  1063. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1064. ac_unrecognized_sep=', ';;
  1065. esac
  1066. eval with_$ac_useropt=\$ac_optarg ;;
  1067. -without-* | --without-*)
  1068. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1069. # Reject names that are not valid shell variable names.
  1070. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1071. as_fn_error $? "invalid package name: $ac_useropt"
  1072. ac_useropt_orig=$ac_useropt
  1073. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1074. case $ac_user_opts in
  1075. *"
  1076. "with_$ac_useropt"
  1077. "*) ;;
  1078. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1079. ac_unrecognized_sep=', ';;
  1080. esac
  1081. eval with_$ac_useropt=no ;;
  1082. --x)
  1083. # Obsolete; use --with-x.
  1084. with_x=yes ;;
  1085. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1086. | --x-incl | --x-inc | --x-in | --x-i)
  1087. ac_prev=x_includes ;;
  1088. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1089. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1090. x_includes=$ac_optarg ;;
  1091. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1092. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1093. ac_prev=x_libraries ;;
  1094. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1095. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1096. x_libraries=$ac_optarg ;;
  1097. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1098. Try \`$0 --help' for more information"
  1099. ;;
  1100. *=*)
  1101. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1102. # Reject names that are not valid shell variable names.
  1103. case $ac_envvar in #(
  1104. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1105. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1106. esac
  1107. eval $ac_envvar=\$ac_optarg
  1108. export $ac_envvar ;;
  1109. *)
  1110. # FIXME: should be removed in autoconf 3.0.
  1111. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1112. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1113. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1114. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1115. ;;
  1116. esac
  1117. done
  1118. if test -n "$ac_prev"; then
  1119. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1120. as_fn_error $? "missing argument to $ac_option"
  1121. fi
  1122. if test -n "$ac_unrecognized_opts"; then
  1123. case $enable_option_checking in
  1124. no) ;;
  1125. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1126. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1127. esac
  1128. fi
  1129. # Check all directory arguments for consistency.
  1130. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1131. datadir sysconfdir sharedstatedir localstatedir includedir \
  1132. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1133. libdir localedir mandir runstatedir
  1134. do
  1135. eval ac_val=\$$ac_var
  1136. # Remove trailing slashes.
  1137. case $ac_val in
  1138. */ )
  1139. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1140. eval $ac_var=\$ac_val;;
  1141. esac
  1142. # Be sure to have absolute directory names.
  1143. case $ac_val in
  1144. [\\/$]* | ?:[\\/]* ) continue;;
  1145. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1146. esac
  1147. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1148. done
  1149. # There might be people who depend on the old broken behavior: `$host'
  1150. # used to hold the argument of --host etc.
  1151. # FIXME: To remove some day.
  1152. build=$build_alias
  1153. host=$host_alias
  1154. target=$target_alias
  1155. # FIXME: To remove some day.
  1156. if test "x$host_alias" != x; then
  1157. if test "x$build_alias" = x; then
  1158. cross_compiling=maybe
  1159. elif test "x$build_alias" != "x$host_alias"; then
  1160. cross_compiling=yes
  1161. fi
  1162. fi
  1163. ac_tool_prefix=
  1164. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1165. test "$silent" = yes && exec 6>/dev/null
  1166. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1167. ac_ls_di=`ls -di .` &&
  1168. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1169. as_fn_error $? "working directory cannot be determined"
  1170. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1171. as_fn_error $? "pwd does not report name of working directory"
  1172. # Find the source files, if location was not specified.
  1173. if test -z "$srcdir"; then
  1174. ac_srcdir_defaulted=yes
  1175. # Try the directory containing this script, then the parent directory.
  1176. ac_confdir=`$as_dirname -- "$as_myself" ||
  1177. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1178. X"$as_myself" : 'X\(//\)[^/]' \| \
  1179. X"$as_myself" : 'X\(//\)$' \| \
  1180. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1181. $as_echo X"$as_myself" |
  1182. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1183. s//\1/
  1184. q
  1185. }
  1186. /^X\(\/\/\)[^/].*/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\/\)$/{
  1191. s//\1/
  1192. q
  1193. }
  1194. /^X\(\/\).*/{
  1195. s//\1/
  1196. q
  1197. }
  1198. s/.*/./; q'`
  1199. srcdir=$ac_confdir
  1200. if test ! -r "$srcdir/$ac_unique_file"; then
  1201. srcdir=..
  1202. fi
  1203. else
  1204. ac_srcdir_defaulted=no
  1205. fi
  1206. if test ! -r "$srcdir/$ac_unique_file"; then
  1207. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1208. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1209. fi
  1210. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1211. ac_abs_confdir=`(
  1212. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1213. pwd)`
  1214. # When building in place, set srcdir=.
  1215. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1216. srcdir=.
  1217. fi
  1218. # Remove unnecessary trailing slashes from srcdir.
  1219. # Double slashes in file names in object file debugging info
  1220. # mess up M-x gdb in Emacs.
  1221. case $srcdir in
  1222. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1223. esac
  1224. for ac_var in $ac_precious_vars; do
  1225. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1226. eval ac_env_${ac_var}_value=\$${ac_var}
  1227. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1228. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1229. done
  1230. #
  1231. # Report the --help message.
  1232. #
  1233. if test "$ac_init_help" = "long"; then
  1234. # Omit some internal or obsolete options to make the list less imposing.
  1235. # This message is too long to be a string in the A/UX 3.1 sh.
  1236. cat <<_ACEOF
  1237. \`configure' configures breakpad 0.1 to adapt to many kinds of systems.
  1238. Usage: $0 [OPTION]... [VAR=VALUE]...
  1239. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1240. VAR=VALUE. See below for descriptions of some of the useful variables.
  1241. Defaults for the options are specified in brackets.
  1242. Configuration:
  1243. -h, --help display this help and exit
  1244. --help=short display options specific to this package
  1245. --help=recursive display the short help of all the included packages
  1246. -V, --version display version information and exit
  1247. -q, --quiet, --silent do not print \`checking ...' messages
  1248. --cache-file=FILE cache test results in FILE [disabled]
  1249. -C, --config-cache alias for \`--cache-file=config.cache'
  1250. -n, --no-create do not create output files
  1251. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1252. Installation directories:
  1253. --prefix=PREFIX install architecture-independent files in PREFIX
  1254. [$ac_default_prefix]
  1255. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1256. [PREFIX]
  1257. By default, \`make install' will install all the files in
  1258. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1259. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1260. for instance \`--prefix=\$HOME'.
  1261. For better control, use the options below.
  1262. Fine tuning of the installation directories:
  1263. --bindir=DIR user executables [EPREFIX/bin]
  1264. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1265. --libexecdir=DIR program executables [EPREFIX/libexec]
  1266. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1267. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1268. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1269. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1270. --libdir=DIR object code libraries [EPREFIX/lib]
  1271. --includedir=DIR C header files [PREFIX/include]
  1272. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1273. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1274. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1275. --infodir=DIR info documentation [DATAROOTDIR/info]
  1276. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1277. --mandir=DIR man documentation [DATAROOTDIR/man]
  1278. --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad]
  1279. --htmldir=DIR html documentation [DOCDIR]
  1280. --dvidir=DIR dvi documentation [DOCDIR]
  1281. --pdfdir=DIR pdf documentation [DOCDIR]
  1282. --psdir=DIR ps documentation [DOCDIR]
  1283. _ACEOF
  1284. cat <<\_ACEOF
  1285. Program names:
  1286. --program-prefix=PREFIX prepend PREFIX to installed program names
  1287. --program-suffix=SUFFIX append SUFFIX to installed program names
  1288. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1289. System types:
  1290. --build=BUILD configure for building on BUILD [guessed]
  1291. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1292. _ACEOF
  1293. fi
  1294. if test -n "$ac_init_help"; then
  1295. case $ac_init_help in
  1296. short | recursive ) echo "Configuration of breakpad 0.1:";;
  1297. esac
  1298. cat <<\_ACEOF
  1299. Optional Features:
  1300. --disable-option-checking ignore unrecognized --enable/--with options
  1301. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1302. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1303. --enable-silent-rules less verbose build output (undo: "make V=1")
  1304. --disable-silent-rules verbose build output (undo: "make V=0")
  1305. --enable-maintainer-mode
  1306. enable make rules and dependencies not useful (and
  1307. sometimes confusing) to the casual installer
  1308. --enable-dependency-tracking
  1309. do not reject slow dependency extractors
  1310. --disable-dependency-tracking
  1311. speeds up one-time build
  1312. --enable-m32 Compile/build with -m32 (default is no)
  1313. --disable-largefile omit support for large files
  1314. --disable-processor Don't build processor library (default is no)
  1315. --disable-tools Don't build tool binaries (default is no)
  1316. --enable-system-test-libs
  1317. Use gtest/gmock/etc... from the system instead of
  1318. the local copies (default is local)
  1319. --enable-selftest Run extra tests with "make check" (may conflict with
  1320. optimizations) (default is no)
  1321. Optional Packages:
  1322. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1323. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1324. --with-rust-demangle=/path/to/rust-demangle-capi
  1325. Link against the rust-demangle library to demangle
  1326. Rust language symbols during symbol dumping (default
  1327. is no) Pass the path to the crate root.
  1328. --with-tests-as-root Run the tests as root. Use this on platforms like
  1329. travis-ci.org that require root privileges to use
  1330. ptrace (default is no)
  1331. Some influential environment variables:
  1332. CC C compiler command
  1333. CFLAGS C compiler flags
  1334. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1335. nonstandard directory <lib dir>
  1336. LIBS libraries to pass to the linker, e.g. -l<library>
  1337. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1338. you have headers in a nonstandard directory <include dir>
  1339. CCAS assembler compiler command (defaults to CC)
  1340. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1341. CPP C preprocessor
  1342. CXX C++ compiler command
  1343. CXXFLAGS C++ compiler flags
  1344. GMOCK_CFLAGS
  1345. Compiler flags for gmock
  1346. GMOCK_LIBS Linker flags for gmock
  1347. GTEST_CFLAGS
  1348. Compiler flags for gtest
  1349. GTEST_LIBS Linker flags for gtest
  1350. RUST_DEMANGLE_CFLAGS
  1351. Compiler flags for rust-demangle
  1352. RUST_DEMANGLE_LIBS
  1353. Linker flags for rust-demangle
  1354. Use these variables to override the choices made by `configure' or to help
  1355. it to find libraries and programs with nonstandard names/locations.
  1356. Report bugs to <google-breakpad-dev@googlegroups.com>.
  1357. _ACEOF
  1358. ac_status=$?
  1359. fi
  1360. if test "$ac_init_help" = "recursive"; then
  1361. # If there are subdirs, report their specific --help.
  1362. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1363. test -d "$ac_dir" ||
  1364. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1365. continue
  1366. ac_builddir=.
  1367. case "$ac_dir" in
  1368. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1369. *)
  1370. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1371. # A ".." for each directory in $ac_dir_suffix.
  1372. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1373. case $ac_top_builddir_sub in
  1374. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1375. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1376. esac ;;
  1377. esac
  1378. ac_abs_top_builddir=$ac_pwd
  1379. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1380. # for backward compatibility:
  1381. ac_top_builddir=$ac_top_build_prefix
  1382. case $srcdir in
  1383. .) # We are building in place.
  1384. ac_srcdir=.
  1385. ac_top_srcdir=$ac_top_builddir_sub
  1386. ac_abs_top_srcdir=$ac_pwd ;;
  1387. [\\/]* | ?:[\\/]* ) # Absolute name.
  1388. ac_srcdir=$srcdir$ac_dir_suffix;
  1389. ac_top_srcdir=$srcdir
  1390. ac_abs_top_srcdir=$srcdir ;;
  1391. *) # Relative name.
  1392. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1393. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1394. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1395. esac
  1396. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1397. cd "$ac_dir" || { ac_status=$?; continue; }
  1398. # Check for guested configure.
  1399. if test -f "$ac_srcdir/configure.gnu"; then
  1400. echo &&
  1401. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1402. elif test -f "$ac_srcdir/configure"; then
  1403. echo &&
  1404. $SHELL "$ac_srcdir/configure" --help=recursive
  1405. else
  1406. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1407. fi || ac_status=$?
  1408. cd "$ac_pwd" || { ac_status=$?; break; }
  1409. done
  1410. fi
  1411. test -n "$ac_init_help" && exit $ac_status
  1412. if $ac_init_version; then
  1413. cat <<\_ACEOF
  1414. breakpad configure 0.1
  1415. generated by GNU Autoconf 2.69
  1416. Copyright (C) 2012 Free Software Foundation, Inc.
  1417. This configure script is free software; the Free Software Foundation
  1418. gives unlimited permission to copy, distribute and modify it.
  1419. _ACEOF
  1420. exit
  1421. fi
  1422. ## ------------------------ ##
  1423. ## Autoconf initialization. ##
  1424. ## ------------------------ ##
  1425. # ac_fn_c_try_compile LINENO
  1426. # --------------------------
  1427. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_compile ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. rm -f conftest.$ac_objext
  1432. if { { ac_try="$ac_compile"
  1433. case "(($ac_try" in
  1434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1435. *) ac_try_echo=$ac_try;;
  1436. esac
  1437. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1438. $as_echo "$ac_try_echo"; } >&5
  1439. (eval "$ac_compile") 2>conftest.err
  1440. ac_status=$?
  1441. if test -s conftest.err; then
  1442. grep -v '^ *+' conftest.err >conftest.er1
  1443. cat conftest.er1 >&5
  1444. mv -f conftest.er1 conftest.err
  1445. fi
  1446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1447. test $ac_status = 0; } && {
  1448. test -z "$ac_c_werror_flag" ||
  1449. test ! -s conftest.err
  1450. } && test -s conftest.$ac_objext; then :
  1451. ac_retval=0
  1452. else
  1453. $as_echo "$as_me: failed program was:" >&5
  1454. sed 's/^/| /' conftest.$ac_ext >&5
  1455. ac_retval=1
  1456. fi
  1457. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1458. as_fn_set_status $ac_retval
  1459. } # ac_fn_c_try_compile
  1460. # ac_fn_c_try_cpp LINENO
  1461. # ----------------------
  1462. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1463. ac_fn_c_try_cpp ()
  1464. {
  1465. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1466. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1467. case "(($ac_try" in
  1468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1469. *) ac_try_echo=$ac_try;;
  1470. esac
  1471. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1472. $as_echo "$ac_try_echo"; } >&5
  1473. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1474. ac_status=$?
  1475. if test -s conftest.err; then
  1476. grep -v '^ *+' conftest.err >conftest.er1
  1477. cat conftest.er1 >&5
  1478. mv -f conftest.er1 conftest.err
  1479. fi
  1480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1481. test $ac_status = 0; } > conftest.i && {
  1482. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1483. test ! -s conftest.err
  1484. }; then :
  1485. ac_retval=0
  1486. else
  1487. $as_echo "$as_me: failed program was:" >&5
  1488. sed 's/^/| /' conftest.$ac_ext >&5
  1489. ac_retval=1
  1490. fi
  1491. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1492. as_fn_set_status $ac_retval
  1493. } # ac_fn_c_try_cpp
  1494. # ac_fn_cxx_try_compile LINENO
  1495. # ----------------------------
  1496. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1497. ac_fn_cxx_try_compile ()
  1498. {
  1499. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1500. rm -f conftest.$ac_objext
  1501. if { { ac_try="$ac_compile"
  1502. case "(($ac_try" in
  1503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1504. *) ac_try_echo=$ac_try;;
  1505. esac
  1506. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1507. $as_echo "$ac_try_echo"; } >&5
  1508. (eval "$ac_compile") 2>conftest.err
  1509. ac_status=$?
  1510. if test -s conftest.err; then
  1511. grep -v '^ *+' conftest.err >conftest.er1
  1512. cat conftest.er1 >&5
  1513. mv -f conftest.er1 conftest.err
  1514. fi
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; } && {
  1517. test -z "$ac_cxx_werror_flag" ||
  1518. test ! -s conftest.err
  1519. } && test -s conftest.$ac_objext; then :
  1520. ac_retval=0
  1521. else
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=1
  1525. fi
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. as_fn_set_status $ac_retval
  1528. } # ac_fn_cxx_try_compile
  1529. # ac_fn_c_try_run LINENO
  1530. # ----------------------
  1531. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1532. # that executables *can* be run.
  1533. ac_fn_c_try_run ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. if { { ac_try="$ac_link"
  1537. case "(($ac_try" in
  1538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1539. *) ac_try_echo=$ac_try;;
  1540. esac
  1541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1542. $as_echo "$ac_try_echo"; } >&5
  1543. (eval "$ac_link") 2>&5
  1544. ac_status=$?
  1545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1546. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1547. { { case "(($ac_try" in
  1548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1549. *) ac_try_echo=$ac_try;;
  1550. esac
  1551. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1552. $as_echo "$ac_try_echo"; } >&5
  1553. (eval "$ac_try") 2>&5
  1554. ac_status=$?
  1555. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1556. test $ac_status = 0; }; }; then :
  1557. ac_retval=0
  1558. else
  1559. $as_echo "$as_me: program exited with status $ac_status" >&5
  1560. $as_echo "$as_me: failed program was:" >&5
  1561. sed 's/^/| /' conftest.$ac_ext >&5
  1562. ac_retval=$ac_status
  1563. fi
  1564. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1565. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1566. as_fn_set_status $ac_retval
  1567. } # ac_fn_c_try_run
  1568. # ac_fn_c_try_link LINENO
  1569. # -----------------------
  1570. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1571. ac_fn_c_try_link ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. rm -f conftest.$ac_objext conftest$ac_exeext
  1575. if { { ac_try="$ac_link"
  1576. case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1581. $as_echo "$ac_try_echo"; } >&5
  1582. (eval "$ac_link") 2>conftest.err
  1583. ac_status=$?
  1584. if test -s conftest.err; then
  1585. grep -v '^ *+' conftest.err >conftest.er1
  1586. cat conftest.er1 >&5
  1587. mv -f conftest.er1 conftest.err
  1588. fi
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && {
  1591. test -z "$ac_c_werror_flag" ||
  1592. test ! -s conftest.err
  1593. } && test -s conftest$ac_exeext && {
  1594. test "$cross_compiling" = yes ||
  1595. test -x conftest$ac_exeext
  1596. }; then :
  1597. ac_retval=0
  1598. else
  1599. $as_echo "$as_me: failed program was:" >&5
  1600. sed 's/^/| /' conftest.$ac_ext >&5
  1601. ac_retval=1
  1602. fi
  1603. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1604. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1605. # interfere with the next link command; also delete a directory that is
  1606. # left behind by Apple's compiler. We do this before executing the actions.
  1607. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1608. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1609. as_fn_set_status $ac_retval
  1610. } # ac_fn_c_try_link
  1611. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1612. # -------------------------------------------------------
  1613. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1614. # the include files in INCLUDES and setting the cache variable VAR
  1615. # accordingly.
  1616. ac_fn_c_check_header_mongrel ()
  1617. {
  1618. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1619. if eval \${$3+:} false; then :
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1621. $as_echo_n "checking for $2... " >&6; }
  1622. if eval \${$3+:} false; then :
  1623. $as_echo_n "(cached) " >&6
  1624. fi
  1625. eval ac_res=\$$3
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1627. $as_echo "$ac_res" >&6; }
  1628. else
  1629. # Is the header compilable?
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1631. $as_echo_n "checking $2 usability... " >&6; }
  1632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end confdefs.h. */
  1634. $4
  1635. #include <$2>
  1636. _ACEOF
  1637. if ac_fn_c_try_compile "$LINENO"; then :
  1638. ac_header_compiler=yes
  1639. else
  1640. ac_header_compiler=no
  1641. fi
  1642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1644. $as_echo "$ac_header_compiler" >&6; }
  1645. # Is the header present?
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1647. $as_echo_n "checking $2 presence... " >&6; }
  1648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1649. /* end confdefs.h. */
  1650. #include <$2>
  1651. _ACEOF
  1652. if ac_fn_c_try_cpp "$LINENO"; then :
  1653. ac_header_preproc=yes
  1654. else
  1655. ac_header_preproc=no
  1656. fi
  1657. rm -f conftest.err conftest.i conftest.$ac_ext
  1658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1659. $as_echo "$ac_header_preproc" >&6; }
  1660. # So? What about this header?
  1661. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1662. yes:no: )
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1664. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1666. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1667. ;;
  1668. no:yes:* )
  1669. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1670. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1672. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1674. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1676. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1678. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1679. ( $as_echo "## --------------------------------------------------- ##
  1680. ## Report this to google-breakpad-dev@googlegroups.com ##
  1681. ## --------------------------------------------------- ##"
  1682. ) | sed "s/^/$as_me: WARNING: /" >&2
  1683. ;;
  1684. esac
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1686. $as_echo_n "checking for $2... " >&6; }
  1687. if eval \${$3+:} false; then :
  1688. $as_echo_n "(cached) " >&6
  1689. else
  1690. eval "$3=\$ac_header_compiler"
  1691. fi
  1692. eval ac_res=\$$3
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. $as_echo "$ac_res" >&6; }
  1695. fi
  1696. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1697. } # ac_fn_c_check_header_mongrel
  1698. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1699. # -------------------------------------------------------
  1700. # Tests whether HEADER exists and can be compiled using the include files in
  1701. # INCLUDES, setting the cache variable VAR accordingly.
  1702. ac_fn_c_check_header_compile ()
  1703. {
  1704. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1706. $as_echo_n "checking for $2... " >&6; }
  1707. if eval \${$3+:} false; then :
  1708. $as_echo_n "(cached) " >&6
  1709. else
  1710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1711. /* end confdefs.h. */
  1712. $4
  1713. #include <$2>
  1714. _ACEOF
  1715. if ac_fn_c_try_compile "$LINENO"; then :
  1716. eval "$3=yes"
  1717. else
  1718. eval "$3=no"
  1719. fi
  1720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1721. fi
  1722. eval ac_res=\$$3
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1724. $as_echo "$ac_res" >&6; }
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. } # ac_fn_c_check_header_compile
  1727. # ac_fn_c_check_func LINENO FUNC VAR
  1728. # ----------------------------------
  1729. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1730. ac_fn_c_check_func ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1734. $as_echo_n "checking for $2... " >&6; }
  1735. if eval \${$3+:} false; then :
  1736. $as_echo_n "(cached) " >&6
  1737. else
  1738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1739. /* end confdefs.h. */
  1740. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1741. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1742. #define $2 innocuous_$2
  1743. /* System header to define __stub macros and hopefully few prototypes,
  1744. which can conflict with char $2 (); below.
  1745. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1746. <limits.h> exists even on freestanding compilers. */
  1747. #ifdef __STDC__
  1748. # include <limits.h>
  1749. #else
  1750. # include <assert.h>
  1751. #endif
  1752. #undef $2
  1753. /* Override any GCC internal prototype to avoid an error.
  1754. Use char because int might match the return type of a GCC
  1755. builtin and then its argument prototype would still apply. */
  1756. #ifdef __cplusplus
  1757. extern "C"
  1758. #endif
  1759. char $2 ();
  1760. /* The GNU C library defines this for functions which it implements
  1761. to always fail with ENOSYS. Some functions are actually named
  1762. something starting with __ and the normal name is an alias. */
  1763. #if defined __stub_$2 || defined __stub___$2
  1764. choke me
  1765. #endif
  1766. int
  1767. main ()
  1768. {
  1769. return $2 ();
  1770. ;
  1771. return 0;
  1772. }
  1773. _ACEOF
  1774. if ac_fn_c_try_link "$LINENO"; then :
  1775. eval "$3=yes"
  1776. else
  1777. eval "$3=no"
  1778. fi
  1779. rm -f core conftest.err conftest.$ac_objext \
  1780. conftest$ac_exeext conftest.$ac_ext
  1781. fi
  1782. eval ac_res=\$$3
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1784. $as_echo "$ac_res" >&6; }
  1785. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1786. } # ac_fn_c_check_func
  1787. cat >config.log <<_ACEOF
  1788. This file contains any messages produced by compilers while
  1789. running configure, to aid debugging if configure makes a mistake.
  1790. It was created by breakpad $as_me 0.1, which was
  1791. generated by GNU Autoconf 2.69. Invocation command line was
  1792. $ $0 $@
  1793. _ACEOF
  1794. exec 5>>config.log
  1795. {
  1796. cat <<_ASUNAME
  1797. ## --------- ##
  1798. ## Platform. ##
  1799. ## --------- ##
  1800. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1801. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1802. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1803. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1804. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1805. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1806. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1807. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1808. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1809. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1810. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1811. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1812. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1813. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1814. _ASUNAME
  1815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1816. for as_dir in $PATH
  1817. do
  1818. IFS=$as_save_IFS
  1819. test -z "$as_dir" && as_dir=.
  1820. $as_echo "PATH: $as_dir"
  1821. done
  1822. IFS=$as_save_IFS
  1823. } >&5
  1824. cat >&5 <<_ACEOF
  1825. ## ----------- ##
  1826. ## Core tests. ##
  1827. ## ----------- ##
  1828. _ACEOF
  1829. # Keep a trace of the command line.
  1830. # Strip out --no-create and --no-recursion so they do not pile up.
  1831. # Strip out --silent because we don't want to record it for future runs.
  1832. # Also quote any args containing shell meta-characters.
  1833. # Make two passes to allow for proper duplicate-argument suppression.
  1834. ac_configure_args=
  1835. ac_configure_args0=
  1836. ac_configure_args1=
  1837. ac_must_keep_next=false
  1838. for ac_pass in 1 2
  1839. do
  1840. for ac_arg
  1841. do
  1842. case $ac_arg in
  1843. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1844. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1845. | -silent | --silent | --silen | --sile | --sil)
  1846. continue ;;
  1847. *\'*)
  1848. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1849. esac
  1850. case $ac_pass in
  1851. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1852. 2)
  1853. as_fn_append ac_configure_args1 " '$ac_arg'"
  1854. if test $ac_must_keep_next = true; then
  1855. ac_must_keep_next=false # Got value, back to normal.
  1856. else
  1857. case $ac_arg in
  1858. *=* | --config-cache | -C | -disable-* | --disable-* \
  1859. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1860. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1861. | -with-* | --with-* | -without-* | --without-* | --x)
  1862. case "$ac_configure_args0 " in
  1863. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1864. esac
  1865. ;;
  1866. -* ) ac_must_keep_next=true ;;
  1867. esac
  1868. fi
  1869. as_fn_append ac_configure_args " '$ac_arg'"
  1870. ;;
  1871. esac
  1872. done
  1873. done
  1874. { ac_configure_args0=; unset ac_configure_args0;}
  1875. { ac_configure_args1=; unset ac_configure_args1;}
  1876. # When interrupted or exit'd, cleanup temporary files, and complete
  1877. # config.log. We remove comments because anyway the quotes in there
  1878. # would cause problems or look ugly.
  1879. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1880. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1881. trap 'exit_status=$?
  1882. # Save into config.log some information that might help in debugging.
  1883. {
  1884. echo
  1885. $as_echo "## ---------------- ##
  1886. ## Cache variables. ##
  1887. ## ---------------- ##"
  1888. echo
  1889. # The following way of writing the cache mishandles newlines in values,
  1890. (
  1891. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1892. eval ac_val=\$$ac_var
  1893. case $ac_val in #(
  1894. *${as_nl}*)
  1895. case $ac_var in #(
  1896. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1897. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1898. esac
  1899. case $ac_var in #(
  1900. _ | IFS | as_nl) ;; #(
  1901. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1902. *) { eval $ac_var=; unset $ac_var;} ;;
  1903. esac ;;
  1904. esac
  1905. done
  1906. (set) 2>&1 |
  1907. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1908. *${as_nl}ac_space=\ *)
  1909. sed -n \
  1910. "s/'\''/'\''\\\\'\'''\''/g;
  1911. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1912. ;; #(
  1913. *)
  1914. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1915. ;;
  1916. esac |
  1917. sort
  1918. )
  1919. echo
  1920. $as_echo "## ----------------- ##
  1921. ## Output variables. ##
  1922. ## ----------------- ##"
  1923. echo
  1924. for ac_var in $ac_subst_vars
  1925. do
  1926. eval ac_val=\$$ac_var
  1927. case $ac_val in
  1928. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1929. esac
  1930. $as_echo "$ac_var='\''$ac_val'\''"
  1931. done | sort
  1932. echo
  1933. if test -n "$ac_subst_files"; then
  1934. $as_echo "## ------------------- ##
  1935. ## File substitutions. ##
  1936. ## ------------------- ##"
  1937. echo
  1938. for ac_var in $ac_subst_files
  1939. do
  1940. eval ac_val=\$$ac_var
  1941. case $ac_val in
  1942. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1943. esac
  1944. $as_echo "$ac_var='\''$ac_val'\''"
  1945. done | sort
  1946. echo
  1947. fi
  1948. if test -s confdefs.h; then
  1949. $as_echo "## ----------- ##
  1950. ## confdefs.h. ##
  1951. ## ----------- ##"
  1952. echo
  1953. cat confdefs.h
  1954. echo
  1955. fi
  1956. test "$ac_signal" != 0 &&
  1957. $as_echo "$as_me: caught signal $ac_signal"
  1958. $as_echo "$as_me: exit $exit_status"
  1959. } >&5
  1960. rm -f core *.core core.conftest.* &&
  1961. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1962. exit $exit_status
  1963. ' 0
  1964. for ac_signal in 1 2 13 15; do
  1965. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1966. done
  1967. ac_signal=0
  1968. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1969. rm -f -r conftest* confdefs.h
  1970. $as_echo "/* confdefs.h */" > confdefs.h
  1971. # Predefined preprocessor variables.
  1972. cat >>confdefs.h <<_ACEOF
  1973. #define PACKAGE_NAME "$PACKAGE_NAME"
  1974. _ACEOF
  1975. cat >>confdefs.h <<_ACEOF
  1976. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1977. _ACEOF
  1978. cat >>confdefs.h <<_ACEOF
  1979. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1980. _ACEOF
  1981. cat >>confdefs.h <<_ACEOF
  1982. #define PACKAGE_STRING "$PACKAGE_STRING"
  1983. _ACEOF
  1984. cat >>confdefs.h <<_ACEOF
  1985. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1986. _ACEOF
  1987. cat >>confdefs.h <<_ACEOF
  1988. #define PACKAGE_URL "$PACKAGE_URL"
  1989. _ACEOF
  1990. # Let the site file select an alternate cache file if it wants to.
  1991. # Prefer an explicitly selected file to automatically selected ones.
  1992. ac_site_file1=NONE
  1993. ac_site_file2=NONE
  1994. if test -n "$CONFIG_SITE"; then
  1995. # We do not want a PATH search for config.site.
  1996. case $CONFIG_SITE in #((
  1997. -*) ac_site_file1=./$CONFIG_SITE;;
  1998. */*) ac_site_file1=$CONFIG_SITE;;
  1999. *) ac_site_file1=./$CONFIG_SITE;;
  2000. esac
  2001. elif test "x$prefix" != xNONE; then
  2002. ac_site_file1=$prefix/share/config.site
  2003. ac_site_file2=$prefix/etc/config.site
  2004. else
  2005. ac_site_file1=$ac_default_prefix/share/config.site
  2006. ac_site_file2=$ac_default_prefix/etc/config.site
  2007. fi
  2008. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2009. do
  2010. test "x$ac_site_file" = xNONE && continue
  2011. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2013. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2014. sed 's/^/| /' "$ac_site_file" >&5
  2015. . "$ac_site_file" \
  2016. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2017. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2018. as_fn_error $? "failed to load site script $ac_site_file
  2019. See \`config.log' for more details" "$LINENO" 5; }
  2020. fi
  2021. done
  2022. if test -r "$cache_file"; then
  2023. # Some versions of bash will fail to source /dev/null (special files
  2024. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2025. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2027. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2028. case $cache_file in
  2029. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2030. *) . "./$cache_file";;
  2031. esac
  2032. fi
  2033. else
  2034. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2035. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2036. >$cache_file
  2037. fi
  2038. # Check that the precious variables saved in the cache have kept the same
  2039. # value.
  2040. ac_cache_corrupted=false
  2041. for ac_var in $ac_precious_vars; do
  2042. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2043. eval ac_new_set=\$ac_env_${ac_var}_set
  2044. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2045. eval ac_new_val=\$ac_env_${ac_var}_value
  2046. case $ac_old_set,$ac_new_set in
  2047. set,)
  2048. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2049. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2050. ac_cache_corrupted=: ;;
  2051. ,set)
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2053. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2054. ac_cache_corrupted=: ;;
  2055. ,);;
  2056. *)
  2057. if test "x$ac_old_val" != "x$ac_new_val"; then
  2058. # differences in whitespace do not lead to failure.
  2059. ac_old_val_w=`echo x $ac_old_val`
  2060. ac_new_val_w=`echo x $ac_new_val`
  2061. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2062. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2063. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2064. ac_cache_corrupted=:
  2065. else
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2067. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2068. eval $ac_var=\$ac_old_val
  2069. fi
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2071. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2073. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2074. fi;;
  2075. esac
  2076. # Pass precious variables to config.status.
  2077. if test "$ac_new_set" = set; then
  2078. case $ac_new_val in
  2079. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2080. *) ac_arg=$ac_var=$ac_new_val ;;
  2081. esac
  2082. case " $ac_configure_args " in
  2083. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2084. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2085. esac
  2086. fi
  2087. done
  2088. if $ac_cache_corrupted; then
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2090. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2092. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2093. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2094. fi
  2095. ## -------------------- ##
  2096. ## Main body of script. ##
  2097. ## -------------------- ##
  2098. ac_ext=c
  2099. ac_cpp='$CPP $CPPFLAGS'
  2100. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2101. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2102. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2103. ac_aux_dir=
  2104. for ac_dir in autotools "$srcdir"/autotools; do
  2105. if test -f "$ac_dir/install-sh"; then
  2106. ac_aux_dir=$ac_dir
  2107. ac_install_sh="$ac_aux_dir/install-sh -c"
  2108. break
  2109. elif test -f "$ac_dir/install.sh"; then
  2110. ac_aux_dir=$ac_dir
  2111. ac_install_sh="$ac_aux_dir/install.sh -c"
  2112. break
  2113. elif test -f "$ac_dir/shtool"; then
  2114. ac_aux_dir=$ac_dir
  2115. ac_install_sh="$ac_aux_dir/shtool install -c"
  2116. break
  2117. fi
  2118. done
  2119. if test -z "$ac_aux_dir"; then
  2120. as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
  2121. fi
  2122. # These three variables are undocumented and unsupported,
  2123. # and are intended to be withdrawn in a future Autoconf release.
  2124. # They can cause serious problems if a builder's source tree is in a directory
  2125. # whose full name contains unusual characters.
  2126. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2127. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2128. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2129. # Make sure we can run config.sub.
  2130. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2131. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2133. $as_echo_n "checking build system type... " >&6; }
  2134. if ${ac_cv_build+:} false; then :
  2135. $as_echo_n "(cached) " >&6
  2136. else
  2137. ac_build_alias=$build_alias
  2138. test "x$ac_build_alias" = x &&
  2139. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2140. test "x$ac_build_alias" = x &&
  2141. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2142. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2143. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2144. fi
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2146. $as_echo "$ac_cv_build" >&6; }
  2147. case $ac_cv_build in
  2148. *-*-*) ;;
  2149. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2150. esac
  2151. build=$ac_cv_build
  2152. ac_save_IFS=$IFS; IFS='-'
  2153. set x $ac_cv_build
  2154. shift
  2155. build_cpu=$1
  2156. build_vendor=$2
  2157. shift; shift
  2158. # Remember, the first character of IFS is used to create $*,
  2159. # except with old shells:
  2160. build_os=$*
  2161. IFS=$ac_save_IFS
  2162. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2164. $as_echo_n "checking host system type... " >&6; }
  2165. if ${ac_cv_host+:} false; then :
  2166. $as_echo_n "(cached) " >&6
  2167. else
  2168. if test "x$host_alias" = x; then
  2169. ac_cv_host=$ac_cv_build
  2170. else
  2171. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2172. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2173. fi
  2174. fi
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2176. $as_echo "$ac_cv_host" >&6; }
  2177. case $ac_cv_host in
  2178. *-*-*) ;;
  2179. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2180. esac
  2181. host=$ac_cv_host
  2182. ac_save_IFS=$IFS; IFS='-'
  2183. set x $ac_cv_host
  2184. shift
  2185. host_cpu=$1
  2186. host_vendor=$2
  2187. shift; shift
  2188. # Remember, the first character of IFS is used to create $*,
  2189. # except with old shells:
  2190. host_os=$*
  2191. IFS=$ac_save_IFS
  2192. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2193. am__api_version='1.16'
  2194. # Find a good install program. We prefer a C program (faster),
  2195. # so one script is as good as another. But avoid the broken or
  2196. # incompatible versions:
  2197. # SysV /etc/install, /usr/sbin/install
  2198. # SunOS /usr/etc/install
  2199. # IRIX /sbin/install
  2200. # AIX /bin/install
  2201. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2202. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2203. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2204. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2205. # OS/2's system install, which has a completely different semantic
  2206. # ./install, which can be erroneously created by make from ./install.sh.
  2207. # Reject install programs that cannot install multiple files.
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2209. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2210. if test -z "$INSTALL"; then
  2211. if ${ac_cv_path_install+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2215. for as_dir in $PATH
  2216. do
  2217. IFS=$as_save_IFS
  2218. test -z "$as_dir" && as_dir=.
  2219. # Account for people who put trailing slashes in PATH elements.
  2220. case $as_dir/ in #((
  2221. ./ | .// | /[cC]/* | \
  2222. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2223. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2224. /usr/ucb/* ) ;;
  2225. *)
  2226. # OSF1 and SCO ODT 3.0 have their own names for install.
  2227. # Don't use installbsd from OSF since it installs stuff as root
  2228. # by default.
  2229. for ac_prog in ginstall scoinst install; do
  2230. for ac_exec_ext in '' $ac_executable_extensions; do
  2231. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2232. if test $ac_prog = install &&
  2233. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2234. # AIX install. It has an incompatible calling convention.
  2235. :
  2236. elif test $ac_prog = install &&
  2237. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2238. # program-specific install script used by HP pwplus--don't use.
  2239. :
  2240. else
  2241. rm -rf conftest.one conftest.two conftest.dir
  2242. echo one > conftest.one
  2243. echo two > conftest.two
  2244. mkdir conftest.dir
  2245. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2246. test -s conftest.one && test -s conftest.two &&
  2247. test -s conftest.dir/conftest.one &&
  2248. test -s conftest.dir/conftest.two
  2249. then
  2250. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2251. break 3
  2252. fi
  2253. fi
  2254. fi
  2255. done
  2256. done
  2257. ;;
  2258. esac
  2259. done
  2260. IFS=$as_save_IFS
  2261. rm -rf conftest.one conftest.two conftest.dir
  2262. fi
  2263. if test "${ac_cv_path_install+set}" = set; then
  2264. INSTALL=$ac_cv_path_install
  2265. else
  2266. # As a last resort, use the slow shell script. Don't cache a
  2267. # value for INSTALL within a source directory, because that will
  2268. # break other packages using the cache if that directory is
  2269. # removed, or if the value is a relative name.
  2270. INSTALL=$ac_install_sh
  2271. fi
  2272. fi
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2274. $as_echo "$INSTALL" >&6; }
  2275. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2276. # It thinks the first close brace ends the variable substitution.
  2277. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2278. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2279. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2281. $as_echo_n "checking whether build environment is sane... " >&6; }
  2282. # Reject unsafe characters in $srcdir or the absolute working directory
  2283. # name. Accept space and tab only in the latter.
  2284. am_lf='
  2285. '
  2286. case `pwd` in
  2287. *[\\\"\#\$\&\'\`$am_lf]*)
  2288. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2289. esac
  2290. case $srcdir in
  2291. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2292. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2293. esac
  2294. # Do 'set' in a subshell so we don't clobber the current shell's
  2295. # arguments. Must try -L first in case configure is actually a
  2296. # symlink; some systems play weird games with the mod time of symlinks
  2297. # (eg FreeBSD returns the mod time of the symlink's containing
  2298. # directory).
  2299. if (
  2300. am_has_slept=no
  2301. for am_try in 1 2; do
  2302. echo "timestamp, slept: $am_has_slept" > conftest.file
  2303. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2304. if test "$*" = "X"; then
  2305. # -L didn't work.
  2306. set X `ls -t "$srcdir/configure" conftest.file`
  2307. fi
  2308. if test "$*" != "X $srcdir/configure conftest.file" \
  2309. && test "$*" != "X conftest.file $srcdir/configure"; then
  2310. # If neither matched, then we have a broken ls. This can happen
  2311. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2312. # broken ls alias from the environment. This has actually
  2313. # happened. Such a system could not be considered "sane".
  2314. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2315. alias in your environment" "$LINENO" 5
  2316. fi
  2317. if test "$2" = conftest.file || test $am_try -eq 2; then
  2318. break
  2319. fi
  2320. # Just in case.
  2321. sleep 1
  2322. am_has_slept=yes
  2323. done
  2324. test "$2" = conftest.file
  2325. )
  2326. then
  2327. # Ok.
  2328. :
  2329. else
  2330. as_fn_error $? "newly created file is older than distributed files!
  2331. Check your system clock" "$LINENO" 5
  2332. fi
  2333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2334. $as_echo "yes" >&6; }
  2335. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2336. # generated files are strictly newer.
  2337. am_sleep_pid=
  2338. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2339. ( sleep 1 ) &
  2340. am_sleep_pid=$!
  2341. fi
  2342. rm -f conftest.file
  2343. test "$program_prefix" != NONE &&
  2344. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2345. # Use a double $ so make ignores it.
  2346. test "$program_suffix" != NONE &&
  2347. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2348. # Double any \ or $.
  2349. # By default was `s,x,x', remove it if useless.
  2350. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2351. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2352. # Expand $ac_aux_dir to an absolute path.
  2353. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2354. if test x"${MISSING+set}" != xset; then
  2355. case $am_aux_dir in
  2356. *\ * | *\ *)
  2357. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2358. *)
  2359. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2360. esac
  2361. fi
  2362. # Use eval to expand $SHELL
  2363. if eval "$MISSING --is-lightweight"; then
  2364. am_missing_run="$MISSING "
  2365. else
  2366. am_missing_run=
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2368. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2369. fi
  2370. if test x"${install_sh+set}" != xset; then
  2371. case $am_aux_dir in
  2372. *\ * | *\ *)
  2373. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2374. *)
  2375. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2376. esac
  2377. fi
  2378. # Installed binaries are usually stripped using 'strip' when the user
  2379. # run "make install-strip". However 'strip' might not be the right
  2380. # tool to use in cross-compilation environments, therefore Automake
  2381. # will honor the 'STRIP' environment variable to overrule this program.
  2382. if test "$cross_compiling" != no; then
  2383. if test -n "$ac_tool_prefix"; then
  2384. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2385. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2387. $as_echo_n "checking for $ac_word... " >&6; }
  2388. if ${ac_cv_prog_STRIP+:} false; then :
  2389. $as_echo_n "(cached) " >&6
  2390. else
  2391. if test -n "$STRIP"; then
  2392. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2401. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2402. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. IFS=$as_save_IFS
  2408. fi
  2409. fi
  2410. STRIP=$ac_cv_prog_STRIP
  2411. if test -n "$STRIP"; then
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2413. $as_echo "$STRIP" >&6; }
  2414. else
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2416. $as_echo "no" >&6; }
  2417. fi
  2418. fi
  2419. if test -z "$ac_cv_prog_STRIP"; then
  2420. ac_ct_STRIP=$STRIP
  2421. # Extract the first word of "strip", so it can be a program name with args.
  2422. set dummy strip; ac_word=$2
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2424. $as_echo_n "checking for $ac_word... " >&6; }
  2425. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2426. $as_echo_n "(cached) " >&6
  2427. else
  2428. if test -n "$ac_ct_STRIP"; then
  2429. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2430. else
  2431. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2432. for as_dir in $PATH
  2433. do
  2434. IFS=$as_save_IFS
  2435. test -z "$as_dir" && as_dir=.
  2436. for ac_exec_ext in '' $ac_executable_extensions; do
  2437. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2438. ac_cv_prog_ac_ct_STRIP="strip"
  2439. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2440. break 2
  2441. fi
  2442. done
  2443. done
  2444. IFS=$as_save_IFS
  2445. fi
  2446. fi
  2447. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2448. if test -n "$ac_ct_STRIP"; then
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2450. $as_echo "$ac_ct_STRIP" >&6; }
  2451. else
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2453. $as_echo "no" >&6; }
  2454. fi
  2455. if test "x$ac_ct_STRIP" = x; then
  2456. STRIP=":"
  2457. else
  2458. case $cross_compiling:$ac_tool_warned in
  2459. yes:)
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2462. ac_tool_warned=yes ;;
  2463. esac
  2464. STRIP=$ac_ct_STRIP
  2465. fi
  2466. else
  2467. STRIP="$ac_cv_prog_STRIP"
  2468. fi
  2469. fi
  2470. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2472. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2473. if test -z "$MKDIR_P"; then
  2474. if ${ac_cv_path_mkdir+:} false; then :
  2475. $as_echo_n "(cached) " >&6
  2476. else
  2477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2478. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2479. do
  2480. IFS=$as_save_IFS
  2481. test -z "$as_dir" && as_dir=.
  2482. for ac_prog in mkdir gmkdir; do
  2483. for ac_exec_ext in '' $ac_executable_extensions; do
  2484. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2485. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2486. 'mkdir (GNU coreutils) '* | \
  2487. 'mkdir (coreutils) '* | \
  2488. 'mkdir (fileutils) '4.1*)
  2489. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2490. break 3;;
  2491. esac
  2492. done
  2493. done
  2494. done
  2495. IFS=$as_save_IFS
  2496. fi
  2497. test -d ./--version && rmdir ./--version
  2498. if test "${ac_cv_path_mkdir+set}" = set; then
  2499. MKDIR_P="$ac_cv_path_mkdir -p"
  2500. else
  2501. # As a last resort, use the slow shell script. Don't cache a
  2502. # value for MKDIR_P within a source directory, because that will
  2503. # break other packages using the cache if that directory is
  2504. # removed, or if the value is a relative name.
  2505. MKDIR_P="$ac_install_sh -d"
  2506. fi
  2507. fi
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2509. $as_echo "$MKDIR_P" >&6; }
  2510. for ac_prog in gawk mawk nawk awk
  2511. do
  2512. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2513. set dummy $ac_prog; ac_word=$2
  2514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2515. $as_echo_n "checking for $ac_word... " >&6; }
  2516. if ${ac_cv_prog_AWK+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. if test -n "$AWK"; then
  2520. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2521. else
  2522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2523. for as_dir in $PATH
  2524. do
  2525. IFS=$as_save_IFS
  2526. test -z "$as_dir" && as_dir=.
  2527. for ac_exec_ext in '' $ac_executable_extensions; do
  2528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2529. ac_cv_prog_AWK="$ac_prog"
  2530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2531. break 2
  2532. fi
  2533. done
  2534. done
  2535. IFS=$as_save_IFS
  2536. fi
  2537. fi
  2538. AWK=$ac_cv_prog_AWK
  2539. if test -n "$AWK"; then
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2541. $as_echo "$AWK" >&6; }
  2542. else
  2543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2544. $as_echo "no" >&6; }
  2545. fi
  2546. test -n "$AWK" && break
  2547. done
  2548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2549. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2550. set x ${MAKE-make}
  2551. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2552. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2553. $as_echo_n "(cached) " >&6
  2554. else
  2555. cat >conftest.make <<\_ACEOF
  2556. SHELL = /bin/sh
  2557. all:
  2558. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2559. _ACEOF
  2560. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2561. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2562. *@@@%%%=?*=@@@%%%*)
  2563. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2564. *)
  2565. eval ac_cv_prog_make_${ac_make}_set=no;;
  2566. esac
  2567. rm -f conftest.make
  2568. fi
  2569. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2571. $as_echo "yes" >&6; }
  2572. SET_MAKE=
  2573. else
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2575. $as_echo "no" >&6; }
  2576. SET_MAKE="MAKE=${MAKE-make}"
  2577. fi
  2578. rm -rf .tst 2>/dev/null
  2579. mkdir .tst 2>/dev/null
  2580. if test -d .tst; then
  2581. am__leading_dot=.
  2582. else
  2583. am__leading_dot=_
  2584. fi
  2585. rmdir .tst 2>/dev/null
  2586. # Check whether --enable-silent-rules was given.
  2587. if test "${enable_silent_rules+set}" = set; then :
  2588. enableval=$enable_silent_rules;
  2589. fi
  2590. case $enable_silent_rules in # (((
  2591. yes) AM_DEFAULT_VERBOSITY=0;;
  2592. no) AM_DEFAULT_VERBOSITY=1;;
  2593. *) AM_DEFAULT_VERBOSITY=1;;
  2594. esac
  2595. am_make=${MAKE-make}
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2597. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2598. if ${am_cv_make_support_nested_variables+:} false; then :
  2599. $as_echo_n "(cached) " >&6
  2600. else
  2601. if $as_echo 'TRUE=$(BAR$(V))
  2602. BAR0=false
  2603. BAR1=true
  2604. V=1
  2605. am__doit:
  2606. @$(TRUE)
  2607. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2608. am_cv_make_support_nested_variables=yes
  2609. else
  2610. am_cv_make_support_nested_variables=no
  2611. fi
  2612. fi
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2614. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2615. if test $am_cv_make_support_nested_variables = yes; then
  2616. AM_V='$(V)'
  2617. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2618. else
  2619. AM_V=$AM_DEFAULT_VERBOSITY
  2620. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2621. fi
  2622. AM_BACKSLASH='\'
  2623. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2624. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2625. # is not polluted with repeated "-I."
  2626. am__isrc=' -I$(srcdir)'
  2627. # test to see if srcdir already configured
  2628. if test -f $srcdir/config.status; then
  2629. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2630. fi
  2631. fi
  2632. # test whether we have cygpath
  2633. if test -z "$CYGPATH_W"; then
  2634. if (cygpath --version) >/dev/null 2>/dev/null; then
  2635. CYGPATH_W='cygpath -w'
  2636. else
  2637. CYGPATH_W=echo
  2638. fi
  2639. fi
  2640. # Define the identity of the package.
  2641. PACKAGE='breakpad'
  2642. VERSION='0.1'
  2643. cat >>confdefs.h <<_ACEOF
  2644. #define PACKAGE "$PACKAGE"
  2645. _ACEOF
  2646. cat >>confdefs.h <<_ACEOF
  2647. #define VERSION "$VERSION"
  2648. _ACEOF
  2649. # Some tools Automake needs.
  2650. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2651. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2652. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2653. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2654. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2655. # For better backward compatibility. To be removed once Automake 1.9.x
  2656. # dies out for good. For more background, see:
  2657. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2658. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2659. mkdir_p='$(MKDIR_P)'
  2660. # We need awk for the "check" target (and possibly the TAP driver). The
  2661. # system "awk" is bad on some platforms.
  2662. # Always define AMTAR for backward compatibility. Yes, it's still used
  2663. # in the wild :-( We should find a proper way to deprecate it ...
  2664. AMTAR='$${TAR-tar}'
  2665. # We'll loop over all known methods to create a tar archive until one works.
  2666. _am_tools='gnutar plaintar pax cpio none'
  2667. # The POSIX 1988 'ustar' format is defined with fixed-size fields.
  2668. # There is notably a 21 bits limit for the UID and the GID. In fact,
  2669. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  2670. # and bug#13588).
  2671. am_max_uid=2097151 # 2^21 - 1
  2672. am_max_gid=$am_max_uid
  2673. # The $UID and $GID variables are not portable, so we need to resort
  2674. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  2675. # below are definitely unexpected, so allow the users to see them
  2676. # (that is, avoid stderr redirection).
  2677. am_uid=`id -u || echo unknown`
  2678. am_gid=`id -g || echo unknown`
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
  2680. $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
  2681. if test $am_uid -le $am_max_uid; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2683. $as_echo "yes" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. _am_tools=none
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
  2690. $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
  2691. if test $am_gid -le $am_max_gid; then
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2693. $as_echo "yes" >&6; }
  2694. else
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2696. $as_echo "no" >&6; }
  2697. _am_tools=none
  2698. fi
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
  2700. $as_echo_n "checking how to create a ustar tar archive... " >&6; }
  2701. # Go ahead even if we have the value already cached. We do so because we
  2702. # need to set the values for the 'am__tar' and 'am__untar' variables.
  2703. _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
  2704. for _am_tool in $_am_tools; do
  2705. case $_am_tool in
  2706. gnutar)
  2707. for _am_tar in tar gnutar gtar; do
  2708. { echo "$as_me:$LINENO: $_am_tar --version" >&5
  2709. ($_am_tar --version) >&5 2>&5
  2710. ac_status=$?
  2711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2712. (exit $ac_status); } && break
  2713. done
  2714. am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
  2715. am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
  2716. am__untar="$_am_tar -xf -"
  2717. ;;
  2718. plaintar)
  2719. # Must skip GNU tar: if it does not support --format= it doesn't create
  2720. # ustar tarball either.
  2721. (tar --version) >/dev/null 2>&1 && continue
  2722. am__tar='tar chf - "$$tardir"'
  2723. am__tar_='tar chf - "$tardir"'
  2724. am__untar='tar xf -'
  2725. ;;
  2726. pax)
  2727. am__tar='pax -L -x ustar -w "$$tardir"'
  2728. am__tar_='pax -L -x ustar -w "$tardir"'
  2729. am__untar='pax -r'
  2730. ;;
  2731. cpio)
  2732. am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
  2733. am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
  2734. am__untar='cpio -i -H ustar -d'
  2735. ;;
  2736. none)
  2737. am__tar=false
  2738. am__tar_=false
  2739. am__untar=false
  2740. ;;
  2741. esac
  2742. # If the value was cached, stop now. We just wanted to have am__tar
  2743. # and am__untar set.
  2744. test -n "${am_cv_prog_tar_ustar}" && break
  2745. # tar/untar a dummy directory, and stop if the command works.
  2746. rm -rf conftest.dir
  2747. mkdir conftest.dir
  2748. echo GrepMe > conftest.dir/file
  2749. { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
  2750. (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
  2751. ac_status=$?
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); }
  2754. rm -rf conftest.dir
  2755. if test -s conftest.tar; then
  2756. { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
  2757. ($am__untar <conftest.tar) >&5 2>&5
  2758. ac_status=$?
  2759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2760. (exit $ac_status); }
  2761. { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
  2762. (cat conftest.dir/file) >&5 2>&5
  2763. ac_status=$?
  2764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); }
  2766. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  2767. fi
  2768. done
  2769. rm -rf conftest.dir
  2770. if ${am_cv_prog_tar_ustar+:} false; then :
  2771. $as_echo_n "(cached) " >&6
  2772. else
  2773. am_cv_prog_tar_ustar=$_am_tool
  2774. fi
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
  2776. $as_echo "$am_cv_prog_tar_ustar" >&6; }
  2777. # POSIX will say in a future version that running "rm -f" with no argument
  2778. # is OK; and we want to be able to make that assumption in our Makefile
  2779. # recipes. So use an aggressive probe to check that the usage we want is
  2780. # actually supported "in the wild" to an acceptable degree.
  2781. # See automake bug#10828.
  2782. # To make any issue more visible, cause the running configure to be aborted
  2783. # by default if the 'rm' program in use doesn't match our expectations; the
  2784. # user can still override this though.
  2785. if rm -f && rm -fr && rm -rf; then : OK; else
  2786. cat >&2 <<'END'
  2787. Oops!
  2788. Your 'rm' program seems unable to run without file operands specified
  2789. on the command line, even when the '-f' option is present. This is contrary
  2790. to the behaviour of most rm programs out there, and not conforming with
  2791. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2792. Please tell bug-automake@gnu.org about your system, including the value
  2793. of your $PATH and any error possibly output before this message. This
  2794. can help us improve future automake versions.
  2795. END
  2796. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2797. echo 'Configuration will proceed anyway, since you have set the' >&2
  2798. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2799. echo >&2
  2800. else
  2801. cat >&2 <<'END'
  2802. Aborting the configuration process, to ensure you take notice of the issue.
  2803. You can download and install GNU coreutils to get an 'rm' implementation
  2804. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  2805. If you want to complete the configuration process using your problematic
  2806. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2807. to "yes", and re-run configure.
  2808. END
  2809. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2810. fi
  2811. fi
  2812. ac_config_headers="$ac_config_headers src/config.h"
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2814. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2815. # Check whether --enable-maintainer-mode was given.
  2816. if test "${enable_maintainer_mode+set}" = set; then :
  2817. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2818. else
  2819. USE_MAINTAINER_MODE=no
  2820. fi
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2822. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2823. if test $USE_MAINTAINER_MODE = yes; then
  2824. MAINTAINER_MODE_TRUE=
  2825. MAINTAINER_MODE_FALSE='#'
  2826. else
  2827. MAINTAINER_MODE_TRUE='#'
  2828. MAINTAINER_MODE_FALSE=
  2829. fi
  2830. MAINT=$MAINTAINER_MODE_TRUE
  2831. DEPDIR="${am__leading_dot}deps"
  2832. ac_config_commands="$ac_config_commands depfiles"
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
  2834. $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
  2835. cat > confinc.mk << 'END'
  2836. am__doit:
  2837. @echo this is the am__doit target >confinc.out
  2838. .PHONY: am__doit
  2839. END
  2840. am__include="#"
  2841. am__quote=
  2842. # BSD make does it like this.
  2843. echo '.include "confinc.mk" # ignored' > confmf.BSD
  2844. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  2845. echo 'include confinc.mk # ignored' > confmf.GNU
  2846. _am_result=no
  2847. for s in GNU BSD; do
  2848. { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
  2849. (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
  2850. ac_status=$?
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); }
  2853. case $?:`cat confinc.out 2>/dev/null` in #(
  2854. '0:this is the am__doit target') :
  2855. case $s in #(
  2856. BSD) :
  2857. am__include='.include' am__quote='"' ;; #(
  2858. *) :
  2859. am__include='include' am__quote='' ;;
  2860. esac ;; #(
  2861. *) :
  2862. ;;
  2863. esac
  2864. if test "$am__include" != "#"; then
  2865. _am_result="yes ($s style)"
  2866. break
  2867. fi
  2868. done
  2869. rm -f confinc.* confmf.*
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
  2871. $as_echo "${_am_result}" >&6; }
  2872. # Check whether --enable-dependency-tracking was given.
  2873. if test "${enable_dependency_tracking+set}" = set; then :
  2874. enableval=$enable_dependency_tracking;
  2875. fi
  2876. if test "x$enable_dependency_tracking" != xno; then
  2877. am_depcomp="$ac_aux_dir/depcomp"
  2878. AMDEPBACKSLASH='\'
  2879. am__nodep='_no'
  2880. fi
  2881. if test "x$enable_dependency_tracking" != xno; then
  2882. AMDEP_TRUE=
  2883. AMDEP_FALSE='#'
  2884. else
  2885. AMDEP_TRUE='#'
  2886. AMDEP_FALSE=
  2887. fi
  2888. ac_ext=c
  2889. ac_cpp='$CPP $CPPFLAGS'
  2890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2893. if test -n "$ac_tool_prefix"; then
  2894. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2895. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2897. $as_echo_n "checking for $ac_word... " >&6; }
  2898. if ${ac_cv_prog_CC+:} false; then :
  2899. $as_echo_n "(cached) " >&6
  2900. else
  2901. if test -n "$CC"; then
  2902. ac_cv_prog_CC="$CC" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. test -z "$as_dir" && as_dir=.
  2909. for ac_exec_ext in '' $ac_executable_extensions; do
  2910. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2911. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. fi
  2920. CC=$ac_cv_prog_CC
  2921. if test -n "$CC"; then
  2922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2923. $as_echo "$CC" >&6; }
  2924. else
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2926. $as_echo "no" >&6; }
  2927. fi
  2928. fi
  2929. if test -z "$ac_cv_prog_CC"; then
  2930. ac_ct_CC=$CC
  2931. # Extract the first word of "gcc", so it can be a program name with args.
  2932. set dummy gcc; ac_word=$2
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2934. $as_echo_n "checking for $ac_word... " >&6; }
  2935. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2936. $as_echo_n "(cached) " >&6
  2937. else
  2938. if test -n "$ac_ct_CC"; then
  2939. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2948. ac_cv_prog_ac_ct_CC="gcc"
  2949. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2958. if test -n "$ac_ct_CC"; then
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2960. $as_echo "$ac_ct_CC" >&6; }
  2961. else
  2962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2963. $as_echo "no" >&6; }
  2964. fi
  2965. if test "x$ac_ct_CC" = x; then
  2966. CC=""
  2967. else
  2968. case $cross_compiling:$ac_tool_warned in
  2969. yes:)
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2971. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2972. ac_tool_warned=yes ;;
  2973. esac
  2974. CC=$ac_ct_CC
  2975. fi
  2976. else
  2977. CC="$ac_cv_prog_CC"
  2978. fi
  2979. if test -z "$CC"; then
  2980. if test -n "$ac_tool_prefix"; then
  2981. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2982. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2984. $as_echo_n "checking for $ac_word... " >&6; }
  2985. if ${ac_cv_prog_CC+:} false; then :
  2986. $as_echo_n "(cached) " >&6
  2987. else
  2988. if test -n "$CC"; then
  2989. ac_cv_prog_CC="$CC" # Let the user override the test.
  2990. else
  2991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2992. for as_dir in $PATH
  2993. do
  2994. IFS=$as_save_IFS
  2995. test -z "$as_dir" && as_dir=.
  2996. for ac_exec_ext in '' $ac_executable_extensions; do
  2997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2998. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3000. break 2
  3001. fi
  3002. done
  3003. done
  3004. IFS=$as_save_IFS
  3005. fi
  3006. fi
  3007. CC=$ac_cv_prog_CC
  3008. if test -n "$CC"; then
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3010. $as_echo "$CC" >&6; }
  3011. else
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3013. $as_echo "no" >&6; }
  3014. fi
  3015. fi
  3016. fi
  3017. if test -z "$CC"; then
  3018. # Extract the first word of "cc", so it can be a program name with args.
  3019. set dummy cc; ac_word=$2
  3020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3021. $as_echo_n "checking for $ac_word... " >&6; }
  3022. if ${ac_cv_prog_CC+:} false; then :
  3023. $as_echo_n "(cached) " >&6
  3024. else
  3025. if test -n "$CC"; then
  3026. ac_cv_prog_CC="$CC" # Let the user override the test.
  3027. else
  3028. ac_prog_rejected=no
  3029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030. for as_dir in $PATH
  3031. do
  3032. IFS=$as_save_IFS
  3033. test -z "$as_dir" && as_dir=.
  3034. for ac_exec_ext in '' $ac_executable_extensions; do
  3035. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3036. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3037. ac_prog_rejected=yes
  3038. continue
  3039. fi
  3040. ac_cv_prog_CC="cc"
  3041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3042. break 2
  3043. fi
  3044. done
  3045. done
  3046. IFS=$as_save_IFS
  3047. if test $ac_prog_rejected = yes; then
  3048. # We found a bogon in the path, so make sure we never use it.
  3049. set dummy $ac_cv_prog_CC
  3050. shift
  3051. if test $# != 0; then
  3052. # We chose a different compiler from the bogus one.
  3053. # However, it has the same basename, so the bogon will be chosen
  3054. # first if we set CC to just the basename; use the full file name.
  3055. shift
  3056. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3057. fi
  3058. fi
  3059. fi
  3060. fi
  3061. CC=$ac_cv_prog_CC
  3062. if test -n "$CC"; then
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3064. $as_echo "$CC" >&6; }
  3065. else
  3066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3067. $as_echo "no" >&6; }
  3068. fi
  3069. fi
  3070. if test -z "$CC"; then
  3071. if test -n "$ac_tool_prefix"; then
  3072. for ac_prog in cl.exe
  3073. do
  3074. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3075. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3077. $as_echo_n "checking for $ac_word... " >&6; }
  3078. if ${ac_cv_prog_CC+:} false; then :
  3079. $as_echo_n "(cached) " >&6
  3080. else
  3081. if test -n "$CC"; then
  3082. ac_cv_prog_CC="$CC" # Let the user override the test.
  3083. else
  3084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3085. for as_dir in $PATH
  3086. do
  3087. IFS=$as_save_IFS
  3088. test -z "$as_dir" && as_dir=.
  3089. for ac_exec_ext in '' $ac_executable_extensions; do
  3090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3091. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3093. break 2
  3094. fi
  3095. done
  3096. done
  3097. IFS=$as_save_IFS
  3098. fi
  3099. fi
  3100. CC=$ac_cv_prog_CC
  3101. if test -n "$CC"; then
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3103. $as_echo "$CC" >&6; }
  3104. else
  3105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3106. $as_echo "no" >&6; }
  3107. fi
  3108. test -n "$CC" && break
  3109. done
  3110. fi
  3111. if test -z "$CC"; then
  3112. ac_ct_CC=$CC
  3113. for ac_prog in cl.exe
  3114. do
  3115. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3116. set dummy $ac_prog; ac_word=$2
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3118. $as_echo_n "checking for $ac_word... " >&6; }
  3119. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. if test -n "$ac_ct_CC"; then
  3123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3124. else
  3125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3126. for as_dir in $PATH
  3127. do
  3128. IFS=$as_save_IFS
  3129. test -z "$as_dir" && as_dir=.
  3130. for ac_exec_ext in '' $ac_executable_extensions; do
  3131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3132. ac_cv_prog_ac_ct_CC="$ac_prog"
  3133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3134. break 2
  3135. fi
  3136. done
  3137. done
  3138. IFS=$as_save_IFS
  3139. fi
  3140. fi
  3141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3142. if test -n "$ac_ct_CC"; then
  3143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3144. $as_echo "$ac_ct_CC" >&6; }
  3145. else
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3147. $as_echo "no" >&6; }
  3148. fi
  3149. test -n "$ac_ct_CC" && break
  3150. done
  3151. if test "x$ac_ct_CC" = x; then
  3152. CC=""
  3153. else
  3154. case $cross_compiling:$ac_tool_warned in
  3155. yes:)
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3157. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3158. ac_tool_warned=yes ;;
  3159. esac
  3160. CC=$ac_ct_CC
  3161. fi
  3162. fi
  3163. fi
  3164. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3166. as_fn_error $? "no acceptable C compiler found in \$PATH
  3167. See \`config.log' for more details" "$LINENO" 5; }
  3168. # Provide some information about the compiler.
  3169. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3170. set X $ac_compile
  3171. ac_compiler=$2
  3172. for ac_option in --version -v -V -qversion; do
  3173. { { ac_try="$ac_compiler $ac_option >&5"
  3174. case "(($ac_try" in
  3175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3176. *) ac_try_echo=$ac_try;;
  3177. esac
  3178. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3179. $as_echo "$ac_try_echo"; } >&5
  3180. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3181. ac_status=$?
  3182. if test -s conftest.err; then
  3183. sed '10a\
  3184. ... rest of stderr output deleted ...
  3185. 10q' conftest.err >conftest.er1
  3186. cat conftest.er1 >&5
  3187. fi
  3188. rm -f conftest.er1 conftest.err
  3189. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3190. test $ac_status = 0; }
  3191. done
  3192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3193. /* end confdefs.h. */
  3194. int
  3195. main ()
  3196. {
  3197. ;
  3198. return 0;
  3199. }
  3200. _ACEOF
  3201. ac_clean_files_save=$ac_clean_files
  3202. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3203. # Try to create an executable without -o first, disregard a.out.
  3204. # It will help us diagnose broken compilers, and finding out an intuition
  3205. # of exeext.
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3207. $as_echo_n "checking whether the C compiler works... " >&6; }
  3208. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3209. # The possible output files:
  3210. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3211. ac_rmfiles=
  3212. for ac_file in $ac_files
  3213. do
  3214. case $ac_file in
  3215. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3216. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3217. esac
  3218. done
  3219. rm -f $ac_rmfiles
  3220. if { { ac_try="$ac_link_default"
  3221. case "(($ac_try" in
  3222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3223. *) ac_try_echo=$ac_try;;
  3224. esac
  3225. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3226. $as_echo "$ac_try_echo"; } >&5
  3227. (eval "$ac_link_default") 2>&5
  3228. ac_status=$?
  3229. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3230. test $ac_status = 0; }; then :
  3231. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3232. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3233. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3234. # so that the user can short-circuit this test for compilers unknown to
  3235. # Autoconf.
  3236. for ac_file in $ac_files ''
  3237. do
  3238. test -f "$ac_file" || continue
  3239. case $ac_file in
  3240. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3241. ;;
  3242. [ab].out )
  3243. # We found the default executable, but exeext='' is most
  3244. # certainly right.
  3245. break;;
  3246. *.* )
  3247. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3248. then :; else
  3249. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3250. fi
  3251. # We set ac_cv_exeext here because the later test for it is not
  3252. # safe: cross compilers may not add the suffix if given an `-o'
  3253. # argument, so we may need to know it at that point already.
  3254. # Even if this section looks crufty: it has the advantage of
  3255. # actually working.
  3256. break;;
  3257. * )
  3258. break;;
  3259. esac
  3260. done
  3261. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3262. else
  3263. ac_file=''
  3264. fi
  3265. if test -z "$ac_file"; then :
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3267. $as_echo "no" >&6; }
  3268. $as_echo "$as_me: failed program was:" >&5
  3269. sed 's/^/| /' conftest.$ac_ext >&5
  3270. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3271. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3272. as_fn_error 77 "C compiler cannot create executables
  3273. See \`config.log' for more details" "$LINENO" 5; }
  3274. else
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3276. $as_echo "yes" >&6; }
  3277. fi
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3279. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3281. $as_echo "$ac_file" >&6; }
  3282. ac_exeext=$ac_cv_exeext
  3283. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3284. ac_clean_files=$ac_clean_files_save
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3286. $as_echo_n "checking for suffix of executables... " >&6; }
  3287. if { { ac_try="$ac_link"
  3288. case "(($ac_try" in
  3289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3290. *) ac_try_echo=$ac_try;;
  3291. esac
  3292. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3293. $as_echo "$ac_try_echo"; } >&5
  3294. (eval "$ac_link") 2>&5
  3295. ac_status=$?
  3296. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3297. test $ac_status = 0; }; then :
  3298. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3299. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3300. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3301. # `rm'.
  3302. for ac_file in conftest.exe conftest conftest.*; do
  3303. test -f "$ac_file" || continue
  3304. case $ac_file in
  3305. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3306. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3307. break;;
  3308. * ) break;;
  3309. esac
  3310. done
  3311. else
  3312. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3313. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3314. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3315. See \`config.log' for more details" "$LINENO" 5; }
  3316. fi
  3317. rm -f conftest conftest$ac_cv_exeext
  3318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3319. $as_echo "$ac_cv_exeext" >&6; }
  3320. rm -f conftest.$ac_ext
  3321. EXEEXT=$ac_cv_exeext
  3322. ac_exeext=$EXEEXT
  3323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3324. /* end confdefs.h. */
  3325. #include <stdio.h>
  3326. int
  3327. main ()
  3328. {
  3329. FILE *f = fopen ("conftest.out", "w");
  3330. return ferror (f) || fclose (f) != 0;
  3331. ;
  3332. return 0;
  3333. }
  3334. _ACEOF
  3335. ac_clean_files="$ac_clean_files conftest.out"
  3336. # Check that the compiler produces executables we can run. If not, either
  3337. # the compiler is broken, or we cross compile.
  3338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3339. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3340. if test "$cross_compiling" != yes; then
  3341. { { ac_try="$ac_link"
  3342. case "(($ac_try" in
  3343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3344. *) ac_try_echo=$ac_try;;
  3345. esac
  3346. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3347. $as_echo "$ac_try_echo"; } >&5
  3348. (eval "$ac_link") 2>&5
  3349. ac_status=$?
  3350. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3351. test $ac_status = 0; }
  3352. if { ac_try='./conftest$ac_cv_exeext'
  3353. { { case "(($ac_try" in
  3354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3355. *) ac_try_echo=$ac_try;;
  3356. esac
  3357. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3358. $as_echo "$ac_try_echo"; } >&5
  3359. (eval "$ac_try") 2>&5
  3360. ac_status=$?
  3361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3362. test $ac_status = 0; }; }; then
  3363. cross_compiling=no
  3364. else
  3365. if test "$cross_compiling" = maybe; then
  3366. cross_compiling=yes
  3367. else
  3368. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3370. as_fn_error $? "cannot run C compiled programs.
  3371. If you meant to cross compile, use \`--host'.
  3372. See \`config.log' for more details" "$LINENO" 5; }
  3373. fi
  3374. fi
  3375. fi
  3376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3377. $as_echo "$cross_compiling" >&6; }
  3378. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3379. ac_clean_files=$ac_clean_files_save
  3380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3381. $as_echo_n "checking for suffix of object files... " >&6; }
  3382. if ${ac_cv_objext+:} false; then :
  3383. $as_echo_n "(cached) " >&6
  3384. else
  3385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3386. /* end confdefs.h. */
  3387. int
  3388. main ()
  3389. {
  3390. ;
  3391. return 0;
  3392. }
  3393. _ACEOF
  3394. rm -f conftest.o conftest.obj
  3395. if { { ac_try="$ac_compile"
  3396. case "(($ac_try" in
  3397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3398. *) ac_try_echo=$ac_try;;
  3399. esac
  3400. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3401. $as_echo "$ac_try_echo"; } >&5
  3402. (eval "$ac_compile") 2>&5
  3403. ac_status=$?
  3404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3405. test $ac_status = 0; }; then :
  3406. for ac_file in conftest.o conftest.obj conftest.*; do
  3407. test -f "$ac_file" || continue;
  3408. case $ac_file in
  3409. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3410. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3411. break;;
  3412. esac
  3413. done
  3414. else
  3415. $as_echo "$as_me: failed program was:" >&5
  3416. sed 's/^/| /' conftest.$ac_ext >&5
  3417. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3418. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3419. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3420. See \`config.log' for more details" "$LINENO" 5; }
  3421. fi
  3422. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3423. fi
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3425. $as_echo "$ac_cv_objext" >&6; }
  3426. OBJEXT=$ac_cv_objext
  3427. ac_objext=$OBJEXT
  3428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3429. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3430. if ${ac_cv_c_compiler_gnu+:} false; then :
  3431. $as_echo_n "(cached) " >&6
  3432. else
  3433. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3434. /* end confdefs.h. */
  3435. int
  3436. main ()
  3437. {
  3438. #ifndef __GNUC__
  3439. choke me
  3440. #endif
  3441. ;
  3442. return 0;
  3443. }
  3444. _ACEOF
  3445. if ac_fn_c_try_compile "$LINENO"; then :
  3446. ac_compiler_gnu=yes
  3447. else
  3448. ac_compiler_gnu=no
  3449. fi
  3450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3451. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3452. fi
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3454. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3455. if test $ac_compiler_gnu = yes; then
  3456. GCC=yes
  3457. else
  3458. GCC=
  3459. fi
  3460. ac_test_CFLAGS=${CFLAGS+set}
  3461. ac_save_CFLAGS=$CFLAGS
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3463. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3464. if ${ac_cv_prog_cc_g+:} false; then :
  3465. $as_echo_n "(cached) " >&6
  3466. else
  3467. ac_save_c_werror_flag=$ac_c_werror_flag
  3468. ac_c_werror_flag=yes
  3469. ac_cv_prog_cc_g=no
  3470. CFLAGS="-g"
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. int
  3474. main ()
  3475. {
  3476. ;
  3477. return 0;
  3478. }
  3479. _ACEOF
  3480. if ac_fn_c_try_compile "$LINENO"; then :
  3481. ac_cv_prog_cc_g=yes
  3482. else
  3483. CFLAGS=""
  3484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3485. /* end confdefs.h. */
  3486. int
  3487. main ()
  3488. {
  3489. ;
  3490. return 0;
  3491. }
  3492. _ACEOF
  3493. if ac_fn_c_try_compile "$LINENO"; then :
  3494. else
  3495. ac_c_werror_flag=$ac_save_c_werror_flag
  3496. CFLAGS="-g"
  3497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3498. /* end confdefs.h. */
  3499. int
  3500. main ()
  3501. {
  3502. ;
  3503. return 0;
  3504. }
  3505. _ACEOF
  3506. if ac_fn_c_try_compile "$LINENO"; then :
  3507. ac_cv_prog_cc_g=yes
  3508. fi
  3509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3510. fi
  3511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3512. fi
  3513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3514. ac_c_werror_flag=$ac_save_c_werror_flag
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3517. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3518. if test "$ac_test_CFLAGS" = set; then
  3519. CFLAGS=$ac_save_CFLAGS
  3520. elif test $ac_cv_prog_cc_g = yes; then
  3521. if test "$GCC" = yes; then
  3522. CFLAGS="-g -O2"
  3523. else
  3524. CFLAGS="-g"
  3525. fi
  3526. else
  3527. if test "$GCC" = yes; then
  3528. CFLAGS="-O2"
  3529. else
  3530. CFLAGS=
  3531. fi
  3532. fi
  3533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3534. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3535. if ${ac_cv_prog_cc_c89+:} false; then :
  3536. $as_echo_n "(cached) " >&6
  3537. else
  3538. ac_cv_prog_cc_c89=no
  3539. ac_save_CC=$CC
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. #include <stdarg.h>
  3543. #include <stdio.h>
  3544. struct stat;
  3545. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3546. struct buf { int x; };
  3547. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3548. static char *e (p, i)
  3549. char **p;
  3550. int i;
  3551. {
  3552. return p[i];
  3553. }
  3554. static char *f (char * (*g) (char **, int), char **p, ...)
  3555. {
  3556. char *s;
  3557. va_list v;
  3558. va_start (v,p);
  3559. s = g (p, va_arg (v,int));
  3560. va_end (v);
  3561. return s;
  3562. }
  3563. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3564. function prototypes and stuff, but not '\xHH' hex character constants.
  3565. These don't provoke an error unfortunately, instead are silently treated
  3566. as 'x'. The following induces an error, until -std is added to get
  3567. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3568. array size at least. It's necessary to write '\x00'==0 to get something
  3569. that's true only with -std. */
  3570. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3571. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3572. inside strings and character constants. */
  3573. #define FOO(x) 'x'
  3574. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3575. int test (int i, double x);
  3576. struct s1 {int (*f) (int a);};
  3577. struct s2 {int (*f) (double a);};
  3578. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3579. int argc;
  3580. char **argv;
  3581. int
  3582. main ()
  3583. {
  3584. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3585. ;
  3586. return 0;
  3587. }
  3588. _ACEOF
  3589. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3590. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3591. do
  3592. CC="$ac_save_CC $ac_arg"
  3593. if ac_fn_c_try_compile "$LINENO"; then :
  3594. ac_cv_prog_cc_c89=$ac_arg
  3595. fi
  3596. rm -f core conftest.err conftest.$ac_objext
  3597. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3598. done
  3599. rm -f conftest.$ac_ext
  3600. CC=$ac_save_CC
  3601. fi
  3602. # AC_CACHE_VAL
  3603. case "x$ac_cv_prog_cc_c89" in
  3604. x)
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3606. $as_echo "none needed" >&6; } ;;
  3607. xno)
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3609. $as_echo "unsupported" >&6; } ;;
  3610. *)
  3611. CC="$CC $ac_cv_prog_cc_c89"
  3612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3613. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3614. esac
  3615. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3616. fi
  3617. ac_ext=c
  3618. ac_cpp='$CPP $CPPFLAGS'
  3619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3622. ac_ext=c
  3623. ac_cpp='$CPP $CPPFLAGS'
  3624. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3625. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3626. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3628. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3629. if ${am_cv_prog_cc_c_o+:} false; then :
  3630. $as_echo_n "(cached) " >&6
  3631. else
  3632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3633. /* end confdefs.h. */
  3634. int
  3635. main ()
  3636. {
  3637. ;
  3638. return 0;
  3639. }
  3640. _ACEOF
  3641. # Make sure it works both with $CC and with simple cc.
  3642. # Following AC_PROG_CC_C_O, we do the test twice because some
  3643. # compilers refuse to overwrite an existing .o file with -o,
  3644. # though they will create one.
  3645. am_cv_prog_cc_c_o=yes
  3646. for am_i in 1 2; do
  3647. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3648. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3649. ac_status=$?
  3650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3651. (exit $ac_status); } \
  3652. && test -f conftest2.$ac_objext; then
  3653. : OK
  3654. else
  3655. am_cv_prog_cc_c_o=no
  3656. break
  3657. fi
  3658. done
  3659. rm -f core conftest*
  3660. unset am_i
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3663. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3664. if test "$am_cv_prog_cc_c_o" != yes; then
  3665. # Losing compiler, so override with the script.
  3666. # FIXME: It is wrong to rewrite CC.
  3667. # But if we don't then we get into trouble of one sort or another.
  3668. # A longer-term fix would be to have automake use am__CC in this case,
  3669. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3670. CC="$am_aux_dir/compile $CC"
  3671. fi
  3672. ac_ext=c
  3673. ac_cpp='$CPP $CPPFLAGS'
  3674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3677. depcc="$CC" am_compiler_list=
  3678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3679. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3680. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3681. $as_echo_n "(cached) " >&6
  3682. else
  3683. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3684. # We make a subdir and do the tests there. Otherwise we can end up
  3685. # making bogus files that we don't know about and never remove. For
  3686. # instance it was reported that on HP-UX the gcc test will end up
  3687. # making a dummy file named 'D' -- because '-MD' means "put the output
  3688. # in D".
  3689. rm -rf conftest.dir
  3690. mkdir conftest.dir
  3691. # Copy depcomp to subdir because otherwise we won't find it if we're
  3692. # using a relative directory.
  3693. cp "$am_depcomp" conftest.dir
  3694. cd conftest.dir
  3695. # We will build objects and dependencies in a subdirectory because
  3696. # it helps to detect inapplicable dependency modes. For instance
  3697. # both Tru64's cc and ICC support -MD to output dependencies as a
  3698. # side effect of compilation, but ICC will put the dependencies in
  3699. # the current directory while Tru64 will put them in the object
  3700. # directory.
  3701. mkdir sub
  3702. am_cv_CC_dependencies_compiler_type=none
  3703. if test "$am_compiler_list" = ""; then
  3704. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3705. fi
  3706. am__universal=false
  3707. case " $depcc " in #(
  3708. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3709. esac
  3710. for depmode in $am_compiler_list; do
  3711. # Setup a source with many dependencies, because some compilers
  3712. # like to wrap large dependency lists on column 80 (with \), and
  3713. # we should not choose a depcomp mode which is confused by this.
  3714. #
  3715. # We need to recreate these files for each test, as the compiler may
  3716. # overwrite some of them when testing with obscure command lines.
  3717. # This happens at least with the AIX C compiler.
  3718. : > sub/conftest.c
  3719. for i in 1 2 3 4 5 6; do
  3720. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3721. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3722. # Solaris 10 /bin/sh.
  3723. echo '/* dummy */' > sub/conftst$i.h
  3724. done
  3725. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3726. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3727. # mode. It turns out that the SunPro C++ compiler does not properly
  3728. # handle '-M -o', and we need to detect this. Also, some Intel
  3729. # versions had trouble with output in subdirs.
  3730. am__obj=sub/conftest.${OBJEXT-o}
  3731. am__minus_obj="-o $am__obj"
  3732. case $depmode in
  3733. gcc)
  3734. # This depmode causes a compiler race in universal mode.
  3735. test "$am__universal" = false || continue
  3736. ;;
  3737. nosideeffect)
  3738. # After this tag, mechanisms are not by side-effect, so they'll
  3739. # only be used when explicitly requested.
  3740. if test "x$enable_dependency_tracking" = xyes; then
  3741. continue
  3742. else
  3743. break
  3744. fi
  3745. ;;
  3746. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3747. # This compiler won't grok '-c -o', but also, the minuso test has
  3748. # not run yet. These depmodes are late enough in the game, and
  3749. # so weak that their functioning should not be impacted.
  3750. am__obj=conftest.${OBJEXT-o}
  3751. am__minus_obj=
  3752. ;;
  3753. none) break ;;
  3754. esac
  3755. if depmode=$depmode \
  3756. source=sub/conftest.c object=$am__obj \
  3757. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3758. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3759. >/dev/null 2>conftest.err &&
  3760. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3761. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3762. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3763. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3764. # icc doesn't choke on unknown options, it will just issue warnings
  3765. # or remarks (even with -Werror). So we grep stderr for any message
  3766. # that says an option was ignored or not supported.
  3767. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3768. # icc: Command line warning: ignoring option '-M'; no argument required
  3769. # The diagnosis changed in icc 8.0:
  3770. # icc: Command line remark: option '-MP' not supported
  3771. if (grep 'ignoring option' conftest.err ||
  3772. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3773. am_cv_CC_dependencies_compiler_type=$depmode
  3774. break
  3775. fi
  3776. fi
  3777. done
  3778. cd ..
  3779. rm -rf conftest.dir
  3780. else
  3781. am_cv_CC_dependencies_compiler_type=none
  3782. fi
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3785. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3786. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3787. if
  3788. test "x$enable_dependency_tracking" != xno \
  3789. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3790. am__fastdepCC_TRUE=
  3791. am__fastdepCC_FALSE='#'
  3792. else
  3793. am__fastdepCC_TRUE='#'
  3794. am__fastdepCC_FALSE=
  3795. fi
  3796. if test -n "$ac_tool_prefix"; then
  3797. for ac_prog in ar lib "link -lib"
  3798. do
  3799. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3800. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. $as_echo_n "checking for $ac_word... " >&6; }
  3803. if ${ac_cv_prog_AR+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$AR"; then
  3807. ac_cv_prog_AR="$AR" # Let the user override the test.
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3816. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. AR=$ac_cv_prog_AR
  3826. if test -n "$AR"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3828. $as_echo "$AR" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. test -n "$AR" && break
  3834. done
  3835. fi
  3836. if test -z "$AR"; then
  3837. ac_ct_AR=$AR
  3838. for ac_prog in ar lib "link -lib"
  3839. do
  3840. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3841. set dummy $ac_prog; ac_word=$2
  3842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3843. $as_echo_n "checking for $ac_word... " >&6; }
  3844. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3845. $as_echo_n "(cached) " >&6
  3846. else
  3847. if test -n "$ac_ct_AR"; then
  3848. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3849. else
  3850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3851. for as_dir in $PATH
  3852. do
  3853. IFS=$as_save_IFS
  3854. test -z "$as_dir" && as_dir=.
  3855. for ac_exec_ext in '' $ac_executable_extensions; do
  3856. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3857. ac_cv_prog_ac_ct_AR="$ac_prog"
  3858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3859. break 2
  3860. fi
  3861. done
  3862. done
  3863. IFS=$as_save_IFS
  3864. fi
  3865. fi
  3866. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3867. if test -n "$ac_ct_AR"; then
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3869. $as_echo "$ac_ct_AR" >&6; }
  3870. else
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3872. $as_echo "no" >&6; }
  3873. fi
  3874. test -n "$ac_ct_AR" && break
  3875. done
  3876. if test "x$ac_ct_AR" = x; then
  3877. AR="false"
  3878. else
  3879. case $cross_compiling:$ac_tool_warned in
  3880. yes:)
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3883. ac_tool_warned=yes ;;
  3884. esac
  3885. AR=$ac_ct_AR
  3886. fi
  3887. fi
  3888. : ${AR=ar}
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3890. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3891. if ${am_cv_ar_interface+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. ac_ext=c
  3895. ac_cpp='$CPP $CPPFLAGS'
  3896. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3897. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3898. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3899. am_cv_ar_interface=ar
  3900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3901. /* end confdefs.h. */
  3902. int some_variable = 0;
  3903. _ACEOF
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3906. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3907. (eval $am_ar_try) 2>&5
  3908. ac_status=$?
  3909. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3910. test $ac_status = 0; }
  3911. if test "$ac_status" -eq 0; then
  3912. am_cv_ar_interface=ar
  3913. else
  3914. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3915. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3916. (eval $am_ar_try) 2>&5
  3917. ac_status=$?
  3918. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3919. test $ac_status = 0; }
  3920. if test "$ac_status" -eq 0; then
  3921. am_cv_ar_interface=lib
  3922. else
  3923. am_cv_ar_interface=unknown
  3924. fi
  3925. fi
  3926. rm -f conftest.lib libconftest.a
  3927. fi
  3928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3929. ac_ext=c
  3930. ac_cpp='$CPP $CPPFLAGS'
  3931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3936. $as_echo "$am_cv_ar_interface" >&6; }
  3937. case $am_cv_ar_interface in
  3938. ar)
  3939. ;;
  3940. lib)
  3941. # Microsoft lib, so override with the ar-lib wrapper script.
  3942. # FIXME: It is wrong to rewrite AR.
  3943. # But if we don't then we get into trouble of one sort or another.
  3944. # A longer-term fix would be to have automake use am__AR in this case,
  3945. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3946. # similar.
  3947. AR="$am_aux_dir/ar-lib $AR"
  3948. ;;
  3949. unknown)
  3950. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3951. ;;
  3952. esac
  3953. # By default we simply use the C compiler to build assembly code.
  3954. test "${CCAS+set}" = set || CCAS=$CC
  3955. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3956. depcc="$CCAS" am_compiler_list=
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3958. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3959. if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3963. # We make a subdir and do the tests there. Otherwise we can end up
  3964. # making bogus files that we don't know about and never remove. For
  3965. # instance it was reported that on HP-UX the gcc test will end up
  3966. # making a dummy file named 'D' -- because '-MD' means "put the output
  3967. # in D".
  3968. rm -rf conftest.dir
  3969. mkdir conftest.dir
  3970. # Copy depcomp to subdir because otherwise we won't find it if we're
  3971. # using a relative directory.
  3972. cp "$am_depcomp" conftest.dir
  3973. cd conftest.dir
  3974. # We will build objects and dependencies in a subdirectory because
  3975. # it helps to detect inapplicable dependency modes. For instance
  3976. # both Tru64's cc and ICC support -MD to output dependencies as a
  3977. # side effect of compilation, but ICC will put the dependencies in
  3978. # the current directory while Tru64 will put them in the object
  3979. # directory.
  3980. mkdir sub
  3981. am_cv_CCAS_dependencies_compiler_type=none
  3982. if test "$am_compiler_list" = ""; then
  3983. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3984. fi
  3985. am__universal=false
  3986. for depmode in $am_compiler_list; do
  3987. # Setup a source with many dependencies, because some compilers
  3988. # like to wrap large dependency lists on column 80 (with \), and
  3989. # we should not choose a depcomp mode which is confused by this.
  3990. #
  3991. # We need to recreate these files for each test, as the compiler may
  3992. # overwrite some of them when testing with obscure command lines.
  3993. # This happens at least with the AIX C compiler.
  3994. : > sub/conftest.c
  3995. for i in 1 2 3 4 5 6; do
  3996. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3997. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3998. # Solaris 10 /bin/sh.
  3999. echo '/* dummy */' > sub/conftst$i.h
  4000. done
  4001. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4002. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4003. # mode. It turns out that the SunPro C++ compiler does not properly
  4004. # handle '-M -o', and we need to detect this. Also, some Intel
  4005. # versions had trouble with output in subdirs.
  4006. am__obj=sub/conftest.${OBJEXT-o}
  4007. am__minus_obj="-o $am__obj"
  4008. case $depmode in
  4009. gcc)
  4010. # This depmode causes a compiler race in universal mode.
  4011. test "$am__universal" = false || continue
  4012. ;;
  4013. nosideeffect)
  4014. # After this tag, mechanisms are not by side-effect, so they'll
  4015. # only be used when explicitly requested.
  4016. if test "x$enable_dependency_tracking" = xyes; then
  4017. continue
  4018. else
  4019. break
  4020. fi
  4021. ;;
  4022. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4023. # This compiler won't grok '-c -o', but also, the minuso test has
  4024. # not run yet. These depmodes are late enough in the game, and
  4025. # so weak that their functioning should not be impacted.
  4026. am__obj=conftest.${OBJEXT-o}
  4027. am__minus_obj=
  4028. ;;
  4029. none) break ;;
  4030. esac
  4031. if depmode=$depmode \
  4032. source=sub/conftest.c object=$am__obj \
  4033. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4034. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4035. >/dev/null 2>conftest.err &&
  4036. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4037. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4038. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4039. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4040. # icc doesn't choke on unknown options, it will just issue warnings
  4041. # or remarks (even with -Werror). So we grep stderr for any message
  4042. # that says an option was ignored or not supported.
  4043. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4044. # icc: Command line warning: ignoring option '-M'; no argument required
  4045. # The diagnosis changed in icc 8.0:
  4046. # icc: Command line remark: option '-MP' not supported
  4047. if (grep 'ignoring option' conftest.err ||
  4048. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4049. am_cv_CCAS_dependencies_compiler_type=$depmode
  4050. break
  4051. fi
  4052. fi
  4053. done
  4054. cd ..
  4055. rm -rf conftest.dir
  4056. else
  4057. am_cv_CCAS_dependencies_compiler_type=none
  4058. fi
  4059. fi
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  4061. $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  4062. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  4063. if
  4064. test "x$enable_dependency_tracking" != xno \
  4065. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  4066. am__fastdepCCAS_TRUE=
  4067. am__fastdepCCAS_FALSE='#'
  4068. else
  4069. am__fastdepCCAS_TRUE='#'
  4070. am__fastdepCCAS_FALSE=
  4071. fi
  4072. ac_ext=c
  4073. ac_cpp='$CPP $CPPFLAGS'
  4074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4077. if test -n "$ac_tool_prefix"; then
  4078. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4079. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4081. $as_echo_n "checking for $ac_word... " >&6; }
  4082. if ${ac_cv_prog_CC+:} false; then :
  4083. $as_echo_n "(cached) " >&6
  4084. else
  4085. if test -n "$CC"; then
  4086. ac_cv_prog_CC="$CC" # Let the user override the test.
  4087. else
  4088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4089. for as_dir in $PATH
  4090. do
  4091. IFS=$as_save_IFS
  4092. test -z "$as_dir" && as_dir=.
  4093. for ac_exec_ext in '' $ac_executable_extensions; do
  4094. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4095. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4096. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4097. break 2
  4098. fi
  4099. done
  4100. done
  4101. IFS=$as_save_IFS
  4102. fi
  4103. fi
  4104. CC=$ac_cv_prog_CC
  4105. if test -n "$CC"; then
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4107. $as_echo "$CC" >&6; }
  4108. else
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4110. $as_echo "no" >&6; }
  4111. fi
  4112. fi
  4113. if test -z "$ac_cv_prog_CC"; then
  4114. ac_ct_CC=$CC
  4115. # Extract the first word of "gcc", so it can be a program name with args.
  4116. set dummy gcc; ac_word=$2
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4118. $as_echo_n "checking for $ac_word... " >&6; }
  4119. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4120. $as_echo_n "(cached) " >&6
  4121. else
  4122. if test -n "$ac_ct_CC"; then
  4123. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4124. else
  4125. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4126. for as_dir in $PATH
  4127. do
  4128. IFS=$as_save_IFS
  4129. test -z "$as_dir" && as_dir=.
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4132. ac_cv_prog_ac_ct_CC="gcc"
  4133. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4134. break 2
  4135. fi
  4136. done
  4137. done
  4138. IFS=$as_save_IFS
  4139. fi
  4140. fi
  4141. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4142. if test -n "$ac_ct_CC"; then
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4144. $as_echo "$ac_ct_CC" >&6; }
  4145. else
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4147. $as_echo "no" >&6; }
  4148. fi
  4149. if test "x$ac_ct_CC" = x; then
  4150. CC=""
  4151. else
  4152. case $cross_compiling:$ac_tool_warned in
  4153. yes:)
  4154. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4155. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4156. ac_tool_warned=yes ;;
  4157. esac
  4158. CC=$ac_ct_CC
  4159. fi
  4160. else
  4161. CC="$ac_cv_prog_CC"
  4162. fi
  4163. if test -z "$CC"; then
  4164. if test -n "$ac_tool_prefix"; then
  4165. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4166. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4168. $as_echo_n "checking for $ac_word... " >&6; }
  4169. if ${ac_cv_prog_CC+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. if test -n "$CC"; then
  4173. ac_cv_prog_CC="$CC" # Let the user override the test.
  4174. else
  4175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4176. for as_dir in $PATH
  4177. do
  4178. IFS=$as_save_IFS
  4179. test -z "$as_dir" && as_dir=.
  4180. for ac_exec_ext in '' $ac_executable_extensions; do
  4181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4182. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4184. break 2
  4185. fi
  4186. done
  4187. done
  4188. IFS=$as_save_IFS
  4189. fi
  4190. fi
  4191. CC=$ac_cv_prog_CC
  4192. if test -n "$CC"; then
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4194. $as_echo "$CC" >&6; }
  4195. else
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4197. $as_echo "no" >&6; }
  4198. fi
  4199. fi
  4200. fi
  4201. if test -z "$CC"; then
  4202. # Extract the first word of "cc", so it can be a program name with args.
  4203. set dummy cc; ac_word=$2
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4205. $as_echo_n "checking for $ac_word... " >&6; }
  4206. if ${ac_cv_prog_CC+:} false; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. if test -n "$CC"; then
  4210. ac_cv_prog_CC="$CC" # Let the user override the test.
  4211. else
  4212. ac_prog_rejected=no
  4213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4214. for as_dir in $PATH
  4215. do
  4216. IFS=$as_save_IFS
  4217. test -z "$as_dir" && as_dir=.
  4218. for ac_exec_ext in '' $ac_executable_extensions; do
  4219. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4220. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4221. ac_prog_rejected=yes
  4222. continue
  4223. fi
  4224. ac_cv_prog_CC="cc"
  4225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4226. break 2
  4227. fi
  4228. done
  4229. done
  4230. IFS=$as_save_IFS
  4231. if test $ac_prog_rejected = yes; then
  4232. # We found a bogon in the path, so make sure we never use it.
  4233. set dummy $ac_cv_prog_CC
  4234. shift
  4235. if test $# != 0; then
  4236. # We chose a different compiler from the bogus one.
  4237. # However, it has the same basename, so the bogon will be chosen
  4238. # first if we set CC to just the basename; use the full file name.
  4239. shift
  4240. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4241. fi
  4242. fi
  4243. fi
  4244. fi
  4245. CC=$ac_cv_prog_CC
  4246. if test -n "$CC"; then
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4248. $as_echo "$CC" >&6; }
  4249. else
  4250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4251. $as_echo "no" >&6; }
  4252. fi
  4253. fi
  4254. if test -z "$CC"; then
  4255. if test -n "$ac_tool_prefix"; then
  4256. for ac_prog in cl.exe
  4257. do
  4258. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4259. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4261. $as_echo_n "checking for $ac_word... " >&6; }
  4262. if ${ac_cv_prog_CC+:} false; then :
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if test -n "$CC"; then
  4266. ac_cv_prog_CC="$CC" # Let the user override the test.
  4267. else
  4268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4269. for as_dir in $PATH
  4270. do
  4271. IFS=$as_save_IFS
  4272. test -z "$as_dir" && as_dir=.
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4275. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4277. break 2
  4278. fi
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. fi
  4283. fi
  4284. CC=$ac_cv_prog_CC
  4285. if test -n "$CC"; then
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4287. $as_echo "$CC" >&6; }
  4288. else
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4290. $as_echo "no" >&6; }
  4291. fi
  4292. test -n "$CC" && break
  4293. done
  4294. fi
  4295. if test -z "$CC"; then
  4296. ac_ct_CC=$CC
  4297. for ac_prog in cl.exe
  4298. do
  4299. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4300. set dummy $ac_prog; ac_word=$2
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4302. $as_echo_n "checking for $ac_word... " >&6; }
  4303. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. if test -n "$ac_ct_CC"; then
  4307. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4308. else
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. for ac_exec_ext in '' $ac_executable_extensions; do
  4315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4316. ac_cv_prog_ac_ct_CC="$ac_prog"
  4317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4318. break 2
  4319. fi
  4320. done
  4321. done
  4322. IFS=$as_save_IFS
  4323. fi
  4324. fi
  4325. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4326. if test -n "$ac_ct_CC"; then
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4328. $as_echo "$ac_ct_CC" >&6; }
  4329. else
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4331. $as_echo "no" >&6; }
  4332. fi
  4333. test -n "$ac_ct_CC" && break
  4334. done
  4335. if test "x$ac_ct_CC" = x; then
  4336. CC=""
  4337. else
  4338. case $cross_compiling:$ac_tool_warned in
  4339. yes:)
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4341. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4342. ac_tool_warned=yes ;;
  4343. esac
  4344. CC=$ac_ct_CC
  4345. fi
  4346. fi
  4347. fi
  4348. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4350. as_fn_error $? "no acceptable C compiler found in \$PATH
  4351. See \`config.log' for more details" "$LINENO" 5; }
  4352. # Provide some information about the compiler.
  4353. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4354. set X $ac_compile
  4355. ac_compiler=$2
  4356. for ac_option in --version -v -V -qversion; do
  4357. { { ac_try="$ac_compiler $ac_option >&5"
  4358. case "(($ac_try" in
  4359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4360. *) ac_try_echo=$ac_try;;
  4361. esac
  4362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4363. $as_echo "$ac_try_echo"; } >&5
  4364. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4365. ac_status=$?
  4366. if test -s conftest.err; then
  4367. sed '10a\
  4368. ... rest of stderr output deleted ...
  4369. 10q' conftest.err >conftest.er1
  4370. cat conftest.er1 >&5
  4371. fi
  4372. rm -f conftest.er1 conftest.err
  4373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4374. test $ac_status = 0; }
  4375. done
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4377. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4378. if ${ac_cv_c_compiler_gnu+:} false; then :
  4379. $as_echo_n "(cached) " >&6
  4380. else
  4381. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4382. /* end confdefs.h. */
  4383. int
  4384. main ()
  4385. {
  4386. #ifndef __GNUC__
  4387. choke me
  4388. #endif
  4389. ;
  4390. return 0;
  4391. }
  4392. _ACEOF
  4393. if ac_fn_c_try_compile "$LINENO"; then :
  4394. ac_compiler_gnu=yes
  4395. else
  4396. ac_compiler_gnu=no
  4397. fi
  4398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4399. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4400. fi
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4402. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4403. if test $ac_compiler_gnu = yes; then
  4404. GCC=yes
  4405. else
  4406. GCC=
  4407. fi
  4408. ac_test_CFLAGS=${CFLAGS+set}
  4409. ac_save_CFLAGS=$CFLAGS
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4411. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4412. if ${ac_cv_prog_cc_g+:} false; then :
  4413. $as_echo_n "(cached) " >&6
  4414. else
  4415. ac_save_c_werror_flag=$ac_c_werror_flag
  4416. ac_c_werror_flag=yes
  4417. ac_cv_prog_cc_g=no
  4418. CFLAGS="-g"
  4419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4420. /* end confdefs.h. */
  4421. int
  4422. main ()
  4423. {
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. if ac_fn_c_try_compile "$LINENO"; then :
  4429. ac_cv_prog_cc_g=yes
  4430. else
  4431. CFLAGS=""
  4432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4433. /* end confdefs.h. */
  4434. int
  4435. main ()
  4436. {
  4437. ;
  4438. return 0;
  4439. }
  4440. _ACEOF
  4441. if ac_fn_c_try_compile "$LINENO"; then :
  4442. else
  4443. ac_c_werror_flag=$ac_save_c_werror_flag
  4444. CFLAGS="-g"
  4445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4446. /* end confdefs.h. */
  4447. int
  4448. main ()
  4449. {
  4450. ;
  4451. return 0;
  4452. }
  4453. _ACEOF
  4454. if ac_fn_c_try_compile "$LINENO"; then :
  4455. ac_cv_prog_cc_g=yes
  4456. fi
  4457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4458. fi
  4459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4460. fi
  4461. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4462. ac_c_werror_flag=$ac_save_c_werror_flag
  4463. fi
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4465. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4466. if test "$ac_test_CFLAGS" = set; then
  4467. CFLAGS=$ac_save_CFLAGS
  4468. elif test $ac_cv_prog_cc_g = yes; then
  4469. if test "$GCC" = yes; then
  4470. CFLAGS="-g -O2"
  4471. else
  4472. CFLAGS="-g"
  4473. fi
  4474. else
  4475. if test "$GCC" = yes; then
  4476. CFLAGS="-O2"
  4477. else
  4478. CFLAGS=
  4479. fi
  4480. fi
  4481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4482. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4483. if ${ac_cv_prog_cc_c89+:} false; then :
  4484. $as_echo_n "(cached) " >&6
  4485. else
  4486. ac_cv_prog_cc_c89=no
  4487. ac_save_CC=$CC
  4488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4489. /* end confdefs.h. */
  4490. #include <stdarg.h>
  4491. #include <stdio.h>
  4492. struct stat;
  4493. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4494. struct buf { int x; };
  4495. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4496. static char *e (p, i)
  4497. char **p;
  4498. int i;
  4499. {
  4500. return p[i];
  4501. }
  4502. static char *f (char * (*g) (char **, int), char **p, ...)
  4503. {
  4504. char *s;
  4505. va_list v;
  4506. va_start (v,p);
  4507. s = g (p, va_arg (v,int));
  4508. va_end (v);
  4509. return s;
  4510. }
  4511. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4512. function prototypes and stuff, but not '\xHH' hex character constants.
  4513. These don't provoke an error unfortunately, instead are silently treated
  4514. as 'x'. The following induces an error, until -std is added to get
  4515. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4516. array size at least. It's necessary to write '\x00'==0 to get something
  4517. that's true only with -std. */
  4518. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4519. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4520. inside strings and character constants. */
  4521. #define FOO(x) 'x'
  4522. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4523. int test (int i, double x);
  4524. struct s1 {int (*f) (int a);};
  4525. struct s2 {int (*f) (double a);};
  4526. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4527. int argc;
  4528. char **argv;
  4529. int
  4530. main ()
  4531. {
  4532. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4533. ;
  4534. return 0;
  4535. }
  4536. _ACEOF
  4537. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4538. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4539. do
  4540. CC="$ac_save_CC $ac_arg"
  4541. if ac_fn_c_try_compile "$LINENO"; then :
  4542. ac_cv_prog_cc_c89=$ac_arg
  4543. fi
  4544. rm -f core conftest.err conftest.$ac_objext
  4545. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4546. done
  4547. rm -f conftest.$ac_ext
  4548. CC=$ac_save_CC
  4549. fi
  4550. # AC_CACHE_VAL
  4551. case "x$ac_cv_prog_cc_c89" in
  4552. x)
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4554. $as_echo "none needed" >&6; } ;;
  4555. xno)
  4556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4557. $as_echo "unsupported" >&6; } ;;
  4558. *)
  4559. CC="$CC $ac_cv_prog_cc_c89"
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4561. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4562. esac
  4563. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4564. fi
  4565. ac_ext=c
  4566. ac_cpp='$CPP $CPPFLAGS'
  4567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4570. ac_ext=c
  4571. ac_cpp='$CPP $CPPFLAGS'
  4572. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4573. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4574. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4576. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4577. if ${am_cv_prog_cc_c_o+:} false; then :
  4578. $as_echo_n "(cached) " >&6
  4579. else
  4580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4581. /* end confdefs.h. */
  4582. int
  4583. main ()
  4584. {
  4585. ;
  4586. return 0;
  4587. }
  4588. _ACEOF
  4589. # Make sure it works both with $CC and with simple cc.
  4590. # Following AC_PROG_CC_C_O, we do the test twice because some
  4591. # compilers refuse to overwrite an existing .o file with -o,
  4592. # though they will create one.
  4593. am_cv_prog_cc_c_o=yes
  4594. for am_i in 1 2; do
  4595. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4596. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4597. ac_status=$?
  4598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4599. (exit $ac_status); } \
  4600. && test -f conftest2.$ac_objext; then
  4601. : OK
  4602. else
  4603. am_cv_prog_cc_c_o=no
  4604. break
  4605. fi
  4606. done
  4607. rm -f core conftest*
  4608. unset am_i
  4609. fi
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4611. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4612. if test "$am_cv_prog_cc_c_o" != yes; then
  4613. # Losing compiler, so override with the script.
  4614. # FIXME: It is wrong to rewrite CC.
  4615. # But if we don't then we get into trouble of one sort or another.
  4616. # A longer-term fix would be to have automake use am__CC in this case,
  4617. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4618. CC="$am_aux_dir/compile $CC"
  4619. fi
  4620. ac_ext=c
  4621. ac_cpp='$CPP $CPPFLAGS'
  4622. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4623. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4624. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4625. depcc="$CC" am_compiler_list=
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4627. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4628. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4632. # We make a subdir and do the tests there. Otherwise we can end up
  4633. # making bogus files that we don't know about and never remove. For
  4634. # instance it was reported that on HP-UX the gcc test will end up
  4635. # making a dummy file named 'D' -- because '-MD' means "put the output
  4636. # in D".
  4637. rm -rf conftest.dir
  4638. mkdir conftest.dir
  4639. # Copy depcomp to subdir because otherwise we won't find it if we're
  4640. # using a relative directory.
  4641. cp "$am_depcomp" conftest.dir
  4642. cd conftest.dir
  4643. # We will build objects and dependencies in a subdirectory because
  4644. # it helps to detect inapplicable dependency modes. For instance
  4645. # both Tru64's cc and ICC support -MD to output dependencies as a
  4646. # side effect of compilation, but ICC will put the dependencies in
  4647. # the current directory while Tru64 will put them in the object
  4648. # directory.
  4649. mkdir sub
  4650. am_cv_CC_dependencies_compiler_type=none
  4651. if test "$am_compiler_list" = ""; then
  4652. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4653. fi
  4654. am__universal=false
  4655. case " $depcc " in #(
  4656. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4657. esac
  4658. for depmode in $am_compiler_list; do
  4659. # Setup a source with many dependencies, because some compilers
  4660. # like to wrap large dependency lists on column 80 (with \), and
  4661. # we should not choose a depcomp mode which is confused by this.
  4662. #
  4663. # We need to recreate these files for each test, as the compiler may
  4664. # overwrite some of them when testing with obscure command lines.
  4665. # This happens at least with the AIX C compiler.
  4666. : > sub/conftest.c
  4667. for i in 1 2 3 4 5 6; do
  4668. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4669. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4670. # Solaris 10 /bin/sh.
  4671. echo '/* dummy */' > sub/conftst$i.h
  4672. done
  4673. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4674. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4675. # mode. It turns out that the SunPro C++ compiler does not properly
  4676. # handle '-M -o', and we need to detect this. Also, some Intel
  4677. # versions had trouble with output in subdirs.
  4678. am__obj=sub/conftest.${OBJEXT-o}
  4679. am__minus_obj="-o $am__obj"
  4680. case $depmode in
  4681. gcc)
  4682. # This depmode causes a compiler race in universal mode.
  4683. test "$am__universal" = false || continue
  4684. ;;
  4685. nosideeffect)
  4686. # After this tag, mechanisms are not by side-effect, so they'll
  4687. # only be used when explicitly requested.
  4688. if test "x$enable_dependency_tracking" = xyes; then
  4689. continue
  4690. else
  4691. break
  4692. fi
  4693. ;;
  4694. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4695. # This compiler won't grok '-c -o', but also, the minuso test has
  4696. # not run yet. These depmodes are late enough in the game, and
  4697. # so weak that their functioning should not be impacted.
  4698. am__obj=conftest.${OBJEXT-o}
  4699. am__minus_obj=
  4700. ;;
  4701. none) break ;;
  4702. esac
  4703. if depmode=$depmode \
  4704. source=sub/conftest.c object=$am__obj \
  4705. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4706. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4707. >/dev/null 2>conftest.err &&
  4708. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4709. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4710. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4711. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4712. # icc doesn't choke on unknown options, it will just issue warnings
  4713. # or remarks (even with -Werror). So we grep stderr for any message
  4714. # that says an option was ignored or not supported.
  4715. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4716. # icc: Command line warning: ignoring option '-M'; no argument required
  4717. # The diagnosis changed in icc 8.0:
  4718. # icc: Command line remark: option '-MP' not supported
  4719. if (grep 'ignoring option' conftest.err ||
  4720. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4721. am_cv_CC_dependencies_compiler_type=$depmode
  4722. break
  4723. fi
  4724. fi
  4725. done
  4726. cd ..
  4727. rm -rf conftest.dir
  4728. else
  4729. am_cv_CC_dependencies_compiler_type=none
  4730. fi
  4731. fi
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4733. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4734. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4735. if
  4736. test "x$enable_dependency_tracking" != xno \
  4737. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4738. am__fastdepCC_TRUE=
  4739. am__fastdepCC_FALSE='#'
  4740. else
  4741. am__fastdepCC_TRUE='#'
  4742. am__fastdepCC_FALSE=
  4743. fi
  4744. ac_ext=c
  4745. ac_cpp='$CPP $CPPFLAGS'
  4746. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4747. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4748. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4750. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4751. # On Suns, sometimes $CPP names a directory.
  4752. if test -n "$CPP" && test -d "$CPP"; then
  4753. CPP=
  4754. fi
  4755. if test -z "$CPP"; then
  4756. if ${ac_cv_prog_CPP+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. # Double quotes because CPP needs to be expanded
  4760. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4761. do
  4762. ac_preproc_ok=false
  4763. for ac_c_preproc_warn_flag in '' yes
  4764. do
  4765. # Use a header file that comes with gcc, so configuring glibc
  4766. # with a fresh cross-compiler works.
  4767. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4768. # <limits.h> exists even on freestanding compilers.
  4769. # On the NeXT, cc -E runs the code through the compiler's parser,
  4770. # not just through cpp. "Syntax error" is here to catch this case.
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. #ifdef __STDC__
  4774. # include <limits.h>
  4775. #else
  4776. # include <assert.h>
  4777. #endif
  4778. Syntax error
  4779. _ACEOF
  4780. if ac_fn_c_try_cpp "$LINENO"; then :
  4781. else
  4782. # Broken: fails on valid input.
  4783. continue
  4784. fi
  4785. rm -f conftest.err conftest.i conftest.$ac_ext
  4786. # OK, works on sane cases. Now check whether nonexistent headers
  4787. # can be detected and how.
  4788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4789. /* end confdefs.h. */
  4790. #include <ac_nonexistent.h>
  4791. _ACEOF
  4792. if ac_fn_c_try_cpp "$LINENO"; then :
  4793. # Broken: success on invalid input.
  4794. continue
  4795. else
  4796. # Passes both tests.
  4797. ac_preproc_ok=:
  4798. break
  4799. fi
  4800. rm -f conftest.err conftest.i conftest.$ac_ext
  4801. done
  4802. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4803. rm -f conftest.i conftest.err conftest.$ac_ext
  4804. if $ac_preproc_ok; then :
  4805. break
  4806. fi
  4807. done
  4808. ac_cv_prog_CPP=$CPP
  4809. fi
  4810. CPP=$ac_cv_prog_CPP
  4811. else
  4812. ac_cv_prog_CPP=$CPP
  4813. fi
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4815. $as_echo "$CPP" >&6; }
  4816. ac_preproc_ok=false
  4817. for ac_c_preproc_warn_flag in '' yes
  4818. do
  4819. # Use a header file that comes with gcc, so configuring glibc
  4820. # with a fresh cross-compiler works.
  4821. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4822. # <limits.h> exists even on freestanding compilers.
  4823. # On the NeXT, cc -E runs the code through the compiler's parser,
  4824. # not just through cpp. "Syntax error" is here to catch this case.
  4825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4826. /* end confdefs.h. */
  4827. #ifdef __STDC__
  4828. # include <limits.h>
  4829. #else
  4830. # include <assert.h>
  4831. #endif
  4832. Syntax error
  4833. _ACEOF
  4834. if ac_fn_c_try_cpp "$LINENO"; then :
  4835. else
  4836. # Broken: fails on valid input.
  4837. continue
  4838. fi
  4839. rm -f conftest.err conftest.i conftest.$ac_ext
  4840. # OK, works on sane cases. Now check whether nonexistent headers
  4841. # can be detected and how.
  4842. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4843. /* end confdefs.h. */
  4844. #include <ac_nonexistent.h>
  4845. _ACEOF
  4846. if ac_fn_c_try_cpp "$LINENO"; then :
  4847. # Broken: success on invalid input.
  4848. continue
  4849. else
  4850. # Passes both tests.
  4851. ac_preproc_ok=:
  4852. break
  4853. fi
  4854. rm -f conftest.err conftest.i conftest.$ac_ext
  4855. done
  4856. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4857. rm -f conftest.i conftest.err conftest.$ac_ext
  4858. if $ac_preproc_ok; then :
  4859. else
  4860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4862. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4863. See \`config.log' for more details" "$LINENO" 5; }
  4864. fi
  4865. ac_ext=c
  4866. ac_cpp='$CPP $CPPFLAGS'
  4867. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4868. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4869. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4870. ac_ext=cpp
  4871. ac_cpp='$CXXCPP $CPPFLAGS'
  4872. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4873. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4874. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4875. if test -z "$CXX"; then
  4876. if test -n "$CCC"; then
  4877. CXX=$CCC
  4878. else
  4879. if test -n "$ac_tool_prefix"; then
  4880. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4881. do
  4882. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4883. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4885. $as_echo_n "checking for $ac_word... " >&6; }
  4886. if ${ac_cv_prog_CXX+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. if test -n "$CXX"; then
  4890. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4891. else
  4892. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4893. for as_dir in $PATH
  4894. do
  4895. IFS=$as_save_IFS
  4896. test -z "$as_dir" && as_dir=.
  4897. for ac_exec_ext in '' $ac_executable_extensions; do
  4898. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4899. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4900. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4901. break 2
  4902. fi
  4903. done
  4904. done
  4905. IFS=$as_save_IFS
  4906. fi
  4907. fi
  4908. CXX=$ac_cv_prog_CXX
  4909. if test -n "$CXX"; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4911. $as_echo "$CXX" >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4914. $as_echo "no" >&6; }
  4915. fi
  4916. test -n "$CXX" && break
  4917. done
  4918. fi
  4919. if test -z "$CXX"; then
  4920. ac_ct_CXX=$CXX
  4921. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4922. do
  4923. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4924. set dummy $ac_prog; ac_word=$2
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4926. $as_echo_n "checking for $ac_word... " >&6; }
  4927. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4928. $as_echo_n "(cached) " >&6
  4929. else
  4930. if test -n "$ac_ct_CXX"; then
  4931. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4932. else
  4933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4934. for as_dir in $PATH
  4935. do
  4936. IFS=$as_save_IFS
  4937. test -z "$as_dir" && as_dir=.
  4938. for ac_exec_ext in '' $ac_executable_extensions; do
  4939. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4940. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4941. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4942. break 2
  4943. fi
  4944. done
  4945. done
  4946. IFS=$as_save_IFS
  4947. fi
  4948. fi
  4949. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4950. if test -n "$ac_ct_CXX"; then
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4952. $as_echo "$ac_ct_CXX" >&6; }
  4953. else
  4954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4955. $as_echo "no" >&6; }
  4956. fi
  4957. test -n "$ac_ct_CXX" && break
  4958. done
  4959. if test "x$ac_ct_CXX" = x; then
  4960. CXX="g++"
  4961. else
  4962. case $cross_compiling:$ac_tool_warned in
  4963. yes:)
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4965. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4966. ac_tool_warned=yes ;;
  4967. esac
  4968. CXX=$ac_ct_CXX
  4969. fi
  4970. fi
  4971. fi
  4972. fi
  4973. # Provide some information about the compiler.
  4974. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4975. set X $ac_compile
  4976. ac_compiler=$2
  4977. for ac_option in --version -v -V -qversion; do
  4978. { { ac_try="$ac_compiler $ac_option >&5"
  4979. case "(($ac_try" in
  4980. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4981. *) ac_try_echo=$ac_try;;
  4982. esac
  4983. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4984. $as_echo "$ac_try_echo"; } >&5
  4985. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4986. ac_status=$?
  4987. if test -s conftest.err; then
  4988. sed '10a\
  4989. ... rest of stderr output deleted ...
  4990. 10q' conftest.err >conftest.er1
  4991. cat conftest.er1 >&5
  4992. fi
  4993. rm -f conftest.er1 conftest.err
  4994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4995. test $ac_status = 0; }
  4996. done
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4998. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4999. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5003. /* end confdefs.h. */
  5004. int
  5005. main ()
  5006. {
  5007. #ifndef __GNUC__
  5008. choke me
  5009. #endif
  5010. ;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. if ac_fn_cxx_try_compile "$LINENO"; then :
  5015. ac_compiler_gnu=yes
  5016. else
  5017. ac_compiler_gnu=no
  5018. fi
  5019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5021. fi
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  5023. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  5024. if test $ac_compiler_gnu = yes; then
  5025. GXX=yes
  5026. else
  5027. GXX=
  5028. fi
  5029. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5030. ac_save_CXXFLAGS=$CXXFLAGS
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  5032. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  5033. if ${ac_cv_prog_cxx_g+:} false; then :
  5034. $as_echo_n "(cached) " >&6
  5035. else
  5036. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5037. ac_cxx_werror_flag=yes
  5038. ac_cv_prog_cxx_g=no
  5039. CXXFLAGS="-g"
  5040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5041. /* end confdefs.h. */
  5042. int
  5043. main ()
  5044. {
  5045. ;
  5046. return 0;
  5047. }
  5048. _ACEOF
  5049. if ac_fn_cxx_try_compile "$LINENO"; then :
  5050. ac_cv_prog_cxx_g=yes
  5051. else
  5052. CXXFLAGS=""
  5053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5054. /* end confdefs.h. */
  5055. int
  5056. main ()
  5057. {
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. if ac_fn_cxx_try_compile "$LINENO"; then :
  5063. else
  5064. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5065. CXXFLAGS="-g"
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int
  5069. main ()
  5070. {
  5071. ;
  5072. return 0;
  5073. }
  5074. _ACEOF
  5075. if ac_fn_cxx_try_compile "$LINENO"; then :
  5076. ac_cv_prog_cxx_g=yes
  5077. fi
  5078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5079. fi
  5080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5083. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5084. fi
  5085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  5086. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  5087. if test "$ac_test_CXXFLAGS" = set; then
  5088. CXXFLAGS=$ac_save_CXXFLAGS
  5089. elif test $ac_cv_prog_cxx_g = yes; then
  5090. if test "$GXX" = yes; then
  5091. CXXFLAGS="-g -O2"
  5092. else
  5093. CXXFLAGS="-g"
  5094. fi
  5095. else
  5096. if test "$GXX" = yes; then
  5097. CXXFLAGS="-O2"
  5098. else
  5099. CXXFLAGS=
  5100. fi
  5101. fi
  5102. ac_ext=c
  5103. ac_cpp='$CPP $CPPFLAGS'
  5104. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5105. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5106. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5107. depcc="$CXX" am_compiler_list=
  5108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  5109. $as_echo_n "checking dependency style of $depcc... " >&6; }
  5110. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5114. # We make a subdir and do the tests there. Otherwise we can end up
  5115. # making bogus files that we don't know about and never remove. For
  5116. # instance it was reported that on HP-UX the gcc test will end up
  5117. # making a dummy file named 'D' -- because '-MD' means "put the output
  5118. # in D".
  5119. rm -rf conftest.dir
  5120. mkdir conftest.dir
  5121. # Copy depcomp to subdir because otherwise we won't find it if we're
  5122. # using a relative directory.
  5123. cp "$am_depcomp" conftest.dir
  5124. cd conftest.dir
  5125. # We will build objects and dependencies in a subdirectory because
  5126. # it helps to detect inapplicable dependency modes. For instance
  5127. # both Tru64's cc and ICC support -MD to output dependencies as a
  5128. # side effect of compilation, but ICC will put the dependencies in
  5129. # the current directory while Tru64 will put them in the object
  5130. # directory.
  5131. mkdir sub
  5132. am_cv_CXX_dependencies_compiler_type=none
  5133. if test "$am_compiler_list" = ""; then
  5134. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5135. fi
  5136. am__universal=false
  5137. case " $depcc " in #(
  5138. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  5139. esac
  5140. for depmode in $am_compiler_list; do
  5141. # Setup a source with many dependencies, because some compilers
  5142. # like to wrap large dependency lists on column 80 (with \), and
  5143. # we should not choose a depcomp mode which is confused by this.
  5144. #
  5145. # We need to recreate these files for each test, as the compiler may
  5146. # overwrite some of them when testing with obscure command lines.
  5147. # This happens at least with the AIX C compiler.
  5148. : > sub/conftest.c
  5149. for i in 1 2 3 4 5 6; do
  5150. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5151. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  5152. # Solaris 10 /bin/sh.
  5153. echo '/* dummy */' > sub/conftst$i.h
  5154. done
  5155. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5156. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  5157. # mode. It turns out that the SunPro C++ compiler does not properly
  5158. # handle '-M -o', and we need to detect this. Also, some Intel
  5159. # versions had trouble with output in subdirs.
  5160. am__obj=sub/conftest.${OBJEXT-o}
  5161. am__minus_obj="-o $am__obj"
  5162. case $depmode in
  5163. gcc)
  5164. # This depmode causes a compiler race in universal mode.
  5165. test "$am__universal" = false || continue
  5166. ;;
  5167. nosideeffect)
  5168. # After this tag, mechanisms are not by side-effect, so they'll
  5169. # only be used when explicitly requested.
  5170. if test "x$enable_dependency_tracking" = xyes; then
  5171. continue
  5172. else
  5173. break
  5174. fi
  5175. ;;
  5176. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  5177. # This compiler won't grok '-c -o', but also, the minuso test has
  5178. # not run yet. These depmodes are late enough in the game, and
  5179. # so weak that their functioning should not be impacted.
  5180. am__obj=conftest.${OBJEXT-o}
  5181. am__minus_obj=
  5182. ;;
  5183. none) break ;;
  5184. esac
  5185. if depmode=$depmode \
  5186. source=sub/conftest.c object=$am__obj \
  5187. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5188. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  5189. >/dev/null 2>conftest.err &&
  5190. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5191. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5192. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  5193. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5194. # icc doesn't choke on unknown options, it will just issue warnings
  5195. # or remarks (even with -Werror). So we grep stderr for any message
  5196. # that says an option was ignored or not supported.
  5197. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5198. # icc: Command line warning: ignoring option '-M'; no argument required
  5199. # The diagnosis changed in icc 8.0:
  5200. # icc: Command line remark: option '-MP' not supported
  5201. if (grep 'ignoring option' conftest.err ||
  5202. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5203. am_cv_CXX_dependencies_compiler_type=$depmode
  5204. break
  5205. fi
  5206. fi
  5207. done
  5208. cd ..
  5209. rm -rf conftest.dir
  5210. else
  5211. am_cv_CXX_dependencies_compiler_type=none
  5212. fi
  5213. fi
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5215. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  5216. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5217. if
  5218. test "x$enable_dependency_tracking" != xno \
  5219. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5220. am__fastdepCXX_TRUE=
  5221. am__fastdepCXX_FALSE='#'
  5222. else
  5223. am__fastdepCXX_TRUE='#'
  5224. am__fastdepCXX_FALSE=
  5225. fi
  5226. if test -n "$ac_tool_prefix"; then
  5227. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5228. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5230. $as_echo_n "checking for $ac_word... " >&6; }
  5231. if ${ac_cv_prog_RANLIB+:} false; then :
  5232. $as_echo_n "(cached) " >&6
  5233. else
  5234. if test -n "$RANLIB"; then
  5235. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5236. else
  5237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5238. for as_dir in $PATH
  5239. do
  5240. IFS=$as_save_IFS
  5241. test -z "$as_dir" && as_dir=.
  5242. for ac_exec_ext in '' $ac_executable_extensions; do
  5243. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5244. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5245. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5246. break 2
  5247. fi
  5248. done
  5249. done
  5250. IFS=$as_save_IFS
  5251. fi
  5252. fi
  5253. RANLIB=$ac_cv_prog_RANLIB
  5254. if test -n "$RANLIB"; then
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5256. $as_echo "$RANLIB" >&6; }
  5257. else
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5259. $as_echo "no" >&6; }
  5260. fi
  5261. fi
  5262. if test -z "$ac_cv_prog_RANLIB"; then
  5263. ac_ct_RANLIB=$RANLIB
  5264. # Extract the first word of "ranlib", so it can be a program name with args.
  5265. set dummy ranlib; ac_word=$2
  5266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5267. $as_echo_n "checking for $ac_word... " >&6; }
  5268. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5269. $as_echo_n "(cached) " >&6
  5270. else
  5271. if test -n "$ac_ct_RANLIB"; then
  5272. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5273. else
  5274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5275. for as_dir in $PATH
  5276. do
  5277. IFS=$as_save_IFS
  5278. test -z "$as_dir" && as_dir=.
  5279. for ac_exec_ext in '' $ac_executable_extensions; do
  5280. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5281. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5282. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5283. break 2
  5284. fi
  5285. done
  5286. done
  5287. IFS=$as_save_IFS
  5288. fi
  5289. fi
  5290. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5291. if test -n "$ac_ct_RANLIB"; then
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5293. $as_echo "$ac_ct_RANLIB" >&6; }
  5294. else
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5296. $as_echo "no" >&6; }
  5297. fi
  5298. if test "x$ac_ct_RANLIB" = x; then
  5299. RANLIB=":"
  5300. else
  5301. case $cross_compiling:$ac_tool_warned in
  5302. yes:)
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5304. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5305. ac_tool_warned=yes ;;
  5306. esac
  5307. RANLIB=$ac_ct_RANLIB
  5308. fi
  5309. else
  5310. RANLIB="$ac_cv_prog_RANLIB"
  5311. fi
  5312. # Check whether --enable-m32 was given.
  5313. if test "${enable_m32+set}" = set; then :
  5314. enableval=$enable_m32; case "${enableval}" in
  5315. yes)
  5316. CFLAGS="${CFLAGS} -m32"
  5317. CXXFLAGS="${CXXFLAGS} -m32"
  5318. usem32=true
  5319. ;;
  5320. no)
  5321. usem32=false
  5322. ;;
  5323. *)
  5324. as_fn_error $? "bad value ${enableval} for --enable-m32" "$LINENO" 5
  5325. ;;
  5326. esac
  5327. else
  5328. usem32=false
  5329. fi
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5331. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5332. if ${ac_cv_path_GREP+:} false; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. if test -z "$GREP"; then
  5336. ac_path_GREP_found=false
  5337. # Loop through the user's path and test for each of PROGNAME-LIST
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5340. do
  5341. IFS=$as_save_IFS
  5342. test -z "$as_dir" && as_dir=.
  5343. for ac_prog in grep ggrep; do
  5344. for ac_exec_ext in '' $ac_executable_extensions; do
  5345. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5346. as_fn_executable_p "$ac_path_GREP" || continue
  5347. # Check for GNU ac_path_GREP and select it if it is found.
  5348. # Check for GNU $ac_path_GREP
  5349. case `"$ac_path_GREP" --version 2>&1` in
  5350. *GNU*)
  5351. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5352. *)
  5353. ac_count=0
  5354. $as_echo_n 0123456789 >"conftest.in"
  5355. while :
  5356. do
  5357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5358. mv "conftest.tmp" "conftest.in"
  5359. cp "conftest.in" "conftest.nl"
  5360. $as_echo 'GREP' >> "conftest.nl"
  5361. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5363. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5364. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5365. # Best one so far, save it but keep looking for a better one
  5366. ac_cv_path_GREP="$ac_path_GREP"
  5367. ac_path_GREP_max=$ac_count
  5368. fi
  5369. # 10*(2^10) chars as input seems more than enough
  5370. test $ac_count -gt 10 && break
  5371. done
  5372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5373. esac
  5374. $ac_path_GREP_found && break 3
  5375. done
  5376. done
  5377. done
  5378. IFS=$as_save_IFS
  5379. if test -z "$ac_cv_path_GREP"; then
  5380. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5381. fi
  5382. else
  5383. ac_cv_path_GREP=$GREP
  5384. fi
  5385. fi
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5387. $as_echo "$ac_cv_path_GREP" >&6; }
  5388. GREP="$ac_cv_path_GREP"
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5390. $as_echo_n "checking for egrep... " >&6; }
  5391. if ${ac_cv_path_EGREP+:} false; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5395. then ac_cv_path_EGREP="$GREP -E"
  5396. else
  5397. if test -z "$EGREP"; then
  5398. ac_path_EGREP_found=false
  5399. # Loop through the user's path and test for each of PROGNAME-LIST
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5402. do
  5403. IFS=$as_save_IFS
  5404. test -z "$as_dir" && as_dir=.
  5405. for ac_prog in egrep; do
  5406. for ac_exec_ext in '' $ac_executable_extensions; do
  5407. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5408. as_fn_executable_p "$ac_path_EGREP" || continue
  5409. # Check for GNU ac_path_EGREP and select it if it is found.
  5410. # Check for GNU $ac_path_EGREP
  5411. case `"$ac_path_EGREP" --version 2>&1` in
  5412. *GNU*)
  5413. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5414. *)
  5415. ac_count=0
  5416. $as_echo_n 0123456789 >"conftest.in"
  5417. while :
  5418. do
  5419. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5420. mv "conftest.tmp" "conftest.in"
  5421. cp "conftest.in" "conftest.nl"
  5422. $as_echo 'EGREP' >> "conftest.nl"
  5423. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5424. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5425. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5426. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5427. # Best one so far, save it but keep looking for a better one
  5428. ac_cv_path_EGREP="$ac_path_EGREP"
  5429. ac_path_EGREP_max=$ac_count
  5430. fi
  5431. # 10*(2^10) chars as input seems more than enough
  5432. test $ac_count -gt 10 && break
  5433. done
  5434. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5435. esac
  5436. $ac_path_EGREP_found && break 3
  5437. done
  5438. done
  5439. done
  5440. IFS=$as_save_IFS
  5441. if test -z "$ac_cv_path_EGREP"; then
  5442. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5443. fi
  5444. else
  5445. ac_cv_path_EGREP=$EGREP
  5446. fi
  5447. fi
  5448. fi
  5449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5450. $as_echo "$ac_cv_path_EGREP" >&6; }
  5451. EGREP="$ac_cv_path_EGREP"
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5453. $as_echo_n "checking for ANSI C header files... " >&6; }
  5454. if ${ac_cv_header_stdc+:} false; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. #include <stdlib.h>
  5460. #include <stdarg.h>
  5461. #include <string.h>
  5462. #include <float.h>
  5463. int
  5464. main ()
  5465. {
  5466. ;
  5467. return 0;
  5468. }
  5469. _ACEOF
  5470. if ac_fn_c_try_compile "$LINENO"; then :
  5471. ac_cv_header_stdc=yes
  5472. else
  5473. ac_cv_header_stdc=no
  5474. fi
  5475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5476. if test $ac_cv_header_stdc = yes; then
  5477. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5479. /* end confdefs.h. */
  5480. #include <string.h>
  5481. _ACEOF
  5482. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5483. $EGREP "memchr" >/dev/null 2>&1; then :
  5484. else
  5485. ac_cv_header_stdc=no
  5486. fi
  5487. rm -f conftest*
  5488. fi
  5489. if test $ac_cv_header_stdc = yes; then
  5490. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5492. /* end confdefs.h. */
  5493. #include <stdlib.h>
  5494. _ACEOF
  5495. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5496. $EGREP "free" >/dev/null 2>&1; then :
  5497. else
  5498. ac_cv_header_stdc=no
  5499. fi
  5500. rm -f conftest*
  5501. fi
  5502. if test $ac_cv_header_stdc = yes; then
  5503. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5504. if test "$cross_compiling" = yes; then :
  5505. :
  5506. else
  5507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5508. /* end confdefs.h. */
  5509. #include <ctype.h>
  5510. #include <stdlib.h>
  5511. #if ((' ' & 0x0FF) == 0x020)
  5512. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5513. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5514. #else
  5515. # define ISLOWER(c) \
  5516. (('a' <= (c) && (c) <= 'i') \
  5517. || ('j' <= (c) && (c) <= 'r') \
  5518. || ('s' <= (c) && (c) <= 'z'))
  5519. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5520. #endif
  5521. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5522. int
  5523. main ()
  5524. {
  5525. int i;
  5526. for (i = 0; i < 256; i++)
  5527. if (XOR (islower (i), ISLOWER (i))
  5528. || toupper (i) != TOUPPER (i))
  5529. return 2;
  5530. return 0;
  5531. }
  5532. _ACEOF
  5533. if ac_fn_c_try_run "$LINENO"; then :
  5534. else
  5535. ac_cv_header_stdc=no
  5536. fi
  5537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5538. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5539. fi
  5540. fi
  5541. fi
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5543. $as_echo "$ac_cv_header_stdc" >&6; }
  5544. if test $ac_cv_header_stdc = yes; then
  5545. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5546. fi
  5547. # Check whether --enable-largefile was given.
  5548. if test "${enable_largefile+set}" = set; then :
  5549. enableval=$enable_largefile;
  5550. fi
  5551. if test "$enable_largefile" != no; then
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  5553. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  5554. if ${ac_cv_sys_largefile_CC+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. ac_cv_sys_largefile_CC=no
  5558. if test "$GCC" != yes; then
  5559. ac_save_CC=$CC
  5560. while :; do
  5561. # IRIX 6.2 and later do not support large files by default,
  5562. # so use the C compiler's -n32 option if that helps.
  5563. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5564. /* end confdefs.h. */
  5565. #include <sys/types.h>
  5566. /* Check that off_t can represent 2**63 - 1 correctly.
  5567. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5568. since some C++ compilers masquerading as C compilers
  5569. incorrectly reject 9223372036854775807. */
  5570. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5571. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5572. && LARGE_OFF_T % 2147483647 == 1)
  5573. ? 1 : -1];
  5574. int
  5575. main ()
  5576. {
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. if ac_fn_c_try_compile "$LINENO"; then :
  5582. break
  5583. fi
  5584. rm -f core conftest.err conftest.$ac_objext
  5585. CC="$CC -n32"
  5586. if ac_fn_c_try_compile "$LINENO"; then :
  5587. ac_cv_sys_largefile_CC=' -n32'; break
  5588. fi
  5589. rm -f core conftest.err conftest.$ac_objext
  5590. break
  5591. done
  5592. CC=$ac_save_CC
  5593. rm -f conftest.$ac_ext
  5594. fi
  5595. fi
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  5597. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  5598. if test "$ac_cv_sys_largefile_CC" != no; then
  5599. CC=$CC$ac_cv_sys_largefile_CC
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  5602. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  5603. if ${ac_cv_sys_file_offset_bits+:} false; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. while :; do
  5607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5608. /* end confdefs.h. */
  5609. #include <sys/types.h>
  5610. /* Check that off_t can represent 2**63 - 1 correctly.
  5611. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5612. since some C++ compilers masquerading as C compilers
  5613. incorrectly reject 9223372036854775807. */
  5614. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5615. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5616. && LARGE_OFF_T % 2147483647 == 1)
  5617. ? 1 : -1];
  5618. int
  5619. main ()
  5620. {
  5621. ;
  5622. return 0;
  5623. }
  5624. _ACEOF
  5625. if ac_fn_c_try_compile "$LINENO"; then :
  5626. ac_cv_sys_file_offset_bits=no; break
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5630. /* end confdefs.h. */
  5631. #define _FILE_OFFSET_BITS 64
  5632. #include <sys/types.h>
  5633. /* Check that off_t can represent 2**63 - 1 correctly.
  5634. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5635. since some C++ compilers masquerading as C compilers
  5636. incorrectly reject 9223372036854775807. */
  5637. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5638. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5639. && LARGE_OFF_T % 2147483647 == 1)
  5640. ? 1 : -1];
  5641. int
  5642. main ()
  5643. {
  5644. ;
  5645. return 0;
  5646. }
  5647. _ACEOF
  5648. if ac_fn_c_try_compile "$LINENO"; then :
  5649. ac_cv_sys_file_offset_bits=64; break
  5650. fi
  5651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5652. ac_cv_sys_file_offset_bits=unknown
  5653. break
  5654. done
  5655. fi
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  5657. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  5658. case $ac_cv_sys_file_offset_bits in #(
  5659. no | unknown) ;;
  5660. *)
  5661. cat >>confdefs.h <<_ACEOF
  5662. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  5663. _ACEOF
  5664. ;;
  5665. esac
  5666. rm -rf conftest*
  5667. if test $ac_cv_sys_file_offset_bits = unknown; then
  5668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5669. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5670. if ${ac_cv_sys_large_files+:} false; then :
  5671. $as_echo_n "(cached) " >&6
  5672. else
  5673. while :; do
  5674. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5675. /* end confdefs.h. */
  5676. #include <sys/types.h>
  5677. /* Check that off_t can represent 2**63 - 1 correctly.
  5678. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5679. since some C++ compilers masquerading as C compilers
  5680. incorrectly reject 9223372036854775807. */
  5681. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5682. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5683. && LARGE_OFF_T % 2147483647 == 1)
  5684. ? 1 : -1];
  5685. int
  5686. main ()
  5687. {
  5688. ;
  5689. return 0;
  5690. }
  5691. _ACEOF
  5692. if ac_fn_c_try_compile "$LINENO"; then :
  5693. ac_cv_sys_large_files=no; break
  5694. fi
  5695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5697. /* end confdefs.h. */
  5698. #define _LARGE_FILES 1
  5699. #include <sys/types.h>
  5700. /* Check that off_t can represent 2**63 - 1 correctly.
  5701. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5702. since some C++ compilers masquerading as C compilers
  5703. incorrectly reject 9223372036854775807. */
  5704. #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
  5705. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5706. && LARGE_OFF_T % 2147483647 == 1)
  5707. ? 1 : -1];
  5708. int
  5709. main ()
  5710. {
  5711. ;
  5712. return 0;
  5713. }
  5714. _ACEOF
  5715. if ac_fn_c_try_compile "$LINENO"; then :
  5716. ac_cv_sys_large_files=1; break
  5717. fi
  5718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5719. ac_cv_sys_large_files=unknown
  5720. break
  5721. done
  5722. fi
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5724. $as_echo "$ac_cv_sys_large_files" >&6; }
  5725. case $ac_cv_sys_large_files in #(
  5726. no | unknown) ;;
  5727. *)
  5728. cat >>confdefs.h <<_ACEOF
  5729. #define _LARGE_FILES $ac_cv_sys_large_files
  5730. _ACEOF
  5731. ;;
  5732. esac
  5733. rm -rf conftest*
  5734. fi
  5735. fi
  5736. ac_ext=c
  5737. ac_cpp='$CPP $CPPFLAGS'
  5738. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5739. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5740. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5741. ax_pthread_ok=no
  5742. # We used to check for pthread.h first, but this fails if pthread.h
  5743. # requires special compiler flags (e.g. on True64 or Sequent).
  5744. # It gets checked for in the link test anyway.
  5745. # First of all, check if the user has set any of the PTHREAD_LIBS,
  5746. # etcetera environment variables, and if threads linking works using
  5747. # them:
  5748. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  5749. save_CFLAGS="$CFLAGS"
  5750. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  5751. save_LIBS="$LIBS"
  5752. LIBS="$PTHREAD_LIBS $LIBS"
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  5754. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  5755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5756. /* end confdefs.h. */
  5757. /* Override any GCC internal prototype to avoid an error.
  5758. Use char because int might match the return type of a GCC
  5759. builtin and then its argument prototype would still apply. */
  5760. #ifdef __cplusplus
  5761. extern "C"
  5762. #endif
  5763. char pthread_join ();
  5764. int
  5765. main ()
  5766. {
  5767. return pthread_join ();
  5768. ;
  5769. return 0;
  5770. }
  5771. _ACEOF
  5772. if ac_fn_c_try_link "$LINENO"; then :
  5773. ax_pthread_ok=yes
  5774. fi
  5775. rm -f core conftest.err conftest.$ac_objext \
  5776. conftest$ac_exeext conftest.$ac_ext
  5777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  5778. $as_echo "$ax_pthread_ok" >&6; }
  5779. if test x"$ax_pthread_ok" = xno; then
  5780. PTHREAD_LIBS=""
  5781. PTHREAD_CFLAGS=""
  5782. fi
  5783. LIBS="$save_LIBS"
  5784. CFLAGS="$save_CFLAGS"
  5785. fi
  5786. # We must check for the threads library under a number of different
  5787. # names; the ordering is very important because some systems
  5788. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  5789. # libraries is broken (non-POSIX).
  5790. # Create a list of thread flags to try. Items starting with a "-" are
  5791. # C compiler flags, and other items are library names, except for "none"
  5792. # which indicates that we try without any flags at all, and "pthread-config"
  5793. # which is a program returning the flags for the Pth emulation library.
  5794. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  5795. # The ordering *is* (sometimes) important. Some notes on the
  5796. # individual items follow:
  5797. # pthreads: AIX (must check this before -lpthread)
  5798. # none: in case threads are in libc; should be tried before -Kthread and
  5799. # other compiler flags to prevent continual compiler warnings
  5800. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  5801. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  5802. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  5803. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  5804. # -pthreads: Solaris/gcc
  5805. # -mthreads: Mingw32/gcc, Lynx/gcc
  5806. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  5807. # doesn't hurt to check since this sometimes defines pthreads too;
  5808. # also defines -D_REENTRANT)
  5809. # ... -mt is also the pthreads flag for HP/aCC
  5810. # pthread: Linux, etcetera
  5811. # --thread-safe: KAI C++
  5812. # pthread-config: use pthread-config program (for GNU Pth library)
  5813. case "${host_cpu}-${host_os}" in
  5814. *solaris*)
  5815. # On Solaris (at least, for some versions), libc contains stubbed
  5816. # (non-functional) versions of the pthreads routines, so link-based
  5817. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  5818. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  5819. # a function called by this macro, so we could check for that, but
  5820. # who knows whether they'll stub that too in a future libc.) So,
  5821. # we'll just look for -pthreads and -lpthread first:
  5822. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  5823. ;;
  5824. *-darwin*)
  5825. acx_pthread_flags="-pthread $acx_pthread_flags"
  5826. ;;
  5827. esac
  5828. if test x"$ax_pthread_ok" = xno; then
  5829. for flag in $ax_pthread_flags; do
  5830. case $flag in
  5831. none)
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  5833. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  5834. ;;
  5835. -*)
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  5837. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  5838. PTHREAD_CFLAGS="$flag"
  5839. ;;
  5840. pthread-config)
  5841. # Extract the first word of "pthread-config", so it can be a program name with args.
  5842. set dummy pthread-config; ac_word=$2
  5843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5844. $as_echo_n "checking for $ac_word... " >&6; }
  5845. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  5846. $as_echo_n "(cached) " >&6
  5847. else
  5848. if test -n "$ax_pthread_config"; then
  5849. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  5850. else
  5851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5852. for as_dir in $PATH
  5853. do
  5854. IFS=$as_save_IFS
  5855. test -z "$as_dir" && as_dir=.
  5856. for ac_exec_ext in '' $ac_executable_extensions; do
  5857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5858. ac_cv_prog_ax_pthread_config="yes"
  5859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5860. break 2
  5861. fi
  5862. done
  5863. done
  5864. IFS=$as_save_IFS
  5865. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  5866. fi
  5867. fi
  5868. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  5869. if test -n "$ax_pthread_config"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  5871. $as_echo "$ax_pthread_config" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. if test x"$ax_pthread_config" = xno; then continue; fi
  5877. PTHREAD_CFLAGS="`pthread-config --cflags`"
  5878. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  5879. ;;
  5880. *)
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  5882. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  5883. PTHREAD_LIBS="-l$flag"
  5884. ;;
  5885. esac
  5886. save_LIBS="$LIBS"
  5887. save_CFLAGS="$CFLAGS"
  5888. LIBS="$PTHREAD_LIBS $LIBS"
  5889. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  5890. # Check for various functions. We must include pthread.h,
  5891. # since some functions may be macros. (On the Sequent, we
  5892. # need a special flag -Kthread to make this header compile.)
  5893. # We check for pthread_join because it is in -lpthread on IRIX
  5894. # while pthread_create is in libc. We check for pthread_attr_init
  5895. # due to DEC craziness with -lpthreads. We check for
  5896. # pthread_cleanup_push because it is one of the few pthread
  5897. # functions on Solaris that doesn't have a non-functional libc stub.
  5898. # We try pthread_create on general principles.
  5899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5900. /* end confdefs.h. */
  5901. #include <pthread.h>
  5902. static void routine(void* a) {a=0;}
  5903. static void* start_routine(void* a) {return a;}
  5904. int
  5905. main ()
  5906. {
  5907. pthread_t th; pthread_attr_t attr;
  5908. pthread_join(th, 0);
  5909. pthread_attr_init(&attr);
  5910. pthread_cleanup_push(routine, 0);
  5911. pthread_create(&th,0,start_routine,0);
  5912. pthread_cleanup_pop(0);
  5913. ;
  5914. return 0;
  5915. }
  5916. _ACEOF
  5917. if ac_fn_c_try_link "$LINENO"; then :
  5918. ax_pthread_ok=yes
  5919. fi
  5920. rm -f core conftest.err conftest.$ac_objext \
  5921. conftest$ac_exeext conftest.$ac_ext
  5922. LIBS="$save_LIBS"
  5923. CFLAGS="$save_CFLAGS"
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  5925. $as_echo "$ax_pthread_ok" >&6; }
  5926. if test "x$ax_pthread_ok" = xyes; then
  5927. break;
  5928. fi
  5929. PTHREAD_LIBS=""
  5930. PTHREAD_CFLAGS=""
  5931. done
  5932. fi
  5933. # Various other checks:
  5934. if test "x$ax_pthread_ok" = xyes; then
  5935. save_LIBS="$LIBS"
  5936. LIBS="$PTHREAD_LIBS $LIBS"
  5937. save_CFLAGS="$CFLAGS"
  5938. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  5939. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  5940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  5941. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  5942. attr_name=unknown
  5943. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  5944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5945. /* end confdefs.h. */
  5946. #include <pthread.h>
  5947. int
  5948. main ()
  5949. {
  5950. int attr=$attr; return attr;
  5951. ;
  5952. return 0;
  5953. }
  5954. _ACEOF
  5955. if ac_fn_c_try_link "$LINENO"; then :
  5956. attr_name=$attr; break
  5957. fi
  5958. rm -f core conftest.err conftest.$ac_objext \
  5959. conftest$ac_exeext conftest.$ac_ext
  5960. done
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  5962. $as_echo "$attr_name" >&6; }
  5963. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  5964. cat >>confdefs.h <<_ACEOF
  5965. #define PTHREAD_CREATE_JOINABLE $attr_name
  5966. _ACEOF
  5967. fi
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  5969. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  5970. flag=no
  5971. case "${host_cpu}-${host_os}" in
  5972. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  5973. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  5974. esac
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  5976. $as_echo "${flag}" >&6; }
  5977. if test "x$flag" != xno; then
  5978. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  5979. fi
  5980. LIBS="$save_LIBS"
  5981. CFLAGS="$save_CFLAGS"
  5982. # More AIX lossage: must compile with xlc_r or cc_r
  5983. if test x"$GCC" != xyes; then
  5984. for ac_prog in xlc_r cc_r
  5985. do
  5986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5987. set dummy $ac_prog; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$PTHREAD_CC"; then
  5994. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_PTHREAD_CC="$ac_prog"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  6013. if test -n "$PTHREAD_CC"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  6015. $as_echo "$PTHREAD_CC" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. test -n "$PTHREAD_CC" && break
  6021. done
  6022. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  6023. else
  6024. PTHREAD_CC=$CC
  6025. fi
  6026. else
  6027. PTHREAD_CC="$CC"
  6028. fi
  6029. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  6030. if test x"$ax_pthread_ok" = xyes; then
  6031. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  6032. :
  6033. else
  6034. ax_pthread_ok=no
  6035. fi
  6036. ac_ext=c
  6037. ac_cpp='$CPP $CPPFLAGS'
  6038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6041. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6042. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6043. inttypes.h stdint.h unistd.h
  6044. do :
  6045. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6046. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6047. "
  6048. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6049. cat >>confdefs.h <<_ACEOF
  6050. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6051. _ACEOF
  6052. fi
  6053. done
  6054. for ac_header in a.out.h sys/mman.h sys/random.h
  6055. do :
  6056. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6057. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6058. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6059. cat >>confdefs.h <<_ACEOF
  6060. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6061. _ACEOF
  6062. fi
  6063. done
  6064. for ac_func in arc4random getcontext getrandom memfd_create
  6065. do :
  6066. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6067. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6068. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6069. cat >>confdefs.h <<_ACEOF
  6070. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6071. _ACEOF
  6072. fi
  6073. done
  6074. if test "x$ac_cv_func_getcontext" = xyes; then
  6075. HAVE_GETCONTEXT_TRUE=
  6076. HAVE_GETCONTEXT_FALSE='#'
  6077. else
  6078. HAVE_GETCONTEXT_TRUE='#'
  6079. HAVE_GETCONTEXT_FALSE=
  6080. fi
  6081. if test "x$ac_cv_func_memfd_create" = xyes; then
  6082. HAVE_MEMFD_CREATE_TRUE=
  6083. HAVE_MEMFD_CREATE_FALSE='#'
  6084. else
  6085. HAVE_MEMFD_CREATE_TRUE='#'
  6086. HAVE_MEMFD_CREATE_FALSE=
  6087. fi
  6088. ax_cxx_compile_cxx11_required=true
  6089. ac_ext=cpp
  6090. ac_cpp='$CXXCPP $CPPFLAGS'
  6091. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6092. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6093. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6094. ac_success=no
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
  6096. $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
  6097. if ${ax_cv_cxx_compile_cxx11+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6101. /* end confdefs.h. */
  6102. // If the compiler admits that it is not ready for C++11, why torture it?
  6103. // Hopefully, this will speed up the test.
  6104. #ifndef __cplusplus
  6105. #error "This is not a C++ compiler"
  6106. #elif __cplusplus < 201103L
  6107. #error "This is not a C++11 compiler"
  6108. #else
  6109. namespace cxx11
  6110. {
  6111. namespace test_static_assert
  6112. {
  6113. template <typename T>
  6114. struct check
  6115. {
  6116. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6117. };
  6118. }
  6119. namespace test_final_override
  6120. {
  6121. struct Base
  6122. {
  6123. virtual void f() {}
  6124. };
  6125. struct Derived : public Base
  6126. {
  6127. virtual void f() override {}
  6128. };
  6129. }
  6130. namespace test_double_right_angle_brackets
  6131. {
  6132. template < typename T >
  6133. struct check {};
  6134. typedef check<void> single_type;
  6135. typedef check<check<void>> double_type;
  6136. typedef check<check<check<void>>> triple_type;
  6137. typedef check<check<check<check<void>>>> quadruple_type;
  6138. }
  6139. namespace test_decltype
  6140. {
  6141. int
  6142. f()
  6143. {
  6144. int a = 1;
  6145. decltype(a) b = 2;
  6146. return a + b;
  6147. }
  6148. }
  6149. namespace test_type_deduction
  6150. {
  6151. template < typename T1, typename T2 >
  6152. struct is_same
  6153. {
  6154. static const bool value = false;
  6155. };
  6156. template < typename T >
  6157. struct is_same<T, T>
  6158. {
  6159. static const bool value = true;
  6160. };
  6161. template < typename T1, typename T2 >
  6162. auto
  6163. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6164. {
  6165. return a1 + a2;
  6166. }
  6167. int
  6168. test(const int c, volatile int v)
  6169. {
  6170. static_assert(is_same<int, decltype(0)>::value == true, "");
  6171. static_assert(is_same<int, decltype(c)>::value == false, "");
  6172. static_assert(is_same<int, decltype(v)>::value == false, "");
  6173. auto ac = c;
  6174. auto av = v;
  6175. auto sumi = ac + av + 'x';
  6176. auto sumf = ac + av + 1.0;
  6177. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6178. static_assert(is_same<int, decltype(av)>::value == true, "");
  6179. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6180. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6181. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6182. return (sumf > 0.0) ? sumi : add(c, v);
  6183. }
  6184. }
  6185. namespace test_noexcept
  6186. {
  6187. int f() { return 0; }
  6188. int g() noexcept { return 0; }
  6189. static_assert(noexcept(f()) == false, "");
  6190. static_assert(noexcept(g()) == true, "");
  6191. }
  6192. namespace test_constexpr
  6193. {
  6194. template < typename CharT >
  6195. unsigned long constexpr
  6196. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6197. {
  6198. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6199. }
  6200. template < typename CharT >
  6201. unsigned long constexpr
  6202. strlen_c(const CharT *const s) noexcept
  6203. {
  6204. return strlen_c_r(s, 0UL);
  6205. }
  6206. static_assert(strlen_c("") == 0UL, "");
  6207. static_assert(strlen_c("1") == 1UL, "");
  6208. static_assert(strlen_c("example") == 7UL, "");
  6209. static_assert(strlen_c("another\0example") == 7UL, "");
  6210. }
  6211. namespace test_rvalue_references
  6212. {
  6213. template < int N >
  6214. struct answer
  6215. {
  6216. static constexpr int value = N;
  6217. };
  6218. answer<1> f(int&) { return answer<1>(); }
  6219. answer<2> f(const int&) { return answer<2>(); }
  6220. answer<3> f(int&&) { return answer<3>(); }
  6221. void
  6222. test()
  6223. {
  6224. int i = 0;
  6225. const int c = 0;
  6226. static_assert(decltype(f(i))::value == 1, "");
  6227. static_assert(decltype(f(c))::value == 2, "");
  6228. static_assert(decltype(f(0))::value == 3, "");
  6229. }
  6230. }
  6231. namespace test_uniform_initialization
  6232. {
  6233. struct test
  6234. {
  6235. static const int zero {};
  6236. static const int one {1};
  6237. };
  6238. static_assert(test::zero == 0, "");
  6239. static_assert(test::one == 1, "");
  6240. }
  6241. namespace test_lambdas
  6242. {
  6243. void
  6244. test1()
  6245. {
  6246. auto lambda1 = [](){};
  6247. auto lambda2 = lambda1;
  6248. lambda1();
  6249. lambda2();
  6250. }
  6251. int
  6252. test2()
  6253. {
  6254. auto a = [](int i, int j){ return i + j; }(1, 2);
  6255. auto b = []() -> int { return '0'; }();
  6256. auto c = [=](){ return a + b; }();
  6257. auto d = [&](){ return c; }();
  6258. auto e = [a, &b](int x) mutable {
  6259. const auto identity = [](int y){ return y; };
  6260. for (auto i = 0; i < a; ++i)
  6261. a += b--;
  6262. return x + identity(a + b);
  6263. }(0);
  6264. return a + b + c + d + e;
  6265. }
  6266. int
  6267. test3()
  6268. {
  6269. const auto nullary = [](){ return 0; };
  6270. const auto unary = [](int x){ return x; };
  6271. using nullary_t = decltype(nullary);
  6272. using unary_t = decltype(unary);
  6273. const auto higher1st = [](nullary_t f){ return f(); };
  6274. const auto higher2nd = [unary](nullary_t f1){
  6275. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6276. };
  6277. return higher1st(nullary) + higher2nd(nullary)(unary);
  6278. }
  6279. }
  6280. namespace test_variadic_templates
  6281. {
  6282. template <int...>
  6283. struct sum;
  6284. template <int N0, int... N1toN>
  6285. struct sum<N0, N1toN...>
  6286. {
  6287. static constexpr auto value = N0 + sum<N1toN...>::value;
  6288. };
  6289. template <>
  6290. struct sum<>
  6291. {
  6292. static constexpr auto value = 0;
  6293. };
  6294. static_assert(sum<>::value == 0, "");
  6295. static_assert(sum<1>::value == 1, "");
  6296. static_assert(sum<23>::value == 23, "");
  6297. static_assert(sum<1, 2>::value == 3, "");
  6298. static_assert(sum<5, 5, 11>::value == 21, "");
  6299. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6300. }
  6301. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6302. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6303. // because of this.
  6304. namespace test_template_alias_sfinae
  6305. {
  6306. struct foo {};
  6307. template<typename T>
  6308. using member = typename T::member_type;
  6309. template<typename T>
  6310. void func(...) {}
  6311. template<typename T>
  6312. void func(member<T>*) {}
  6313. void test();
  6314. void test() { func<foo>(0); }
  6315. }
  6316. } // namespace cxx11
  6317. #endif // __cplusplus >= 201103L
  6318. _ACEOF
  6319. if ac_fn_cxx_try_compile "$LINENO"; then :
  6320. ax_cv_cxx_compile_cxx11=yes
  6321. else
  6322. ax_cv_cxx_compile_cxx11=no
  6323. fi
  6324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6325. fi
  6326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
  6327. $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
  6328. if test x$ax_cv_cxx_compile_cxx11 = xyes; then
  6329. ac_success=yes
  6330. fi
  6331. if test x$ac_success = xno; then
  6332. for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
  6333. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  6335. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  6336. if eval \${$cachevar+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. ac_save_CXXFLAGS="$CXXFLAGS"
  6340. CXXFLAGS="$CXXFLAGS $switch"
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. // If the compiler admits that it is not ready for C++11, why torture it?
  6344. // Hopefully, this will speed up the test.
  6345. #ifndef __cplusplus
  6346. #error "This is not a C++ compiler"
  6347. #elif __cplusplus < 201103L
  6348. #error "This is not a C++11 compiler"
  6349. #else
  6350. namespace cxx11
  6351. {
  6352. namespace test_static_assert
  6353. {
  6354. template <typename T>
  6355. struct check
  6356. {
  6357. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  6358. };
  6359. }
  6360. namespace test_final_override
  6361. {
  6362. struct Base
  6363. {
  6364. virtual void f() {}
  6365. };
  6366. struct Derived : public Base
  6367. {
  6368. virtual void f() override {}
  6369. };
  6370. }
  6371. namespace test_double_right_angle_brackets
  6372. {
  6373. template < typename T >
  6374. struct check {};
  6375. typedef check<void> single_type;
  6376. typedef check<check<void>> double_type;
  6377. typedef check<check<check<void>>> triple_type;
  6378. typedef check<check<check<check<void>>>> quadruple_type;
  6379. }
  6380. namespace test_decltype
  6381. {
  6382. int
  6383. f()
  6384. {
  6385. int a = 1;
  6386. decltype(a) b = 2;
  6387. return a + b;
  6388. }
  6389. }
  6390. namespace test_type_deduction
  6391. {
  6392. template < typename T1, typename T2 >
  6393. struct is_same
  6394. {
  6395. static const bool value = false;
  6396. };
  6397. template < typename T >
  6398. struct is_same<T, T>
  6399. {
  6400. static const bool value = true;
  6401. };
  6402. template < typename T1, typename T2 >
  6403. auto
  6404. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  6405. {
  6406. return a1 + a2;
  6407. }
  6408. int
  6409. test(const int c, volatile int v)
  6410. {
  6411. static_assert(is_same<int, decltype(0)>::value == true, "");
  6412. static_assert(is_same<int, decltype(c)>::value == false, "");
  6413. static_assert(is_same<int, decltype(v)>::value == false, "");
  6414. auto ac = c;
  6415. auto av = v;
  6416. auto sumi = ac + av + 'x';
  6417. auto sumf = ac + av + 1.0;
  6418. static_assert(is_same<int, decltype(ac)>::value == true, "");
  6419. static_assert(is_same<int, decltype(av)>::value == true, "");
  6420. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  6421. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  6422. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  6423. return (sumf > 0.0) ? sumi : add(c, v);
  6424. }
  6425. }
  6426. namespace test_noexcept
  6427. {
  6428. int f() { return 0; }
  6429. int g() noexcept { return 0; }
  6430. static_assert(noexcept(f()) == false, "");
  6431. static_assert(noexcept(g()) == true, "");
  6432. }
  6433. namespace test_constexpr
  6434. {
  6435. template < typename CharT >
  6436. unsigned long constexpr
  6437. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  6438. {
  6439. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  6440. }
  6441. template < typename CharT >
  6442. unsigned long constexpr
  6443. strlen_c(const CharT *const s) noexcept
  6444. {
  6445. return strlen_c_r(s, 0UL);
  6446. }
  6447. static_assert(strlen_c("") == 0UL, "");
  6448. static_assert(strlen_c("1") == 1UL, "");
  6449. static_assert(strlen_c("example") == 7UL, "");
  6450. static_assert(strlen_c("another\0example") == 7UL, "");
  6451. }
  6452. namespace test_rvalue_references
  6453. {
  6454. template < int N >
  6455. struct answer
  6456. {
  6457. static constexpr int value = N;
  6458. };
  6459. answer<1> f(int&) { return answer<1>(); }
  6460. answer<2> f(const int&) { return answer<2>(); }
  6461. answer<3> f(int&&) { return answer<3>(); }
  6462. void
  6463. test()
  6464. {
  6465. int i = 0;
  6466. const int c = 0;
  6467. static_assert(decltype(f(i))::value == 1, "");
  6468. static_assert(decltype(f(c))::value == 2, "");
  6469. static_assert(decltype(f(0))::value == 3, "");
  6470. }
  6471. }
  6472. namespace test_uniform_initialization
  6473. {
  6474. struct test
  6475. {
  6476. static const int zero {};
  6477. static const int one {1};
  6478. };
  6479. static_assert(test::zero == 0, "");
  6480. static_assert(test::one == 1, "");
  6481. }
  6482. namespace test_lambdas
  6483. {
  6484. void
  6485. test1()
  6486. {
  6487. auto lambda1 = [](){};
  6488. auto lambda2 = lambda1;
  6489. lambda1();
  6490. lambda2();
  6491. }
  6492. int
  6493. test2()
  6494. {
  6495. auto a = [](int i, int j){ return i + j; }(1, 2);
  6496. auto b = []() -> int { return '0'; }();
  6497. auto c = [=](){ return a + b; }();
  6498. auto d = [&](){ return c; }();
  6499. auto e = [a, &b](int x) mutable {
  6500. const auto identity = [](int y){ return y; };
  6501. for (auto i = 0; i < a; ++i)
  6502. a += b--;
  6503. return x + identity(a + b);
  6504. }(0);
  6505. return a + b + c + d + e;
  6506. }
  6507. int
  6508. test3()
  6509. {
  6510. const auto nullary = [](){ return 0; };
  6511. const auto unary = [](int x){ return x; };
  6512. using nullary_t = decltype(nullary);
  6513. using unary_t = decltype(unary);
  6514. const auto higher1st = [](nullary_t f){ return f(); };
  6515. const auto higher2nd = [unary](nullary_t f1){
  6516. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  6517. };
  6518. return higher1st(nullary) + higher2nd(nullary)(unary);
  6519. }
  6520. }
  6521. namespace test_variadic_templates
  6522. {
  6523. template <int...>
  6524. struct sum;
  6525. template <int N0, int... N1toN>
  6526. struct sum<N0, N1toN...>
  6527. {
  6528. static constexpr auto value = N0 + sum<N1toN...>::value;
  6529. };
  6530. template <>
  6531. struct sum<>
  6532. {
  6533. static constexpr auto value = 0;
  6534. };
  6535. static_assert(sum<>::value == 0, "");
  6536. static_assert(sum<1>::value == 1, "");
  6537. static_assert(sum<23>::value == 23, "");
  6538. static_assert(sum<1, 2>::value == 3, "");
  6539. static_assert(sum<5, 5, 11>::value == 21, "");
  6540. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  6541. }
  6542. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  6543. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  6544. // because of this.
  6545. namespace test_template_alias_sfinae
  6546. {
  6547. struct foo {};
  6548. template<typename T>
  6549. using member = typename T::member_type;
  6550. template<typename T>
  6551. void func(...) {}
  6552. template<typename T>
  6553. void func(member<T>*) {}
  6554. void test();
  6555. void test() { func<foo>(0); }
  6556. }
  6557. } // namespace cxx11
  6558. #endif // __cplusplus >= 201103L
  6559. _ACEOF
  6560. if ac_fn_cxx_try_compile "$LINENO"; then :
  6561. eval $cachevar=yes
  6562. else
  6563. eval $cachevar=no
  6564. fi
  6565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6566. CXXFLAGS="$ac_save_CXXFLAGS"
  6567. fi
  6568. eval ac_res=\$$cachevar
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6570. $as_echo "$ac_res" >&6; }
  6571. if eval test x\$$cachevar = xyes; then
  6572. CXXFLAGS="$CXXFLAGS $switch"
  6573. ac_success=yes
  6574. break
  6575. fi
  6576. done
  6577. fi
  6578. ac_ext=c
  6579. ac_cpp='$CPP $CPPFLAGS'
  6580. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6581. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6582. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6583. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  6584. if test x$ac_success = xno; then
  6585. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  6586. fi
  6587. else
  6588. if test x$ac_success = xno; then
  6589. HAVE_CXX11=0
  6590. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  6591. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  6592. else
  6593. HAVE_CXX11=1
  6594. $as_echo "#define HAVE_CXX11 1" >>confdefs.h
  6595. fi
  6596. fi
  6597. WARN_CXXFLAGS=
  6598. ac_ext=cpp
  6599. ac_cpp='$CXXCPP $CPPFLAGS'
  6600. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6601. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6602. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
  6604. $as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
  6605. if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
  6606. $as_echo_n "(cached) " >&6
  6607. else
  6608. ax_check_save_flags=$CXXFLAGS
  6609. CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
  6610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6611. /* end confdefs.h. */
  6612. int
  6613. main ()
  6614. {
  6615. ;
  6616. return 0;
  6617. }
  6618. _ACEOF
  6619. if ac_fn_cxx_try_compile "$LINENO"; then :
  6620. ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
  6621. else
  6622. ax_cv_check_cxxflags___Werror_unknown_warning_option=no
  6623. fi
  6624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6625. CXXFLAGS=$ax_check_save_flags
  6626. fi
  6627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
  6628. $as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
  6629. if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
  6630. ax_compiler_flags_test="-Werror=unknown-warning-option"
  6631. else
  6632. ax_compiler_flags_test=""
  6633. fi
  6634. for flag in -Wmissing-braces -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-compare -Wunused-local-typedefs -Wunused-variable -Wvla ; do
  6635. as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh`
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
  6637. $as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
  6638. if eval \${$as_CACHEVAR+:} false; then :
  6639. $as_echo_n "(cached) " >&6
  6640. else
  6641. ax_check_save_flags=$CXXFLAGS
  6642. CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag"
  6643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6644. /* end confdefs.h. */
  6645. int
  6646. main ()
  6647. {
  6648. ;
  6649. return 0;
  6650. }
  6651. _ACEOF
  6652. if ac_fn_cxx_try_compile "$LINENO"; then :
  6653. eval "$as_CACHEVAR=yes"
  6654. else
  6655. eval "$as_CACHEVAR=no"
  6656. fi
  6657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6658. CXXFLAGS=$ax_check_save_flags
  6659. fi
  6660. eval ac_res=\$$as_CACHEVAR
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6662. $as_echo "$ac_res" >&6; }
  6663. if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
  6664. if ${WARN_CXXFLAGS+:} false; then :
  6665. case " $WARN_CXXFLAGS " in #(
  6666. *" $flag "*) :
  6667. { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
  6668. (: WARN_CXXFLAGS already contains $flag) 2>&5
  6669. ac_status=$?
  6670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6671. test $ac_status = 0; } ;; #(
  6672. *) :
  6673. as_fn_append WARN_CXXFLAGS " $flag"
  6674. { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
  6675. (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
  6676. ac_status=$?
  6677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6678. test $ac_status = 0; }
  6679. ;;
  6680. esac
  6681. else
  6682. WARN_CXXFLAGS=$flag
  6683. { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
  6684. (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
  6685. ac_status=$?
  6686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6687. test $ac_status = 0; }
  6688. fi
  6689. else
  6690. :
  6691. fi
  6692. done
  6693. as_fn_append WARN_CXXFLAGS " -Werror"
  6694. ac_ext=c
  6695. ac_cpp='$CPP $CPPFLAGS'
  6696. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6697. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6698. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5
  6700. $as_echo_n "checking for O_CLOEXEC defined in fcntl.h... " >&6; }
  6701. if ${ac_cv_defined_O_CLOEXEC_fcntl_h+:} false; then :
  6702. $as_echo_n "(cached) " >&6
  6703. else
  6704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6705. /* end confdefs.h. */
  6706. #include <fcntl.h>
  6707. int
  6708. main ()
  6709. {
  6710. #ifdef O_CLOEXEC
  6711. int ok;
  6712. #else
  6713. choke me
  6714. #endif
  6715. ;
  6716. return 0;
  6717. }
  6718. _ACEOF
  6719. if ac_fn_c_try_compile "$LINENO"; then :
  6720. ac_cv_defined_O_CLOEXEC_fcntl_h=yes
  6721. else
  6722. ac_cv_defined_O_CLOEXEC_fcntl_h=no
  6723. fi
  6724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6725. fi
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5
  6727. $as_echo "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; }
  6728. if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"; then :
  6729. else
  6730. $as_echo "#define O_CLOEXEC 0" >>confdefs.h
  6731. fi
  6732. # Only build Linux client libs when compiling for Linux
  6733. case $host in
  6734. *-*-linux* | *-android* )
  6735. LINUX_HOST=true
  6736. ;;
  6737. esac
  6738. if test x$LINUX_HOST = xtrue; then
  6739. LINUX_HOST_TRUE=
  6740. LINUX_HOST_FALSE='#'
  6741. else
  6742. LINUX_HOST_TRUE='#'
  6743. LINUX_HOST_FALSE=
  6744. fi
  6745. # Only use Android support headers when compiling for Android
  6746. case $host in
  6747. *-android*)
  6748. ANDROID_HOST=true
  6749. ;;
  6750. esac
  6751. if test x$ANDROID_HOST = xtrue; then
  6752. ANDROID_HOST_TRUE=
  6753. ANDROID_HOST_FALSE='#'
  6754. else
  6755. ANDROID_HOST_TRUE='#'
  6756. ANDROID_HOST_FALSE=
  6757. fi
  6758. # Some tools (like mac ones) only support x86 currently.
  6759. case $host_cpu in
  6760. i?86|x86_64)
  6761. X86_HOST=true
  6762. ;;
  6763. esac
  6764. if test x$X86_HOST = xtrue; then
  6765. X86_HOST_TRUE=
  6766. X86_HOST_FALSE='#'
  6767. else
  6768. X86_HOST_TRUE='#'
  6769. X86_HOST_FALSE=
  6770. fi
  6771. # Check whether --enable-processor was given.
  6772. if test "${enable_processor+set}" = set; then :
  6773. enableval=$enable_processor; case "${enableval}" in
  6774. yes)
  6775. disable_processor=false
  6776. ;;
  6777. no)
  6778. disable_processor=true
  6779. ;;
  6780. *)
  6781. as_fn_error $? "bad value ${enableval} for --disable-processor" "$LINENO" 5
  6782. ;;
  6783. esac
  6784. else
  6785. disable_processor=false
  6786. fi
  6787. if test x$disable_processor = xtrue; then
  6788. DISABLE_PROCESSOR_TRUE=
  6789. DISABLE_PROCESSOR_FALSE='#'
  6790. else
  6791. DISABLE_PROCESSOR_TRUE='#'
  6792. DISABLE_PROCESSOR_FALSE=
  6793. fi
  6794. # Check whether --enable-tools was given.
  6795. if test "${enable_tools+set}" = set; then :
  6796. enableval=$enable_tools; case "${enableval}" in
  6797. yes)
  6798. disable_tools=false
  6799. ;;
  6800. no)
  6801. disable_tools=true
  6802. ;;
  6803. *)
  6804. as_fn_error $? "bad value ${enableval} for --disable-tools" "$LINENO" 5
  6805. ;;
  6806. esac
  6807. else
  6808. disable_tools=false
  6809. fi
  6810. if test x$disable_tools = xtrue; then
  6811. DISABLE_TOOLS_TRUE=
  6812. DISABLE_TOOLS_FALSE='#'
  6813. else
  6814. DISABLE_TOOLS_TRUE='#'
  6815. DISABLE_TOOLS_FALSE=
  6816. fi
  6817. if test x$LINUX_HOST = xfalse -a x$disable_processor = xtrue -a x$disable_tools = xtrue; then
  6818. as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5
  6819. fi
  6820. # Check whether --enable-system-test-libs was given.
  6821. if test "${enable_system_test_libs+set}" = set; then :
  6822. enableval=$enable_system_test_libs; case "${enableval}" in
  6823. yes)
  6824. system_test_libs=true
  6825. ;;
  6826. no)
  6827. system_test_libs=false
  6828. ;;
  6829. *)
  6830. as_fn_error $? "bad value ${enableval} for --enable-system-test-libs" "$LINENO" 5
  6831. ;;
  6832. esac
  6833. else
  6834. system_test_libs=false
  6835. fi
  6836. if test x$system_test_libs = xtrue; then
  6837. SYSTEM_TEST_LIBS_TRUE=
  6838. SYSTEM_TEST_LIBS_FALSE='#'
  6839. else
  6840. SYSTEM_TEST_LIBS_TRUE='#'
  6841. SYSTEM_TEST_LIBS_FALSE=
  6842. fi
  6843. if test x$system_test_libs = xtrue; then
  6844. : "${GMOCK_CFLAGS:=-pthread}"
  6845. : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
  6846. : "${GTEST_CFLAGS:=-pthread}"
  6847. : "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
  6848. fi
  6849. # Check whether --enable-selftest was given.
  6850. if test "${enable_selftest+set}" = set; then :
  6851. enableval=$enable_selftest; case "${enableval}" in
  6852. yes)
  6853. selftest=true
  6854. ;;
  6855. no)
  6856. selftest=false
  6857. ;;
  6858. *)
  6859. as_fn_error $? "bad value ${enableval} for --enable-selftest" "$LINENO" 5
  6860. ;;
  6861. esac
  6862. else
  6863. selftest=false
  6864. fi
  6865. if test x$selftest = xtrue; then
  6866. SELFTEST_TRUE=
  6867. SELFTEST_FALSE='#'
  6868. else
  6869. SELFTEST_TRUE='#'
  6870. SELFTEST_FALSE=
  6871. fi
  6872. # Check whether --with-rust-demangle was given.
  6873. if test "${with_rust_demangle+set}" = set; then :
  6874. withval=$with_rust_demangle; case "${withval}" in
  6875. yes)
  6876. as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
  6877. ;;
  6878. no)
  6879. rust_demangle=false
  6880. ;;
  6881. *)
  6882. if ! test -f "${withval}/Cargo.toml"; then
  6883. as_fn_error $? "You must pass the path to the rust-demangle-capi crate for --with-rust-demangle" "$LINENO" 5
  6884. fi
  6885. RUST_DEMANGLE_CFLAGS="-DHAVE_RUST_DEMANGLE -I${withval}/target/include"
  6886. RUST_DEMANGLE_LIBS="-L${withval}/target/release -lrust_demangle -lpthread -ldl"
  6887. ;;
  6888. esac
  6889. else
  6890. rust_demangle=false
  6891. fi
  6892. # Check whether --with-tests-as-root was given.
  6893. if test "${with_tests_as_root+set}" = set; then :
  6894. withval=$with_tests_as_root; case "${withval}" in
  6895. yes)
  6896. tests_as_root=true
  6897. ;;
  6898. no)
  6899. tests_as_root=false
  6900. ;;
  6901. *)
  6902. as_fn_error $? "--with-tests-as-root can only be \"yes\" or \"no\"" "$LINENO" 5
  6903. ;;
  6904. esac
  6905. else
  6906. tests_as_root=false
  6907. fi
  6908. if test x$tests_as_root = xtrue; then
  6909. TESTS_AS_ROOT_TRUE=
  6910. TESTS_AS_ROOT_FALSE='#'
  6911. else
  6912. TESTS_AS_ROOT_TRUE='#'
  6913. TESTS_AS_ROOT_FALSE=
  6914. fi
  6915. ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile"
  6916. cat >confcache <<\_ACEOF
  6917. # This file is a shell script that caches the results of configure
  6918. # tests run on this system so they can be shared between configure
  6919. # scripts and configure runs, see configure's option --config-cache.
  6920. # It is not useful on other systems. If it contains results you don't
  6921. # want to keep, you may remove or edit it.
  6922. #
  6923. # config.status only pays attention to the cache file if you give it
  6924. # the --recheck option to rerun configure.
  6925. #
  6926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6928. # following values.
  6929. _ACEOF
  6930. # The following way of writing the cache mishandles newlines in values,
  6931. # but we know of no workaround that is simple, portable, and efficient.
  6932. # So, we kill variables containing newlines.
  6933. # Ultrix sh set writes to stderr and can't be redirected directly,
  6934. # and sets the high bit in the cache file unless we assign to the vars.
  6935. (
  6936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6937. eval ac_val=\$$ac_var
  6938. case $ac_val in #(
  6939. *${as_nl}*)
  6940. case $ac_var in #(
  6941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6943. esac
  6944. case $ac_var in #(
  6945. _ | IFS | as_nl) ;; #(
  6946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6947. *) { eval $ac_var=; unset $ac_var;} ;;
  6948. esac ;;
  6949. esac
  6950. done
  6951. (set) 2>&1 |
  6952. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6953. *${as_nl}ac_space=\ *)
  6954. # `set' does not quote correctly, so add quotes: double-quote
  6955. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6956. sed -n \
  6957. "s/'/'\\\\''/g;
  6958. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6959. ;; #(
  6960. *)
  6961. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6962. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6963. ;;
  6964. esac |
  6965. sort
  6966. ) |
  6967. sed '
  6968. /^ac_cv_env_/b end
  6969. t clear
  6970. :clear
  6971. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6972. t end
  6973. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6974. :end' >>confcache
  6975. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6976. if test -w "$cache_file"; then
  6977. if test "x$cache_file" != "x/dev/null"; then
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6979. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6980. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6981. cat confcache >"$cache_file"
  6982. else
  6983. case $cache_file in #(
  6984. */* | ?:*)
  6985. mv -f confcache "$cache_file"$$ &&
  6986. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6987. *)
  6988. mv -f confcache "$cache_file" ;;
  6989. esac
  6990. fi
  6991. fi
  6992. else
  6993. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6994. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6995. fi
  6996. fi
  6997. rm -f confcache
  6998. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6999. # Let make expand exec_prefix.
  7000. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7001. DEFS=-DHAVE_CONFIG_H
  7002. ac_libobjs=
  7003. ac_ltlibobjs=
  7004. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7005. # 1. Remove the extension, and $U if already installed.
  7006. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7007. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7008. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7009. # will be set to the directory where LIBOBJS objects are built.
  7010. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7011. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7012. done
  7013. LIBOBJS=$ac_libobjs
  7014. LTLIBOBJS=$ac_ltlibobjs
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  7016. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  7017. if test -n "$am_sleep_pid"; then
  7018. # Hide warnings about reused PIDs.
  7019. wait $am_sleep_pid 2>/dev/null
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  7022. $as_echo "done" >&6; }
  7023. if test -n "$EXEEXT"; then
  7024. am__EXEEXT_TRUE=
  7025. am__EXEEXT_FALSE='#'
  7026. else
  7027. am__EXEEXT_TRUE='#'
  7028. am__EXEEXT_FALSE=
  7029. fi
  7030. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  7031. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  7032. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7033. fi
  7034. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  7035. as_fn_error $? "conditional \"AMDEP\" was never defined.
  7036. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7037. fi
  7038. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  7039. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  7040. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7041. fi
  7042. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  7043. as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
  7044. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7045. fi
  7046. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  7047. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  7048. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7049. fi
  7050. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  7051. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  7052. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7053. fi
  7054. if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then
  7055. as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined.
  7056. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7057. fi
  7058. if test -z "${HAVE_MEMFD_CREATE_TRUE}" && test -z "${HAVE_MEMFD_CREATE_FALSE}"; then
  7059. as_fn_error $? "conditional \"HAVE_MEMFD_CREATE\" was never defined.
  7060. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7061. fi
  7062. if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
  7063. as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
  7064. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7065. fi
  7066. if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
  7067. as_fn_error $? "conditional \"ANDROID_HOST\" was never defined.
  7068. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7069. fi
  7070. if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then
  7071. as_fn_error $? "conditional \"X86_HOST\" was never defined.
  7072. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7073. fi
  7074. if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
  7075. as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined.
  7076. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7077. fi
  7078. if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
  7079. as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined.
  7080. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7081. fi
  7082. if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then
  7083. as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined.
  7084. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7085. fi
  7086. if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
  7087. as_fn_error $? "conditional \"SELFTEST\" was never defined.
  7088. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7089. fi
  7090. if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then
  7091. as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined.
  7092. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  7093. fi
  7094. : "${CONFIG_STATUS=./config.status}"
  7095. ac_write_fail=0
  7096. ac_clean_files_save=$ac_clean_files
  7097. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7099. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7100. as_write_fail=0
  7101. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7102. #! $SHELL
  7103. # Generated by $as_me.
  7104. # Run this file to recreate the current configuration.
  7105. # Compiler output produced by configure, useful for debugging
  7106. # configure, is in config.log if it exists.
  7107. debug=false
  7108. ac_cs_recheck=false
  7109. ac_cs_silent=false
  7110. SHELL=\${CONFIG_SHELL-$SHELL}
  7111. export SHELL
  7112. _ASEOF
  7113. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7114. ## -------------------- ##
  7115. ## M4sh Initialization. ##
  7116. ## -------------------- ##
  7117. # Be more Bourne compatible
  7118. DUALCASE=1; export DUALCASE # for MKS sh
  7119. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  7120. emulate sh
  7121. NULLCMD=:
  7122. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  7123. # is contrary to our usage. Disable this feature.
  7124. alias -g '${1+"$@"}'='"$@"'
  7125. setopt NO_GLOB_SUBST
  7126. else
  7127. case `(set -o) 2>/dev/null` in #(
  7128. *posix*) :
  7129. set -o posix ;; #(
  7130. *) :
  7131. ;;
  7132. esac
  7133. fi
  7134. as_nl='
  7135. '
  7136. export as_nl
  7137. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  7138. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  7139. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  7140. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  7141. # Prefer a ksh shell builtin over an external printf program on Solaris,
  7142. # but without wasting forks for bash or zsh.
  7143. if test -z "$BASH_VERSION$ZSH_VERSION" \
  7144. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  7145. as_echo='print -r --'
  7146. as_echo_n='print -rn --'
  7147. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  7148. as_echo='printf %s\n'
  7149. as_echo_n='printf %s'
  7150. else
  7151. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  7152. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  7153. as_echo_n='/usr/ucb/echo -n'
  7154. else
  7155. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  7156. as_echo_n_body='eval
  7157. arg=$1;
  7158. case $arg in #(
  7159. *"$as_nl"*)
  7160. expr "X$arg" : "X\\(.*\\)$as_nl";
  7161. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  7162. esac;
  7163. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  7164. '
  7165. export as_echo_n_body
  7166. as_echo_n='sh -c $as_echo_n_body as_echo'
  7167. fi
  7168. export as_echo_body
  7169. as_echo='sh -c $as_echo_body as_echo'
  7170. fi
  7171. # The user is always right.
  7172. if test "${PATH_SEPARATOR+set}" != set; then
  7173. PATH_SEPARATOR=:
  7174. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  7175. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  7176. PATH_SEPARATOR=';'
  7177. }
  7178. fi
  7179. # IFS
  7180. # We need space, tab and new line, in precisely that order. Quoting is
  7181. # there to prevent editors from complaining about space-tab.
  7182. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  7183. # splitting by setting IFS to empty value.)
  7184. IFS=" "" $as_nl"
  7185. # Find who we are. Look in the path if we contain no directory separator.
  7186. as_myself=
  7187. case $0 in #((
  7188. *[\\/]* ) as_myself=$0 ;;
  7189. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7190. for as_dir in $PATH
  7191. do
  7192. IFS=$as_save_IFS
  7193. test -z "$as_dir" && as_dir=.
  7194. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7195. done
  7196. IFS=$as_save_IFS
  7197. ;;
  7198. esac
  7199. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7200. # in which case we are not to be found in the path.
  7201. if test "x$as_myself" = x; then
  7202. as_myself=$0
  7203. fi
  7204. if test ! -f "$as_myself"; then
  7205. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  7206. exit 1
  7207. fi
  7208. # Unset variables that we do not need and which cause bugs (e.g. in
  7209. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  7210. # suppresses any "Segmentation fault" message there. '((' could
  7211. # trigger a bug in pdksh 5.2.14.
  7212. for as_var in BASH_ENV ENV MAIL MAILPATH
  7213. do eval test x\${$as_var+set} = xset \
  7214. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  7215. done
  7216. PS1='$ '
  7217. PS2='> '
  7218. PS4='+ '
  7219. # NLS nuisances.
  7220. LC_ALL=C
  7221. export LC_ALL
  7222. LANGUAGE=C
  7223. export LANGUAGE
  7224. # CDPATH.
  7225. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7226. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  7227. # ----------------------------------------
  7228. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  7229. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  7230. # script with STATUS, using 1 if that was 0.
  7231. as_fn_error ()
  7232. {
  7233. as_status=$1; test $as_status -eq 0 && as_status=1
  7234. if test "$4"; then
  7235. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  7236. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  7237. fi
  7238. $as_echo "$as_me: error: $2" >&2
  7239. as_fn_exit $as_status
  7240. } # as_fn_error
  7241. # as_fn_set_status STATUS
  7242. # -----------------------
  7243. # Set $? to STATUS, without forking.
  7244. as_fn_set_status ()
  7245. {
  7246. return $1
  7247. } # as_fn_set_status
  7248. # as_fn_exit STATUS
  7249. # -----------------
  7250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  7251. as_fn_exit ()
  7252. {
  7253. set +e
  7254. as_fn_set_status $1
  7255. exit $1
  7256. } # as_fn_exit
  7257. # as_fn_unset VAR
  7258. # ---------------
  7259. # Portably unset VAR.
  7260. as_fn_unset ()
  7261. {
  7262. { eval $1=; unset $1;}
  7263. }
  7264. as_unset=as_fn_unset
  7265. # as_fn_append VAR VALUE
  7266. # ----------------------
  7267. # Append the text in VALUE to the end of the definition contained in VAR. Take
  7268. # advantage of any shell optimizations that allow amortized linear growth over
  7269. # repeated appends, instead of the typical quadratic growth present in naive
  7270. # implementations.
  7271. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  7272. eval 'as_fn_append ()
  7273. {
  7274. eval $1+=\$2
  7275. }'
  7276. else
  7277. as_fn_append ()
  7278. {
  7279. eval $1=\$$1\$2
  7280. }
  7281. fi # as_fn_append
  7282. # as_fn_arith ARG...
  7283. # ------------------
  7284. # Perform arithmetic evaluation on the ARGs, and store the result in the
  7285. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  7286. # must be portable across $(()) and expr.
  7287. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  7288. eval 'as_fn_arith ()
  7289. {
  7290. as_val=$(( $* ))
  7291. }'
  7292. else
  7293. as_fn_arith ()
  7294. {
  7295. as_val=`expr "$@" || test $? -eq 1`
  7296. }
  7297. fi # as_fn_arith
  7298. if expr a : '\(a\)' >/dev/null 2>&1 &&
  7299. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  7300. as_expr=expr
  7301. else
  7302. as_expr=false
  7303. fi
  7304. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  7305. as_basename=basename
  7306. else
  7307. as_basename=false
  7308. fi
  7309. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  7310. as_dirname=dirname
  7311. else
  7312. as_dirname=false
  7313. fi
  7314. as_me=`$as_basename -- "$0" ||
  7315. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7316. X"$0" : 'X\(//\)$' \| \
  7317. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  7318. $as_echo X/"$0" |
  7319. sed '/^.*\/\([^/][^/]*\)\/*$/{
  7320. s//\1/
  7321. q
  7322. }
  7323. /^X\/\(\/\/\)$/{
  7324. s//\1/
  7325. q
  7326. }
  7327. /^X\/\(\/\).*/{
  7328. s//\1/
  7329. q
  7330. }
  7331. s/.*/./; q'`
  7332. # Avoid depending upon Character Ranges.
  7333. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7334. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7335. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7336. as_cr_digits='0123456789'
  7337. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7338. ECHO_C= ECHO_N= ECHO_T=
  7339. case `echo -n x` in #(((((
  7340. -n*)
  7341. case `echo 'xy\c'` in
  7342. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  7343. xy) ECHO_C='\c';;
  7344. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  7345. ECHO_T=' ';;
  7346. esac;;
  7347. *)
  7348. ECHO_N='-n';;
  7349. esac
  7350. rm -f conf$$ conf$$.exe conf$$.file
  7351. if test -d conf$$.dir; then
  7352. rm -f conf$$.dir/conf$$.file
  7353. else
  7354. rm -f conf$$.dir
  7355. mkdir conf$$.dir 2>/dev/null
  7356. fi
  7357. if (echo >conf$$.file) 2>/dev/null; then
  7358. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7359. as_ln_s='ln -s'
  7360. # ... but there are two gotchas:
  7361. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  7362. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  7363. # In both cases, we have to default to `cp -pR'.
  7364. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  7365. as_ln_s='cp -pR'
  7366. elif ln conf$$.file conf$$ 2>/dev/null; then
  7367. as_ln_s=ln
  7368. else
  7369. as_ln_s='cp -pR'
  7370. fi
  7371. else
  7372. as_ln_s='cp -pR'
  7373. fi
  7374. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  7375. rmdir conf$$.dir 2>/dev/null
  7376. # as_fn_mkdir_p
  7377. # -------------
  7378. # Create "$as_dir" as a directory, including parents if necessary.
  7379. as_fn_mkdir_p ()
  7380. {
  7381. case $as_dir in #(
  7382. -*) as_dir=./$as_dir;;
  7383. esac
  7384. test -d "$as_dir" || eval $as_mkdir_p || {
  7385. as_dirs=
  7386. while :; do
  7387. case $as_dir in #(
  7388. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  7389. *) as_qdir=$as_dir;;
  7390. esac
  7391. as_dirs="'$as_qdir' $as_dirs"
  7392. as_dir=`$as_dirname -- "$as_dir" ||
  7393. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7394. X"$as_dir" : 'X\(//\)[^/]' \| \
  7395. X"$as_dir" : 'X\(//\)$' \| \
  7396. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  7397. $as_echo X"$as_dir" |
  7398. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7399. s//\1/
  7400. q
  7401. }
  7402. /^X\(\/\/\)[^/].*/{
  7403. s//\1/
  7404. q
  7405. }
  7406. /^X\(\/\/\)$/{
  7407. s//\1/
  7408. q
  7409. }
  7410. /^X\(\/\).*/{
  7411. s//\1/
  7412. q
  7413. }
  7414. s/.*/./; q'`
  7415. test -d "$as_dir" && break
  7416. done
  7417. test -z "$as_dirs" || eval "mkdir $as_dirs"
  7418. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  7419. } # as_fn_mkdir_p
  7420. if mkdir -p . 2>/dev/null; then
  7421. as_mkdir_p='mkdir -p "$as_dir"'
  7422. else
  7423. test -d ./-p && rmdir ./-p
  7424. as_mkdir_p=false
  7425. fi
  7426. # as_fn_executable_p FILE
  7427. # -----------------------
  7428. # Test if FILE is an executable regular file.
  7429. as_fn_executable_p ()
  7430. {
  7431. test -f "$1" && test -x "$1"
  7432. } # as_fn_executable_p
  7433. as_test_x='test -x'
  7434. as_executable_p=as_fn_executable_p
  7435. # Sed expression to map a string onto a valid CPP name.
  7436. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7437. # Sed expression to map a string onto a valid variable name.
  7438. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7439. exec 6>&1
  7440. ## ----------------------------------- ##
  7441. ## Main body of $CONFIG_STATUS script. ##
  7442. ## ----------------------------------- ##
  7443. _ASEOF
  7444. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  7445. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7446. # Save the log message, to keep $0 and so on meaningful, and to
  7447. # report actual input values of CONFIG_FILES etc. instead of their
  7448. # values after options handling.
  7449. ac_log="
  7450. This file was extended by breakpad $as_me 0.1, which was
  7451. generated by GNU Autoconf 2.69. Invocation command line was
  7452. CONFIG_FILES = $CONFIG_FILES
  7453. CONFIG_HEADERS = $CONFIG_HEADERS
  7454. CONFIG_LINKS = $CONFIG_LINKS
  7455. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7456. $ $0 $@
  7457. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  7458. "
  7459. _ACEOF
  7460. case $ac_config_files in *"
  7461. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  7462. esac
  7463. case $ac_config_headers in *"
  7464. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  7465. esac
  7466. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7467. # Files that config.status was made for.
  7468. config_files="$ac_config_files"
  7469. config_headers="$ac_config_headers"
  7470. config_commands="$ac_config_commands"
  7471. _ACEOF
  7472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7473. ac_cs_usage="\
  7474. \`$as_me' instantiates files and other configuration actions
  7475. from templates according to the current configuration. Unless the files
  7476. and actions are specified as TAGs, all are instantiated by default.
  7477. Usage: $0 [OPTION]... [TAG]...
  7478. -h, --help print this help, then exit
  7479. -V, --version print version number and configuration settings, then exit
  7480. --config print configuration, then exit
  7481. -q, --quiet, --silent
  7482. do not print progress messages
  7483. -d, --debug don't remove temporary files
  7484. --recheck update $as_me by reconfiguring in the same conditions
  7485. --file=FILE[:TEMPLATE]
  7486. instantiate the configuration file FILE
  7487. --header=FILE[:TEMPLATE]
  7488. instantiate the configuration header FILE
  7489. Configuration files:
  7490. $config_files
  7491. Configuration headers:
  7492. $config_headers
  7493. Configuration commands:
  7494. $config_commands
  7495. Report bugs to <google-breakpad-dev@googlegroups.com>."
  7496. _ACEOF
  7497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7498. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  7499. ac_cs_version="\\
  7500. breakpad config.status 0.1
  7501. configured by $0, generated by GNU Autoconf 2.69,
  7502. with options \\"\$ac_cs_config\\"
  7503. Copyright (C) 2012 Free Software Foundation, Inc.
  7504. This config.status script is free software; the Free Software Foundation
  7505. gives unlimited permission to copy, distribute and modify it."
  7506. ac_pwd='$ac_pwd'
  7507. srcdir='$srcdir'
  7508. INSTALL='$INSTALL'
  7509. MKDIR_P='$MKDIR_P'
  7510. AWK='$AWK'
  7511. test -n "\$AWK" || AWK=awk
  7512. _ACEOF
  7513. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7514. # The default lists apply if the user does not specify any file.
  7515. ac_need_defaults=:
  7516. while test $# != 0
  7517. do
  7518. case $1 in
  7519. --*=?*)
  7520. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7521. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  7522. ac_shift=:
  7523. ;;
  7524. --*=)
  7525. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  7526. ac_optarg=
  7527. ac_shift=:
  7528. ;;
  7529. *)
  7530. ac_option=$1
  7531. ac_optarg=$2
  7532. ac_shift=shift
  7533. ;;
  7534. esac
  7535. case $ac_option in
  7536. # Handling of the options.
  7537. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7538. ac_cs_recheck=: ;;
  7539. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  7540. $as_echo "$ac_cs_version"; exit ;;
  7541. --config | --confi | --conf | --con | --co | --c )
  7542. $as_echo "$ac_cs_config"; exit ;;
  7543. --debug | --debu | --deb | --de | --d | -d )
  7544. debug=: ;;
  7545. --file | --fil | --fi | --f )
  7546. $ac_shift
  7547. case $ac_optarg in
  7548. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7549. '') as_fn_error $? "missing file argument" ;;
  7550. esac
  7551. as_fn_append CONFIG_FILES " '$ac_optarg'"
  7552. ac_need_defaults=false;;
  7553. --header | --heade | --head | --hea )
  7554. $ac_shift
  7555. case $ac_optarg in
  7556. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  7557. esac
  7558. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  7559. ac_need_defaults=false;;
  7560. --he | --h)
  7561. # Conflict between --help and --header
  7562. as_fn_error $? "ambiguous option: \`$1'
  7563. Try \`$0 --help' for more information.";;
  7564. --help | --hel | -h )
  7565. $as_echo "$ac_cs_usage"; exit ;;
  7566. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7567. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7568. ac_cs_silent=: ;;
  7569. # This is an error.
  7570. -*) as_fn_error $? "unrecognized option: \`$1'
  7571. Try \`$0 --help' for more information." ;;
  7572. *) as_fn_append ac_config_targets " $1"
  7573. ac_need_defaults=false ;;
  7574. esac
  7575. shift
  7576. done
  7577. ac_configure_extra_args=
  7578. if $ac_cs_silent; then
  7579. exec 6>/dev/null
  7580. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7581. fi
  7582. _ACEOF
  7583. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7584. if \$ac_cs_recheck; then
  7585. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7586. shift
  7587. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  7588. CONFIG_SHELL='$SHELL'
  7589. export CONFIG_SHELL
  7590. exec "\$@"
  7591. fi
  7592. _ACEOF
  7593. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7594. exec 5>>config.log
  7595. {
  7596. echo
  7597. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7598. ## Running $as_me. ##
  7599. _ASBOX
  7600. $as_echo "$ac_log"
  7601. } >&5
  7602. _ACEOF
  7603. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7604. #
  7605. # INIT-COMMANDS
  7606. #
  7607. AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
  7608. _ACEOF
  7609. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7610. # Handling of arguments.
  7611. for ac_config_target in $ac_config_targets
  7612. do
  7613. case $ac_config_target in
  7614. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  7615. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  7616. "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;;
  7617. "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;;
  7618. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7619. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  7620. esac
  7621. done
  7622. # If the user did not use the arguments to specify the items to instantiate,
  7623. # then the envvar interface is used. Set only those that are not.
  7624. # We use the long form for the default assignment because of an extremely
  7625. # bizarre bug on SunOS 4.1.3.
  7626. if $ac_need_defaults; then
  7627. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7628. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7629. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  7630. fi
  7631. # Have a temporary directory for convenience. Make it in the build tree
  7632. # simply because there is no reason against having it here, and in addition,
  7633. # creating and moving files from /tmp can sometimes cause problems.
  7634. # Hook for its removal unless debugging.
  7635. # Note that there is a small window in which the directory will not be cleaned:
  7636. # after its creation but before its name has been assigned to `$tmp'.
  7637. $debug ||
  7638. {
  7639. tmp= ac_tmp=
  7640. trap 'exit_status=$?
  7641. : "${ac_tmp:=$tmp}"
  7642. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  7643. ' 0
  7644. trap 'as_fn_exit 1' 1 2 13 15
  7645. }
  7646. # Create a (secure) tmp directory for tmp files.
  7647. {
  7648. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  7649. test -d "$tmp"
  7650. } ||
  7651. {
  7652. tmp=./conf$$-$RANDOM
  7653. (umask 077 && mkdir "$tmp")
  7654. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  7655. ac_tmp=$tmp
  7656. # Set up the scripts for CONFIG_FILES section.
  7657. # No need to generate them if there are no CONFIG_FILES.
  7658. # This happens for instance with `./config.status config.h'.
  7659. if test -n "$CONFIG_FILES"; then
  7660. ac_cr=`echo X | tr X '\015'`
  7661. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  7662. # But we know of no other shell where ac_cr would be empty at this
  7663. # point, so we can use a bashism as a fallback.
  7664. if test "x$ac_cr" = x; then
  7665. eval ac_cr=\$\'\\r\'
  7666. fi
  7667. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  7668. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  7669. ac_cs_awk_cr='\\r'
  7670. else
  7671. ac_cs_awk_cr=$ac_cr
  7672. fi
  7673. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  7674. _ACEOF
  7675. {
  7676. echo "cat >conf$$subs.awk <<_ACEOF" &&
  7677. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  7678. echo "_ACEOF"
  7679. } >conf$$subs.sh ||
  7680. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7681. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  7682. ac_delim='%!_!# '
  7683. for ac_last_try in false false false false false :; do
  7684. . ./conf$$subs.sh ||
  7685. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7686. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  7687. if test $ac_delim_n = $ac_delim_num; then
  7688. break
  7689. elif $ac_last_try; then
  7690. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  7691. else
  7692. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7693. fi
  7694. done
  7695. rm -f conf$$subs.sh
  7696. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7697. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  7698. _ACEOF
  7699. sed -n '
  7700. h
  7701. s/^/S["/; s/!.*/"]=/
  7702. p
  7703. g
  7704. s/^[^!]*!//
  7705. :repl
  7706. t repl
  7707. s/'"$ac_delim"'$//
  7708. t delim
  7709. :nl
  7710. h
  7711. s/\(.\{148\}\)..*/\1/
  7712. t more1
  7713. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  7714. p
  7715. n
  7716. b repl
  7717. :more1
  7718. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7719. p
  7720. g
  7721. s/.\{148\}//
  7722. t nl
  7723. :delim
  7724. h
  7725. s/\(.\{148\}\)..*/\1/
  7726. t more2
  7727. s/["\\]/\\&/g; s/^/"/; s/$/"/
  7728. p
  7729. b
  7730. :more2
  7731. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  7732. p
  7733. g
  7734. s/.\{148\}//
  7735. t delim
  7736. ' <conf$$subs.awk | sed '
  7737. /^[^""]/{
  7738. N
  7739. s/\n//
  7740. }
  7741. ' >>$CONFIG_STATUS || ac_write_fail=1
  7742. rm -f conf$$subs.awk
  7743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7744. _ACAWK
  7745. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  7746. for (key in S) S_is_set[key] = 1
  7747. FS = ""
  7748. }
  7749. {
  7750. line = $ 0
  7751. nfields = split(line, field, "@")
  7752. substed = 0
  7753. len = length(field[1])
  7754. for (i = 2; i < nfields; i++) {
  7755. key = field[i]
  7756. keylen = length(key)
  7757. if (S_is_set[key]) {
  7758. value = S[key]
  7759. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  7760. len += length(value) + length(field[++i])
  7761. substed = 1
  7762. } else
  7763. len += 1 + keylen
  7764. }
  7765. print line
  7766. }
  7767. _ACAWK
  7768. _ACEOF
  7769. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7770. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  7771. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  7772. else
  7773. cat
  7774. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  7775. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  7776. _ACEOF
  7777. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  7778. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  7779. # trailing colons and then remove the whole line if VPATH becomes empty
  7780. # (actually we leave an empty line to preserve line numbers).
  7781. if test "x$srcdir" = x.; then
  7782. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  7783. h
  7784. s///
  7785. s/^/:/
  7786. s/[ ]*$/:/
  7787. s/:\$(srcdir):/:/g
  7788. s/:\${srcdir}:/:/g
  7789. s/:@srcdir@:/:/g
  7790. s/^:*//
  7791. s/:*$//
  7792. x
  7793. s/\(=[ ]*\).*/\1/
  7794. G
  7795. s/\n//
  7796. s/^[^=]*=[ ]*$//
  7797. }'
  7798. fi
  7799. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7800. fi # test -n "$CONFIG_FILES"
  7801. # Set up the scripts for CONFIG_HEADERS section.
  7802. # No need to generate them if there are no CONFIG_HEADERS.
  7803. # This happens for instance with `./config.status Makefile'.
  7804. if test -n "$CONFIG_HEADERS"; then
  7805. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  7806. BEGIN {
  7807. _ACEOF
  7808. # Transform confdefs.h into an awk script `defines.awk', embedded as
  7809. # here-document in config.status, that substitutes the proper values into
  7810. # config.h.in to produce config.h.
  7811. # Create a delimiter string that does not exist in confdefs.h, to ease
  7812. # handling of long lines.
  7813. ac_delim='%!_!# '
  7814. for ac_last_try in false false :; do
  7815. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  7816. if test -z "$ac_tt"; then
  7817. break
  7818. elif $ac_last_try; then
  7819. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  7820. else
  7821. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  7822. fi
  7823. done
  7824. # For the awk script, D is an array of macro values keyed by name,
  7825. # likewise P contains macro parameters if any. Preserve backslash
  7826. # newline sequences.
  7827. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  7828. sed -n '
  7829. s/.\{148\}/&'"$ac_delim"'/g
  7830. t rset
  7831. :rset
  7832. s/^[ ]*#[ ]*define[ ][ ]*/ /
  7833. t def
  7834. d
  7835. :def
  7836. s/\\$//
  7837. t bsnl
  7838. s/["\\]/\\&/g
  7839. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7840. D["\1"]=" \3"/p
  7841. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  7842. d
  7843. :bsnl
  7844. s/["\\]/\\&/g
  7845. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  7846. D["\1"]=" \3\\\\\\n"\\/p
  7847. t cont
  7848. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  7849. t cont
  7850. d
  7851. :cont
  7852. n
  7853. s/.\{148\}/&'"$ac_delim"'/g
  7854. t clear
  7855. :clear
  7856. s/\\$//
  7857. t bsnlc
  7858. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  7859. d
  7860. :bsnlc
  7861. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  7862. b cont
  7863. ' <confdefs.h | sed '
  7864. s/'"$ac_delim"'/"\\\
  7865. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  7866. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  7867. for (key in D) D_is_set[key] = 1
  7868. FS = ""
  7869. }
  7870. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  7871. line = \$ 0
  7872. split(line, arg, " ")
  7873. if (arg[1] == "#") {
  7874. defundef = arg[2]
  7875. mac1 = arg[3]
  7876. } else {
  7877. defundef = substr(arg[1], 2)
  7878. mac1 = arg[2]
  7879. }
  7880. split(mac1, mac2, "(") #)
  7881. macro = mac2[1]
  7882. prefix = substr(line, 1, index(line, defundef) - 1)
  7883. if (D_is_set[macro]) {
  7884. # Preserve the white space surrounding the "#".
  7885. print prefix "define", macro P[macro] D[macro]
  7886. next
  7887. } else {
  7888. # Replace #undef with comments. This is necessary, for example,
  7889. # in the case of _POSIX_SOURCE, which is predefined and required
  7890. # on some systems where configure will not decide to define it.
  7891. if (defundef == "undef") {
  7892. print "/*", prefix defundef, macro, "*/"
  7893. next
  7894. }
  7895. }
  7896. }
  7897. { print }
  7898. _ACAWK
  7899. _ACEOF
  7900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  7901. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  7902. fi # test -n "$CONFIG_HEADERS"
  7903. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  7904. shift
  7905. for ac_tag
  7906. do
  7907. case $ac_tag in
  7908. :[FHLC]) ac_mode=$ac_tag; continue;;
  7909. esac
  7910. case $ac_mode$ac_tag in
  7911. :[FHL]*:*);;
  7912. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  7913. :[FH]-) ac_tag=-:-;;
  7914. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  7915. esac
  7916. ac_save_IFS=$IFS
  7917. IFS=:
  7918. set x $ac_tag
  7919. IFS=$ac_save_IFS
  7920. shift
  7921. ac_file=$1
  7922. shift
  7923. case $ac_mode in
  7924. :L) ac_source=$1;;
  7925. :[FH])
  7926. ac_file_inputs=
  7927. for ac_f
  7928. do
  7929. case $ac_f in
  7930. -) ac_f="$ac_tmp/stdin";;
  7931. *) # Look for the file first in the build tree, then in the source tree
  7932. # (if the path is not absolute). The absolute path cannot be DOS-style,
  7933. # because $ac_f cannot contain `:'.
  7934. test -f "$ac_f" ||
  7935. case $ac_f in
  7936. [\\/$]*) false;;
  7937. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  7938. esac ||
  7939. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  7940. esac
  7941. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  7942. as_fn_append ac_file_inputs " '$ac_f'"
  7943. done
  7944. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7945. # use $as_me), people would be surprised to read:
  7946. # /* config.h. Generated by config.status. */
  7947. configure_input='Generated from '`
  7948. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  7949. `' by configure.'
  7950. if test x"$ac_file" != x-; then
  7951. configure_input="$ac_file. $configure_input"
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  7953. $as_echo "$as_me: creating $ac_file" >&6;}
  7954. fi
  7955. # Neutralize special characters interpreted by sed in replacement strings.
  7956. case $configure_input in #(
  7957. *\&* | *\|* | *\\* )
  7958. ac_sed_conf_input=`$as_echo "$configure_input" |
  7959. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  7960. *) ac_sed_conf_input=$configure_input;;
  7961. esac
  7962. case $ac_tag in
  7963. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  7964. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  7965. esac
  7966. ;;
  7967. esac
  7968. ac_dir=`$as_dirname -- "$ac_file" ||
  7969. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7970. X"$ac_file" : 'X\(//\)[^/]' \| \
  7971. X"$ac_file" : 'X\(//\)$' \| \
  7972. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  7973. $as_echo X"$ac_file" |
  7974. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  7975. s//\1/
  7976. q
  7977. }
  7978. /^X\(\/\/\)[^/].*/{
  7979. s//\1/
  7980. q
  7981. }
  7982. /^X\(\/\/\)$/{
  7983. s//\1/
  7984. q
  7985. }
  7986. /^X\(\/\).*/{
  7987. s//\1/
  7988. q
  7989. }
  7990. s/.*/./; q'`
  7991. as_dir="$ac_dir"; as_fn_mkdir_p
  7992. ac_builddir=.
  7993. case "$ac_dir" in
  7994. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  7995. *)
  7996. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  7997. # A ".." for each directory in $ac_dir_suffix.
  7998. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  7999. case $ac_top_builddir_sub in
  8000. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8001. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8002. esac ;;
  8003. esac
  8004. ac_abs_top_builddir=$ac_pwd
  8005. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8006. # for backward compatibility:
  8007. ac_top_builddir=$ac_top_build_prefix
  8008. case $srcdir in
  8009. .) # We are building in place.
  8010. ac_srcdir=.
  8011. ac_top_srcdir=$ac_top_builddir_sub
  8012. ac_abs_top_srcdir=$ac_pwd ;;
  8013. [\\/]* | ?:[\\/]* ) # Absolute name.
  8014. ac_srcdir=$srcdir$ac_dir_suffix;
  8015. ac_top_srcdir=$srcdir
  8016. ac_abs_top_srcdir=$srcdir ;;
  8017. *) # Relative name.
  8018. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8019. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8020. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8021. esac
  8022. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8023. case $ac_mode in
  8024. :F)
  8025. #
  8026. # CONFIG_FILE
  8027. #
  8028. case $INSTALL in
  8029. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8030. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8031. esac
  8032. ac_MKDIR_P=$MKDIR_P
  8033. case $MKDIR_P in
  8034. [\\/$]* | ?:[\\/]* ) ;;
  8035. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  8036. esac
  8037. _ACEOF
  8038. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8039. # If the template does not know about datarootdir, expand it.
  8040. # FIXME: This hack should be removed a few years after 2.60.
  8041. ac_datarootdir_hack=; ac_datarootdir_seen=
  8042. ac_sed_dataroot='
  8043. /datarootdir/ {
  8044. p
  8045. q
  8046. }
  8047. /@datadir@/p
  8048. /@docdir@/p
  8049. /@infodir@/p
  8050. /@localedir@/p
  8051. /@mandir@/p'
  8052. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8053. *datarootdir*) ac_datarootdir_seen=yes;;
  8054. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8056. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8057. _ACEOF
  8058. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8059. ac_datarootdir_hack='
  8060. s&@datadir@&$datadir&g
  8061. s&@docdir@&$docdir&g
  8062. s&@infodir@&$infodir&g
  8063. s&@localedir@&$localedir&g
  8064. s&@mandir@&$mandir&g
  8065. s&\\\${datarootdir}&$datarootdir&g' ;;
  8066. esac
  8067. _ACEOF
  8068. # Neutralize VPATH when `$srcdir' = `.'.
  8069. # Shell code in configure.ac might set extrasub.
  8070. # FIXME: do we really want to maintain this feature?
  8071. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8072. ac_sed_extra="$ac_vpsub
  8073. $extrasub
  8074. _ACEOF
  8075. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8076. :t
  8077. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8078. s|@configure_input@|$ac_sed_conf_input|;t t
  8079. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8080. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8081. s&@srcdir@&$ac_srcdir&;t t
  8082. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8083. s&@top_srcdir@&$ac_top_srcdir&;t t
  8084. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8085. s&@builddir@&$ac_builddir&;t t
  8086. s&@abs_builddir@&$ac_abs_builddir&;t t
  8087. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8088. s&@INSTALL@&$ac_INSTALL&;t t
  8089. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  8090. $ac_datarootdir_hack
  8091. "
  8092. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8093. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8094. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8095. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8096. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8097. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8098. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8099. which seems to be undefined. Please make sure it is defined" >&5
  8100. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8101. which seems to be undefined. Please make sure it is defined" >&2;}
  8102. rm -f "$ac_tmp/stdin"
  8103. case $ac_file in
  8104. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8105. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8106. esac \
  8107. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8108. ;;
  8109. :H)
  8110. #
  8111. # CONFIG_HEADER
  8112. #
  8113. if test x"$ac_file" != x-; then
  8114. {
  8115. $as_echo "/* $configure_input */" \
  8116. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8117. } >"$ac_tmp/config.h" \
  8118. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8119. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8120. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8121. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8122. else
  8123. rm -f "$ac_file"
  8124. mv "$ac_tmp/config.h" "$ac_file" \
  8125. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8126. fi
  8127. else
  8128. $as_echo "/* $configure_input */" \
  8129. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  8130. || as_fn_error $? "could not create -" "$LINENO" 5
  8131. fi
  8132. # Compute "$ac_file"'s index in $config_headers.
  8133. _am_arg="$ac_file"
  8134. _am_stamp_count=1
  8135. for _am_header in $config_headers :; do
  8136. case $_am_header in
  8137. $_am_arg | $_am_arg:* )
  8138. break ;;
  8139. * )
  8140. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8141. esac
  8142. done
  8143. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  8144. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8145. X"$_am_arg" : 'X\(//\)[^/]' \| \
  8146. X"$_am_arg" : 'X\(//\)$' \| \
  8147. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  8148. $as_echo X"$_am_arg" |
  8149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8150. s//\1/
  8151. q
  8152. }
  8153. /^X\(\/\/\)[^/].*/{
  8154. s//\1/
  8155. q
  8156. }
  8157. /^X\(\/\/\)$/{
  8158. s//\1/
  8159. q
  8160. }
  8161. /^X\(\/\).*/{
  8162. s//\1/
  8163. q
  8164. }
  8165. s/.*/./; q'`/stamp-h$_am_stamp_count
  8166. ;;
  8167. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  8168. $as_echo "$as_me: executing $ac_file commands" >&6;}
  8169. ;;
  8170. esac
  8171. case $ac_file$ac_mode in
  8172. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  8173. # Older Autoconf quotes --file arguments for eval, but not when files
  8174. # are listed without --file. Let's play safe and only enable the eval
  8175. # if we detect the quoting.
  8176. # TODO: see whether this extra hack can be removed once we start
  8177. # requiring Autoconf 2.70 or later.
  8178. case $CONFIG_FILES in #(
  8179. *\'*) :
  8180. eval set x "$CONFIG_FILES" ;; #(
  8181. *) :
  8182. set x $CONFIG_FILES ;; #(
  8183. *) :
  8184. ;;
  8185. esac
  8186. shift
  8187. # Used to flag and report bootstrapping failures.
  8188. am_rc=0
  8189. for am_mf
  8190. do
  8191. # Strip MF so we end up with the name of the file.
  8192. am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
  8193. # Check whether this is an Automake generated Makefile which includes
  8194. # dependency-tracking related rules and includes.
  8195. # Grep'ing the whole file directly is not great: AIX grep has a line
  8196. # limit of 2048, but all sed's we know have understand at least 4000.
  8197. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  8198. || continue
  8199. am_dirpart=`$as_dirname -- "$am_mf" ||
  8200. $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8201. X"$am_mf" : 'X\(//\)[^/]' \| \
  8202. X"$am_mf" : 'X\(//\)$' \| \
  8203. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  8204. $as_echo X"$am_mf" |
  8205. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8206. s//\1/
  8207. q
  8208. }
  8209. /^X\(\/\/\)[^/].*/{
  8210. s//\1/
  8211. q
  8212. }
  8213. /^X\(\/\/\)$/{
  8214. s//\1/
  8215. q
  8216. }
  8217. /^X\(\/\).*/{
  8218. s//\1/
  8219. q
  8220. }
  8221. s/.*/./; q'`
  8222. am_filepart=`$as_basename -- "$am_mf" ||
  8223. $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
  8224. X"$am_mf" : 'X\(//\)$' \| \
  8225. X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
  8226. $as_echo X/"$am_mf" |
  8227. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8228. s//\1/
  8229. q
  8230. }
  8231. /^X\/\(\/\/\)$/{
  8232. s//\1/
  8233. q
  8234. }
  8235. /^X\/\(\/\).*/{
  8236. s//\1/
  8237. q
  8238. }
  8239. s/.*/./; q'`
  8240. { echo "$as_me:$LINENO: cd "$am_dirpart" \
  8241. && sed -e '/# am--include-marker/d' "$am_filepart" \
  8242. | $MAKE -f - am--depfiles" >&5
  8243. (cd "$am_dirpart" \
  8244. && sed -e '/# am--include-marker/d' "$am_filepart" \
  8245. | $MAKE -f - am--depfiles) >&5 2>&5
  8246. ac_status=$?
  8247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8248. (exit $ac_status); } || am_rc=$?
  8249. done
  8250. if test $am_rc -ne 0; then
  8251. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8252. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8253. as_fn_error $? "Something went wrong bootstrapping makefile fragments
  8254. for automatic dependency tracking. If GNU make was not used, consider
  8255. re-running the configure script with MAKE=\"gmake\" (or whatever is
  8256. necessary). You can also try re-running configure with the
  8257. '--disable-dependency-tracking' option to at least be able to build
  8258. the package (albeit without support for automatic dependency tracking).
  8259. See \`config.log' for more details" "$LINENO" 5; }
  8260. fi
  8261. { am_dirpart=; unset am_dirpart;}
  8262. { am_filepart=; unset am_filepart;}
  8263. { am_mf=; unset am_mf;}
  8264. { am_rc=; unset am_rc;}
  8265. rm -f conftest-deps.mk
  8266. }
  8267. ;;
  8268. esac
  8269. done # for ac_tag
  8270. as_fn_exit 0
  8271. _ACEOF
  8272. ac_clean_files=$ac_clean_files_save
  8273. test $ac_write_fail = 0 ||
  8274. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  8275. # configure is writing to config.log, and then calls config.status.
  8276. # config.status does its own redirection, appending to config.log.
  8277. # Unfortunately, on DOS this fails, as config.log is still kept open
  8278. # by configure, so config.status won't be able to write to it; its
  8279. # output is simply discarded. So we exec the FD to /dev/null,
  8280. # effectively closing config.log, so it can be properly (re)opened and
  8281. # appended to by config.status. When coming back to configure, we
  8282. # need to make the FD available again.
  8283. if test "$no_create" != yes; then
  8284. ac_cs_success=:
  8285. ac_config_status_args=
  8286. test "$silent" = yes &&
  8287. ac_config_status_args="$ac_config_status_args --quiet"
  8288. exec 5>/dev/null
  8289. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8290. exec 5>>config.log
  8291. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8292. # would make configure fail if this is the last instruction.
  8293. $ac_cs_success || as_fn_exit 1
  8294. fi
  8295. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  8296. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  8297. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  8298. fi