configure 336 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xev 1.2.2.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  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: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xev'
  535. PACKAGE_TARNAME='xev'
  536. PACKAGE_VERSION='1.2.2'
  537. PACKAGE_STRING='xev 1.2.2'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XEV_LIBS
  581. XEV_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. CHANGELOG_CMD
  614. STRICT_CFLAGS
  615. CWARNFLAGS
  616. BASE_CFLAGS
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. am__untar
  628. am__tar
  629. AMTAR
  630. am__leading_dot
  631. SET_MAKE
  632. AWK
  633. mkdir_p
  634. MKDIR_P
  635. INSTALL_STRIP_PROGRAM
  636. STRIP
  637. install_sh
  638. MAKEINFO
  639. AUTOHEADER
  640. AUTOMAKE
  641. AUTOCONF
  642. ACLOCAL
  643. VERSION
  644. PACKAGE
  645. CYGPATH_W
  646. am__isrc
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. EGREP
  651. GREP
  652. CPP
  653. OBJEXT
  654. EXEEXT
  655. ac_ct_CC
  656. CPPFLAGS
  657. LDFLAGS
  658. CFLAGS
  659. CC
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. enable_dependency_tracking
  702. enable_selective_werror
  703. enable_strict_compilation
  704. enable_silent_rules
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. PKG_CONFIG
  716. PKG_CONFIG_PATH
  717. PKG_CONFIG_LIBDIR
  718. XEV_CFLAGS
  719. XEV_LIBS'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures xev 1.2.2 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/xev]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of xev 1.2.2:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dependency-tracking
  1257. do not reject slow dependency extractors
  1258. --disable-dependency-tracking
  1259. speeds up one-time build
  1260. --disable-selective-werror
  1261. Turn off selective compiler errors. (default:
  1262. enabled)
  1263. --enable-strict-compilation
  1264. Enable all warnings from compiler and make them
  1265. errors (default: disabled)
  1266. --enable-silent-rules less verbose build output (undo: "make V=1")
  1267. --disable-silent-rules verbose build output (undo: "make V=0")
  1268. Some influential environment variables:
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1272. nonstandard directory <lib dir>
  1273. LIBS libraries to pass to the linker, e.g. -l<library>
  1274. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1275. you have headers in a nonstandard directory <include dir>
  1276. CPP C preprocessor
  1277. PKG_CONFIG path to pkg-config utility
  1278. PKG_CONFIG_PATH
  1279. directories to add to pkg-config's search path
  1280. PKG_CONFIG_LIBDIR
  1281. path overriding pkg-config's built-in search path
  1282. XEV_CFLAGS C compiler flags for XEV, overriding pkg-config
  1283. XEV_LIBS linker flags for XEV, overriding pkg-config
  1284. Use these variables to override the choices made by `configure' or to help
  1285. it to find libraries and programs with nonstandard names/locations.
  1286. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1287. _ACEOF
  1288. ac_status=$?
  1289. fi
  1290. if test "$ac_init_help" = "recursive"; then
  1291. # If there are subdirs, report their specific --help.
  1292. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1293. test -d "$ac_dir" ||
  1294. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1295. continue
  1296. ac_builddir=.
  1297. case "$ac_dir" in
  1298. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1299. *)
  1300. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1301. # A ".." for each directory in $ac_dir_suffix.
  1302. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1303. case $ac_top_builddir_sub in
  1304. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1305. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1306. esac ;;
  1307. esac
  1308. ac_abs_top_builddir=$ac_pwd
  1309. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1310. # for backward compatibility:
  1311. ac_top_builddir=$ac_top_build_prefix
  1312. case $srcdir in
  1313. .) # We are building in place.
  1314. ac_srcdir=.
  1315. ac_top_srcdir=$ac_top_builddir_sub
  1316. ac_abs_top_srcdir=$ac_pwd ;;
  1317. [\\/]* | ?:[\\/]* ) # Absolute name.
  1318. ac_srcdir=$srcdir$ac_dir_suffix;
  1319. ac_top_srcdir=$srcdir
  1320. ac_abs_top_srcdir=$srcdir ;;
  1321. *) # Relative name.
  1322. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1323. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1324. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1325. esac
  1326. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1327. cd "$ac_dir" || { ac_status=$?; continue; }
  1328. # Check for guested configure.
  1329. if test -f "$ac_srcdir/configure.gnu"; then
  1330. echo &&
  1331. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1332. elif test -f "$ac_srcdir/configure"; then
  1333. echo &&
  1334. $SHELL "$ac_srcdir/configure" --help=recursive
  1335. else
  1336. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1337. fi || ac_status=$?
  1338. cd "$ac_pwd" || { ac_status=$?; break; }
  1339. done
  1340. fi
  1341. test -n "$ac_init_help" && exit $ac_status
  1342. if $ac_init_version; then
  1343. cat <<\_ACEOF
  1344. xev configure 1.2.2
  1345. generated by GNU Autoconf 2.69
  1346. Copyright (C) 2012 Free Software Foundation, Inc.
  1347. This configure script is free software; the Free Software Foundation
  1348. gives unlimited permission to copy, distribute and modify it.
  1349. _ACEOF
  1350. exit
  1351. fi
  1352. ## ------------------------ ##
  1353. ## Autoconf initialization. ##
  1354. ## ------------------------ ##
  1355. # ac_fn_c_try_compile LINENO
  1356. # --------------------------
  1357. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1358. ac_fn_c_try_compile ()
  1359. {
  1360. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1361. rm -f conftest.$ac_objext
  1362. if { { ac_try="$ac_compile"
  1363. case "(($ac_try" in
  1364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1365. *) ac_try_echo=$ac_try;;
  1366. esac
  1367. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1368. $as_echo "$ac_try_echo"; } >&5
  1369. (eval "$ac_compile") 2>conftest.err
  1370. ac_status=$?
  1371. if test -s conftest.err; then
  1372. grep -v '^ *+' conftest.err >conftest.er1
  1373. cat conftest.er1 >&5
  1374. mv -f conftest.er1 conftest.err
  1375. fi
  1376. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1377. test $ac_status = 0; } && {
  1378. test -z "$ac_c_werror_flag" ||
  1379. test ! -s conftest.err
  1380. } && test -s conftest.$ac_objext; then :
  1381. ac_retval=0
  1382. else
  1383. $as_echo "$as_me: failed program was:" >&5
  1384. sed 's/^/| /' conftest.$ac_ext >&5
  1385. ac_retval=1
  1386. fi
  1387. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1388. as_fn_set_status $ac_retval
  1389. } # ac_fn_c_try_compile
  1390. # ac_fn_c_try_cpp LINENO
  1391. # ----------------------
  1392. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_cpp ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1397. case "(($ac_try" in
  1398. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1399. *) ac_try_echo=$ac_try;;
  1400. esac
  1401. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1402. $as_echo "$ac_try_echo"; } >&5
  1403. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1404. ac_status=$?
  1405. if test -s conftest.err; then
  1406. grep -v '^ *+' conftest.err >conftest.er1
  1407. cat conftest.er1 >&5
  1408. mv -f conftest.er1 conftest.err
  1409. fi
  1410. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1411. test $ac_status = 0; } > conftest.i && {
  1412. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1413. test ! -s conftest.err
  1414. }; then :
  1415. ac_retval=0
  1416. else
  1417. $as_echo "$as_me: failed program was:" >&5
  1418. sed 's/^/| /' conftest.$ac_ext >&5
  1419. ac_retval=1
  1420. fi
  1421. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1422. as_fn_set_status $ac_retval
  1423. } # ac_fn_c_try_cpp
  1424. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1425. # -------------------------------------------------------
  1426. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1427. # the include files in INCLUDES and setting the cache variable VAR
  1428. # accordingly.
  1429. ac_fn_c_check_header_mongrel ()
  1430. {
  1431. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1432. if eval \${$3+:} false; then :
  1433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1434. $as_echo_n "checking for $2... " >&6; }
  1435. if eval \${$3+:} false; then :
  1436. $as_echo_n "(cached) " >&6
  1437. fi
  1438. eval ac_res=\$$3
  1439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1440. $as_echo "$ac_res" >&6; }
  1441. else
  1442. # Is the header compilable?
  1443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1444. $as_echo_n "checking $2 usability... " >&6; }
  1445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1446. /* end confdefs.h. */
  1447. $4
  1448. #include <$2>
  1449. _ACEOF
  1450. if ac_fn_c_try_compile "$LINENO"; then :
  1451. ac_header_compiler=yes
  1452. else
  1453. ac_header_compiler=no
  1454. fi
  1455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1457. $as_echo "$ac_header_compiler" >&6; }
  1458. # Is the header present?
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1460. $as_echo_n "checking $2 presence... " >&6; }
  1461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1462. /* end confdefs.h. */
  1463. #include <$2>
  1464. _ACEOF
  1465. if ac_fn_c_try_cpp "$LINENO"; then :
  1466. ac_header_preproc=yes
  1467. else
  1468. ac_header_preproc=no
  1469. fi
  1470. rm -f conftest.err conftest.i conftest.$ac_ext
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1472. $as_echo "$ac_header_preproc" >&6; }
  1473. # So? What about this header?
  1474. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1475. yes:no: )
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1477. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1479. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1480. ;;
  1481. no:yes:* )
  1482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1483. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1485. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1487. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1489. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1491. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1492. ( $as_echo "## ---------------------------------------------------------------------- ##
  1493. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  1494. ## ---------------------------------------------------------------------- ##"
  1495. ) | sed "s/^/$as_me: WARNING: /" >&2
  1496. ;;
  1497. esac
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1499. $as_echo_n "checking for $2... " >&6; }
  1500. if eval \${$3+:} false; then :
  1501. $as_echo_n "(cached) " >&6
  1502. else
  1503. eval "$3=\$ac_header_compiler"
  1504. fi
  1505. eval ac_res=\$$3
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1507. $as_echo "$ac_res" >&6; }
  1508. fi
  1509. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1510. } # ac_fn_c_check_header_mongrel
  1511. # ac_fn_c_try_run LINENO
  1512. # ----------------------
  1513. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1514. # that executables *can* be run.
  1515. ac_fn_c_try_run ()
  1516. {
  1517. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1518. if { { ac_try="$ac_link"
  1519. case "(($ac_try" in
  1520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1521. *) ac_try_echo=$ac_try;;
  1522. esac
  1523. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1524. $as_echo "$ac_try_echo"; } >&5
  1525. (eval "$ac_link") 2>&5
  1526. ac_status=$?
  1527. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1528. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1529. { { case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_try") 2>&5
  1536. ac_status=$?
  1537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1538. test $ac_status = 0; }; }; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: program exited with status $ac_status" >&5
  1542. $as_echo "$as_me: failed program was:" >&5
  1543. sed 's/^/| /' conftest.$ac_ext >&5
  1544. ac_retval=$ac_status
  1545. fi
  1546. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1547. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1548. as_fn_set_status $ac_retval
  1549. } # ac_fn_c_try_run
  1550. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1551. # -------------------------------------------------------
  1552. # Tests whether HEADER exists and can be compiled using the include files in
  1553. # INCLUDES, setting the cache variable VAR accordingly.
  1554. ac_fn_c_check_header_compile ()
  1555. {
  1556. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1558. $as_echo_n "checking for $2... " >&6; }
  1559. if eval \${$3+:} false; then :
  1560. $as_echo_n "(cached) " >&6
  1561. else
  1562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1563. /* end confdefs.h. */
  1564. $4
  1565. #include <$2>
  1566. _ACEOF
  1567. if ac_fn_c_try_compile "$LINENO"; then :
  1568. eval "$3=yes"
  1569. else
  1570. eval "$3=no"
  1571. fi
  1572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1573. fi
  1574. eval ac_res=\$$3
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1576. $as_echo "$ac_res" >&6; }
  1577. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1578. } # ac_fn_c_check_header_compile
  1579. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1580. # ---------------------------------------------
  1581. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1582. # accordingly.
  1583. ac_fn_c_check_decl ()
  1584. {
  1585. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1586. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1587. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1589. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1590. if eval \${$3+:} false; then :
  1591. $as_echo_n "(cached) " >&6
  1592. else
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. $4
  1596. int
  1597. main ()
  1598. {
  1599. #ifndef $as_decl_name
  1600. #ifdef __cplusplus
  1601. (void) $as_decl_use;
  1602. #else
  1603. (void) $as_decl_name;
  1604. #endif
  1605. #endif
  1606. ;
  1607. return 0;
  1608. }
  1609. _ACEOF
  1610. if ac_fn_c_try_compile "$LINENO"; then :
  1611. eval "$3=yes"
  1612. else
  1613. eval "$3=no"
  1614. fi
  1615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1616. fi
  1617. eval ac_res=\$$3
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1619. $as_echo "$ac_res" >&6; }
  1620. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1621. } # ac_fn_c_check_decl
  1622. # ac_fn_c_try_link LINENO
  1623. # -----------------------
  1624. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1625. ac_fn_c_try_link ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. rm -f conftest.$ac_objext conftest$ac_exeext
  1629. if { { ac_try="$ac_link"
  1630. case "(($ac_try" in
  1631. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1632. *) ac_try_echo=$ac_try;;
  1633. esac
  1634. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1635. $as_echo "$ac_try_echo"; } >&5
  1636. (eval "$ac_link") 2>conftest.err
  1637. ac_status=$?
  1638. if test -s conftest.err; then
  1639. grep -v '^ *+' conftest.err >conftest.er1
  1640. cat conftest.er1 >&5
  1641. mv -f conftest.er1 conftest.err
  1642. fi
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; } && {
  1645. test -z "$ac_c_werror_flag" ||
  1646. test ! -s conftest.err
  1647. } && test -s conftest$ac_exeext && {
  1648. test "$cross_compiling" = yes ||
  1649. test -x conftest$ac_exeext
  1650. }; then :
  1651. ac_retval=0
  1652. else
  1653. $as_echo "$as_me: failed program was:" >&5
  1654. sed 's/^/| /' conftest.$ac_ext >&5
  1655. ac_retval=1
  1656. fi
  1657. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1658. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1659. # interfere with the next link command; also delete a directory that is
  1660. # left behind by Apple's compiler. We do this before executing the actions.
  1661. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1662. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1663. as_fn_set_status $ac_retval
  1664. } # ac_fn_c_try_link
  1665. cat >config.log <<_ACEOF
  1666. This file contains any messages produced by compilers while
  1667. running configure, to aid debugging if configure makes a mistake.
  1668. It was created by xev $as_me 1.2.2, which was
  1669. generated by GNU Autoconf 2.69. Invocation command line was
  1670. $ $0 $@
  1671. _ACEOF
  1672. exec 5>>config.log
  1673. {
  1674. cat <<_ASUNAME
  1675. ## --------- ##
  1676. ## Platform. ##
  1677. ## --------- ##
  1678. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1679. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1680. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1681. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1682. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1683. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1684. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1685. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1686. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1687. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1688. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1689. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1690. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1691. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1692. _ASUNAME
  1693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1694. for as_dir in $PATH
  1695. do
  1696. IFS=$as_save_IFS
  1697. test -z "$as_dir" && as_dir=.
  1698. $as_echo "PATH: $as_dir"
  1699. done
  1700. IFS=$as_save_IFS
  1701. } >&5
  1702. cat >&5 <<_ACEOF
  1703. ## ----------- ##
  1704. ## Core tests. ##
  1705. ## ----------- ##
  1706. _ACEOF
  1707. # Keep a trace of the command line.
  1708. # Strip out --no-create and --no-recursion so they do not pile up.
  1709. # Strip out --silent because we don't want to record it for future runs.
  1710. # Also quote any args containing shell meta-characters.
  1711. # Make two passes to allow for proper duplicate-argument suppression.
  1712. ac_configure_args=
  1713. ac_configure_args0=
  1714. ac_configure_args1=
  1715. ac_must_keep_next=false
  1716. for ac_pass in 1 2
  1717. do
  1718. for ac_arg
  1719. do
  1720. case $ac_arg in
  1721. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1722. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1723. | -silent | --silent | --silen | --sile | --sil)
  1724. continue ;;
  1725. *\'*)
  1726. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1727. esac
  1728. case $ac_pass in
  1729. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1730. 2)
  1731. as_fn_append ac_configure_args1 " '$ac_arg'"
  1732. if test $ac_must_keep_next = true; then
  1733. ac_must_keep_next=false # Got value, back to normal.
  1734. else
  1735. case $ac_arg in
  1736. *=* | --config-cache | -C | -disable-* | --disable-* \
  1737. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1738. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1739. | -with-* | --with-* | -without-* | --without-* | --x)
  1740. case "$ac_configure_args0 " in
  1741. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1742. esac
  1743. ;;
  1744. -* ) ac_must_keep_next=true ;;
  1745. esac
  1746. fi
  1747. as_fn_append ac_configure_args " '$ac_arg'"
  1748. ;;
  1749. esac
  1750. done
  1751. done
  1752. { ac_configure_args0=; unset ac_configure_args0;}
  1753. { ac_configure_args1=; unset ac_configure_args1;}
  1754. # When interrupted or exit'd, cleanup temporary files, and complete
  1755. # config.log. We remove comments because anyway the quotes in there
  1756. # would cause problems or look ugly.
  1757. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1758. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1759. trap 'exit_status=$?
  1760. # Save into config.log some information that might help in debugging.
  1761. {
  1762. echo
  1763. $as_echo "## ---------------- ##
  1764. ## Cache variables. ##
  1765. ## ---------------- ##"
  1766. echo
  1767. # The following way of writing the cache mishandles newlines in values,
  1768. (
  1769. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1770. eval ac_val=\$$ac_var
  1771. case $ac_val in #(
  1772. *${as_nl}*)
  1773. case $ac_var in #(
  1774. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1775. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1776. esac
  1777. case $ac_var in #(
  1778. _ | IFS | as_nl) ;; #(
  1779. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1780. *) { eval $ac_var=; unset $ac_var;} ;;
  1781. esac ;;
  1782. esac
  1783. done
  1784. (set) 2>&1 |
  1785. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1786. *${as_nl}ac_space=\ *)
  1787. sed -n \
  1788. "s/'\''/'\''\\\\'\'''\''/g;
  1789. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1790. ;; #(
  1791. *)
  1792. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1793. ;;
  1794. esac |
  1795. sort
  1796. )
  1797. echo
  1798. $as_echo "## ----------------- ##
  1799. ## Output variables. ##
  1800. ## ----------------- ##"
  1801. echo
  1802. for ac_var in $ac_subst_vars
  1803. do
  1804. eval ac_val=\$$ac_var
  1805. case $ac_val in
  1806. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1807. esac
  1808. $as_echo "$ac_var='\''$ac_val'\''"
  1809. done | sort
  1810. echo
  1811. if test -n "$ac_subst_files"; then
  1812. $as_echo "## ------------------- ##
  1813. ## File substitutions. ##
  1814. ## ------------------- ##"
  1815. echo
  1816. for ac_var in $ac_subst_files
  1817. do
  1818. eval ac_val=\$$ac_var
  1819. case $ac_val in
  1820. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1821. esac
  1822. $as_echo "$ac_var='\''$ac_val'\''"
  1823. done | sort
  1824. echo
  1825. fi
  1826. if test -s confdefs.h; then
  1827. $as_echo "## ----------- ##
  1828. ## confdefs.h. ##
  1829. ## ----------- ##"
  1830. echo
  1831. cat confdefs.h
  1832. echo
  1833. fi
  1834. test "$ac_signal" != 0 &&
  1835. $as_echo "$as_me: caught signal $ac_signal"
  1836. $as_echo "$as_me: exit $exit_status"
  1837. } >&5
  1838. rm -f core *.core core.conftest.* &&
  1839. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1840. exit $exit_status
  1841. ' 0
  1842. for ac_signal in 1 2 13 15; do
  1843. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1844. done
  1845. ac_signal=0
  1846. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1847. rm -f -r conftest* confdefs.h
  1848. $as_echo "/* confdefs.h */" > confdefs.h
  1849. # Predefined preprocessor variables.
  1850. cat >>confdefs.h <<_ACEOF
  1851. #define PACKAGE_NAME "$PACKAGE_NAME"
  1852. _ACEOF
  1853. cat >>confdefs.h <<_ACEOF
  1854. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1855. _ACEOF
  1856. cat >>confdefs.h <<_ACEOF
  1857. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1858. _ACEOF
  1859. cat >>confdefs.h <<_ACEOF
  1860. #define PACKAGE_STRING "$PACKAGE_STRING"
  1861. _ACEOF
  1862. cat >>confdefs.h <<_ACEOF
  1863. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1864. _ACEOF
  1865. cat >>confdefs.h <<_ACEOF
  1866. #define PACKAGE_URL "$PACKAGE_URL"
  1867. _ACEOF
  1868. # Let the site file select an alternate cache file if it wants to.
  1869. # Prefer an explicitly selected file to automatically selected ones.
  1870. ac_site_file1=NONE
  1871. ac_site_file2=NONE
  1872. if test -n "$CONFIG_SITE"; then
  1873. # We do not want a PATH search for config.site.
  1874. case $CONFIG_SITE in #((
  1875. -*) ac_site_file1=./$CONFIG_SITE;;
  1876. */*) ac_site_file1=$CONFIG_SITE;;
  1877. *) ac_site_file1=./$CONFIG_SITE;;
  1878. esac
  1879. elif test "x$prefix" != xNONE; then
  1880. ac_site_file1=$prefix/share/config.site
  1881. ac_site_file2=$prefix/etc/config.site
  1882. else
  1883. ac_site_file1=$ac_default_prefix/share/config.site
  1884. ac_site_file2=$ac_default_prefix/etc/config.site
  1885. fi
  1886. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1887. do
  1888. test "x$ac_site_file" = xNONE && continue
  1889. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1891. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1892. sed 's/^/| /' "$ac_site_file" >&5
  1893. . "$ac_site_file" \
  1894. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1895. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1896. as_fn_error $? "failed to load site script $ac_site_file
  1897. See \`config.log' for more details" "$LINENO" 5; }
  1898. fi
  1899. done
  1900. if test -r "$cache_file"; then
  1901. # Some versions of bash will fail to source /dev/null (special files
  1902. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1903. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1905. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1906. case $cache_file in
  1907. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1908. *) . "./$cache_file";;
  1909. esac
  1910. fi
  1911. else
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1913. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1914. >$cache_file
  1915. fi
  1916. # Check that the precious variables saved in the cache have kept the same
  1917. # value.
  1918. ac_cache_corrupted=false
  1919. for ac_var in $ac_precious_vars; do
  1920. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1921. eval ac_new_set=\$ac_env_${ac_var}_set
  1922. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1923. eval ac_new_val=\$ac_env_${ac_var}_value
  1924. case $ac_old_set,$ac_new_set in
  1925. set,)
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1927. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1928. ac_cache_corrupted=: ;;
  1929. ,set)
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1931. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1932. ac_cache_corrupted=: ;;
  1933. ,);;
  1934. *)
  1935. if test "x$ac_old_val" != "x$ac_new_val"; then
  1936. # differences in whitespace do not lead to failure.
  1937. ac_old_val_w=`echo x $ac_old_val`
  1938. ac_new_val_w=`echo x $ac_new_val`
  1939. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1941. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1942. ac_cache_corrupted=:
  1943. else
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1945. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1946. eval $ac_var=\$ac_old_val
  1947. fi
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1949. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1950. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1951. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1952. fi;;
  1953. esac
  1954. # Pass precious variables to config.status.
  1955. if test "$ac_new_set" = set; then
  1956. case $ac_new_val in
  1957. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1958. *) ac_arg=$ac_var=$ac_new_val ;;
  1959. esac
  1960. case " $ac_configure_args " in
  1961. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1962. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1963. esac
  1964. fi
  1965. done
  1966. if $ac_cache_corrupted; then
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1968. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1970. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1971. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1972. fi
  1973. ## -------------------- ##
  1974. ## Main body of script. ##
  1975. ## -------------------- ##
  1976. ac_ext=c
  1977. ac_cpp='$CPP $CPPFLAGS'
  1978. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1979. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1980. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1981. ac_config_headers="$ac_config_headers config.h"
  1982. ac_ext=c
  1983. ac_cpp='$CPP $CPPFLAGS'
  1984. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1985. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1986. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1987. if test -n "$ac_tool_prefix"; then
  1988. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1989. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  1991. $as_echo_n "checking for $ac_word... " >&6; }
  1992. if ${ac_cv_prog_CC+:} false; then :
  1993. $as_echo_n "(cached) " >&6
  1994. else
  1995. if test -n "$CC"; then
  1996. ac_cv_prog_CC="$CC" # Let the user override the test.
  1997. else
  1998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1999. for as_dir in $PATH
  2000. do
  2001. IFS=$as_save_IFS
  2002. test -z "$as_dir" && as_dir=.
  2003. for ac_exec_ext in '' $ac_executable_extensions; do
  2004. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2005. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2006. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2007. break 2
  2008. fi
  2009. done
  2010. done
  2011. IFS=$as_save_IFS
  2012. fi
  2013. fi
  2014. CC=$ac_cv_prog_CC
  2015. if test -n "$CC"; then
  2016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2017. $as_echo "$CC" >&6; }
  2018. else
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2020. $as_echo "no" >&6; }
  2021. fi
  2022. fi
  2023. if test -z "$ac_cv_prog_CC"; then
  2024. ac_ct_CC=$CC
  2025. # Extract the first word of "gcc", so it can be a program name with args.
  2026. set dummy gcc; ac_word=$2
  2027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2028. $as_echo_n "checking for $ac_word... " >&6; }
  2029. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2030. $as_echo_n "(cached) " >&6
  2031. else
  2032. if test -n "$ac_ct_CC"; then
  2033. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2034. else
  2035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2036. for as_dir in $PATH
  2037. do
  2038. IFS=$as_save_IFS
  2039. test -z "$as_dir" && as_dir=.
  2040. for ac_exec_ext in '' $ac_executable_extensions; do
  2041. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2042. ac_cv_prog_ac_ct_CC="gcc"
  2043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2044. break 2
  2045. fi
  2046. done
  2047. done
  2048. IFS=$as_save_IFS
  2049. fi
  2050. fi
  2051. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2052. if test -n "$ac_ct_CC"; then
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2054. $as_echo "$ac_ct_CC" >&6; }
  2055. else
  2056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2057. $as_echo "no" >&6; }
  2058. fi
  2059. if test "x$ac_ct_CC" = x; then
  2060. CC=""
  2061. else
  2062. case $cross_compiling:$ac_tool_warned in
  2063. yes:)
  2064. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2065. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2066. ac_tool_warned=yes ;;
  2067. esac
  2068. CC=$ac_ct_CC
  2069. fi
  2070. else
  2071. CC="$ac_cv_prog_CC"
  2072. fi
  2073. if test -z "$CC"; then
  2074. if test -n "$ac_tool_prefix"; then
  2075. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2076. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2078. $as_echo_n "checking for $ac_word... " >&6; }
  2079. if ${ac_cv_prog_CC+:} false; then :
  2080. $as_echo_n "(cached) " >&6
  2081. else
  2082. if test -n "$CC"; then
  2083. ac_cv_prog_CC="$CC" # Let the user override the test.
  2084. else
  2085. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2086. for as_dir in $PATH
  2087. do
  2088. IFS=$as_save_IFS
  2089. test -z "$as_dir" && as_dir=.
  2090. for ac_exec_ext in '' $ac_executable_extensions; do
  2091. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2092. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2093. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2094. break 2
  2095. fi
  2096. done
  2097. done
  2098. IFS=$as_save_IFS
  2099. fi
  2100. fi
  2101. CC=$ac_cv_prog_CC
  2102. if test -n "$CC"; then
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2104. $as_echo "$CC" >&6; }
  2105. else
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2107. $as_echo "no" >&6; }
  2108. fi
  2109. fi
  2110. fi
  2111. if test -z "$CC"; then
  2112. # Extract the first word of "cc", so it can be a program name with args.
  2113. set dummy cc; ac_word=$2
  2114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2115. $as_echo_n "checking for $ac_word... " >&6; }
  2116. if ${ac_cv_prog_CC+:} false; then :
  2117. $as_echo_n "(cached) " >&6
  2118. else
  2119. if test -n "$CC"; then
  2120. ac_cv_prog_CC="$CC" # Let the user override the test.
  2121. else
  2122. ac_prog_rejected=no
  2123. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2124. for as_dir in $PATH
  2125. do
  2126. IFS=$as_save_IFS
  2127. test -z "$as_dir" && as_dir=.
  2128. for ac_exec_ext in '' $ac_executable_extensions; do
  2129. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2130. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2131. ac_prog_rejected=yes
  2132. continue
  2133. fi
  2134. ac_cv_prog_CC="cc"
  2135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2136. break 2
  2137. fi
  2138. done
  2139. done
  2140. IFS=$as_save_IFS
  2141. if test $ac_prog_rejected = yes; then
  2142. # We found a bogon in the path, so make sure we never use it.
  2143. set dummy $ac_cv_prog_CC
  2144. shift
  2145. if test $# != 0; then
  2146. # We chose a different compiler from the bogus one.
  2147. # However, it has the same basename, so the bogon will be chosen
  2148. # first if we set CC to just the basename; use the full file name.
  2149. shift
  2150. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2151. fi
  2152. fi
  2153. fi
  2154. fi
  2155. CC=$ac_cv_prog_CC
  2156. if test -n "$CC"; then
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2158. $as_echo "$CC" >&6; }
  2159. else
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2161. $as_echo "no" >&6; }
  2162. fi
  2163. fi
  2164. if test -z "$CC"; then
  2165. if test -n "$ac_tool_prefix"; then
  2166. for ac_prog in cl.exe
  2167. do
  2168. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2169. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2171. $as_echo_n "checking for $ac_word... " >&6; }
  2172. if ${ac_cv_prog_CC+:} false; then :
  2173. $as_echo_n "(cached) " >&6
  2174. else
  2175. if test -n "$CC"; then
  2176. ac_cv_prog_CC="$CC" # Let the user override the test.
  2177. else
  2178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2179. for as_dir in $PATH
  2180. do
  2181. IFS=$as_save_IFS
  2182. test -z "$as_dir" && as_dir=.
  2183. for ac_exec_ext in '' $ac_executable_extensions; do
  2184. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2185. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2186. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2187. break 2
  2188. fi
  2189. done
  2190. done
  2191. IFS=$as_save_IFS
  2192. fi
  2193. fi
  2194. CC=$ac_cv_prog_CC
  2195. if test -n "$CC"; then
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2197. $as_echo "$CC" >&6; }
  2198. else
  2199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2200. $as_echo "no" >&6; }
  2201. fi
  2202. test -n "$CC" && break
  2203. done
  2204. fi
  2205. if test -z "$CC"; then
  2206. ac_ct_CC=$CC
  2207. for ac_prog in cl.exe
  2208. do
  2209. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2210. set dummy $ac_prog; ac_word=$2
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2212. $as_echo_n "checking for $ac_word... " >&6; }
  2213. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2214. $as_echo_n "(cached) " >&6
  2215. else
  2216. if test -n "$ac_ct_CC"; then
  2217. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2218. else
  2219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2220. for as_dir in $PATH
  2221. do
  2222. IFS=$as_save_IFS
  2223. test -z "$as_dir" && as_dir=.
  2224. for ac_exec_ext in '' $ac_executable_extensions; do
  2225. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2226. ac_cv_prog_ac_ct_CC="$ac_prog"
  2227. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2228. break 2
  2229. fi
  2230. done
  2231. done
  2232. IFS=$as_save_IFS
  2233. fi
  2234. fi
  2235. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2236. if test -n "$ac_ct_CC"; then
  2237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2238. $as_echo "$ac_ct_CC" >&6; }
  2239. else
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2241. $as_echo "no" >&6; }
  2242. fi
  2243. test -n "$ac_ct_CC" && break
  2244. done
  2245. if test "x$ac_ct_CC" = x; then
  2246. CC=""
  2247. else
  2248. case $cross_compiling:$ac_tool_warned in
  2249. yes:)
  2250. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2251. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2252. ac_tool_warned=yes ;;
  2253. esac
  2254. CC=$ac_ct_CC
  2255. fi
  2256. fi
  2257. fi
  2258. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2259. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2260. as_fn_error $? "no acceptable C compiler found in \$PATH
  2261. See \`config.log' for more details" "$LINENO" 5; }
  2262. # Provide some information about the compiler.
  2263. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2264. set X $ac_compile
  2265. ac_compiler=$2
  2266. for ac_option in --version -v -V -qversion; do
  2267. { { ac_try="$ac_compiler $ac_option >&5"
  2268. case "(($ac_try" in
  2269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2270. *) ac_try_echo=$ac_try;;
  2271. esac
  2272. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2273. $as_echo "$ac_try_echo"; } >&5
  2274. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2275. ac_status=$?
  2276. if test -s conftest.err; then
  2277. sed '10a\
  2278. ... rest of stderr output deleted ...
  2279. 10q' conftest.err >conftest.er1
  2280. cat conftest.er1 >&5
  2281. fi
  2282. rm -f conftest.er1 conftest.err
  2283. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2284. test $ac_status = 0; }
  2285. done
  2286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2287. /* end confdefs.h. */
  2288. int
  2289. main ()
  2290. {
  2291. ;
  2292. return 0;
  2293. }
  2294. _ACEOF
  2295. ac_clean_files_save=$ac_clean_files
  2296. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2297. # Try to create an executable without -o first, disregard a.out.
  2298. # It will help us diagnose broken compilers, and finding out an intuition
  2299. # of exeext.
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2301. $as_echo_n "checking whether the C compiler works... " >&6; }
  2302. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2303. # The possible output files:
  2304. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2305. ac_rmfiles=
  2306. for ac_file in $ac_files
  2307. do
  2308. case $ac_file in
  2309. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2310. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2311. esac
  2312. done
  2313. rm -f $ac_rmfiles
  2314. if { { ac_try="$ac_link_default"
  2315. case "(($ac_try" in
  2316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2317. *) ac_try_echo=$ac_try;;
  2318. esac
  2319. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2320. $as_echo "$ac_try_echo"; } >&5
  2321. (eval "$ac_link_default") 2>&5
  2322. ac_status=$?
  2323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2324. test $ac_status = 0; }; then :
  2325. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2326. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2327. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2328. # so that the user can short-circuit this test for compilers unknown to
  2329. # Autoconf.
  2330. for ac_file in $ac_files ''
  2331. do
  2332. test -f "$ac_file" || continue
  2333. case $ac_file in
  2334. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2335. ;;
  2336. [ab].out )
  2337. # We found the default executable, but exeext='' is most
  2338. # certainly right.
  2339. break;;
  2340. *.* )
  2341. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2342. then :; else
  2343. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2344. fi
  2345. # We set ac_cv_exeext here because the later test for it is not
  2346. # safe: cross compilers may not add the suffix if given an `-o'
  2347. # argument, so we may need to know it at that point already.
  2348. # Even if this section looks crufty: it has the advantage of
  2349. # actually working.
  2350. break;;
  2351. * )
  2352. break;;
  2353. esac
  2354. done
  2355. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2356. else
  2357. ac_file=''
  2358. fi
  2359. if test -z "$ac_file"; then :
  2360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2361. $as_echo "no" >&6; }
  2362. $as_echo "$as_me: failed program was:" >&5
  2363. sed 's/^/| /' conftest.$ac_ext >&5
  2364. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2365. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2366. as_fn_error 77 "C compiler cannot create executables
  2367. See \`config.log' for more details" "$LINENO" 5; }
  2368. else
  2369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2370. $as_echo "yes" >&6; }
  2371. fi
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2373. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2375. $as_echo "$ac_file" >&6; }
  2376. ac_exeext=$ac_cv_exeext
  2377. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2378. ac_clean_files=$ac_clean_files_save
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2380. $as_echo_n "checking for suffix of executables... " >&6; }
  2381. if { { ac_try="$ac_link"
  2382. case "(($ac_try" in
  2383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2384. *) ac_try_echo=$ac_try;;
  2385. esac
  2386. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2387. $as_echo "$ac_try_echo"; } >&5
  2388. (eval "$ac_link") 2>&5
  2389. ac_status=$?
  2390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2391. test $ac_status = 0; }; then :
  2392. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2393. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2394. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2395. # `rm'.
  2396. for ac_file in conftest.exe conftest conftest.*; do
  2397. test -f "$ac_file" || continue
  2398. case $ac_file in
  2399. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2400. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2401. break;;
  2402. * ) break;;
  2403. esac
  2404. done
  2405. else
  2406. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2407. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2408. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2409. See \`config.log' for more details" "$LINENO" 5; }
  2410. fi
  2411. rm -f conftest conftest$ac_cv_exeext
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2413. $as_echo "$ac_cv_exeext" >&6; }
  2414. rm -f conftest.$ac_ext
  2415. EXEEXT=$ac_cv_exeext
  2416. ac_exeext=$EXEEXT
  2417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2418. /* end confdefs.h. */
  2419. #include <stdio.h>
  2420. int
  2421. main ()
  2422. {
  2423. FILE *f = fopen ("conftest.out", "w");
  2424. return ferror (f) || fclose (f) != 0;
  2425. ;
  2426. return 0;
  2427. }
  2428. _ACEOF
  2429. ac_clean_files="$ac_clean_files conftest.out"
  2430. # Check that the compiler produces executables we can run. If not, either
  2431. # the compiler is broken, or we cross compile.
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2433. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2434. if test "$cross_compiling" != yes; then
  2435. { { ac_try="$ac_link"
  2436. case "(($ac_try" in
  2437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2438. *) ac_try_echo=$ac_try;;
  2439. esac
  2440. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2441. $as_echo "$ac_try_echo"; } >&5
  2442. (eval "$ac_link") 2>&5
  2443. ac_status=$?
  2444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2445. test $ac_status = 0; }
  2446. if { ac_try='./conftest$ac_cv_exeext'
  2447. { { case "(($ac_try" in
  2448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2449. *) ac_try_echo=$ac_try;;
  2450. esac
  2451. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2452. $as_echo "$ac_try_echo"; } >&5
  2453. (eval "$ac_try") 2>&5
  2454. ac_status=$?
  2455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2456. test $ac_status = 0; }; }; then
  2457. cross_compiling=no
  2458. else
  2459. if test "$cross_compiling" = maybe; then
  2460. cross_compiling=yes
  2461. else
  2462. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2463. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2464. as_fn_error $? "cannot run C compiled programs.
  2465. If you meant to cross compile, use \`--host'.
  2466. See \`config.log' for more details" "$LINENO" 5; }
  2467. fi
  2468. fi
  2469. fi
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2471. $as_echo "$cross_compiling" >&6; }
  2472. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2473. ac_clean_files=$ac_clean_files_save
  2474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2475. $as_echo_n "checking for suffix of object files... " >&6; }
  2476. if ${ac_cv_objext+:} false; then :
  2477. $as_echo_n "(cached) " >&6
  2478. else
  2479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2480. /* end confdefs.h. */
  2481. int
  2482. main ()
  2483. {
  2484. ;
  2485. return 0;
  2486. }
  2487. _ACEOF
  2488. rm -f conftest.o conftest.obj
  2489. if { { ac_try="$ac_compile"
  2490. case "(($ac_try" in
  2491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2492. *) ac_try_echo=$ac_try;;
  2493. esac
  2494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2495. $as_echo "$ac_try_echo"; } >&5
  2496. (eval "$ac_compile") 2>&5
  2497. ac_status=$?
  2498. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2499. test $ac_status = 0; }; then :
  2500. for ac_file in conftest.o conftest.obj conftest.*; do
  2501. test -f "$ac_file" || continue;
  2502. case $ac_file in
  2503. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2504. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2505. break;;
  2506. esac
  2507. done
  2508. else
  2509. $as_echo "$as_me: failed program was:" >&5
  2510. sed 's/^/| /' conftest.$ac_ext >&5
  2511. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2512. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2513. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2514. See \`config.log' for more details" "$LINENO" 5; }
  2515. fi
  2516. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2517. fi
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2519. $as_echo "$ac_cv_objext" >&6; }
  2520. OBJEXT=$ac_cv_objext
  2521. ac_objext=$OBJEXT
  2522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2523. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2524. if ${ac_cv_c_compiler_gnu+:} false; then :
  2525. $as_echo_n "(cached) " >&6
  2526. else
  2527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2528. /* end confdefs.h. */
  2529. int
  2530. main ()
  2531. {
  2532. #ifndef __GNUC__
  2533. choke me
  2534. #endif
  2535. ;
  2536. return 0;
  2537. }
  2538. _ACEOF
  2539. if ac_fn_c_try_compile "$LINENO"; then :
  2540. ac_compiler_gnu=yes
  2541. else
  2542. ac_compiler_gnu=no
  2543. fi
  2544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2545. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2546. fi
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2548. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2549. if test $ac_compiler_gnu = yes; then
  2550. GCC=yes
  2551. else
  2552. GCC=
  2553. fi
  2554. ac_test_CFLAGS=${CFLAGS+set}
  2555. ac_save_CFLAGS=$CFLAGS
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2557. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2558. if ${ac_cv_prog_cc_g+:} false; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. ac_save_c_werror_flag=$ac_c_werror_flag
  2562. ac_c_werror_flag=yes
  2563. ac_cv_prog_cc_g=no
  2564. CFLAGS="-g"
  2565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2566. /* end confdefs.h. */
  2567. int
  2568. main ()
  2569. {
  2570. ;
  2571. return 0;
  2572. }
  2573. _ACEOF
  2574. if ac_fn_c_try_compile "$LINENO"; then :
  2575. ac_cv_prog_cc_g=yes
  2576. else
  2577. CFLAGS=""
  2578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2579. /* end confdefs.h. */
  2580. int
  2581. main ()
  2582. {
  2583. ;
  2584. return 0;
  2585. }
  2586. _ACEOF
  2587. if ac_fn_c_try_compile "$LINENO"; then :
  2588. else
  2589. ac_c_werror_flag=$ac_save_c_werror_flag
  2590. CFLAGS="-g"
  2591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end confdefs.h. */
  2593. int
  2594. main ()
  2595. {
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. if ac_fn_c_try_compile "$LINENO"; then :
  2601. ac_cv_prog_cc_g=yes
  2602. fi
  2603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2604. fi
  2605. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2606. fi
  2607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2608. ac_c_werror_flag=$ac_save_c_werror_flag
  2609. fi
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2611. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2612. if test "$ac_test_CFLAGS" = set; then
  2613. CFLAGS=$ac_save_CFLAGS
  2614. elif test $ac_cv_prog_cc_g = yes; then
  2615. if test "$GCC" = yes; then
  2616. CFLAGS="-g -O2"
  2617. else
  2618. CFLAGS="-g"
  2619. fi
  2620. else
  2621. if test "$GCC" = yes; then
  2622. CFLAGS="-O2"
  2623. else
  2624. CFLAGS=
  2625. fi
  2626. fi
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2628. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2629. if ${ac_cv_prog_cc_c89+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. ac_cv_prog_cc_c89=no
  2633. ac_save_CC=$CC
  2634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2635. /* end confdefs.h. */
  2636. #include <stdarg.h>
  2637. #include <stdio.h>
  2638. struct stat;
  2639. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2640. struct buf { int x; };
  2641. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2642. static char *e (p, i)
  2643. char **p;
  2644. int i;
  2645. {
  2646. return p[i];
  2647. }
  2648. static char *f (char * (*g) (char **, int), char **p, ...)
  2649. {
  2650. char *s;
  2651. va_list v;
  2652. va_start (v,p);
  2653. s = g (p, va_arg (v,int));
  2654. va_end (v);
  2655. return s;
  2656. }
  2657. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2658. function prototypes and stuff, but not '\xHH' hex character constants.
  2659. These don't provoke an error unfortunately, instead are silently treated
  2660. as 'x'. The following induces an error, until -std is added to get
  2661. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2662. array size at least. It's necessary to write '\x00'==0 to get something
  2663. that's true only with -std. */
  2664. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2665. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2666. inside strings and character constants. */
  2667. #define FOO(x) 'x'
  2668. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2669. int test (int i, double x);
  2670. struct s1 {int (*f) (int a);};
  2671. struct s2 {int (*f) (double a);};
  2672. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2673. int argc;
  2674. char **argv;
  2675. int
  2676. main ()
  2677. {
  2678. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2679. ;
  2680. return 0;
  2681. }
  2682. _ACEOF
  2683. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2684. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2685. do
  2686. CC="$ac_save_CC $ac_arg"
  2687. if ac_fn_c_try_compile "$LINENO"; then :
  2688. ac_cv_prog_cc_c89=$ac_arg
  2689. fi
  2690. rm -f core conftest.err conftest.$ac_objext
  2691. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2692. done
  2693. rm -f conftest.$ac_ext
  2694. CC=$ac_save_CC
  2695. fi
  2696. # AC_CACHE_VAL
  2697. case "x$ac_cv_prog_cc_c89" in
  2698. x)
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2700. $as_echo "none needed" >&6; } ;;
  2701. xno)
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2703. $as_echo "unsupported" >&6; } ;;
  2704. *)
  2705. CC="$CC $ac_cv_prog_cc_c89"
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2707. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2708. esac
  2709. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2710. fi
  2711. ac_ext=c
  2712. ac_cpp='$CPP $CPPFLAGS'
  2713. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2714. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2715. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2716. ac_ext=c
  2717. ac_cpp='$CPP $CPPFLAGS'
  2718. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2719. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2720. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2722. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2723. # On Suns, sometimes $CPP names a directory.
  2724. if test -n "$CPP" && test -d "$CPP"; then
  2725. CPP=
  2726. fi
  2727. if test -z "$CPP"; then
  2728. if ${ac_cv_prog_CPP+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. # Double quotes because CPP needs to be expanded
  2732. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2733. do
  2734. ac_preproc_ok=false
  2735. for ac_c_preproc_warn_flag in '' yes
  2736. do
  2737. # Use a header file that comes with gcc, so configuring glibc
  2738. # with a fresh cross-compiler works.
  2739. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2740. # <limits.h> exists even on freestanding compilers.
  2741. # On the NeXT, cc -E runs the code through the compiler's parser,
  2742. # not just through cpp. "Syntax error" is here to catch this case.
  2743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h. */
  2745. #ifdef __STDC__
  2746. # include <limits.h>
  2747. #else
  2748. # include <assert.h>
  2749. #endif
  2750. Syntax error
  2751. _ACEOF
  2752. if ac_fn_c_try_cpp "$LINENO"; then :
  2753. else
  2754. # Broken: fails on valid input.
  2755. continue
  2756. fi
  2757. rm -f conftest.err conftest.i conftest.$ac_ext
  2758. # OK, works on sane cases. Now check whether nonexistent headers
  2759. # can be detected and how.
  2760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2761. /* end confdefs.h. */
  2762. #include <ac_nonexistent.h>
  2763. _ACEOF
  2764. if ac_fn_c_try_cpp "$LINENO"; then :
  2765. # Broken: success on invalid input.
  2766. continue
  2767. else
  2768. # Passes both tests.
  2769. ac_preproc_ok=:
  2770. break
  2771. fi
  2772. rm -f conftest.err conftest.i conftest.$ac_ext
  2773. done
  2774. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2775. rm -f conftest.i conftest.err conftest.$ac_ext
  2776. if $ac_preproc_ok; then :
  2777. break
  2778. fi
  2779. done
  2780. ac_cv_prog_CPP=$CPP
  2781. fi
  2782. CPP=$ac_cv_prog_CPP
  2783. else
  2784. ac_cv_prog_CPP=$CPP
  2785. fi
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2787. $as_echo "$CPP" >&6; }
  2788. ac_preproc_ok=false
  2789. for ac_c_preproc_warn_flag in '' yes
  2790. do
  2791. # Use a header file that comes with gcc, so configuring glibc
  2792. # with a fresh cross-compiler works.
  2793. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2794. # <limits.h> exists even on freestanding compilers.
  2795. # On the NeXT, cc -E runs the code through the compiler's parser,
  2796. # not just through cpp. "Syntax error" is here to catch this case.
  2797. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2798. /* end confdefs.h. */
  2799. #ifdef __STDC__
  2800. # include <limits.h>
  2801. #else
  2802. # include <assert.h>
  2803. #endif
  2804. Syntax error
  2805. _ACEOF
  2806. if ac_fn_c_try_cpp "$LINENO"; then :
  2807. else
  2808. # Broken: fails on valid input.
  2809. continue
  2810. fi
  2811. rm -f conftest.err conftest.i conftest.$ac_ext
  2812. # OK, works on sane cases. Now check whether nonexistent headers
  2813. # can be detected and how.
  2814. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2815. /* end confdefs.h. */
  2816. #include <ac_nonexistent.h>
  2817. _ACEOF
  2818. if ac_fn_c_try_cpp "$LINENO"; then :
  2819. # Broken: success on invalid input.
  2820. continue
  2821. else
  2822. # Passes both tests.
  2823. ac_preproc_ok=:
  2824. break
  2825. fi
  2826. rm -f conftest.err conftest.i conftest.$ac_ext
  2827. done
  2828. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2829. rm -f conftest.i conftest.err conftest.$ac_ext
  2830. if $ac_preproc_ok; then :
  2831. else
  2832. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2833. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2834. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2835. See \`config.log' for more details" "$LINENO" 5; }
  2836. fi
  2837. ac_ext=c
  2838. ac_cpp='$CPP $CPPFLAGS'
  2839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2843. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2844. if ${ac_cv_path_GREP+:} false; then :
  2845. $as_echo_n "(cached) " >&6
  2846. else
  2847. if test -z "$GREP"; then
  2848. ac_path_GREP_found=false
  2849. # Loop through the user's path and test for each of PROGNAME-LIST
  2850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2851. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2852. do
  2853. IFS=$as_save_IFS
  2854. test -z "$as_dir" && as_dir=.
  2855. for ac_prog in grep ggrep; do
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2858. as_fn_executable_p "$ac_path_GREP" || continue
  2859. # Check for GNU ac_path_GREP and select it if it is found.
  2860. # Check for GNU $ac_path_GREP
  2861. case `"$ac_path_GREP" --version 2>&1` in
  2862. *GNU*)
  2863. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2864. *)
  2865. ac_count=0
  2866. $as_echo_n 0123456789 >"conftest.in"
  2867. while :
  2868. do
  2869. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2870. mv "conftest.tmp" "conftest.in"
  2871. cp "conftest.in" "conftest.nl"
  2872. $as_echo 'GREP' >> "conftest.nl"
  2873. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2874. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2875. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2876. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2877. # Best one so far, save it but keep looking for a better one
  2878. ac_cv_path_GREP="$ac_path_GREP"
  2879. ac_path_GREP_max=$ac_count
  2880. fi
  2881. # 10*(2^10) chars as input seems more than enough
  2882. test $ac_count -gt 10 && break
  2883. done
  2884. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2885. esac
  2886. $ac_path_GREP_found && break 3
  2887. done
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. if test -z "$ac_cv_path_GREP"; then
  2892. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2893. fi
  2894. else
  2895. ac_cv_path_GREP=$GREP
  2896. fi
  2897. fi
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2899. $as_echo "$ac_cv_path_GREP" >&6; }
  2900. GREP="$ac_cv_path_GREP"
  2901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2902. $as_echo_n "checking for egrep... " >&6; }
  2903. if ${ac_cv_path_EGREP+:} false; then :
  2904. $as_echo_n "(cached) " >&6
  2905. else
  2906. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2907. then ac_cv_path_EGREP="$GREP -E"
  2908. else
  2909. if test -z "$EGREP"; then
  2910. ac_path_EGREP_found=false
  2911. # Loop through the user's path and test for each of PROGNAME-LIST
  2912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2913. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2914. do
  2915. IFS=$as_save_IFS
  2916. test -z "$as_dir" && as_dir=.
  2917. for ac_prog in egrep; do
  2918. for ac_exec_ext in '' $ac_executable_extensions; do
  2919. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2920. as_fn_executable_p "$ac_path_EGREP" || continue
  2921. # Check for GNU ac_path_EGREP and select it if it is found.
  2922. # Check for GNU $ac_path_EGREP
  2923. case `"$ac_path_EGREP" --version 2>&1` in
  2924. *GNU*)
  2925. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2926. *)
  2927. ac_count=0
  2928. $as_echo_n 0123456789 >"conftest.in"
  2929. while :
  2930. do
  2931. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2932. mv "conftest.tmp" "conftest.in"
  2933. cp "conftest.in" "conftest.nl"
  2934. $as_echo 'EGREP' >> "conftest.nl"
  2935. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2936. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2937. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2938. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2939. # Best one so far, save it but keep looking for a better one
  2940. ac_cv_path_EGREP="$ac_path_EGREP"
  2941. ac_path_EGREP_max=$ac_count
  2942. fi
  2943. # 10*(2^10) chars as input seems more than enough
  2944. test $ac_count -gt 10 && break
  2945. done
  2946. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2947. esac
  2948. $ac_path_EGREP_found && break 3
  2949. done
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. if test -z "$ac_cv_path_EGREP"; then
  2954. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2955. fi
  2956. else
  2957. ac_cv_path_EGREP=$EGREP
  2958. fi
  2959. fi
  2960. fi
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  2962. $as_echo "$ac_cv_path_EGREP" >&6; }
  2963. EGREP="$ac_cv_path_EGREP"
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  2965. $as_echo_n "checking for ANSI C header files... " >&6; }
  2966. if ${ac_cv_header_stdc+:} false; then :
  2967. $as_echo_n "(cached) " >&6
  2968. else
  2969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2970. /* end confdefs.h. */
  2971. #include <stdlib.h>
  2972. #include <stdarg.h>
  2973. #include <string.h>
  2974. #include <float.h>
  2975. int
  2976. main ()
  2977. {
  2978. ;
  2979. return 0;
  2980. }
  2981. _ACEOF
  2982. if ac_fn_c_try_compile "$LINENO"; then :
  2983. ac_cv_header_stdc=yes
  2984. else
  2985. ac_cv_header_stdc=no
  2986. fi
  2987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2988. if test $ac_cv_header_stdc = yes; then
  2989. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2990. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2991. /* end confdefs.h. */
  2992. #include <string.h>
  2993. _ACEOF
  2994. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2995. $EGREP "memchr" >/dev/null 2>&1; then :
  2996. else
  2997. ac_cv_header_stdc=no
  2998. fi
  2999. rm -f conftest*
  3000. fi
  3001. if test $ac_cv_header_stdc = yes; then
  3002. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3004. /* end confdefs.h. */
  3005. #include <stdlib.h>
  3006. _ACEOF
  3007. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3008. $EGREP "free" >/dev/null 2>&1; then :
  3009. else
  3010. ac_cv_header_stdc=no
  3011. fi
  3012. rm -f conftest*
  3013. fi
  3014. if test $ac_cv_header_stdc = yes; then
  3015. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3016. if test "$cross_compiling" = yes; then :
  3017. :
  3018. else
  3019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3020. /* end confdefs.h. */
  3021. #include <ctype.h>
  3022. #include <stdlib.h>
  3023. #if ((' ' & 0x0FF) == 0x020)
  3024. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3025. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3026. #else
  3027. # define ISLOWER(c) \
  3028. (('a' <= (c) && (c) <= 'i') \
  3029. || ('j' <= (c) && (c) <= 'r') \
  3030. || ('s' <= (c) && (c) <= 'z'))
  3031. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3032. #endif
  3033. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3034. int
  3035. main ()
  3036. {
  3037. int i;
  3038. for (i = 0; i < 256; i++)
  3039. if (XOR (islower (i), ISLOWER (i))
  3040. || toupper (i) != TOUPPER (i))
  3041. return 2;
  3042. return 0;
  3043. }
  3044. _ACEOF
  3045. if ac_fn_c_try_run "$LINENO"; then :
  3046. else
  3047. ac_cv_header_stdc=no
  3048. fi
  3049. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3050. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3051. fi
  3052. fi
  3053. fi
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3055. $as_echo "$ac_cv_header_stdc" >&6; }
  3056. if test $ac_cv_header_stdc = yes; then
  3057. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3058. fi
  3059. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3060. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3061. inttypes.h stdint.h unistd.h
  3062. do :
  3063. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3064. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3065. "
  3066. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3067. cat >>confdefs.h <<_ACEOF
  3068. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3069. _ACEOF
  3070. fi
  3071. done
  3072. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3073. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3074. MINIX=yes
  3075. else
  3076. MINIX=
  3077. fi
  3078. if test "$MINIX" = yes; then
  3079. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3080. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3081. $as_echo "#define _MINIX 1" >>confdefs.h
  3082. fi
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3084. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3085. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3086. $as_echo_n "(cached) " >&6
  3087. else
  3088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3089. /* end confdefs.h. */
  3090. # define __EXTENSIONS__ 1
  3091. $ac_includes_default
  3092. int
  3093. main ()
  3094. {
  3095. ;
  3096. return 0;
  3097. }
  3098. _ACEOF
  3099. if ac_fn_c_try_compile "$LINENO"; then :
  3100. ac_cv_safe_to_define___extensions__=yes
  3101. else
  3102. ac_cv_safe_to_define___extensions__=no
  3103. fi
  3104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3107. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3108. test $ac_cv_safe_to_define___extensions__ = yes &&
  3109. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3110. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3111. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3112. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3113. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3114. # Initialize Automake
  3115. am__api_version='1.12'
  3116. ac_aux_dir=
  3117. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3118. if test -f "$ac_dir/install-sh"; then
  3119. ac_aux_dir=$ac_dir
  3120. ac_install_sh="$ac_aux_dir/install-sh -c"
  3121. break
  3122. elif test -f "$ac_dir/install.sh"; then
  3123. ac_aux_dir=$ac_dir
  3124. ac_install_sh="$ac_aux_dir/install.sh -c"
  3125. break
  3126. elif test -f "$ac_dir/shtool"; then
  3127. ac_aux_dir=$ac_dir
  3128. ac_install_sh="$ac_aux_dir/shtool install -c"
  3129. break
  3130. fi
  3131. done
  3132. if test -z "$ac_aux_dir"; then
  3133. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3134. fi
  3135. # These three variables are undocumented and unsupported,
  3136. # and are intended to be withdrawn in a future Autoconf release.
  3137. # They can cause serious problems if a builder's source tree is in a directory
  3138. # whose full name contains unusual characters.
  3139. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3140. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3141. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3142. # Find a good install program. We prefer a C program (faster),
  3143. # so one script is as good as another. But avoid the broken or
  3144. # incompatible versions:
  3145. # SysV /etc/install, /usr/sbin/install
  3146. # SunOS /usr/etc/install
  3147. # IRIX /sbin/install
  3148. # AIX /bin/install
  3149. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3150. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3151. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3152. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3153. # OS/2's system install, which has a completely different semantic
  3154. # ./install, which can be erroneously created by make from ./install.sh.
  3155. # Reject install programs that cannot install multiple files.
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3157. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3158. if test -z "$INSTALL"; then
  3159. if ${ac_cv_path_install+:} false; then :
  3160. $as_echo_n "(cached) " >&6
  3161. else
  3162. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3163. for as_dir in $PATH
  3164. do
  3165. IFS=$as_save_IFS
  3166. test -z "$as_dir" && as_dir=.
  3167. # Account for people who put trailing slashes in PATH elements.
  3168. case $as_dir/ in #((
  3169. ./ | .// | /[cC]/* | \
  3170. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3171. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3172. /usr/ucb/* ) ;;
  3173. *)
  3174. # OSF1 and SCO ODT 3.0 have their own names for install.
  3175. # Don't use installbsd from OSF since it installs stuff as root
  3176. # by default.
  3177. for ac_prog in ginstall scoinst install; do
  3178. for ac_exec_ext in '' $ac_executable_extensions; do
  3179. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3180. if test $ac_prog = install &&
  3181. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3182. # AIX install. It has an incompatible calling convention.
  3183. :
  3184. elif test $ac_prog = install &&
  3185. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3186. # program-specific install script used by HP pwplus--don't use.
  3187. :
  3188. else
  3189. rm -rf conftest.one conftest.two conftest.dir
  3190. echo one > conftest.one
  3191. echo two > conftest.two
  3192. mkdir conftest.dir
  3193. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3194. test -s conftest.one && test -s conftest.two &&
  3195. test -s conftest.dir/conftest.one &&
  3196. test -s conftest.dir/conftest.two
  3197. then
  3198. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3199. break 3
  3200. fi
  3201. fi
  3202. fi
  3203. done
  3204. done
  3205. ;;
  3206. esac
  3207. done
  3208. IFS=$as_save_IFS
  3209. rm -rf conftest.one conftest.two conftest.dir
  3210. fi
  3211. if test "${ac_cv_path_install+set}" = set; then
  3212. INSTALL=$ac_cv_path_install
  3213. else
  3214. # As a last resort, use the slow shell script. Don't cache a
  3215. # value for INSTALL within a source directory, because that will
  3216. # break other packages using the cache if that directory is
  3217. # removed, or if the value is a relative name.
  3218. INSTALL=$ac_install_sh
  3219. fi
  3220. fi
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3222. $as_echo "$INSTALL" >&6; }
  3223. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3224. # It thinks the first close brace ends the variable substitution.
  3225. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3226. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3227. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3229. $as_echo_n "checking whether build environment is sane... " >&6; }
  3230. # Reject unsafe characters in $srcdir or the absolute working directory
  3231. # name. Accept space and tab only in the latter.
  3232. am_lf='
  3233. '
  3234. case `pwd` in
  3235. *[\\\"\#\$\&\'\`$am_lf]*)
  3236. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3237. esac
  3238. case $srcdir in
  3239. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3240. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3241. esac
  3242. # Do 'set' in a subshell so we don't clobber the current shell's
  3243. # arguments. Must try -L first in case configure is actually a
  3244. # symlink; some systems play weird games with the mod time of symlinks
  3245. # (eg FreeBSD returns the mod time of the symlink's containing
  3246. # directory).
  3247. if (
  3248. am_has_slept=no
  3249. for am_try in 1 2; do
  3250. echo "timestamp, slept: $am_has_slept" > conftest.file
  3251. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3252. if test "$*" = "X"; then
  3253. # -L didn't work.
  3254. set X `ls -t "$srcdir/configure" conftest.file`
  3255. fi
  3256. if test "$*" != "X $srcdir/configure conftest.file" \
  3257. && test "$*" != "X conftest.file $srcdir/configure"; then
  3258. # If neither matched, then we have a broken ls. This can happen
  3259. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3260. # broken ls alias from the environment. This has actually
  3261. # happened. Such a system could not be considered "sane".
  3262. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3263. alias in your environment" "$LINENO" 5
  3264. fi
  3265. if test "$2" = conftest.file || test $am_try -eq 2; then
  3266. break
  3267. fi
  3268. # Just in case.
  3269. sleep 1
  3270. am_has_slept=yes
  3271. done
  3272. test "$2" = conftest.file
  3273. )
  3274. then
  3275. # Ok.
  3276. :
  3277. else
  3278. as_fn_error $? "newly created file is older than distributed files!
  3279. Check your system clock" "$LINENO" 5
  3280. fi
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3282. $as_echo "yes" >&6; }
  3283. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3284. # generated files are strictly newer.
  3285. am_sleep_pid=
  3286. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3287. ( sleep 1 ) &
  3288. am_sleep_pid=$!
  3289. fi
  3290. rm -f conftest.file
  3291. test "$program_prefix" != NONE &&
  3292. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3293. # Use a double $ so make ignores it.
  3294. test "$program_suffix" != NONE &&
  3295. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3296. # Double any \ or $.
  3297. # By default was `s,x,x', remove it if useless.
  3298. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3299. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3300. # expand $ac_aux_dir to an absolute path
  3301. am_aux_dir=`cd $ac_aux_dir && pwd`
  3302. if test x"${MISSING+set}" != xset; then
  3303. case $am_aux_dir in
  3304. *\ * | *\ *)
  3305. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3306. *)
  3307. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3308. esac
  3309. fi
  3310. # Use eval to expand $SHELL
  3311. if eval "$MISSING --run true"; then
  3312. am_missing_run="$MISSING --run "
  3313. else
  3314. am_missing_run=
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3316. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3317. fi
  3318. if test x"${install_sh}" != xset; then
  3319. case $am_aux_dir in
  3320. *\ * | *\ *)
  3321. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3322. *)
  3323. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3324. esac
  3325. fi
  3326. # Installed binaries are usually stripped using 'strip' when the user
  3327. # run "make install-strip". However 'strip' might not be the right
  3328. # tool to use in cross-compilation environments, therefore Automake
  3329. # will honor the 'STRIP' environment variable to overrule this program.
  3330. if test "$cross_compiling" != no; then
  3331. if test -n "$ac_tool_prefix"; then
  3332. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3333. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3335. $as_echo_n "checking for $ac_word... " >&6; }
  3336. if ${ac_cv_prog_STRIP+:} false; then :
  3337. $as_echo_n "(cached) " >&6
  3338. else
  3339. if test -n "$STRIP"; then
  3340. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3341. else
  3342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3343. for as_dir in $PATH
  3344. do
  3345. IFS=$as_save_IFS
  3346. test -z "$as_dir" && as_dir=.
  3347. for ac_exec_ext in '' $ac_executable_extensions; do
  3348. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3349. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3351. break 2
  3352. fi
  3353. done
  3354. done
  3355. IFS=$as_save_IFS
  3356. fi
  3357. fi
  3358. STRIP=$ac_cv_prog_STRIP
  3359. if test -n "$STRIP"; then
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3361. $as_echo "$STRIP" >&6; }
  3362. else
  3363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3364. $as_echo "no" >&6; }
  3365. fi
  3366. fi
  3367. if test -z "$ac_cv_prog_STRIP"; then
  3368. ac_ct_STRIP=$STRIP
  3369. # Extract the first word of "strip", so it can be a program name with args.
  3370. set dummy strip; ac_word=$2
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3372. $as_echo_n "checking for $ac_word... " >&6; }
  3373. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3374. $as_echo_n "(cached) " >&6
  3375. else
  3376. if test -n "$ac_ct_STRIP"; then
  3377. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. test -z "$as_dir" && as_dir=.
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3386. ac_cv_prog_ac_ct_STRIP="strip"
  3387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3388. break 2
  3389. fi
  3390. done
  3391. done
  3392. IFS=$as_save_IFS
  3393. fi
  3394. fi
  3395. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3396. if test -n "$ac_ct_STRIP"; then
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3398. $as_echo "$ac_ct_STRIP" >&6; }
  3399. else
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3401. $as_echo "no" >&6; }
  3402. fi
  3403. if test "x$ac_ct_STRIP" = x; then
  3404. STRIP=":"
  3405. else
  3406. case $cross_compiling:$ac_tool_warned in
  3407. yes:)
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3409. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3410. ac_tool_warned=yes ;;
  3411. esac
  3412. STRIP=$ac_ct_STRIP
  3413. fi
  3414. else
  3415. STRIP="$ac_cv_prog_STRIP"
  3416. fi
  3417. fi
  3418. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3420. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3421. if test -z "$MKDIR_P"; then
  3422. if ${ac_cv_path_mkdir+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3426. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3427. do
  3428. IFS=$as_save_IFS
  3429. test -z "$as_dir" && as_dir=.
  3430. for ac_prog in mkdir gmkdir; do
  3431. for ac_exec_ext in '' $ac_executable_extensions; do
  3432. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3433. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3434. 'mkdir (GNU coreutils) '* | \
  3435. 'mkdir (coreutils) '* | \
  3436. 'mkdir (fileutils) '4.1*)
  3437. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3438. break 3;;
  3439. esac
  3440. done
  3441. done
  3442. done
  3443. IFS=$as_save_IFS
  3444. fi
  3445. test -d ./--version && rmdir ./--version
  3446. if test "${ac_cv_path_mkdir+set}" = set; then
  3447. MKDIR_P="$ac_cv_path_mkdir -p"
  3448. else
  3449. # As a last resort, use the slow shell script. Don't cache a
  3450. # value for MKDIR_P within a source directory, because that will
  3451. # break other packages using the cache if that directory is
  3452. # removed, or if the value is a relative name.
  3453. MKDIR_P="$ac_install_sh -d"
  3454. fi
  3455. fi
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3457. $as_echo "$MKDIR_P" >&6; }
  3458. for ac_prog in gawk mawk nawk awk
  3459. do
  3460. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3461. set dummy $ac_prog; ac_word=$2
  3462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3463. $as_echo_n "checking for $ac_word... " >&6; }
  3464. if ${ac_cv_prog_AWK+:} false; then :
  3465. $as_echo_n "(cached) " >&6
  3466. else
  3467. if test -n "$AWK"; then
  3468. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3469. else
  3470. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3471. for as_dir in $PATH
  3472. do
  3473. IFS=$as_save_IFS
  3474. test -z "$as_dir" && as_dir=.
  3475. for ac_exec_ext in '' $ac_executable_extensions; do
  3476. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3477. ac_cv_prog_AWK="$ac_prog"
  3478. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3479. break 2
  3480. fi
  3481. done
  3482. done
  3483. IFS=$as_save_IFS
  3484. fi
  3485. fi
  3486. AWK=$ac_cv_prog_AWK
  3487. if test -n "$AWK"; then
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3489. $as_echo "$AWK" >&6; }
  3490. else
  3491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3492. $as_echo "no" >&6; }
  3493. fi
  3494. test -n "$AWK" && break
  3495. done
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3497. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3498. set x ${MAKE-make}
  3499. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3500. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3501. $as_echo_n "(cached) " >&6
  3502. else
  3503. cat >conftest.make <<\_ACEOF
  3504. SHELL = /bin/sh
  3505. all:
  3506. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3507. _ACEOF
  3508. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3509. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3510. *@@@%%%=?*=@@@%%%*)
  3511. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3512. *)
  3513. eval ac_cv_prog_make_${ac_make}_set=no;;
  3514. esac
  3515. rm -f conftest.make
  3516. fi
  3517. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3519. $as_echo "yes" >&6; }
  3520. SET_MAKE=
  3521. else
  3522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3523. $as_echo "no" >&6; }
  3524. SET_MAKE="MAKE=${MAKE-make}"
  3525. fi
  3526. rm -rf .tst 2>/dev/null
  3527. mkdir .tst 2>/dev/null
  3528. if test -d .tst; then
  3529. am__leading_dot=.
  3530. else
  3531. am__leading_dot=_
  3532. fi
  3533. rmdir .tst 2>/dev/null
  3534. DEPDIR="${am__leading_dot}deps"
  3535. ac_config_commands="$ac_config_commands depfiles"
  3536. am_make=${MAKE-make}
  3537. cat > confinc << 'END'
  3538. am__doit:
  3539. @echo this is the am__doit target
  3540. .PHONY: am__doit
  3541. END
  3542. # If we don't find an include directive, just comment out the code.
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3544. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3545. am__include="#"
  3546. am__quote=
  3547. _am_result=none
  3548. # First try GNU make style include.
  3549. echo "include confinc" > confmf
  3550. # Ignore all kinds of additional output from 'make'.
  3551. case `$am_make -s -f confmf 2> /dev/null` in #(
  3552. *the\ am__doit\ target*)
  3553. am__include=include
  3554. am__quote=
  3555. _am_result=GNU
  3556. ;;
  3557. esac
  3558. # Now try BSD make style include.
  3559. if test "$am__include" = "#"; then
  3560. echo '.include "confinc"' > confmf
  3561. case `$am_make -s -f confmf 2> /dev/null` in #(
  3562. *the\ am__doit\ target*)
  3563. am__include=.include
  3564. am__quote="\""
  3565. _am_result=BSD
  3566. ;;
  3567. esac
  3568. fi
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3570. $as_echo "$_am_result" >&6; }
  3571. rm -f confinc confmf
  3572. # Check whether --enable-dependency-tracking was given.
  3573. if test "${enable_dependency_tracking+set}" = set; then :
  3574. enableval=$enable_dependency_tracking;
  3575. fi
  3576. if test "x$enable_dependency_tracking" != xno; then
  3577. am_depcomp="$ac_aux_dir/depcomp"
  3578. AMDEPBACKSLASH='\'
  3579. am__nodep='_no'
  3580. fi
  3581. if test "x$enable_dependency_tracking" != xno; then
  3582. AMDEP_TRUE=
  3583. AMDEP_FALSE='#'
  3584. else
  3585. AMDEP_TRUE='#'
  3586. AMDEP_FALSE=
  3587. fi
  3588. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3589. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3590. # is not polluted with repeated "-I."
  3591. am__isrc=' -I$(srcdir)'
  3592. # test to see if srcdir already configured
  3593. if test -f $srcdir/config.status; then
  3594. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3595. fi
  3596. fi
  3597. # test whether we have cygpath
  3598. if test -z "$CYGPATH_W"; then
  3599. if (cygpath --version) >/dev/null 2>/dev/null; then
  3600. CYGPATH_W='cygpath -w'
  3601. else
  3602. CYGPATH_W=echo
  3603. fi
  3604. fi
  3605. # Define the identity of the package.
  3606. PACKAGE='xev'
  3607. VERSION='1.2.2'
  3608. cat >>confdefs.h <<_ACEOF
  3609. #define PACKAGE "$PACKAGE"
  3610. _ACEOF
  3611. cat >>confdefs.h <<_ACEOF
  3612. #define VERSION "$VERSION"
  3613. _ACEOF
  3614. # Some tools Automake needs.
  3615. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3616. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3617. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3618. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3619. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3620. # For better backward compatibility. To be removed once Automake 1.9.x
  3621. # dies out for good. For more background, see:
  3622. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3623. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3624. mkdir_p='$(MKDIR_P)'
  3625. # We need awk for the "check" target. The system "awk" is bad on
  3626. # some platforms.
  3627. # Always define AMTAR for backward compatibility. Yes, it's still used
  3628. # in the wild :-( We should find a proper way to deprecate it ...
  3629. AMTAR='$${TAR-tar}'
  3630. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3631. depcc="$CC" am_compiler_list=
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3633. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3634. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3635. $as_echo_n "(cached) " >&6
  3636. else
  3637. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3638. # We make a subdir and do the tests there. Otherwise we can end up
  3639. # making bogus files that we don't know about and never remove. For
  3640. # instance it was reported that on HP-UX the gcc test will end up
  3641. # making a dummy file named 'D' -- because '-MD' means "put the output
  3642. # in D".
  3643. rm -rf conftest.dir
  3644. mkdir conftest.dir
  3645. # Copy depcomp to subdir because otherwise we won't find it if we're
  3646. # using a relative directory.
  3647. cp "$am_depcomp" conftest.dir
  3648. cd conftest.dir
  3649. # We will build objects and dependencies in a subdirectory because
  3650. # it helps to detect inapplicable dependency modes. For instance
  3651. # both Tru64's cc and ICC support -MD to output dependencies as a
  3652. # side effect of compilation, but ICC will put the dependencies in
  3653. # the current directory while Tru64 will put them in the object
  3654. # directory.
  3655. mkdir sub
  3656. am_cv_CC_dependencies_compiler_type=none
  3657. if test "$am_compiler_list" = ""; then
  3658. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3659. fi
  3660. am__universal=false
  3661. case " $depcc " in #(
  3662. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3663. esac
  3664. for depmode in $am_compiler_list; do
  3665. # Setup a source with many dependencies, because some compilers
  3666. # like to wrap large dependency lists on column 80 (with \), and
  3667. # we should not choose a depcomp mode which is confused by this.
  3668. #
  3669. # We need to recreate these files for each test, as the compiler may
  3670. # overwrite some of them when testing with obscure command lines.
  3671. # This happens at least with the AIX C compiler.
  3672. : > sub/conftest.c
  3673. for i in 1 2 3 4 5 6; do
  3674. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3675. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3676. # Solaris 10 /bin/sh.
  3677. echo '/* dummy */' > sub/conftst$i.h
  3678. done
  3679. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3680. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3681. # mode. It turns out that the SunPro C++ compiler does not properly
  3682. # handle '-M -o', and we need to detect this. Also, some Intel
  3683. # versions had trouble with output in subdirs.
  3684. am__obj=sub/conftest.${OBJEXT-o}
  3685. am__minus_obj="-o $am__obj"
  3686. case $depmode in
  3687. gcc)
  3688. # This depmode causes a compiler race in universal mode.
  3689. test "$am__universal" = false || continue
  3690. ;;
  3691. nosideeffect)
  3692. # After this tag, mechanisms are not by side-effect, so they'll
  3693. # only be used when explicitly requested.
  3694. if test "x$enable_dependency_tracking" = xyes; then
  3695. continue
  3696. else
  3697. break
  3698. fi
  3699. ;;
  3700. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3701. # This compiler won't grok '-c -o', but also, the minuso test has
  3702. # not run yet. These depmodes are late enough in the game, and
  3703. # so weak that their functioning should not be impacted.
  3704. am__obj=conftest.${OBJEXT-o}
  3705. am__minus_obj=
  3706. ;;
  3707. none) break ;;
  3708. esac
  3709. if depmode=$depmode \
  3710. source=sub/conftest.c object=$am__obj \
  3711. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3712. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3713. >/dev/null 2>conftest.err &&
  3714. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3715. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3716. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3717. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3718. # icc doesn't choke on unknown options, it will just issue warnings
  3719. # or remarks (even with -Werror). So we grep stderr for any message
  3720. # that says an option was ignored or not supported.
  3721. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3722. # icc: Command line warning: ignoring option '-M'; no argument required
  3723. # The diagnosis changed in icc 8.0:
  3724. # icc: Command line remark: option '-MP' not supported
  3725. if (grep 'ignoring option' conftest.err ||
  3726. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3727. am_cv_CC_dependencies_compiler_type=$depmode
  3728. break
  3729. fi
  3730. fi
  3731. done
  3732. cd ..
  3733. rm -rf conftest.dir
  3734. else
  3735. am_cv_CC_dependencies_compiler_type=none
  3736. fi
  3737. fi
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3739. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3740. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3741. if
  3742. test "x$enable_dependency_tracking" != xno \
  3743. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3744. am__fastdepCC_TRUE=
  3745. am__fastdepCC_FALSE='#'
  3746. else
  3747. am__fastdepCC_TRUE='#'
  3748. am__fastdepCC_FALSE=
  3749. fi
  3750. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  3751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3752. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3753. if ${ac_cv_prog_cc_c99+:} false; then :
  3754. $as_echo_n "(cached) " >&6
  3755. else
  3756. ac_cv_prog_cc_c99=no
  3757. ac_save_CC=$CC
  3758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3759. /* end confdefs.h. */
  3760. #include <stdarg.h>
  3761. #include <stdbool.h>
  3762. #include <stdlib.h>
  3763. #include <wchar.h>
  3764. #include <stdio.h>
  3765. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3766. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3767. #define showlist(...) puts (#__VA_ARGS__)
  3768. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3769. static void
  3770. test_varargs_macros (void)
  3771. {
  3772. int x = 1234;
  3773. int y = 5678;
  3774. debug ("Flag");
  3775. debug ("X = %d\n", x);
  3776. showlist (The first, second, and third items.);
  3777. report (x>y, "x is %d but y is %d", x, y);
  3778. }
  3779. // Check long long types.
  3780. #define BIG64 18446744073709551615ull
  3781. #define BIG32 4294967295ul
  3782. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3783. #if !BIG_OK
  3784. your preprocessor is broken;
  3785. #endif
  3786. #if BIG_OK
  3787. #else
  3788. your preprocessor is broken;
  3789. #endif
  3790. static long long int bignum = -9223372036854775807LL;
  3791. static unsigned long long int ubignum = BIG64;
  3792. struct incomplete_array
  3793. {
  3794. int datasize;
  3795. double data[];
  3796. };
  3797. struct named_init {
  3798. int number;
  3799. const wchar_t *name;
  3800. double average;
  3801. };
  3802. typedef const char *ccp;
  3803. static inline int
  3804. test_restrict (ccp restrict text)
  3805. {
  3806. // See if C++-style comments work.
  3807. // Iterate through items via the restricted pointer.
  3808. // Also check for declarations in for loops.
  3809. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3810. continue;
  3811. return 0;
  3812. }
  3813. // Check varargs and va_copy.
  3814. static void
  3815. test_varargs (const char *format, ...)
  3816. {
  3817. va_list args;
  3818. va_start (args, format);
  3819. va_list args_copy;
  3820. va_copy (args_copy, args);
  3821. const char *str;
  3822. int number;
  3823. float fnumber;
  3824. while (*format)
  3825. {
  3826. switch (*format++)
  3827. {
  3828. case 's': // string
  3829. str = va_arg (args_copy, const char *);
  3830. break;
  3831. case 'd': // int
  3832. number = va_arg (args_copy, int);
  3833. break;
  3834. case 'f': // float
  3835. fnumber = va_arg (args_copy, double);
  3836. break;
  3837. default:
  3838. break;
  3839. }
  3840. }
  3841. va_end (args_copy);
  3842. va_end (args);
  3843. }
  3844. int
  3845. main ()
  3846. {
  3847. // Check bool.
  3848. _Bool success = false;
  3849. // Check restrict.
  3850. if (test_restrict ("String literal") == 0)
  3851. success = true;
  3852. char *restrict newvar = "Another string";
  3853. // Check varargs.
  3854. test_varargs ("s, d' f .", "string", 65, 34.234);
  3855. test_varargs_macros ();
  3856. // Check flexible array members.
  3857. struct incomplete_array *ia =
  3858. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3859. ia->datasize = 10;
  3860. for (int i = 0; i < ia->datasize; ++i)
  3861. ia->data[i] = i * 1.234;
  3862. // Check named initializers.
  3863. struct named_init ni = {
  3864. .number = 34,
  3865. .name = L"Test wide string",
  3866. .average = 543.34343,
  3867. };
  3868. ni.number = 58;
  3869. int dynamic_array[ni.number];
  3870. dynamic_array[ni.number - 1] = 543;
  3871. // work around unused variable warnings
  3872. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3873. || dynamic_array[ni.number - 1] != 543);
  3874. ;
  3875. return 0;
  3876. }
  3877. _ACEOF
  3878. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3879. do
  3880. CC="$ac_save_CC $ac_arg"
  3881. if ac_fn_c_try_compile "$LINENO"; then :
  3882. ac_cv_prog_cc_c99=$ac_arg
  3883. fi
  3884. rm -f core conftest.err conftest.$ac_objext
  3885. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3886. done
  3887. rm -f conftest.$ac_ext
  3888. CC=$ac_save_CC
  3889. fi
  3890. # AC_CACHE_VAL
  3891. case "x$ac_cv_prog_cc_c99" in
  3892. x)
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3894. $as_echo "none needed" >&6; } ;;
  3895. xno)
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3897. $as_echo "unsupported" >&6; } ;;
  3898. *)
  3899. CC="$CC $ac_cv_prog_cc_c99"
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3901. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3902. esac
  3903. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3904. fi
  3905. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3906. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3907. CLANGCC="yes"
  3908. else
  3909. CLANGCC="no"
  3910. fi
  3911. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3912. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3913. INTELCC="yes"
  3914. else
  3915. INTELCC="no"
  3916. fi
  3917. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3918. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3919. SUNCC="yes"
  3920. else
  3921. SUNCC="no"
  3922. fi
  3923. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3924. if test -n "$ac_tool_prefix"; then
  3925. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3926. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3928. $as_echo_n "checking for $ac_word... " >&6; }
  3929. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. case $PKG_CONFIG in
  3933. [\\/]* | ?:[\\/]*)
  3934. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3935. ;;
  3936. *)
  3937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3938. for as_dir in $PATH
  3939. do
  3940. IFS=$as_save_IFS
  3941. test -z "$as_dir" && as_dir=.
  3942. for ac_exec_ext in '' $ac_executable_extensions; do
  3943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3944. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3946. break 2
  3947. fi
  3948. done
  3949. done
  3950. IFS=$as_save_IFS
  3951. ;;
  3952. esac
  3953. fi
  3954. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3955. if test -n "$PKG_CONFIG"; then
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3957. $as_echo "$PKG_CONFIG" >&6; }
  3958. else
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3960. $as_echo "no" >&6; }
  3961. fi
  3962. fi
  3963. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3964. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3965. # Extract the first word of "pkg-config", so it can be a program name with args.
  3966. set dummy pkg-config; ac_word=$2
  3967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3968. $as_echo_n "checking for $ac_word... " >&6; }
  3969. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3970. $as_echo_n "(cached) " >&6
  3971. else
  3972. case $ac_pt_PKG_CONFIG in
  3973. [\\/]* | ?:[\\/]*)
  3974. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3975. ;;
  3976. *)
  3977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3978. for as_dir in $PATH
  3979. do
  3980. IFS=$as_save_IFS
  3981. test -z "$as_dir" && as_dir=.
  3982. for ac_exec_ext in '' $ac_executable_extensions; do
  3983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3984. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3986. break 2
  3987. fi
  3988. done
  3989. done
  3990. IFS=$as_save_IFS
  3991. ;;
  3992. esac
  3993. fi
  3994. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3995. if test -n "$ac_pt_PKG_CONFIG"; then
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3997. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3998. else
  3999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4000. $as_echo "no" >&6; }
  4001. fi
  4002. if test "x$ac_pt_PKG_CONFIG" = x; then
  4003. PKG_CONFIG=""
  4004. else
  4005. case $cross_compiling:$ac_tool_warned in
  4006. yes:)
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4008. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4009. ac_tool_warned=yes ;;
  4010. esac
  4011. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4012. fi
  4013. else
  4014. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4015. fi
  4016. fi
  4017. if test -n "$PKG_CONFIG"; then
  4018. _pkg_min_version=0.9.0
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4020. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4021. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4023. $as_echo "yes" >&6; }
  4024. else
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4026. $as_echo "no" >&6; }
  4027. PKG_CONFIG=""
  4028. fi
  4029. fi
  4030. # Make sure we can run config.sub.
  4031. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4032. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4034. $as_echo_n "checking build system type... " >&6; }
  4035. if ${ac_cv_build+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. ac_build_alias=$build_alias
  4039. test "x$ac_build_alias" = x &&
  4040. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4041. test "x$ac_build_alias" = x &&
  4042. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4043. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4044. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4045. fi
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4047. $as_echo "$ac_cv_build" >&6; }
  4048. case $ac_cv_build in
  4049. *-*-*) ;;
  4050. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4051. esac
  4052. build=$ac_cv_build
  4053. ac_save_IFS=$IFS; IFS='-'
  4054. set x $ac_cv_build
  4055. shift
  4056. build_cpu=$1
  4057. build_vendor=$2
  4058. shift; shift
  4059. # Remember, the first character of IFS is used to create $*,
  4060. # except with old shells:
  4061. build_os=$*
  4062. IFS=$ac_save_IFS
  4063. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4065. $as_echo_n "checking host system type... " >&6; }
  4066. if ${ac_cv_host+:} false; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. if test "x$host_alias" = x; then
  4070. ac_cv_host=$ac_cv_build
  4071. else
  4072. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4073. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4074. fi
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4077. $as_echo "$ac_cv_host" >&6; }
  4078. case $ac_cv_host in
  4079. *-*-*) ;;
  4080. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4081. esac
  4082. host=$ac_cv_host
  4083. ac_save_IFS=$IFS; IFS='-'
  4084. set x $ac_cv_host
  4085. shift
  4086. host_cpu=$1
  4087. host_vendor=$2
  4088. shift; shift
  4089. # Remember, the first character of IFS is used to create $*,
  4090. # except with old shells:
  4091. host_os=$*
  4092. IFS=$ac_save_IFS
  4093. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4095. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4096. if ${ac_cv_path_SED+:} false; then :
  4097. $as_echo_n "(cached) " >&6
  4098. else
  4099. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4100. for ac_i in 1 2 3 4 5 6 7; do
  4101. ac_script="$ac_script$as_nl$ac_script"
  4102. done
  4103. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4104. { ac_script=; unset ac_script;}
  4105. if test -z "$SED"; then
  4106. ac_path_SED_found=false
  4107. # Loop through the user's path and test for each of PROGNAME-LIST
  4108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4109. for as_dir in $PATH
  4110. do
  4111. IFS=$as_save_IFS
  4112. test -z "$as_dir" && as_dir=.
  4113. for ac_prog in sed gsed; do
  4114. for ac_exec_ext in '' $ac_executable_extensions; do
  4115. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4116. as_fn_executable_p "$ac_path_SED" || continue
  4117. # Check for GNU ac_path_SED and select it if it is found.
  4118. # Check for GNU $ac_path_SED
  4119. case `"$ac_path_SED" --version 2>&1` in
  4120. *GNU*)
  4121. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4122. *)
  4123. ac_count=0
  4124. $as_echo_n 0123456789 >"conftest.in"
  4125. while :
  4126. do
  4127. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4128. mv "conftest.tmp" "conftest.in"
  4129. cp "conftest.in" "conftest.nl"
  4130. $as_echo '' >> "conftest.nl"
  4131. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4132. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4133. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4134. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4135. # Best one so far, save it but keep looking for a better one
  4136. ac_cv_path_SED="$ac_path_SED"
  4137. ac_path_SED_max=$ac_count
  4138. fi
  4139. # 10*(2^10) chars as input seems more than enough
  4140. test $ac_count -gt 10 && break
  4141. done
  4142. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4143. esac
  4144. $ac_path_SED_found && break 3
  4145. done
  4146. done
  4147. done
  4148. IFS=$as_save_IFS
  4149. if test -z "$ac_cv_path_SED"; then
  4150. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4151. fi
  4152. else
  4153. ac_cv_path_SED=$SED
  4154. fi
  4155. fi
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4157. $as_echo "$ac_cv_path_SED" >&6; }
  4158. SED="$ac_cv_path_SED"
  4159. rm -f conftest.sed
  4160. # Check whether --enable-selective-werror was given.
  4161. if test "${enable_selective_werror+set}" = set; then :
  4162. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4163. else
  4164. SELECTIVE_WERROR=yes
  4165. fi
  4166. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4167. if test "x$SUNCC" = "xyes"; then
  4168. BASE_CFLAGS="-v"
  4169. else
  4170. BASE_CFLAGS=""
  4171. fi
  4172. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4173. xorg_testset_save_CFLAGS="$CFLAGS"
  4174. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4175. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4177. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4178. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. else
  4181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4182. /* end confdefs.h. */
  4183. int i;
  4184. _ACEOF
  4185. if ac_fn_c_try_compile "$LINENO"; then :
  4186. xorg_cv_cc_flag_unknown_warning_option=yes
  4187. else
  4188. xorg_cv_cc_flag_unknown_warning_option=no
  4189. fi
  4190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4191. fi
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4193. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4194. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4195. CFLAGS="$xorg_testset_save_CFLAGS"
  4196. fi
  4197. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4198. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4200. fi
  4201. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4203. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4204. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4205. $as_echo_n "(cached) " >&6
  4206. else
  4207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4208. /* end confdefs.h. */
  4209. int i;
  4210. _ACEOF
  4211. if ac_fn_c_try_compile "$LINENO"; then :
  4212. xorg_cv_cc_flag_unused_command_line_argument=yes
  4213. else
  4214. xorg_cv_cc_flag_unused_command_line_argument=no
  4215. fi
  4216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4217. fi
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4219. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4220. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4221. CFLAGS="$xorg_testset_save_CFLAGS"
  4222. fi
  4223. found="no"
  4224. if test $found = "no" ; then
  4225. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4226. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4227. fi
  4228. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4229. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4230. fi
  4231. CFLAGS="$CFLAGS -Wall"
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4233. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4234. cacheid=xorg_cv_cc_flag__Wall
  4235. if eval \${$cacheid+:} false; then :
  4236. $as_echo_n "(cached) " >&6
  4237. else
  4238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4239. /* end confdefs.h. */
  4240. int i;
  4241. int
  4242. main ()
  4243. {
  4244. ;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. if ac_fn_c_try_link "$LINENO"; then :
  4249. eval $cacheid=yes
  4250. else
  4251. eval $cacheid=no
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext \
  4254. conftest$ac_exeext conftest.$ac_ext
  4255. fi
  4256. CFLAGS="$xorg_testset_save_CFLAGS"
  4257. eval supported=\$$cacheid
  4258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4259. $as_echo "$supported" >&6; }
  4260. if test "$supported" = "yes" ; then
  4261. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4262. found="yes"
  4263. fi
  4264. fi
  4265. xorg_testset_save_CFLAGS="$CFLAGS"
  4266. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4267. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4269. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4270. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4274. /* end confdefs.h. */
  4275. int i;
  4276. _ACEOF
  4277. if ac_fn_c_try_compile "$LINENO"; then :
  4278. xorg_cv_cc_flag_unknown_warning_option=yes
  4279. else
  4280. xorg_cv_cc_flag_unknown_warning_option=no
  4281. fi
  4282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4283. fi
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4285. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4286. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4287. CFLAGS="$xorg_testset_save_CFLAGS"
  4288. fi
  4289. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4290. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4291. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4292. fi
  4293. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4295. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4296. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4297. $as_echo_n "(cached) " >&6
  4298. else
  4299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4300. /* end confdefs.h. */
  4301. int i;
  4302. _ACEOF
  4303. if ac_fn_c_try_compile "$LINENO"; then :
  4304. xorg_cv_cc_flag_unused_command_line_argument=yes
  4305. else
  4306. xorg_cv_cc_flag_unused_command_line_argument=no
  4307. fi
  4308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4309. fi
  4310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4311. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4312. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4313. CFLAGS="$xorg_testset_save_CFLAGS"
  4314. fi
  4315. found="no"
  4316. if test $found = "no" ; then
  4317. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4318. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4319. fi
  4320. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4321. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4322. fi
  4323. CFLAGS="$CFLAGS -Wpointer-arith"
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4325. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4326. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4327. if eval \${$cacheid+:} false; then :
  4328. $as_echo_n "(cached) " >&6
  4329. else
  4330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end confdefs.h. */
  4332. int i;
  4333. int
  4334. main ()
  4335. {
  4336. ;
  4337. return 0;
  4338. }
  4339. _ACEOF
  4340. if ac_fn_c_try_link "$LINENO"; then :
  4341. eval $cacheid=yes
  4342. else
  4343. eval $cacheid=no
  4344. fi
  4345. rm -f core conftest.err conftest.$ac_objext \
  4346. conftest$ac_exeext conftest.$ac_ext
  4347. fi
  4348. CFLAGS="$xorg_testset_save_CFLAGS"
  4349. eval supported=\$$cacheid
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4351. $as_echo "$supported" >&6; }
  4352. if test "$supported" = "yes" ; then
  4353. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4354. found="yes"
  4355. fi
  4356. fi
  4357. xorg_testset_save_CFLAGS="$CFLAGS"
  4358. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4359. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4361. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4362. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4363. $as_echo_n "(cached) " >&6
  4364. else
  4365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4366. /* end confdefs.h. */
  4367. int i;
  4368. _ACEOF
  4369. if ac_fn_c_try_compile "$LINENO"; then :
  4370. xorg_cv_cc_flag_unknown_warning_option=yes
  4371. else
  4372. xorg_cv_cc_flag_unknown_warning_option=no
  4373. fi
  4374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4377. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4378. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4379. CFLAGS="$xorg_testset_save_CFLAGS"
  4380. fi
  4381. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4382. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4384. fi
  4385. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4387. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4388. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4389. $as_echo_n "(cached) " >&6
  4390. else
  4391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4392. /* end confdefs.h. */
  4393. int i;
  4394. _ACEOF
  4395. if ac_fn_c_try_compile "$LINENO"; then :
  4396. xorg_cv_cc_flag_unused_command_line_argument=yes
  4397. else
  4398. xorg_cv_cc_flag_unused_command_line_argument=no
  4399. fi
  4400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4401. fi
  4402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4403. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4404. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4405. CFLAGS="$xorg_testset_save_CFLAGS"
  4406. fi
  4407. found="no"
  4408. if test $found = "no" ; then
  4409. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4410. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4411. fi
  4412. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4413. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4414. fi
  4415. CFLAGS="$CFLAGS -Wmissing-declarations"
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4417. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4418. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4419. if eval \${$cacheid+:} false; then :
  4420. $as_echo_n "(cached) " >&6
  4421. else
  4422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4423. /* end confdefs.h. */
  4424. int i;
  4425. int
  4426. main ()
  4427. {
  4428. ;
  4429. return 0;
  4430. }
  4431. _ACEOF
  4432. if ac_fn_c_try_link "$LINENO"; then :
  4433. eval $cacheid=yes
  4434. else
  4435. eval $cacheid=no
  4436. fi
  4437. rm -f core conftest.err conftest.$ac_objext \
  4438. conftest$ac_exeext conftest.$ac_ext
  4439. fi
  4440. CFLAGS="$xorg_testset_save_CFLAGS"
  4441. eval supported=\$$cacheid
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4443. $as_echo "$supported" >&6; }
  4444. if test "$supported" = "yes" ; then
  4445. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4446. found="yes"
  4447. fi
  4448. fi
  4449. xorg_testset_save_CFLAGS="$CFLAGS"
  4450. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4451. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4453. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4454. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4455. $as_echo_n "(cached) " >&6
  4456. else
  4457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4458. /* end confdefs.h. */
  4459. int i;
  4460. _ACEOF
  4461. if ac_fn_c_try_compile "$LINENO"; then :
  4462. xorg_cv_cc_flag_unknown_warning_option=yes
  4463. else
  4464. xorg_cv_cc_flag_unknown_warning_option=no
  4465. fi
  4466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4467. fi
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4469. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4470. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4471. CFLAGS="$xorg_testset_save_CFLAGS"
  4472. fi
  4473. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4474. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4475. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4476. fi
  4477. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4479. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4480. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4484. /* end confdefs.h. */
  4485. int i;
  4486. _ACEOF
  4487. if ac_fn_c_try_compile "$LINENO"; then :
  4488. xorg_cv_cc_flag_unused_command_line_argument=yes
  4489. else
  4490. xorg_cv_cc_flag_unused_command_line_argument=no
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4493. fi
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4495. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4496. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4497. CFLAGS="$xorg_testset_save_CFLAGS"
  4498. fi
  4499. found="no"
  4500. if test $found = "no" ; then
  4501. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4503. fi
  4504. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4505. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4506. fi
  4507. CFLAGS="$CFLAGS -Wformat=2"
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4509. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4510. cacheid=xorg_cv_cc_flag__Wformat_2
  4511. if eval \${$cacheid+:} false; then :
  4512. $as_echo_n "(cached) " >&6
  4513. else
  4514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4515. /* end confdefs.h. */
  4516. int i;
  4517. int
  4518. main ()
  4519. {
  4520. ;
  4521. return 0;
  4522. }
  4523. _ACEOF
  4524. if ac_fn_c_try_link "$LINENO"; then :
  4525. eval $cacheid=yes
  4526. else
  4527. eval $cacheid=no
  4528. fi
  4529. rm -f core conftest.err conftest.$ac_objext \
  4530. conftest$ac_exeext conftest.$ac_ext
  4531. fi
  4532. CFLAGS="$xorg_testset_save_CFLAGS"
  4533. eval supported=\$$cacheid
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4535. $as_echo "$supported" >&6; }
  4536. if test "$supported" = "yes" ; then
  4537. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4538. found="yes"
  4539. fi
  4540. fi
  4541. if test $found = "no" ; then
  4542. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4543. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4544. fi
  4545. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4546. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4547. fi
  4548. CFLAGS="$CFLAGS -Wformat"
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4550. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4551. cacheid=xorg_cv_cc_flag__Wformat
  4552. if eval \${$cacheid+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4556. /* end confdefs.h. */
  4557. int i;
  4558. int
  4559. main ()
  4560. {
  4561. ;
  4562. return 0;
  4563. }
  4564. _ACEOF
  4565. if ac_fn_c_try_link "$LINENO"; then :
  4566. eval $cacheid=yes
  4567. else
  4568. eval $cacheid=no
  4569. fi
  4570. rm -f core conftest.err conftest.$ac_objext \
  4571. conftest$ac_exeext conftest.$ac_ext
  4572. fi
  4573. CFLAGS="$xorg_testset_save_CFLAGS"
  4574. eval supported=\$$cacheid
  4575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4576. $as_echo "$supported" >&6; }
  4577. if test "$supported" = "yes" ; then
  4578. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4579. found="yes"
  4580. fi
  4581. fi
  4582. xorg_testset_save_CFLAGS="$CFLAGS"
  4583. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4584. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4586. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4587. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4588. $as_echo_n "(cached) " >&6
  4589. else
  4590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4591. /* end confdefs.h. */
  4592. int i;
  4593. _ACEOF
  4594. if ac_fn_c_try_compile "$LINENO"; then :
  4595. xorg_cv_cc_flag_unknown_warning_option=yes
  4596. else
  4597. xorg_cv_cc_flag_unknown_warning_option=no
  4598. fi
  4599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4600. fi
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4602. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4603. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4604. CFLAGS="$xorg_testset_save_CFLAGS"
  4605. fi
  4606. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4607. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4608. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4609. fi
  4610. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4612. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4613. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4614. $as_echo_n "(cached) " >&6
  4615. else
  4616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4617. /* end confdefs.h. */
  4618. int i;
  4619. _ACEOF
  4620. if ac_fn_c_try_compile "$LINENO"; then :
  4621. xorg_cv_cc_flag_unused_command_line_argument=yes
  4622. else
  4623. xorg_cv_cc_flag_unused_command_line_argument=no
  4624. fi
  4625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4626. fi
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4628. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4629. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4630. CFLAGS="$xorg_testset_save_CFLAGS"
  4631. fi
  4632. found="no"
  4633. if test $found = "no" ; then
  4634. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4635. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4636. fi
  4637. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4638. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4639. fi
  4640. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4642. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4643. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4644. if eval \${$cacheid+:} false; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4648. /* end confdefs.h. */
  4649. int i;
  4650. int
  4651. main ()
  4652. {
  4653. ;
  4654. return 0;
  4655. }
  4656. _ACEOF
  4657. if ac_fn_c_try_link "$LINENO"; then :
  4658. eval $cacheid=yes
  4659. else
  4660. eval $cacheid=no
  4661. fi
  4662. rm -f core conftest.err conftest.$ac_objext \
  4663. conftest$ac_exeext conftest.$ac_ext
  4664. fi
  4665. CFLAGS="$xorg_testset_save_CFLAGS"
  4666. eval supported=\$$cacheid
  4667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4668. $as_echo "$supported" >&6; }
  4669. if test "$supported" = "yes" ; then
  4670. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4671. found="yes"
  4672. fi
  4673. fi
  4674. xorg_testset_save_CFLAGS="$CFLAGS"
  4675. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4676. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4678. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4679. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4680. $as_echo_n "(cached) " >&6
  4681. else
  4682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4683. /* end confdefs.h. */
  4684. int i;
  4685. _ACEOF
  4686. if ac_fn_c_try_compile "$LINENO"; then :
  4687. xorg_cv_cc_flag_unknown_warning_option=yes
  4688. else
  4689. xorg_cv_cc_flag_unknown_warning_option=no
  4690. fi
  4691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4694. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4695. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4696. CFLAGS="$xorg_testset_save_CFLAGS"
  4697. fi
  4698. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4699. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4700. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4701. fi
  4702. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4704. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4705. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4709. /* end confdefs.h. */
  4710. int i;
  4711. _ACEOF
  4712. if ac_fn_c_try_compile "$LINENO"; then :
  4713. xorg_cv_cc_flag_unused_command_line_argument=yes
  4714. else
  4715. xorg_cv_cc_flag_unused_command_line_argument=no
  4716. fi
  4717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4718. fi
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4720. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4721. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4722. CFLAGS="$xorg_testset_save_CFLAGS"
  4723. fi
  4724. found="no"
  4725. if test $found = "no" ; then
  4726. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4727. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4728. fi
  4729. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4730. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4731. fi
  4732. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4734. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4735. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4736. if eval \${$cacheid+:} false; then :
  4737. $as_echo_n "(cached) " >&6
  4738. else
  4739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4740. /* end confdefs.h. */
  4741. int i;
  4742. int
  4743. main ()
  4744. {
  4745. ;
  4746. return 0;
  4747. }
  4748. _ACEOF
  4749. if ac_fn_c_try_link "$LINENO"; then :
  4750. eval $cacheid=yes
  4751. else
  4752. eval $cacheid=no
  4753. fi
  4754. rm -f core conftest.err conftest.$ac_objext \
  4755. conftest$ac_exeext conftest.$ac_ext
  4756. fi
  4757. CFLAGS="$xorg_testset_save_CFLAGS"
  4758. eval supported=\$$cacheid
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4760. $as_echo "$supported" >&6; }
  4761. if test "$supported" = "yes" ; then
  4762. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4763. found="yes"
  4764. fi
  4765. fi
  4766. xorg_testset_save_CFLAGS="$CFLAGS"
  4767. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4768. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4770. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4771. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4772. $as_echo_n "(cached) " >&6
  4773. else
  4774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4775. /* end confdefs.h. */
  4776. int i;
  4777. _ACEOF
  4778. if ac_fn_c_try_compile "$LINENO"; then :
  4779. xorg_cv_cc_flag_unknown_warning_option=yes
  4780. else
  4781. xorg_cv_cc_flag_unknown_warning_option=no
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4784. fi
  4785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4786. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4787. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4788. CFLAGS="$xorg_testset_save_CFLAGS"
  4789. fi
  4790. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4791. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4792. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4793. fi
  4794. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4796. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4797. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4798. $as_echo_n "(cached) " >&6
  4799. else
  4800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4801. /* end confdefs.h. */
  4802. int i;
  4803. _ACEOF
  4804. if ac_fn_c_try_compile "$LINENO"; then :
  4805. xorg_cv_cc_flag_unused_command_line_argument=yes
  4806. else
  4807. xorg_cv_cc_flag_unused_command_line_argument=no
  4808. fi
  4809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4810. fi
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4812. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4813. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4814. CFLAGS="$xorg_testset_save_CFLAGS"
  4815. fi
  4816. found="no"
  4817. if test $found = "no" ; then
  4818. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4819. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4820. fi
  4821. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4822. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4823. fi
  4824. CFLAGS="$CFLAGS -Wnested-externs"
  4825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4826. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4827. cacheid=xorg_cv_cc_flag__Wnested_externs
  4828. if eval \${$cacheid+:} false; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4832. /* end confdefs.h. */
  4833. int i;
  4834. int
  4835. main ()
  4836. {
  4837. ;
  4838. return 0;
  4839. }
  4840. _ACEOF
  4841. if ac_fn_c_try_link "$LINENO"; then :
  4842. eval $cacheid=yes
  4843. else
  4844. eval $cacheid=no
  4845. fi
  4846. rm -f core conftest.err conftest.$ac_objext \
  4847. conftest$ac_exeext conftest.$ac_ext
  4848. fi
  4849. CFLAGS="$xorg_testset_save_CFLAGS"
  4850. eval supported=\$$cacheid
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4852. $as_echo "$supported" >&6; }
  4853. if test "$supported" = "yes" ; then
  4854. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4855. found="yes"
  4856. fi
  4857. fi
  4858. xorg_testset_save_CFLAGS="$CFLAGS"
  4859. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4860. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4862. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4863. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4864. $as_echo_n "(cached) " >&6
  4865. else
  4866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4867. /* end confdefs.h. */
  4868. int i;
  4869. _ACEOF
  4870. if ac_fn_c_try_compile "$LINENO"; then :
  4871. xorg_cv_cc_flag_unknown_warning_option=yes
  4872. else
  4873. xorg_cv_cc_flag_unknown_warning_option=no
  4874. fi
  4875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4876. fi
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4878. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4879. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4880. CFLAGS="$xorg_testset_save_CFLAGS"
  4881. fi
  4882. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4883. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4884. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4885. fi
  4886. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4888. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4889. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4890. $as_echo_n "(cached) " >&6
  4891. else
  4892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. /* end confdefs.h. */
  4894. int i;
  4895. _ACEOF
  4896. if ac_fn_c_try_compile "$LINENO"; then :
  4897. xorg_cv_cc_flag_unused_command_line_argument=yes
  4898. else
  4899. xorg_cv_cc_flag_unused_command_line_argument=no
  4900. fi
  4901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4902. fi
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4904. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4905. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4906. CFLAGS="$xorg_testset_save_CFLAGS"
  4907. fi
  4908. found="no"
  4909. if test $found = "no" ; then
  4910. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4911. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4912. fi
  4913. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4914. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4915. fi
  4916. CFLAGS="$CFLAGS -Wbad-function-cast"
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4918. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4919. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4920. if eval \${$cacheid+:} false; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4924. /* end confdefs.h. */
  4925. int i;
  4926. int
  4927. main ()
  4928. {
  4929. ;
  4930. return 0;
  4931. }
  4932. _ACEOF
  4933. if ac_fn_c_try_link "$LINENO"; then :
  4934. eval $cacheid=yes
  4935. else
  4936. eval $cacheid=no
  4937. fi
  4938. rm -f core conftest.err conftest.$ac_objext \
  4939. conftest$ac_exeext conftest.$ac_ext
  4940. fi
  4941. CFLAGS="$xorg_testset_save_CFLAGS"
  4942. eval supported=\$$cacheid
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4944. $as_echo "$supported" >&6; }
  4945. if test "$supported" = "yes" ; then
  4946. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4947. found="yes"
  4948. fi
  4949. fi
  4950. xorg_testset_save_CFLAGS="$CFLAGS"
  4951. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4952. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4954. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4955. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4959. /* end confdefs.h. */
  4960. int i;
  4961. _ACEOF
  4962. if ac_fn_c_try_compile "$LINENO"; then :
  4963. xorg_cv_cc_flag_unknown_warning_option=yes
  4964. else
  4965. xorg_cv_cc_flag_unknown_warning_option=no
  4966. fi
  4967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4968. fi
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4970. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4971. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4972. CFLAGS="$xorg_testset_save_CFLAGS"
  4973. fi
  4974. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4975. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4976. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4977. fi
  4978. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4980. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4981. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4985. /* end confdefs.h. */
  4986. int i;
  4987. _ACEOF
  4988. if ac_fn_c_try_compile "$LINENO"; then :
  4989. xorg_cv_cc_flag_unused_command_line_argument=yes
  4990. else
  4991. xorg_cv_cc_flag_unused_command_line_argument=no
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4996. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4997. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4998. CFLAGS="$xorg_testset_save_CFLAGS"
  4999. fi
  5000. found="no"
  5001. if test $found = "no" ; then
  5002. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5003. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5004. fi
  5005. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5006. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5007. fi
  5008. CFLAGS="$CFLAGS -Wold-style-definition"
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  5010. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5011. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5012. if eval \${$cacheid+:} false; then :
  5013. $as_echo_n "(cached) " >&6
  5014. else
  5015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5016. /* end confdefs.h. */
  5017. int i;
  5018. int
  5019. main ()
  5020. {
  5021. ;
  5022. return 0;
  5023. }
  5024. _ACEOF
  5025. if ac_fn_c_try_link "$LINENO"; then :
  5026. eval $cacheid=yes
  5027. else
  5028. eval $cacheid=no
  5029. fi
  5030. rm -f core conftest.err conftest.$ac_objext \
  5031. conftest$ac_exeext conftest.$ac_ext
  5032. fi
  5033. CFLAGS="$xorg_testset_save_CFLAGS"
  5034. eval supported=\$$cacheid
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5036. $as_echo "$supported" >&6; }
  5037. if test "$supported" = "yes" ; then
  5038. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5039. found="yes"
  5040. fi
  5041. fi
  5042. if test $found = "no" ; then
  5043. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5044. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5045. fi
  5046. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5047. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5048. fi
  5049. CFLAGS="$CFLAGS -fd"
  5050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5051. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5052. cacheid=xorg_cv_cc_flag__fd
  5053. if eval \${$cacheid+:} false; then :
  5054. $as_echo_n "(cached) " >&6
  5055. else
  5056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5057. /* end confdefs.h. */
  5058. int i;
  5059. int
  5060. main ()
  5061. {
  5062. ;
  5063. return 0;
  5064. }
  5065. _ACEOF
  5066. if ac_fn_c_try_link "$LINENO"; then :
  5067. eval $cacheid=yes
  5068. else
  5069. eval $cacheid=no
  5070. fi
  5071. rm -f core conftest.err conftest.$ac_objext \
  5072. conftest$ac_exeext conftest.$ac_ext
  5073. fi
  5074. CFLAGS="$xorg_testset_save_CFLAGS"
  5075. eval supported=\$$cacheid
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5077. $as_echo "$supported" >&6; }
  5078. if test "$supported" = "yes" ; then
  5079. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5080. found="yes"
  5081. fi
  5082. fi
  5083. xorg_testset_save_CFLAGS="$CFLAGS"
  5084. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5085. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5087. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5088. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5089. $as_echo_n "(cached) " >&6
  5090. else
  5091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5092. /* end confdefs.h. */
  5093. int i;
  5094. _ACEOF
  5095. if ac_fn_c_try_compile "$LINENO"; then :
  5096. xorg_cv_cc_flag_unknown_warning_option=yes
  5097. else
  5098. xorg_cv_cc_flag_unknown_warning_option=no
  5099. fi
  5100. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5101. fi
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5103. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5104. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5105. CFLAGS="$xorg_testset_save_CFLAGS"
  5106. fi
  5107. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5108. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5109. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5110. fi
  5111. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5113. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5114. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5115. $as_echo_n "(cached) " >&6
  5116. else
  5117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5118. /* end confdefs.h. */
  5119. int i;
  5120. _ACEOF
  5121. if ac_fn_c_try_compile "$LINENO"; then :
  5122. xorg_cv_cc_flag_unused_command_line_argument=yes
  5123. else
  5124. xorg_cv_cc_flag_unused_command_line_argument=no
  5125. fi
  5126. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5127. fi
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5129. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5130. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5131. CFLAGS="$xorg_testset_save_CFLAGS"
  5132. fi
  5133. found="no"
  5134. if test $found = "no" ; then
  5135. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5136. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5137. fi
  5138. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5139. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5140. fi
  5141. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5143. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5144. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5145. if eval \${$cacheid+:} false; then :
  5146. $as_echo_n "(cached) " >&6
  5147. else
  5148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5149. /* end confdefs.h. */
  5150. int i;
  5151. int
  5152. main ()
  5153. {
  5154. ;
  5155. return 0;
  5156. }
  5157. _ACEOF
  5158. if ac_fn_c_try_link "$LINENO"; then :
  5159. eval $cacheid=yes
  5160. else
  5161. eval $cacheid=no
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext \
  5164. conftest$ac_exeext conftest.$ac_ext
  5165. fi
  5166. CFLAGS="$xorg_testset_save_CFLAGS"
  5167. eval supported=\$$cacheid
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5169. $as_echo "$supported" >&6; }
  5170. if test "$supported" = "yes" ; then
  5171. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5172. found="yes"
  5173. fi
  5174. fi
  5175. # This chunk adds additional warnings that could catch undesired effects.
  5176. xorg_testset_save_CFLAGS="$CFLAGS"
  5177. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5178. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5180. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5181. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5182. $as_echo_n "(cached) " >&6
  5183. else
  5184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5185. /* end confdefs.h. */
  5186. int i;
  5187. _ACEOF
  5188. if ac_fn_c_try_compile "$LINENO"; then :
  5189. xorg_cv_cc_flag_unknown_warning_option=yes
  5190. else
  5191. xorg_cv_cc_flag_unknown_warning_option=no
  5192. fi
  5193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5194. fi
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5196. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5197. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5198. CFLAGS="$xorg_testset_save_CFLAGS"
  5199. fi
  5200. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5201. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5202. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5203. fi
  5204. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5206. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5207. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5211. /* end confdefs.h. */
  5212. int i;
  5213. _ACEOF
  5214. if ac_fn_c_try_compile "$LINENO"; then :
  5215. xorg_cv_cc_flag_unused_command_line_argument=yes
  5216. else
  5217. xorg_cv_cc_flag_unused_command_line_argument=no
  5218. fi
  5219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5220. fi
  5221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5222. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5223. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5224. CFLAGS="$xorg_testset_save_CFLAGS"
  5225. fi
  5226. found="no"
  5227. if test $found = "no" ; then
  5228. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5229. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5230. fi
  5231. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5232. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5233. fi
  5234. CFLAGS="$CFLAGS -Wunused"
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5236. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5237. cacheid=xorg_cv_cc_flag__Wunused
  5238. if eval \${$cacheid+:} false; then :
  5239. $as_echo_n "(cached) " >&6
  5240. else
  5241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5242. /* end confdefs.h. */
  5243. int i;
  5244. int
  5245. main ()
  5246. {
  5247. ;
  5248. return 0;
  5249. }
  5250. _ACEOF
  5251. if ac_fn_c_try_link "$LINENO"; then :
  5252. eval $cacheid=yes
  5253. else
  5254. eval $cacheid=no
  5255. fi
  5256. rm -f core conftest.err conftest.$ac_objext \
  5257. conftest$ac_exeext conftest.$ac_ext
  5258. fi
  5259. CFLAGS="$xorg_testset_save_CFLAGS"
  5260. eval supported=\$$cacheid
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5262. $as_echo "$supported" >&6; }
  5263. if test "$supported" = "yes" ; then
  5264. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5265. found="yes"
  5266. fi
  5267. fi
  5268. xorg_testset_save_CFLAGS="$CFLAGS"
  5269. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5270. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5272. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5273. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5274. $as_echo_n "(cached) " >&6
  5275. else
  5276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5277. /* end confdefs.h. */
  5278. int i;
  5279. _ACEOF
  5280. if ac_fn_c_try_compile "$LINENO"; then :
  5281. xorg_cv_cc_flag_unknown_warning_option=yes
  5282. else
  5283. xorg_cv_cc_flag_unknown_warning_option=no
  5284. fi
  5285. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5286. fi
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5288. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5289. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5290. CFLAGS="$xorg_testset_save_CFLAGS"
  5291. fi
  5292. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5293. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5294. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5295. fi
  5296. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5298. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5299. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5300. $as_echo_n "(cached) " >&6
  5301. else
  5302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5303. /* end confdefs.h. */
  5304. int i;
  5305. _ACEOF
  5306. if ac_fn_c_try_compile "$LINENO"; then :
  5307. xorg_cv_cc_flag_unused_command_line_argument=yes
  5308. else
  5309. xorg_cv_cc_flag_unused_command_line_argument=no
  5310. fi
  5311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5312. fi
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5314. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5315. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5316. CFLAGS="$xorg_testset_save_CFLAGS"
  5317. fi
  5318. found="no"
  5319. if test $found = "no" ; then
  5320. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5321. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5322. fi
  5323. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5324. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5325. fi
  5326. CFLAGS="$CFLAGS -Wuninitialized"
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5328. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5329. cacheid=xorg_cv_cc_flag__Wuninitialized
  5330. if eval \${$cacheid+:} false; then :
  5331. $as_echo_n "(cached) " >&6
  5332. else
  5333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5334. /* end confdefs.h. */
  5335. int i;
  5336. int
  5337. main ()
  5338. {
  5339. ;
  5340. return 0;
  5341. }
  5342. _ACEOF
  5343. if ac_fn_c_try_link "$LINENO"; then :
  5344. eval $cacheid=yes
  5345. else
  5346. eval $cacheid=no
  5347. fi
  5348. rm -f core conftest.err conftest.$ac_objext \
  5349. conftest$ac_exeext conftest.$ac_ext
  5350. fi
  5351. CFLAGS="$xorg_testset_save_CFLAGS"
  5352. eval supported=\$$cacheid
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5354. $as_echo "$supported" >&6; }
  5355. if test "$supported" = "yes" ; then
  5356. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5357. found="yes"
  5358. fi
  5359. fi
  5360. xorg_testset_save_CFLAGS="$CFLAGS"
  5361. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5362. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5364. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5365. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5366. $as_echo_n "(cached) " >&6
  5367. else
  5368. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5369. /* end confdefs.h. */
  5370. int i;
  5371. _ACEOF
  5372. if ac_fn_c_try_compile "$LINENO"; then :
  5373. xorg_cv_cc_flag_unknown_warning_option=yes
  5374. else
  5375. xorg_cv_cc_flag_unknown_warning_option=no
  5376. fi
  5377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5378. fi
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5380. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5381. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5382. CFLAGS="$xorg_testset_save_CFLAGS"
  5383. fi
  5384. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5385. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5386. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5387. fi
  5388. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5390. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5391. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5395. /* end confdefs.h. */
  5396. int i;
  5397. _ACEOF
  5398. if ac_fn_c_try_compile "$LINENO"; then :
  5399. xorg_cv_cc_flag_unused_command_line_argument=yes
  5400. else
  5401. xorg_cv_cc_flag_unused_command_line_argument=no
  5402. fi
  5403. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5404. fi
  5405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5406. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5407. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5408. CFLAGS="$xorg_testset_save_CFLAGS"
  5409. fi
  5410. found="no"
  5411. if test $found = "no" ; then
  5412. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5413. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5414. fi
  5415. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5416. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5417. fi
  5418. CFLAGS="$CFLAGS -Wshadow"
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5420. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5421. cacheid=xorg_cv_cc_flag__Wshadow
  5422. if eval \${$cacheid+:} false; then :
  5423. $as_echo_n "(cached) " >&6
  5424. else
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. int i;
  5428. int
  5429. main ()
  5430. {
  5431. ;
  5432. return 0;
  5433. }
  5434. _ACEOF
  5435. if ac_fn_c_try_link "$LINENO"; then :
  5436. eval $cacheid=yes
  5437. else
  5438. eval $cacheid=no
  5439. fi
  5440. rm -f core conftest.err conftest.$ac_objext \
  5441. conftest$ac_exeext conftest.$ac_ext
  5442. fi
  5443. CFLAGS="$xorg_testset_save_CFLAGS"
  5444. eval supported=\$$cacheid
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5446. $as_echo "$supported" >&6; }
  5447. if test "$supported" = "yes" ; then
  5448. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5449. found="yes"
  5450. fi
  5451. fi
  5452. xorg_testset_save_CFLAGS="$CFLAGS"
  5453. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5454. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5456. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5457. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5458. $as_echo_n "(cached) " >&6
  5459. else
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. int i;
  5463. _ACEOF
  5464. if ac_fn_c_try_compile "$LINENO"; then :
  5465. xorg_cv_cc_flag_unknown_warning_option=yes
  5466. else
  5467. xorg_cv_cc_flag_unknown_warning_option=no
  5468. fi
  5469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5470. fi
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5472. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5473. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5474. CFLAGS="$xorg_testset_save_CFLAGS"
  5475. fi
  5476. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5477. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5478. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5479. fi
  5480. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5482. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5483. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5487. /* end confdefs.h. */
  5488. int i;
  5489. _ACEOF
  5490. if ac_fn_c_try_compile "$LINENO"; then :
  5491. xorg_cv_cc_flag_unused_command_line_argument=yes
  5492. else
  5493. xorg_cv_cc_flag_unused_command_line_argument=no
  5494. fi
  5495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5496. fi
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5498. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5499. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5500. CFLAGS="$xorg_testset_save_CFLAGS"
  5501. fi
  5502. found="no"
  5503. if test $found = "no" ; then
  5504. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5505. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5506. fi
  5507. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5508. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5509. fi
  5510. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5512. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5513. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5514. if eval \${$cacheid+:} false; then :
  5515. $as_echo_n "(cached) " >&6
  5516. else
  5517. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5518. /* end confdefs.h. */
  5519. int i;
  5520. int
  5521. main ()
  5522. {
  5523. ;
  5524. return 0;
  5525. }
  5526. _ACEOF
  5527. if ac_fn_c_try_link "$LINENO"; then :
  5528. eval $cacheid=yes
  5529. else
  5530. eval $cacheid=no
  5531. fi
  5532. rm -f core conftest.err conftest.$ac_objext \
  5533. conftest$ac_exeext conftest.$ac_ext
  5534. fi
  5535. CFLAGS="$xorg_testset_save_CFLAGS"
  5536. eval supported=\$$cacheid
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5538. $as_echo "$supported" >&6; }
  5539. if test "$supported" = "yes" ; then
  5540. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5541. found="yes"
  5542. fi
  5543. fi
  5544. xorg_testset_save_CFLAGS="$CFLAGS"
  5545. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5546. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5548. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5549. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5550. $as_echo_n "(cached) " >&6
  5551. else
  5552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5553. /* end confdefs.h. */
  5554. int i;
  5555. _ACEOF
  5556. if ac_fn_c_try_compile "$LINENO"; then :
  5557. xorg_cv_cc_flag_unknown_warning_option=yes
  5558. else
  5559. xorg_cv_cc_flag_unknown_warning_option=no
  5560. fi
  5561. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5562. fi
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5564. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5565. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5566. CFLAGS="$xorg_testset_save_CFLAGS"
  5567. fi
  5568. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5569. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5570. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5571. fi
  5572. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5574. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5575. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5576. $as_echo_n "(cached) " >&6
  5577. else
  5578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5579. /* end confdefs.h. */
  5580. int i;
  5581. _ACEOF
  5582. if ac_fn_c_try_compile "$LINENO"; then :
  5583. xorg_cv_cc_flag_unused_command_line_argument=yes
  5584. else
  5585. xorg_cv_cc_flag_unused_command_line_argument=no
  5586. fi
  5587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5588. fi
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5590. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5591. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5592. CFLAGS="$xorg_testset_save_CFLAGS"
  5593. fi
  5594. found="no"
  5595. if test $found = "no" ; then
  5596. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5598. fi
  5599. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5600. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5601. fi
  5602. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5604. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5605. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5606. if eval \${$cacheid+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5610. /* end confdefs.h. */
  5611. int i;
  5612. int
  5613. main ()
  5614. {
  5615. ;
  5616. return 0;
  5617. }
  5618. _ACEOF
  5619. if ac_fn_c_try_link "$LINENO"; then :
  5620. eval $cacheid=yes
  5621. else
  5622. eval $cacheid=no
  5623. fi
  5624. rm -f core conftest.err conftest.$ac_objext \
  5625. conftest$ac_exeext conftest.$ac_ext
  5626. fi
  5627. CFLAGS="$xorg_testset_save_CFLAGS"
  5628. eval supported=\$$cacheid
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5630. $as_echo "$supported" >&6; }
  5631. if test "$supported" = "yes" ; then
  5632. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5633. found="yes"
  5634. fi
  5635. fi
  5636. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5637. xorg_testset_save_CFLAGS="$CFLAGS"
  5638. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5641. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5642. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5646. /* end confdefs.h. */
  5647. int i;
  5648. _ACEOF
  5649. if ac_fn_c_try_compile "$LINENO"; then :
  5650. xorg_cv_cc_flag_unknown_warning_option=yes
  5651. else
  5652. xorg_cv_cc_flag_unknown_warning_option=no
  5653. fi
  5654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5655. fi
  5656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5657. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5658. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5659. CFLAGS="$xorg_testset_save_CFLAGS"
  5660. fi
  5661. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5662. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5663. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5664. fi
  5665. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5667. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5668. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5672. /* end confdefs.h. */
  5673. int i;
  5674. _ACEOF
  5675. if ac_fn_c_try_compile "$LINENO"; then :
  5676. xorg_cv_cc_flag_unused_command_line_argument=yes
  5677. else
  5678. xorg_cv_cc_flag_unused_command_line_argument=no
  5679. fi
  5680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5681. fi
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5683. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5684. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5685. CFLAGS="$xorg_testset_save_CFLAGS"
  5686. fi
  5687. found="no"
  5688. if test $found = "no" ; then
  5689. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5690. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5691. fi
  5692. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5693. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5694. fi
  5695. CFLAGS="$CFLAGS -Wlogical-op"
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5697. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5698. cacheid=xorg_cv_cc_flag__Wlogical_op
  5699. if eval \${$cacheid+:} false; then :
  5700. $as_echo_n "(cached) " >&6
  5701. else
  5702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5703. /* end confdefs.h. */
  5704. int i;
  5705. int
  5706. main ()
  5707. {
  5708. ;
  5709. return 0;
  5710. }
  5711. _ACEOF
  5712. if ac_fn_c_try_link "$LINENO"; then :
  5713. eval $cacheid=yes
  5714. else
  5715. eval $cacheid=no
  5716. fi
  5717. rm -f core conftest.err conftest.$ac_objext \
  5718. conftest$ac_exeext conftest.$ac_ext
  5719. fi
  5720. CFLAGS="$xorg_testset_save_CFLAGS"
  5721. eval supported=\$$cacheid
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5723. $as_echo "$supported" >&6; }
  5724. if test "$supported" = "yes" ; then
  5725. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5726. found="yes"
  5727. fi
  5728. fi
  5729. # These are currently disabled because they are noisy. They will be enabled
  5730. # in the future once the codebase is sufficiently modernized to silence
  5731. # them. For now, I don't want them to drown out the other warnings.
  5732. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5733. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5734. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5735. # Turn some warnings into errors, so we don't accidently get successful builds
  5736. # when there are problems that should be fixed.
  5737. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5738. xorg_testset_save_CFLAGS="$CFLAGS"
  5739. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5740. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5742. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5743. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5744. $as_echo_n "(cached) " >&6
  5745. else
  5746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5747. /* end confdefs.h. */
  5748. int i;
  5749. _ACEOF
  5750. if ac_fn_c_try_compile "$LINENO"; then :
  5751. xorg_cv_cc_flag_unknown_warning_option=yes
  5752. else
  5753. xorg_cv_cc_flag_unknown_warning_option=no
  5754. fi
  5755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5756. fi
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5758. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5759. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5760. CFLAGS="$xorg_testset_save_CFLAGS"
  5761. fi
  5762. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5763. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5764. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5765. fi
  5766. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5768. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5769. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. int i;
  5775. _ACEOF
  5776. if ac_fn_c_try_compile "$LINENO"; then :
  5777. xorg_cv_cc_flag_unused_command_line_argument=yes
  5778. else
  5779. xorg_cv_cc_flag_unused_command_line_argument=no
  5780. fi
  5781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5782. fi
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5784. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5785. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5786. CFLAGS="$xorg_testset_save_CFLAGS"
  5787. fi
  5788. found="no"
  5789. if test $found = "no" ; then
  5790. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5791. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5792. fi
  5793. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5794. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5795. fi
  5796. CFLAGS="$CFLAGS -Werror=implicit"
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5798. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5799. cacheid=xorg_cv_cc_flag__Werror_implicit
  5800. if eval \${$cacheid+:} false; then :
  5801. $as_echo_n "(cached) " >&6
  5802. else
  5803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5804. /* end confdefs.h. */
  5805. int i;
  5806. int
  5807. main ()
  5808. {
  5809. ;
  5810. return 0;
  5811. }
  5812. _ACEOF
  5813. if ac_fn_c_try_link "$LINENO"; then :
  5814. eval $cacheid=yes
  5815. else
  5816. eval $cacheid=no
  5817. fi
  5818. rm -f core conftest.err conftest.$ac_objext \
  5819. conftest$ac_exeext conftest.$ac_ext
  5820. fi
  5821. CFLAGS="$xorg_testset_save_CFLAGS"
  5822. eval supported=\$$cacheid
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5824. $as_echo "$supported" >&6; }
  5825. if test "$supported" = "yes" ; then
  5826. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5827. found="yes"
  5828. fi
  5829. fi
  5830. if test $found = "no" ; then
  5831. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5832. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5833. fi
  5834. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5835. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5836. fi
  5837. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5839. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5840. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5841. if eval \${$cacheid+:} false; then :
  5842. $as_echo_n "(cached) " >&6
  5843. else
  5844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5845. /* end confdefs.h. */
  5846. int i;
  5847. int
  5848. main ()
  5849. {
  5850. ;
  5851. return 0;
  5852. }
  5853. _ACEOF
  5854. if ac_fn_c_try_link "$LINENO"; then :
  5855. eval $cacheid=yes
  5856. else
  5857. eval $cacheid=no
  5858. fi
  5859. rm -f core conftest.err conftest.$ac_objext \
  5860. conftest$ac_exeext conftest.$ac_ext
  5861. fi
  5862. CFLAGS="$xorg_testset_save_CFLAGS"
  5863. eval supported=\$$cacheid
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5865. $as_echo "$supported" >&6; }
  5866. if test "$supported" = "yes" ; then
  5867. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5868. found="yes"
  5869. fi
  5870. fi
  5871. xorg_testset_save_CFLAGS="$CFLAGS"
  5872. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5873. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5875. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5876. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5877. $as_echo_n "(cached) " >&6
  5878. else
  5879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5880. /* end confdefs.h. */
  5881. int i;
  5882. _ACEOF
  5883. if ac_fn_c_try_compile "$LINENO"; then :
  5884. xorg_cv_cc_flag_unknown_warning_option=yes
  5885. else
  5886. xorg_cv_cc_flag_unknown_warning_option=no
  5887. fi
  5888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5889. fi
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5891. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5892. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5893. CFLAGS="$xorg_testset_save_CFLAGS"
  5894. fi
  5895. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5896. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5897. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5898. fi
  5899. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5901. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5902. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5903. $as_echo_n "(cached) " >&6
  5904. else
  5905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5906. /* end confdefs.h. */
  5907. int i;
  5908. _ACEOF
  5909. if ac_fn_c_try_compile "$LINENO"; then :
  5910. xorg_cv_cc_flag_unused_command_line_argument=yes
  5911. else
  5912. xorg_cv_cc_flag_unused_command_line_argument=no
  5913. fi
  5914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5915. fi
  5916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5917. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5918. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5919. CFLAGS="$xorg_testset_save_CFLAGS"
  5920. fi
  5921. found="no"
  5922. if test $found = "no" ; then
  5923. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5924. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5925. fi
  5926. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5927. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5928. fi
  5929. CFLAGS="$CFLAGS -Werror=nonnull"
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5931. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5932. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5933. if eval \${$cacheid+:} false; then :
  5934. $as_echo_n "(cached) " >&6
  5935. else
  5936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5937. /* end confdefs.h. */
  5938. int i;
  5939. int
  5940. main ()
  5941. {
  5942. ;
  5943. return 0;
  5944. }
  5945. _ACEOF
  5946. if ac_fn_c_try_link "$LINENO"; then :
  5947. eval $cacheid=yes
  5948. else
  5949. eval $cacheid=no
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext \
  5952. conftest$ac_exeext conftest.$ac_ext
  5953. fi
  5954. CFLAGS="$xorg_testset_save_CFLAGS"
  5955. eval supported=\$$cacheid
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5957. $as_echo "$supported" >&6; }
  5958. if test "$supported" = "yes" ; then
  5959. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5960. found="yes"
  5961. fi
  5962. fi
  5963. xorg_testset_save_CFLAGS="$CFLAGS"
  5964. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5965. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5967. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5968. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5969. $as_echo_n "(cached) " >&6
  5970. else
  5971. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5972. /* end confdefs.h. */
  5973. int i;
  5974. _ACEOF
  5975. if ac_fn_c_try_compile "$LINENO"; then :
  5976. xorg_cv_cc_flag_unknown_warning_option=yes
  5977. else
  5978. xorg_cv_cc_flag_unknown_warning_option=no
  5979. fi
  5980. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5981. fi
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5983. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5984. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5985. CFLAGS="$xorg_testset_save_CFLAGS"
  5986. fi
  5987. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5988. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5989. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5990. fi
  5991. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5993. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5994. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5995. $as_echo_n "(cached) " >&6
  5996. else
  5997. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5998. /* end confdefs.h. */
  5999. int i;
  6000. _ACEOF
  6001. if ac_fn_c_try_compile "$LINENO"; then :
  6002. xorg_cv_cc_flag_unused_command_line_argument=yes
  6003. else
  6004. xorg_cv_cc_flag_unused_command_line_argument=no
  6005. fi
  6006. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6007. fi
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6009. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6010. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6011. CFLAGS="$xorg_testset_save_CFLAGS"
  6012. fi
  6013. found="no"
  6014. if test $found = "no" ; then
  6015. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6016. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6017. fi
  6018. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6019. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6020. fi
  6021. CFLAGS="$CFLAGS -Werror=init-self"
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  6023. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6024. cacheid=xorg_cv_cc_flag__Werror_init_self
  6025. if eval \${$cacheid+:} false; then :
  6026. $as_echo_n "(cached) " >&6
  6027. else
  6028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6029. /* end confdefs.h. */
  6030. int i;
  6031. int
  6032. main ()
  6033. {
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. if ac_fn_c_try_link "$LINENO"; then :
  6039. eval $cacheid=yes
  6040. else
  6041. eval $cacheid=no
  6042. fi
  6043. rm -f core conftest.err conftest.$ac_objext \
  6044. conftest$ac_exeext conftest.$ac_ext
  6045. fi
  6046. CFLAGS="$xorg_testset_save_CFLAGS"
  6047. eval supported=\$$cacheid
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6049. $as_echo "$supported" >&6; }
  6050. if test "$supported" = "yes" ; then
  6051. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6052. found="yes"
  6053. fi
  6054. fi
  6055. xorg_testset_save_CFLAGS="$CFLAGS"
  6056. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6057. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6059. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6060. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6061. $as_echo_n "(cached) " >&6
  6062. else
  6063. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6064. /* end confdefs.h. */
  6065. int i;
  6066. _ACEOF
  6067. if ac_fn_c_try_compile "$LINENO"; then :
  6068. xorg_cv_cc_flag_unknown_warning_option=yes
  6069. else
  6070. xorg_cv_cc_flag_unknown_warning_option=no
  6071. fi
  6072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6073. fi
  6074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6075. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6076. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6077. CFLAGS="$xorg_testset_save_CFLAGS"
  6078. fi
  6079. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6080. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6081. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6082. fi
  6083. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6085. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6086. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6087. $as_echo_n "(cached) " >&6
  6088. else
  6089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6090. /* end confdefs.h. */
  6091. int i;
  6092. _ACEOF
  6093. if ac_fn_c_try_compile "$LINENO"; then :
  6094. xorg_cv_cc_flag_unused_command_line_argument=yes
  6095. else
  6096. xorg_cv_cc_flag_unused_command_line_argument=no
  6097. fi
  6098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6099. fi
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6101. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6102. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6103. CFLAGS="$xorg_testset_save_CFLAGS"
  6104. fi
  6105. found="no"
  6106. if test $found = "no" ; then
  6107. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6108. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6109. fi
  6110. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6111. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6112. fi
  6113. CFLAGS="$CFLAGS -Werror=main"
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6115. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6116. cacheid=xorg_cv_cc_flag__Werror_main
  6117. if eval \${$cacheid+:} false; then :
  6118. $as_echo_n "(cached) " >&6
  6119. else
  6120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6121. /* end confdefs.h. */
  6122. int i;
  6123. int
  6124. main ()
  6125. {
  6126. ;
  6127. return 0;
  6128. }
  6129. _ACEOF
  6130. if ac_fn_c_try_link "$LINENO"; then :
  6131. eval $cacheid=yes
  6132. else
  6133. eval $cacheid=no
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext \
  6136. conftest$ac_exeext conftest.$ac_ext
  6137. fi
  6138. CFLAGS="$xorg_testset_save_CFLAGS"
  6139. eval supported=\$$cacheid
  6140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6141. $as_echo "$supported" >&6; }
  6142. if test "$supported" = "yes" ; then
  6143. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6144. found="yes"
  6145. fi
  6146. fi
  6147. xorg_testset_save_CFLAGS="$CFLAGS"
  6148. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6149. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6151. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6152. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6156. /* end confdefs.h. */
  6157. int i;
  6158. _ACEOF
  6159. if ac_fn_c_try_compile "$LINENO"; then :
  6160. xorg_cv_cc_flag_unknown_warning_option=yes
  6161. else
  6162. xorg_cv_cc_flag_unknown_warning_option=no
  6163. fi
  6164. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6165. fi
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6167. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6168. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6169. CFLAGS="$xorg_testset_save_CFLAGS"
  6170. fi
  6171. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6172. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6173. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6174. fi
  6175. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6177. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6178. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6182. /* end confdefs.h. */
  6183. int i;
  6184. _ACEOF
  6185. if ac_fn_c_try_compile "$LINENO"; then :
  6186. xorg_cv_cc_flag_unused_command_line_argument=yes
  6187. else
  6188. xorg_cv_cc_flag_unused_command_line_argument=no
  6189. fi
  6190. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6191. fi
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6193. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6194. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6195. CFLAGS="$xorg_testset_save_CFLAGS"
  6196. fi
  6197. found="no"
  6198. if test $found = "no" ; then
  6199. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6200. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6201. fi
  6202. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6203. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6204. fi
  6205. CFLAGS="$CFLAGS -Werror=missing-braces"
  6206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6207. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6208. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6209. if eval \${$cacheid+:} false; then :
  6210. $as_echo_n "(cached) " >&6
  6211. else
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. int i;
  6215. int
  6216. main ()
  6217. {
  6218. ;
  6219. return 0;
  6220. }
  6221. _ACEOF
  6222. if ac_fn_c_try_link "$LINENO"; then :
  6223. eval $cacheid=yes
  6224. else
  6225. eval $cacheid=no
  6226. fi
  6227. rm -f core conftest.err conftest.$ac_objext \
  6228. conftest$ac_exeext conftest.$ac_ext
  6229. fi
  6230. CFLAGS="$xorg_testset_save_CFLAGS"
  6231. eval supported=\$$cacheid
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6233. $as_echo "$supported" >&6; }
  6234. if test "$supported" = "yes" ; then
  6235. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6236. found="yes"
  6237. fi
  6238. fi
  6239. xorg_testset_save_CFLAGS="$CFLAGS"
  6240. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6241. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6243. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6244. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6245. $as_echo_n "(cached) " >&6
  6246. else
  6247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6248. /* end confdefs.h. */
  6249. int i;
  6250. _ACEOF
  6251. if ac_fn_c_try_compile "$LINENO"; then :
  6252. xorg_cv_cc_flag_unknown_warning_option=yes
  6253. else
  6254. xorg_cv_cc_flag_unknown_warning_option=no
  6255. fi
  6256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6257. fi
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6259. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6260. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6261. CFLAGS="$xorg_testset_save_CFLAGS"
  6262. fi
  6263. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6264. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6265. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6266. fi
  6267. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6269. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6270. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6274. /* end confdefs.h. */
  6275. int i;
  6276. _ACEOF
  6277. if ac_fn_c_try_compile "$LINENO"; then :
  6278. xorg_cv_cc_flag_unused_command_line_argument=yes
  6279. else
  6280. xorg_cv_cc_flag_unused_command_line_argument=no
  6281. fi
  6282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6283. fi
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6285. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6286. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6287. CFLAGS="$xorg_testset_save_CFLAGS"
  6288. fi
  6289. found="no"
  6290. if test $found = "no" ; then
  6291. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6292. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6293. fi
  6294. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6295. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6296. fi
  6297. CFLAGS="$CFLAGS -Werror=sequence-point"
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6299. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6300. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6301. if eval \${$cacheid+:} false; then :
  6302. $as_echo_n "(cached) " >&6
  6303. else
  6304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6305. /* end confdefs.h. */
  6306. int i;
  6307. int
  6308. main ()
  6309. {
  6310. ;
  6311. return 0;
  6312. }
  6313. _ACEOF
  6314. if ac_fn_c_try_link "$LINENO"; then :
  6315. eval $cacheid=yes
  6316. else
  6317. eval $cacheid=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext \
  6320. conftest$ac_exeext conftest.$ac_ext
  6321. fi
  6322. CFLAGS="$xorg_testset_save_CFLAGS"
  6323. eval supported=\$$cacheid
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6325. $as_echo "$supported" >&6; }
  6326. if test "$supported" = "yes" ; then
  6327. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6328. found="yes"
  6329. fi
  6330. fi
  6331. xorg_testset_save_CFLAGS="$CFLAGS"
  6332. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6333. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6335. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6336. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6337. $as_echo_n "(cached) " >&6
  6338. else
  6339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6340. /* end confdefs.h. */
  6341. int i;
  6342. _ACEOF
  6343. if ac_fn_c_try_compile "$LINENO"; then :
  6344. xorg_cv_cc_flag_unknown_warning_option=yes
  6345. else
  6346. xorg_cv_cc_flag_unknown_warning_option=no
  6347. fi
  6348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6349. fi
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6351. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6352. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6353. CFLAGS="$xorg_testset_save_CFLAGS"
  6354. fi
  6355. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6356. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6358. fi
  6359. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6361. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6362. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int i;
  6368. _ACEOF
  6369. if ac_fn_c_try_compile "$LINENO"; then :
  6370. xorg_cv_cc_flag_unused_command_line_argument=yes
  6371. else
  6372. xorg_cv_cc_flag_unused_command_line_argument=no
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6377. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6378. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6379. CFLAGS="$xorg_testset_save_CFLAGS"
  6380. fi
  6381. found="no"
  6382. if test $found = "no" ; then
  6383. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6384. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6385. fi
  6386. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6387. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6388. fi
  6389. CFLAGS="$CFLAGS -Werror=return-type"
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6391. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6392. cacheid=xorg_cv_cc_flag__Werror_return_type
  6393. if eval \${$cacheid+:} false; then :
  6394. $as_echo_n "(cached) " >&6
  6395. else
  6396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6397. /* end confdefs.h. */
  6398. int i;
  6399. int
  6400. main ()
  6401. {
  6402. ;
  6403. return 0;
  6404. }
  6405. _ACEOF
  6406. if ac_fn_c_try_link "$LINENO"; then :
  6407. eval $cacheid=yes
  6408. else
  6409. eval $cacheid=no
  6410. fi
  6411. rm -f core conftest.err conftest.$ac_objext \
  6412. conftest$ac_exeext conftest.$ac_ext
  6413. fi
  6414. CFLAGS="$xorg_testset_save_CFLAGS"
  6415. eval supported=\$$cacheid
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6417. $as_echo "$supported" >&6; }
  6418. if test "$supported" = "yes" ; then
  6419. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6420. found="yes"
  6421. fi
  6422. fi
  6423. if test $found = "no" ; then
  6424. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6425. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6426. fi
  6427. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6428. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6429. fi
  6430. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6432. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6433. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6434. if eval \${$cacheid+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6438. /* end confdefs.h. */
  6439. int i;
  6440. int
  6441. main ()
  6442. {
  6443. ;
  6444. return 0;
  6445. }
  6446. _ACEOF
  6447. if ac_fn_c_try_link "$LINENO"; then :
  6448. eval $cacheid=yes
  6449. else
  6450. eval $cacheid=no
  6451. fi
  6452. rm -f core conftest.err conftest.$ac_objext \
  6453. conftest$ac_exeext conftest.$ac_ext
  6454. fi
  6455. CFLAGS="$xorg_testset_save_CFLAGS"
  6456. eval supported=\$$cacheid
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6458. $as_echo "$supported" >&6; }
  6459. if test "$supported" = "yes" ; then
  6460. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6461. found="yes"
  6462. fi
  6463. fi
  6464. xorg_testset_save_CFLAGS="$CFLAGS"
  6465. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6466. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6468. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6469. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6470. $as_echo_n "(cached) " >&6
  6471. else
  6472. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6473. /* end confdefs.h. */
  6474. int i;
  6475. _ACEOF
  6476. if ac_fn_c_try_compile "$LINENO"; then :
  6477. xorg_cv_cc_flag_unknown_warning_option=yes
  6478. else
  6479. xorg_cv_cc_flag_unknown_warning_option=no
  6480. fi
  6481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6482. fi
  6483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6484. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6485. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6486. CFLAGS="$xorg_testset_save_CFLAGS"
  6487. fi
  6488. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6489. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6490. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6491. fi
  6492. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6494. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6495. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6496. $as_echo_n "(cached) " >&6
  6497. else
  6498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6499. /* end confdefs.h. */
  6500. int i;
  6501. _ACEOF
  6502. if ac_fn_c_try_compile "$LINENO"; then :
  6503. xorg_cv_cc_flag_unused_command_line_argument=yes
  6504. else
  6505. xorg_cv_cc_flag_unused_command_line_argument=no
  6506. fi
  6507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6508. fi
  6509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6510. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6511. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6512. CFLAGS="$xorg_testset_save_CFLAGS"
  6513. fi
  6514. found="no"
  6515. if test $found = "no" ; then
  6516. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6517. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6518. fi
  6519. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6520. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6521. fi
  6522. CFLAGS="$CFLAGS -Werror=trigraphs"
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6524. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6525. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6526. if eval \${$cacheid+:} false; then :
  6527. $as_echo_n "(cached) " >&6
  6528. else
  6529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6530. /* end confdefs.h. */
  6531. int i;
  6532. int
  6533. main ()
  6534. {
  6535. ;
  6536. return 0;
  6537. }
  6538. _ACEOF
  6539. if ac_fn_c_try_link "$LINENO"; then :
  6540. eval $cacheid=yes
  6541. else
  6542. eval $cacheid=no
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext \
  6545. conftest$ac_exeext conftest.$ac_ext
  6546. fi
  6547. CFLAGS="$xorg_testset_save_CFLAGS"
  6548. eval supported=\$$cacheid
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6550. $as_echo "$supported" >&6; }
  6551. if test "$supported" = "yes" ; then
  6552. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6553. found="yes"
  6554. fi
  6555. fi
  6556. xorg_testset_save_CFLAGS="$CFLAGS"
  6557. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6558. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6560. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6561. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6562. $as_echo_n "(cached) " >&6
  6563. else
  6564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6565. /* end confdefs.h. */
  6566. int i;
  6567. _ACEOF
  6568. if ac_fn_c_try_compile "$LINENO"; then :
  6569. xorg_cv_cc_flag_unknown_warning_option=yes
  6570. else
  6571. xorg_cv_cc_flag_unknown_warning_option=no
  6572. fi
  6573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6574. fi
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6576. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6577. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6578. CFLAGS="$xorg_testset_save_CFLAGS"
  6579. fi
  6580. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6581. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6582. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6583. fi
  6584. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6586. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6587. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6588. $as_echo_n "(cached) " >&6
  6589. else
  6590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6591. /* end confdefs.h. */
  6592. int i;
  6593. _ACEOF
  6594. if ac_fn_c_try_compile "$LINENO"; then :
  6595. xorg_cv_cc_flag_unused_command_line_argument=yes
  6596. else
  6597. xorg_cv_cc_flag_unused_command_line_argument=no
  6598. fi
  6599. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6600. fi
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6602. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6603. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6604. CFLAGS="$xorg_testset_save_CFLAGS"
  6605. fi
  6606. found="no"
  6607. if test $found = "no" ; then
  6608. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6609. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6610. fi
  6611. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6612. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6613. fi
  6614. CFLAGS="$CFLAGS -Werror=array-bounds"
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6616. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6617. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6618. if eval \${$cacheid+:} false; then :
  6619. $as_echo_n "(cached) " >&6
  6620. else
  6621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6622. /* end confdefs.h. */
  6623. int i;
  6624. int
  6625. main ()
  6626. {
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. if ac_fn_c_try_link "$LINENO"; then :
  6632. eval $cacheid=yes
  6633. else
  6634. eval $cacheid=no
  6635. fi
  6636. rm -f core conftest.err conftest.$ac_objext \
  6637. conftest$ac_exeext conftest.$ac_ext
  6638. fi
  6639. CFLAGS="$xorg_testset_save_CFLAGS"
  6640. eval supported=\$$cacheid
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6642. $as_echo "$supported" >&6; }
  6643. if test "$supported" = "yes" ; then
  6644. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6645. found="yes"
  6646. fi
  6647. fi
  6648. xorg_testset_save_CFLAGS="$CFLAGS"
  6649. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6650. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6652. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6653. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6654. $as_echo_n "(cached) " >&6
  6655. else
  6656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6657. /* end confdefs.h. */
  6658. int i;
  6659. _ACEOF
  6660. if ac_fn_c_try_compile "$LINENO"; then :
  6661. xorg_cv_cc_flag_unknown_warning_option=yes
  6662. else
  6663. xorg_cv_cc_flag_unknown_warning_option=no
  6664. fi
  6665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6666. fi
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6668. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6669. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6670. CFLAGS="$xorg_testset_save_CFLAGS"
  6671. fi
  6672. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6673. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6674. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6675. fi
  6676. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6678. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6679. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6683. /* end confdefs.h. */
  6684. int i;
  6685. _ACEOF
  6686. if ac_fn_c_try_compile "$LINENO"; then :
  6687. xorg_cv_cc_flag_unused_command_line_argument=yes
  6688. else
  6689. xorg_cv_cc_flag_unused_command_line_argument=no
  6690. fi
  6691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6692. fi
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6694. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6695. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6696. CFLAGS="$xorg_testset_save_CFLAGS"
  6697. fi
  6698. found="no"
  6699. if test $found = "no" ; then
  6700. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6701. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6702. fi
  6703. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6704. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6705. fi
  6706. CFLAGS="$CFLAGS -Werror=write-strings"
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6708. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6709. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6710. if eval \${$cacheid+:} false; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6714. /* end confdefs.h. */
  6715. int i;
  6716. int
  6717. main ()
  6718. {
  6719. ;
  6720. return 0;
  6721. }
  6722. _ACEOF
  6723. if ac_fn_c_try_link "$LINENO"; then :
  6724. eval $cacheid=yes
  6725. else
  6726. eval $cacheid=no
  6727. fi
  6728. rm -f core conftest.err conftest.$ac_objext \
  6729. conftest$ac_exeext conftest.$ac_ext
  6730. fi
  6731. CFLAGS="$xorg_testset_save_CFLAGS"
  6732. eval supported=\$$cacheid
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6734. $as_echo "$supported" >&6; }
  6735. if test "$supported" = "yes" ; then
  6736. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6737. found="yes"
  6738. fi
  6739. fi
  6740. xorg_testset_save_CFLAGS="$CFLAGS"
  6741. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6742. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6744. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6745. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6746. $as_echo_n "(cached) " >&6
  6747. else
  6748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6749. /* end confdefs.h. */
  6750. int i;
  6751. _ACEOF
  6752. if ac_fn_c_try_compile "$LINENO"; then :
  6753. xorg_cv_cc_flag_unknown_warning_option=yes
  6754. else
  6755. xorg_cv_cc_flag_unknown_warning_option=no
  6756. fi
  6757. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6758. fi
  6759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6760. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6761. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6762. CFLAGS="$xorg_testset_save_CFLAGS"
  6763. fi
  6764. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6765. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6766. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6767. fi
  6768. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6770. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6771. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6772. $as_echo_n "(cached) " >&6
  6773. else
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. int i;
  6777. _ACEOF
  6778. if ac_fn_c_try_compile "$LINENO"; then :
  6779. xorg_cv_cc_flag_unused_command_line_argument=yes
  6780. else
  6781. xorg_cv_cc_flag_unused_command_line_argument=no
  6782. fi
  6783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6784. fi
  6785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6786. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6787. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6788. CFLAGS="$xorg_testset_save_CFLAGS"
  6789. fi
  6790. found="no"
  6791. if test $found = "no" ; then
  6792. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6793. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6794. fi
  6795. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6796. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6797. fi
  6798. CFLAGS="$CFLAGS -Werror=address"
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6800. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6801. cacheid=xorg_cv_cc_flag__Werror_address
  6802. if eval \${$cacheid+:} false; then :
  6803. $as_echo_n "(cached) " >&6
  6804. else
  6805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6806. /* end confdefs.h. */
  6807. int i;
  6808. int
  6809. main ()
  6810. {
  6811. ;
  6812. return 0;
  6813. }
  6814. _ACEOF
  6815. if ac_fn_c_try_link "$LINENO"; then :
  6816. eval $cacheid=yes
  6817. else
  6818. eval $cacheid=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext \
  6821. conftest$ac_exeext conftest.$ac_ext
  6822. fi
  6823. CFLAGS="$xorg_testset_save_CFLAGS"
  6824. eval supported=\$$cacheid
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6826. $as_echo "$supported" >&6; }
  6827. if test "$supported" = "yes" ; then
  6828. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6829. found="yes"
  6830. fi
  6831. fi
  6832. xorg_testset_save_CFLAGS="$CFLAGS"
  6833. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6834. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6836. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6837. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6838. $as_echo_n "(cached) " >&6
  6839. else
  6840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6841. /* end confdefs.h. */
  6842. int i;
  6843. _ACEOF
  6844. if ac_fn_c_try_compile "$LINENO"; then :
  6845. xorg_cv_cc_flag_unknown_warning_option=yes
  6846. else
  6847. xorg_cv_cc_flag_unknown_warning_option=no
  6848. fi
  6849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6850. fi
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6852. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6853. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6854. CFLAGS="$xorg_testset_save_CFLAGS"
  6855. fi
  6856. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6857. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6858. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6859. fi
  6860. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6862. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6863. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6864. $as_echo_n "(cached) " >&6
  6865. else
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. int i;
  6869. _ACEOF
  6870. if ac_fn_c_try_compile "$LINENO"; then :
  6871. xorg_cv_cc_flag_unused_command_line_argument=yes
  6872. else
  6873. xorg_cv_cc_flag_unused_command_line_argument=no
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6878. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6879. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6880. CFLAGS="$xorg_testset_save_CFLAGS"
  6881. fi
  6882. found="no"
  6883. if test $found = "no" ; then
  6884. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6885. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6886. fi
  6887. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6888. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6889. fi
  6890. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6892. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6893. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6894. if eval \${$cacheid+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end confdefs.h. */
  6899. int i;
  6900. int
  6901. main ()
  6902. {
  6903. ;
  6904. return 0;
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_link "$LINENO"; then :
  6908. eval $cacheid=yes
  6909. else
  6910. eval $cacheid=no
  6911. fi
  6912. rm -f core conftest.err conftest.$ac_objext \
  6913. conftest$ac_exeext conftest.$ac_ext
  6914. fi
  6915. CFLAGS="$xorg_testset_save_CFLAGS"
  6916. eval supported=\$$cacheid
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6918. $as_echo "$supported" >&6; }
  6919. if test "$supported" = "yes" ; then
  6920. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6921. found="yes"
  6922. fi
  6923. fi
  6924. if test $found = "no" ; then
  6925. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6926. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6927. fi
  6928. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6929. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6930. fi
  6931. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6933. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6934. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6935. if eval \${$cacheid+:} false; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6939. /* end confdefs.h. */
  6940. int i;
  6941. int
  6942. main ()
  6943. {
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. if ac_fn_c_try_link "$LINENO"; then :
  6949. eval $cacheid=yes
  6950. else
  6951. eval $cacheid=no
  6952. fi
  6953. rm -f core conftest.err conftest.$ac_objext \
  6954. conftest$ac_exeext conftest.$ac_ext
  6955. fi
  6956. CFLAGS="$xorg_testset_save_CFLAGS"
  6957. eval supported=\$$cacheid
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6959. $as_echo "$supported" >&6; }
  6960. if test "$supported" = "yes" ; then
  6961. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6962. found="yes"
  6963. fi
  6964. fi
  6965. xorg_testset_save_CFLAGS="$CFLAGS"
  6966. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6967. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6969. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6970. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6974. /* end confdefs.h. */
  6975. int i;
  6976. _ACEOF
  6977. if ac_fn_c_try_compile "$LINENO"; then :
  6978. xorg_cv_cc_flag_unknown_warning_option=yes
  6979. else
  6980. xorg_cv_cc_flag_unknown_warning_option=no
  6981. fi
  6982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6983. fi
  6984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6985. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6986. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6987. CFLAGS="$xorg_testset_save_CFLAGS"
  6988. fi
  6989. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6990. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6991. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6992. fi
  6993. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6995. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6996. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6997. $as_echo_n "(cached) " >&6
  6998. else
  6999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7000. /* end confdefs.h. */
  7001. int i;
  7002. _ACEOF
  7003. if ac_fn_c_try_compile "$LINENO"; then :
  7004. xorg_cv_cc_flag_unused_command_line_argument=yes
  7005. else
  7006. xorg_cv_cc_flag_unused_command_line_argument=no
  7007. fi
  7008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7009. fi
  7010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7011. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7012. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7013. CFLAGS="$xorg_testset_save_CFLAGS"
  7014. fi
  7015. found="no"
  7016. if test $found = "no" ; then
  7017. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7018. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7019. fi
  7020. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7021. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7022. fi
  7023. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7025. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7026. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7027. if eval \${$cacheid+:} false; then :
  7028. $as_echo_n "(cached) " >&6
  7029. else
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. int i;
  7033. int
  7034. main ()
  7035. {
  7036. ;
  7037. return 0;
  7038. }
  7039. _ACEOF
  7040. if ac_fn_c_try_link "$LINENO"; then :
  7041. eval $cacheid=yes
  7042. else
  7043. eval $cacheid=no
  7044. fi
  7045. rm -f core conftest.err conftest.$ac_objext \
  7046. conftest$ac_exeext conftest.$ac_ext
  7047. fi
  7048. CFLAGS="$xorg_testset_save_CFLAGS"
  7049. eval supported=\$$cacheid
  7050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7051. $as_echo "$supported" >&6; }
  7052. if test "$supported" = "yes" ; then
  7053. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7054. found="yes"
  7055. fi
  7056. fi
  7057. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7058. else
  7059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
  7060. $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
  7061. xorg_testset_save_CFLAGS="$CFLAGS"
  7062. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7063. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7065. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7066. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7070. /* end confdefs.h. */
  7071. int i;
  7072. _ACEOF
  7073. if ac_fn_c_try_compile "$LINENO"; then :
  7074. xorg_cv_cc_flag_unknown_warning_option=yes
  7075. else
  7076. xorg_cv_cc_flag_unknown_warning_option=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. fi
  7080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7081. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7082. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7083. CFLAGS="$xorg_testset_save_CFLAGS"
  7084. fi
  7085. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7086. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7087. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7088. fi
  7089. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7091. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7092. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7093. $as_echo_n "(cached) " >&6
  7094. else
  7095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7096. /* end confdefs.h. */
  7097. int i;
  7098. _ACEOF
  7099. if ac_fn_c_try_compile "$LINENO"; then :
  7100. xorg_cv_cc_flag_unused_command_line_argument=yes
  7101. else
  7102. xorg_cv_cc_flag_unused_command_line_argument=no
  7103. fi
  7104. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7105. fi
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7107. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7108. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7109. CFLAGS="$xorg_testset_save_CFLAGS"
  7110. fi
  7111. found="no"
  7112. if test $found = "no" ; then
  7113. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7114. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7115. fi
  7116. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7117. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7118. fi
  7119. CFLAGS="$CFLAGS -Wimplicit"
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7121. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7122. cacheid=xorg_cv_cc_flag__Wimplicit
  7123. if eval \${$cacheid+:} false; then :
  7124. $as_echo_n "(cached) " >&6
  7125. else
  7126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7127. /* end confdefs.h. */
  7128. int i;
  7129. int
  7130. main ()
  7131. {
  7132. ;
  7133. return 0;
  7134. }
  7135. _ACEOF
  7136. if ac_fn_c_try_link "$LINENO"; then :
  7137. eval $cacheid=yes
  7138. else
  7139. eval $cacheid=no
  7140. fi
  7141. rm -f core conftest.err conftest.$ac_objext \
  7142. conftest$ac_exeext conftest.$ac_ext
  7143. fi
  7144. CFLAGS="$xorg_testset_save_CFLAGS"
  7145. eval supported=\$$cacheid
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7147. $as_echo "$supported" >&6; }
  7148. if test "$supported" = "yes" ; then
  7149. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7150. found="yes"
  7151. fi
  7152. fi
  7153. xorg_testset_save_CFLAGS="$CFLAGS"
  7154. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7155. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7157. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7158. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7159. $as_echo_n "(cached) " >&6
  7160. else
  7161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7162. /* end confdefs.h. */
  7163. int i;
  7164. _ACEOF
  7165. if ac_fn_c_try_compile "$LINENO"; then :
  7166. xorg_cv_cc_flag_unknown_warning_option=yes
  7167. else
  7168. xorg_cv_cc_flag_unknown_warning_option=no
  7169. fi
  7170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7171. fi
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7173. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7174. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7175. CFLAGS="$xorg_testset_save_CFLAGS"
  7176. fi
  7177. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7178. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7179. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7180. fi
  7181. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7183. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7184. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7185. $as_echo_n "(cached) " >&6
  7186. else
  7187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7188. /* end confdefs.h. */
  7189. int i;
  7190. _ACEOF
  7191. if ac_fn_c_try_compile "$LINENO"; then :
  7192. xorg_cv_cc_flag_unused_command_line_argument=yes
  7193. else
  7194. xorg_cv_cc_flag_unused_command_line_argument=no
  7195. fi
  7196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7197. fi
  7198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7199. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7200. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7201. CFLAGS="$xorg_testset_save_CFLAGS"
  7202. fi
  7203. found="no"
  7204. if test $found = "no" ; then
  7205. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7206. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7207. fi
  7208. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7209. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7210. fi
  7211. CFLAGS="$CFLAGS -Wnonnull"
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7213. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7214. cacheid=xorg_cv_cc_flag__Wnonnull
  7215. if eval \${$cacheid+:} false; then :
  7216. $as_echo_n "(cached) " >&6
  7217. else
  7218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7219. /* end confdefs.h. */
  7220. int i;
  7221. int
  7222. main ()
  7223. {
  7224. ;
  7225. return 0;
  7226. }
  7227. _ACEOF
  7228. if ac_fn_c_try_link "$LINENO"; then :
  7229. eval $cacheid=yes
  7230. else
  7231. eval $cacheid=no
  7232. fi
  7233. rm -f core conftest.err conftest.$ac_objext \
  7234. conftest$ac_exeext conftest.$ac_ext
  7235. fi
  7236. CFLAGS="$xorg_testset_save_CFLAGS"
  7237. eval supported=\$$cacheid
  7238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7239. $as_echo "$supported" >&6; }
  7240. if test "$supported" = "yes" ; then
  7241. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7242. found="yes"
  7243. fi
  7244. fi
  7245. xorg_testset_save_CFLAGS="$CFLAGS"
  7246. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7247. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7249. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7250. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7251. $as_echo_n "(cached) " >&6
  7252. else
  7253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7254. /* end confdefs.h. */
  7255. int i;
  7256. _ACEOF
  7257. if ac_fn_c_try_compile "$LINENO"; then :
  7258. xorg_cv_cc_flag_unknown_warning_option=yes
  7259. else
  7260. xorg_cv_cc_flag_unknown_warning_option=no
  7261. fi
  7262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7265. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7266. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7267. CFLAGS="$xorg_testset_save_CFLAGS"
  7268. fi
  7269. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7270. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7271. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7272. fi
  7273. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7275. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7276. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7280. /* end confdefs.h. */
  7281. int i;
  7282. _ACEOF
  7283. if ac_fn_c_try_compile "$LINENO"; then :
  7284. xorg_cv_cc_flag_unused_command_line_argument=yes
  7285. else
  7286. xorg_cv_cc_flag_unused_command_line_argument=no
  7287. fi
  7288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7291. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7292. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7293. CFLAGS="$xorg_testset_save_CFLAGS"
  7294. fi
  7295. found="no"
  7296. if test $found = "no" ; then
  7297. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7298. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7299. fi
  7300. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7301. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7302. fi
  7303. CFLAGS="$CFLAGS -Winit-self"
  7304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7305. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7306. cacheid=xorg_cv_cc_flag__Winit_self
  7307. if eval \${$cacheid+:} false; then :
  7308. $as_echo_n "(cached) " >&6
  7309. else
  7310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7311. /* end confdefs.h. */
  7312. int i;
  7313. int
  7314. main ()
  7315. {
  7316. ;
  7317. return 0;
  7318. }
  7319. _ACEOF
  7320. if ac_fn_c_try_link "$LINENO"; then :
  7321. eval $cacheid=yes
  7322. else
  7323. eval $cacheid=no
  7324. fi
  7325. rm -f core conftest.err conftest.$ac_objext \
  7326. conftest$ac_exeext conftest.$ac_ext
  7327. fi
  7328. CFLAGS="$xorg_testset_save_CFLAGS"
  7329. eval supported=\$$cacheid
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7331. $as_echo "$supported" >&6; }
  7332. if test "$supported" = "yes" ; then
  7333. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7334. found="yes"
  7335. fi
  7336. fi
  7337. xorg_testset_save_CFLAGS="$CFLAGS"
  7338. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7341. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7342. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7343. $as_echo_n "(cached) " >&6
  7344. else
  7345. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7346. /* end confdefs.h. */
  7347. int i;
  7348. _ACEOF
  7349. if ac_fn_c_try_compile "$LINENO"; then :
  7350. xorg_cv_cc_flag_unknown_warning_option=yes
  7351. else
  7352. xorg_cv_cc_flag_unknown_warning_option=no
  7353. fi
  7354. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7355. fi
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7357. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7358. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7359. CFLAGS="$xorg_testset_save_CFLAGS"
  7360. fi
  7361. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7362. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7363. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7364. fi
  7365. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7367. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7368. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7369. $as_echo_n "(cached) " >&6
  7370. else
  7371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7372. /* end confdefs.h. */
  7373. int i;
  7374. _ACEOF
  7375. if ac_fn_c_try_compile "$LINENO"; then :
  7376. xorg_cv_cc_flag_unused_command_line_argument=yes
  7377. else
  7378. xorg_cv_cc_flag_unused_command_line_argument=no
  7379. fi
  7380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7381. fi
  7382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7383. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7384. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7385. CFLAGS="$xorg_testset_save_CFLAGS"
  7386. fi
  7387. found="no"
  7388. if test $found = "no" ; then
  7389. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7390. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7391. fi
  7392. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7393. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7394. fi
  7395. CFLAGS="$CFLAGS -Wmain"
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7397. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7398. cacheid=xorg_cv_cc_flag__Wmain
  7399. if eval \${$cacheid+:} false; then :
  7400. $as_echo_n "(cached) " >&6
  7401. else
  7402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7403. /* end confdefs.h. */
  7404. int i;
  7405. int
  7406. main ()
  7407. {
  7408. ;
  7409. return 0;
  7410. }
  7411. _ACEOF
  7412. if ac_fn_c_try_link "$LINENO"; then :
  7413. eval $cacheid=yes
  7414. else
  7415. eval $cacheid=no
  7416. fi
  7417. rm -f core conftest.err conftest.$ac_objext \
  7418. conftest$ac_exeext conftest.$ac_ext
  7419. fi
  7420. CFLAGS="$xorg_testset_save_CFLAGS"
  7421. eval supported=\$$cacheid
  7422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7423. $as_echo "$supported" >&6; }
  7424. if test "$supported" = "yes" ; then
  7425. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7426. found="yes"
  7427. fi
  7428. fi
  7429. xorg_testset_save_CFLAGS="$CFLAGS"
  7430. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7433. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7434. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7438. /* end confdefs.h. */
  7439. int i;
  7440. _ACEOF
  7441. if ac_fn_c_try_compile "$LINENO"; then :
  7442. xorg_cv_cc_flag_unknown_warning_option=yes
  7443. else
  7444. xorg_cv_cc_flag_unknown_warning_option=no
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. fi
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7449. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7450. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7451. CFLAGS="$xorg_testset_save_CFLAGS"
  7452. fi
  7453. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7454. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7455. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7456. fi
  7457. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7459. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7460. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7461. $as_echo_n "(cached) " >&6
  7462. else
  7463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7464. /* end confdefs.h. */
  7465. int i;
  7466. _ACEOF
  7467. if ac_fn_c_try_compile "$LINENO"; then :
  7468. xorg_cv_cc_flag_unused_command_line_argument=yes
  7469. else
  7470. xorg_cv_cc_flag_unused_command_line_argument=no
  7471. fi
  7472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7473. fi
  7474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7475. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7476. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7477. CFLAGS="$xorg_testset_save_CFLAGS"
  7478. fi
  7479. found="no"
  7480. if test $found = "no" ; then
  7481. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7482. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7483. fi
  7484. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7485. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7486. fi
  7487. CFLAGS="$CFLAGS -Wmissing-braces"
  7488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7489. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7490. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7491. if eval \${$cacheid+:} false; then :
  7492. $as_echo_n "(cached) " >&6
  7493. else
  7494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7495. /* end confdefs.h. */
  7496. int i;
  7497. int
  7498. main ()
  7499. {
  7500. ;
  7501. return 0;
  7502. }
  7503. _ACEOF
  7504. if ac_fn_c_try_link "$LINENO"; then :
  7505. eval $cacheid=yes
  7506. else
  7507. eval $cacheid=no
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext \
  7510. conftest$ac_exeext conftest.$ac_ext
  7511. fi
  7512. CFLAGS="$xorg_testset_save_CFLAGS"
  7513. eval supported=\$$cacheid
  7514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7515. $as_echo "$supported" >&6; }
  7516. if test "$supported" = "yes" ; then
  7517. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7518. found="yes"
  7519. fi
  7520. fi
  7521. xorg_testset_save_CFLAGS="$CFLAGS"
  7522. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7525. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7526. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7527. $as_echo_n "(cached) " >&6
  7528. else
  7529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7530. /* end confdefs.h. */
  7531. int i;
  7532. _ACEOF
  7533. if ac_fn_c_try_compile "$LINENO"; then :
  7534. xorg_cv_cc_flag_unknown_warning_option=yes
  7535. else
  7536. xorg_cv_cc_flag_unknown_warning_option=no
  7537. fi
  7538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7539. fi
  7540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7541. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7542. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7543. CFLAGS="$xorg_testset_save_CFLAGS"
  7544. fi
  7545. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7546. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7547. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7548. fi
  7549. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7551. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7552. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7553. $as_echo_n "(cached) " >&6
  7554. else
  7555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7556. /* end confdefs.h. */
  7557. int i;
  7558. _ACEOF
  7559. if ac_fn_c_try_compile "$LINENO"; then :
  7560. xorg_cv_cc_flag_unused_command_line_argument=yes
  7561. else
  7562. xorg_cv_cc_flag_unused_command_line_argument=no
  7563. fi
  7564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7565. fi
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7567. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7568. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7569. CFLAGS="$xorg_testset_save_CFLAGS"
  7570. fi
  7571. found="no"
  7572. if test $found = "no" ; then
  7573. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7574. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7575. fi
  7576. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7577. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7578. fi
  7579. CFLAGS="$CFLAGS -Wsequence-point"
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7581. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7582. cacheid=xorg_cv_cc_flag__Wsequence_point
  7583. if eval \${$cacheid+:} false; then :
  7584. $as_echo_n "(cached) " >&6
  7585. else
  7586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7587. /* end confdefs.h. */
  7588. int i;
  7589. int
  7590. main ()
  7591. {
  7592. ;
  7593. return 0;
  7594. }
  7595. _ACEOF
  7596. if ac_fn_c_try_link "$LINENO"; then :
  7597. eval $cacheid=yes
  7598. else
  7599. eval $cacheid=no
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext \
  7602. conftest$ac_exeext conftest.$ac_ext
  7603. fi
  7604. CFLAGS="$xorg_testset_save_CFLAGS"
  7605. eval supported=\$$cacheid
  7606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7607. $as_echo "$supported" >&6; }
  7608. if test "$supported" = "yes" ; then
  7609. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7610. found="yes"
  7611. fi
  7612. fi
  7613. xorg_testset_save_CFLAGS="$CFLAGS"
  7614. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7615. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7617. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7618. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7622. /* end confdefs.h. */
  7623. int i;
  7624. _ACEOF
  7625. if ac_fn_c_try_compile "$LINENO"; then :
  7626. xorg_cv_cc_flag_unknown_warning_option=yes
  7627. else
  7628. xorg_cv_cc_flag_unknown_warning_option=no
  7629. fi
  7630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7631. fi
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7633. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7634. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7635. CFLAGS="$xorg_testset_save_CFLAGS"
  7636. fi
  7637. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7638. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7640. fi
  7641. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7643. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7644. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7645. $as_echo_n "(cached) " >&6
  7646. else
  7647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7648. /* end confdefs.h. */
  7649. int i;
  7650. _ACEOF
  7651. if ac_fn_c_try_compile "$LINENO"; then :
  7652. xorg_cv_cc_flag_unused_command_line_argument=yes
  7653. else
  7654. xorg_cv_cc_flag_unused_command_line_argument=no
  7655. fi
  7656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7657. fi
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7659. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7660. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7661. CFLAGS="$xorg_testset_save_CFLAGS"
  7662. fi
  7663. found="no"
  7664. if test $found = "no" ; then
  7665. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7666. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7667. fi
  7668. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7669. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7670. fi
  7671. CFLAGS="$CFLAGS -Wreturn-type"
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7673. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7674. cacheid=xorg_cv_cc_flag__Wreturn_type
  7675. if eval \${$cacheid+:} false; then :
  7676. $as_echo_n "(cached) " >&6
  7677. else
  7678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7679. /* end confdefs.h. */
  7680. int i;
  7681. int
  7682. main ()
  7683. {
  7684. ;
  7685. return 0;
  7686. }
  7687. _ACEOF
  7688. if ac_fn_c_try_link "$LINENO"; then :
  7689. eval $cacheid=yes
  7690. else
  7691. eval $cacheid=no
  7692. fi
  7693. rm -f core conftest.err conftest.$ac_objext \
  7694. conftest$ac_exeext conftest.$ac_ext
  7695. fi
  7696. CFLAGS="$xorg_testset_save_CFLAGS"
  7697. eval supported=\$$cacheid
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7699. $as_echo "$supported" >&6; }
  7700. if test "$supported" = "yes" ; then
  7701. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7702. found="yes"
  7703. fi
  7704. fi
  7705. xorg_testset_save_CFLAGS="$CFLAGS"
  7706. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7707. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7709. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7710. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7714. /* end confdefs.h. */
  7715. int i;
  7716. _ACEOF
  7717. if ac_fn_c_try_compile "$LINENO"; then :
  7718. xorg_cv_cc_flag_unknown_warning_option=yes
  7719. else
  7720. xorg_cv_cc_flag_unknown_warning_option=no
  7721. fi
  7722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7723. fi
  7724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7725. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7726. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7727. CFLAGS="$xorg_testset_save_CFLAGS"
  7728. fi
  7729. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7730. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7731. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7732. fi
  7733. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7735. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7736. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7737. $as_echo_n "(cached) " >&6
  7738. else
  7739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7740. /* end confdefs.h. */
  7741. int i;
  7742. _ACEOF
  7743. if ac_fn_c_try_compile "$LINENO"; then :
  7744. xorg_cv_cc_flag_unused_command_line_argument=yes
  7745. else
  7746. xorg_cv_cc_flag_unused_command_line_argument=no
  7747. fi
  7748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7751. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7752. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7753. CFLAGS="$xorg_testset_save_CFLAGS"
  7754. fi
  7755. found="no"
  7756. if test $found = "no" ; then
  7757. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7758. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7759. fi
  7760. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7761. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7762. fi
  7763. CFLAGS="$CFLAGS -Wtrigraphs"
  7764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7765. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7766. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7767. if eval \${$cacheid+:} false; then :
  7768. $as_echo_n "(cached) " >&6
  7769. else
  7770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7771. /* end confdefs.h. */
  7772. int i;
  7773. int
  7774. main ()
  7775. {
  7776. ;
  7777. return 0;
  7778. }
  7779. _ACEOF
  7780. if ac_fn_c_try_link "$LINENO"; then :
  7781. eval $cacheid=yes
  7782. else
  7783. eval $cacheid=no
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext \
  7786. conftest$ac_exeext conftest.$ac_ext
  7787. fi
  7788. CFLAGS="$xorg_testset_save_CFLAGS"
  7789. eval supported=\$$cacheid
  7790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7791. $as_echo "$supported" >&6; }
  7792. if test "$supported" = "yes" ; then
  7793. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7794. found="yes"
  7795. fi
  7796. fi
  7797. xorg_testset_save_CFLAGS="$CFLAGS"
  7798. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7799. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7801. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7802. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7803. $as_echo_n "(cached) " >&6
  7804. else
  7805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7806. /* end confdefs.h. */
  7807. int i;
  7808. _ACEOF
  7809. if ac_fn_c_try_compile "$LINENO"; then :
  7810. xorg_cv_cc_flag_unknown_warning_option=yes
  7811. else
  7812. xorg_cv_cc_flag_unknown_warning_option=no
  7813. fi
  7814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7815. fi
  7816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7817. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7818. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7819. CFLAGS="$xorg_testset_save_CFLAGS"
  7820. fi
  7821. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7822. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7823. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7824. fi
  7825. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7827. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7828. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7829. $as_echo_n "(cached) " >&6
  7830. else
  7831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7832. /* end confdefs.h. */
  7833. int i;
  7834. _ACEOF
  7835. if ac_fn_c_try_compile "$LINENO"; then :
  7836. xorg_cv_cc_flag_unused_command_line_argument=yes
  7837. else
  7838. xorg_cv_cc_flag_unused_command_line_argument=no
  7839. fi
  7840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7841. fi
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7843. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7844. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7845. CFLAGS="$xorg_testset_save_CFLAGS"
  7846. fi
  7847. found="no"
  7848. if test $found = "no" ; then
  7849. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7850. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7851. fi
  7852. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7853. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7854. fi
  7855. CFLAGS="$CFLAGS -Warray-bounds"
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7857. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7858. cacheid=xorg_cv_cc_flag__Warray_bounds
  7859. if eval \${$cacheid+:} false; then :
  7860. $as_echo_n "(cached) " >&6
  7861. else
  7862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7863. /* end confdefs.h. */
  7864. int i;
  7865. int
  7866. main ()
  7867. {
  7868. ;
  7869. return 0;
  7870. }
  7871. _ACEOF
  7872. if ac_fn_c_try_link "$LINENO"; then :
  7873. eval $cacheid=yes
  7874. else
  7875. eval $cacheid=no
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext \
  7878. conftest$ac_exeext conftest.$ac_ext
  7879. fi
  7880. CFLAGS="$xorg_testset_save_CFLAGS"
  7881. eval supported=\$$cacheid
  7882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7883. $as_echo "$supported" >&6; }
  7884. if test "$supported" = "yes" ; then
  7885. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7886. found="yes"
  7887. fi
  7888. fi
  7889. xorg_testset_save_CFLAGS="$CFLAGS"
  7890. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7891. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7893. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7894. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7895. $as_echo_n "(cached) " >&6
  7896. else
  7897. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7898. /* end confdefs.h. */
  7899. int i;
  7900. _ACEOF
  7901. if ac_fn_c_try_compile "$LINENO"; then :
  7902. xorg_cv_cc_flag_unknown_warning_option=yes
  7903. else
  7904. xorg_cv_cc_flag_unknown_warning_option=no
  7905. fi
  7906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7907. fi
  7908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7909. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7910. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7911. CFLAGS="$xorg_testset_save_CFLAGS"
  7912. fi
  7913. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7914. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7915. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7916. fi
  7917. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7919. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7920. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7921. $as_echo_n "(cached) " >&6
  7922. else
  7923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7924. /* end confdefs.h. */
  7925. int i;
  7926. _ACEOF
  7927. if ac_fn_c_try_compile "$LINENO"; then :
  7928. xorg_cv_cc_flag_unused_command_line_argument=yes
  7929. else
  7930. xorg_cv_cc_flag_unused_command_line_argument=no
  7931. fi
  7932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7933. fi
  7934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7935. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7936. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7937. CFLAGS="$xorg_testset_save_CFLAGS"
  7938. fi
  7939. found="no"
  7940. if test $found = "no" ; then
  7941. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7942. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7943. fi
  7944. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7945. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7946. fi
  7947. CFLAGS="$CFLAGS -Wwrite-strings"
  7948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7949. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7950. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7951. if eval \${$cacheid+:} false; then :
  7952. $as_echo_n "(cached) " >&6
  7953. else
  7954. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7955. /* end confdefs.h. */
  7956. int i;
  7957. int
  7958. main ()
  7959. {
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. if ac_fn_c_try_link "$LINENO"; then :
  7965. eval $cacheid=yes
  7966. else
  7967. eval $cacheid=no
  7968. fi
  7969. rm -f core conftest.err conftest.$ac_objext \
  7970. conftest$ac_exeext conftest.$ac_ext
  7971. fi
  7972. CFLAGS="$xorg_testset_save_CFLAGS"
  7973. eval supported=\$$cacheid
  7974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7975. $as_echo "$supported" >&6; }
  7976. if test "$supported" = "yes" ; then
  7977. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7978. found="yes"
  7979. fi
  7980. fi
  7981. xorg_testset_save_CFLAGS="$CFLAGS"
  7982. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7983. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7985. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7986. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7990. /* end confdefs.h. */
  7991. int i;
  7992. _ACEOF
  7993. if ac_fn_c_try_compile "$LINENO"; then :
  7994. xorg_cv_cc_flag_unknown_warning_option=yes
  7995. else
  7996. xorg_cv_cc_flag_unknown_warning_option=no
  7997. fi
  7998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7999. fi
  8000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8001. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8002. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8003. CFLAGS="$xorg_testset_save_CFLAGS"
  8004. fi
  8005. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8006. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8007. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8008. fi
  8009. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8011. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8012. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8013. $as_echo_n "(cached) " >&6
  8014. else
  8015. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8016. /* end confdefs.h. */
  8017. int i;
  8018. _ACEOF
  8019. if ac_fn_c_try_compile "$LINENO"; then :
  8020. xorg_cv_cc_flag_unused_command_line_argument=yes
  8021. else
  8022. xorg_cv_cc_flag_unused_command_line_argument=no
  8023. fi
  8024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8025. fi
  8026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8027. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8028. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8029. CFLAGS="$xorg_testset_save_CFLAGS"
  8030. fi
  8031. found="no"
  8032. if test $found = "no" ; then
  8033. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8034. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8035. fi
  8036. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8037. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8038. fi
  8039. CFLAGS="$CFLAGS -Waddress"
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8041. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8042. cacheid=xorg_cv_cc_flag__Waddress
  8043. if eval \${$cacheid+:} false; then :
  8044. $as_echo_n "(cached) " >&6
  8045. else
  8046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8047. /* end confdefs.h. */
  8048. int i;
  8049. int
  8050. main ()
  8051. {
  8052. ;
  8053. return 0;
  8054. }
  8055. _ACEOF
  8056. if ac_fn_c_try_link "$LINENO"; then :
  8057. eval $cacheid=yes
  8058. else
  8059. eval $cacheid=no
  8060. fi
  8061. rm -f core conftest.err conftest.$ac_objext \
  8062. conftest$ac_exeext conftest.$ac_ext
  8063. fi
  8064. CFLAGS="$xorg_testset_save_CFLAGS"
  8065. eval supported=\$$cacheid
  8066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8067. $as_echo "$supported" >&6; }
  8068. if test "$supported" = "yes" ; then
  8069. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8070. found="yes"
  8071. fi
  8072. fi
  8073. xorg_testset_save_CFLAGS="$CFLAGS"
  8074. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8075. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8077. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8078. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8079. $as_echo_n "(cached) " >&6
  8080. else
  8081. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8082. /* end confdefs.h. */
  8083. int i;
  8084. _ACEOF
  8085. if ac_fn_c_try_compile "$LINENO"; then :
  8086. xorg_cv_cc_flag_unknown_warning_option=yes
  8087. else
  8088. xorg_cv_cc_flag_unknown_warning_option=no
  8089. fi
  8090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8091. fi
  8092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8093. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8094. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8095. CFLAGS="$xorg_testset_save_CFLAGS"
  8096. fi
  8097. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8098. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8100. fi
  8101. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8103. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8104. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8105. $as_echo_n "(cached) " >&6
  8106. else
  8107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8108. /* end confdefs.h. */
  8109. int i;
  8110. _ACEOF
  8111. if ac_fn_c_try_compile "$LINENO"; then :
  8112. xorg_cv_cc_flag_unused_command_line_argument=yes
  8113. else
  8114. xorg_cv_cc_flag_unused_command_line_argument=no
  8115. fi
  8116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8117. fi
  8118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8119. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8120. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8121. CFLAGS="$xorg_testset_save_CFLAGS"
  8122. fi
  8123. found="no"
  8124. if test $found = "no" ; then
  8125. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8126. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8127. fi
  8128. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8129. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8130. fi
  8131. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8133. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8134. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8135. if eval \${$cacheid+:} false; then :
  8136. $as_echo_n "(cached) " >&6
  8137. else
  8138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8139. /* end confdefs.h. */
  8140. int i;
  8141. int
  8142. main ()
  8143. {
  8144. ;
  8145. return 0;
  8146. }
  8147. _ACEOF
  8148. if ac_fn_c_try_link "$LINENO"; then :
  8149. eval $cacheid=yes
  8150. else
  8151. eval $cacheid=no
  8152. fi
  8153. rm -f core conftest.err conftest.$ac_objext \
  8154. conftest$ac_exeext conftest.$ac_ext
  8155. fi
  8156. CFLAGS="$xorg_testset_save_CFLAGS"
  8157. eval supported=\$$cacheid
  8158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8159. $as_echo "$supported" >&6; }
  8160. if test "$supported" = "yes" ; then
  8161. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8162. found="yes"
  8163. fi
  8164. fi
  8165. xorg_testset_save_CFLAGS="$CFLAGS"
  8166. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8167. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8169. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8170. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8171. $as_echo_n "(cached) " >&6
  8172. else
  8173. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8174. /* end confdefs.h. */
  8175. int i;
  8176. _ACEOF
  8177. if ac_fn_c_try_compile "$LINENO"; then :
  8178. xorg_cv_cc_flag_unknown_warning_option=yes
  8179. else
  8180. xorg_cv_cc_flag_unknown_warning_option=no
  8181. fi
  8182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8183. fi
  8184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8185. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8186. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8187. CFLAGS="$xorg_testset_save_CFLAGS"
  8188. fi
  8189. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8190. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8191. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8192. fi
  8193. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8195. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8196. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8197. $as_echo_n "(cached) " >&6
  8198. else
  8199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8200. /* end confdefs.h. */
  8201. int i;
  8202. _ACEOF
  8203. if ac_fn_c_try_compile "$LINENO"; then :
  8204. xorg_cv_cc_flag_unused_command_line_argument=yes
  8205. else
  8206. xorg_cv_cc_flag_unused_command_line_argument=no
  8207. fi
  8208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8209. fi
  8210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8211. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8212. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8213. CFLAGS="$xorg_testset_save_CFLAGS"
  8214. fi
  8215. found="no"
  8216. if test $found = "no" ; then
  8217. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8218. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8219. fi
  8220. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8221. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8222. fi
  8223. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8225. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8226. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8227. if eval \${$cacheid+:} false; then :
  8228. $as_echo_n "(cached) " >&6
  8229. else
  8230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8231. /* end confdefs.h. */
  8232. int i;
  8233. int
  8234. main ()
  8235. {
  8236. ;
  8237. return 0;
  8238. }
  8239. _ACEOF
  8240. if ac_fn_c_try_link "$LINENO"; then :
  8241. eval $cacheid=yes
  8242. else
  8243. eval $cacheid=no
  8244. fi
  8245. rm -f core conftest.err conftest.$ac_objext \
  8246. conftest$ac_exeext conftest.$ac_ext
  8247. fi
  8248. CFLAGS="$xorg_testset_save_CFLAGS"
  8249. eval supported=\$$cacheid
  8250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8251. $as_echo "$supported" >&6; }
  8252. if test "$supported" = "yes" ; then
  8253. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8254. found="yes"
  8255. fi
  8256. fi
  8257. fi
  8258. CWARNFLAGS="$BASE_CFLAGS"
  8259. if test "x$GCC" = xyes ; then
  8260. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8261. fi
  8262. # Check whether --enable-strict-compilation was given.
  8263. if test "${enable_strict_compilation+set}" = set; then :
  8264. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8265. else
  8266. STRICT_COMPILE=no
  8267. fi
  8268. STRICT_CFLAGS=""
  8269. xorg_testset_save_CFLAGS="$CFLAGS"
  8270. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8271. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8273. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8274. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8275. $as_echo_n "(cached) " >&6
  8276. else
  8277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8278. /* end confdefs.h. */
  8279. int i;
  8280. _ACEOF
  8281. if ac_fn_c_try_compile "$LINENO"; then :
  8282. xorg_cv_cc_flag_unknown_warning_option=yes
  8283. else
  8284. xorg_cv_cc_flag_unknown_warning_option=no
  8285. fi
  8286. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8287. fi
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8289. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8290. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8291. CFLAGS="$xorg_testset_save_CFLAGS"
  8292. fi
  8293. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8294. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8295. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8296. fi
  8297. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8299. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8300. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8301. $as_echo_n "(cached) " >&6
  8302. else
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. int i;
  8306. _ACEOF
  8307. if ac_fn_c_try_compile "$LINENO"; then :
  8308. xorg_cv_cc_flag_unused_command_line_argument=yes
  8309. else
  8310. xorg_cv_cc_flag_unused_command_line_argument=no
  8311. fi
  8312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. fi
  8314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8315. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8316. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8317. CFLAGS="$xorg_testset_save_CFLAGS"
  8318. fi
  8319. found="no"
  8320. if test $found = "no" ; then
  8321. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8322. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8323. fi
  8324. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8325. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8326. fi
  8327. CFLAGS="$CFLAGS -pedantic"
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8329. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8330. cacheid=xorg_cv_cc_flag__pedantic
  8331. if eval \${$cacheid+:} false; then :
  8332. $as_echo_n "(cached) " >&6
  8333. else
  8334. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8335. /* end confdefs.h. */
  8336. int i;
  8337. int
  8338. main ()
  8339. {
  8340. ;
  8341. return 0;
  8342. }
  8343. _ACEOF
  8344. if ac_fn_c_try_link "$LINENO"; then :
  8345. eval $cacheid=yes
  8346. else
  8347. eval $cacheid=no
  8348. fi
  8349. rm -f core conftest.err conftest.$ac_objext \
  8350. conftest$ac_exeext conftest.$ac_ext
  8351. fi
  8352. CFLAGS="$xorg_testset_save_CFLAGS"
  8353. eval supported=\$$cacheid
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8355. $as_echo "$supported" >&6; }
  8356. if test "$supported" = "yes" ; then
  8357. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8358. found="yes"
  8359. fi
  8360. fi
  8361. xorg_testset_save_CFLAGS="$CFLAGS"
  8362. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8363. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8365. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8366. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8367. $as_echo_n "(cached) " >&6
  8368. else
  8369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8370. /* end confdefs.h. */
  8371. int i;
  8372. _ACEOF
  8373. if ac_fn_c_try_compile "$LINENO"; then :
  8374. xorg_cv_cc_flag_unknown_warning_option=yes
  8375. else
  8376. xorg_cv_cc_flag_unknown_warning_option=no
  8377. fi
  8378. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8379. fi
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8381. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8382. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8383. CFLAGS="$xorg_testset_save_CFLAGS"
  8384. fi
  8385. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8386. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8387. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8388. fi
  8389. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8391. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8392. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8393. $as_echo_n "(cached) " >&6
  8394. else
  8395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8396. /* end confdefs.h. */
  8397. int i;
  8398. _ACEOF
  8399. if ac_fn_c_try_compile "$LINENO"; then :
  8400. xorg_cv_cc_flag_unused_command_line_argument=yes
  8401. else
  8402. xorg_cv_cc_flag_unused_command_line_argument=no
  8403. fi
  8404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8405. fi
  8406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8407. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8408. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8409. CFLAGS="$xorg_testset_save_CFLAGS"
  8410. fi
  8411. found="no"
  8412. if test $found = "no" ; then
  8413. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8414. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8415. fi
  8416. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8417. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8418. fi
  8419. CFLAGS="$CFLAGS -Werror"
  8420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8421. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8422. cacheid=xorg_cv_cc_flag__Werror
  8423. if eval \${$cacheid+:} false; then :
  8424. $as_echo_n "(cached) " >&6
  8425. else
  8426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8427. /* end confdefs.h. */
  8428. int i;
  8429. int
  8430. main ()
  8431. {
  8432. ;
  8433. return 0;
  8434. }
  8435. _ACEOF
  8436. if ac_fn_c_try_link "$LINENO"; then :
  8437. eval $cacheid=yes
  8438. else
  8439. eval $cacheid=no
  8440. fi
  8441. rm -f core conftest.err conftest.$ac_objext \
  8442. conftest$ac_exeext conftest.$ac_ext
  8443. fi
  8444. CFLAGS="$xorg_testset_save_CFLAGS"
  8445. eval supported=\$$cacheid
  8446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8447. $as_echo "$supported" >&6; }
  8448. if test "$supported" = "yes" ; then
  8449. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8450. found="yes"
  8451. fi
  8452. fi
  8453. if test $found = "no" ; then
  8454. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8455. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8456. fi
  8457. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8458. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8459. fi
  8460. CFLAGS="$CFLAGS -errwarn"
  8461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8462. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8463. cacheid=xorg_cv_cc_flag__errwarn
  8464. if eval \${$cacheid+:} false; then :
  8465. $as_echo_n "(cached) " >&6
  8466. else
  8467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8468. /* end confdefs.h. */
  8469. int i;
  8470. int
  8471. main ()
  8472. {
  8473. ;
  8474. return 0;
  8475. }
  8476. _ACEOF
  8477. if ac_fn_c_try_link "$LINENO"; then :
  8478. eval $cacheid=yes
  8479. else
  8480. eval $cacheid=no
  8481. fi
  8482. rm -f core conftest.err conftest.$ac_objext \
  8483. conftest$ac_exeext conftest.$ac_ext
  8484. fi
  8485. CFLAGS="$xorg_testset_save_CFLAGS"
  8486. eval supported=\$$cacheid
  8487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8488. $as_echo "$supported" >&6; }
  8489. if test "$supported" = "yes" ; then
  8490. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8491. found="yes"
  8492. fi
  8493. fi
  8494. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8495. # activate it with -Werror, so we add it here explicitly.
  8496. xorg_testset_save_CFLAGS="$CFLAGS"
  8497. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8498. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8500. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8501. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8502. $as_echo_n "(cached) " >&6
  8503. else
  8504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8505. /* end confdefs.h. */
  8506. int i;
  8507. _ACEOF
  8508. if ac_fn_c_try_compile "$LINENO"; then :
  8509. xorg_cv_cc_flag_unknown_warning_option=yes
  8510. else
  8511. xorg_cv_cc_flag_unknown_warning_option=no
  8512. fi
  8513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8514. fi
  8515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8516. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8517. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8518. CFLAGS="$xorg_testset_save_CFLAGS"
  8519. fi
  8520. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8521. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8522. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8523. fi
  8524. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8526. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8527. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8528. $as_echo_n "(cached) " >&6
  8529. else
  8530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8531. /* end confdefs.h. */
  8532. int i;
  8533. _ACEOF
  8534. if ac_fn_c_try_compile "$LINENO"; then :
  8535. xorg_cv_cc_flag_unused_command_line_argument=yes
  8536. else
  8537. xorg_cv_cc_flag_unused_command_line_argument=no
  8538. fi
  8539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8540. fi
  8541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8542. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8543. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8544. CFLAGS="$xorg_testset_save_CFLAGS"
  8545. fi
  8546. found="no"
  8547. if test $found = "no" ; then
  8548. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8549. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8550. fi
  8551. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8552. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8553. fi
  8554. CFLAGS="$CFLAGS -Werror=attributes"
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8556. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8557. cacheid=xorg_cv_cc_flag__Werror_attributes
  8558. if eval \${$cacheid+:} false; then :
  8559. $as_echo_n "(cached) " >&6
  8560. else
  8561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8562. /* end confdefs.h. */
  8563. int i;
  8564. int
  8565. main ()
  8566. {
  8567. ;
  8568. return 0;
  8569. }
  8570. _ACEOF
  8571. if ac_fn_c_try_link "$LINENO"; then :
  8572. eval $cacheid=yes
  8573. else
  8574. eval $cacheid=no
  8575. fi
  8576. rm -f core conftest.err conftest.$ac_objext \
  8577. conftest$ac_exeext conftest.$ac_ext
  8578. fi
  8579. CFLAGS="$xorg_testset_save_CFLAGS"
  8580. eval supported=\$$cacheid
  8581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8582. $as_echo "$supported" >&6; }
  8583. if test "$supported" = "yes" ; then
  8584. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8585. found="yes"
  8586. fi
  8587. fi
  8588. if test "x$STRICT_COMPILE" = "xyes"; then
  8589. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8590. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8591. fi
  8592. cat >>confdefs.h <<_ACEOF
  8593. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8594. _ACEOF
  8595. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8596. if test "x$PVM" = "x"; then
  8597. PVM="0"
  8598. fi
  8599. cat >>confdefs.h <<_ACEOF
  8600. #define PACKAGE_VERSION_MINOR $PVM
  8601. _ACEOF
  8602. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8603. if test "x$PVP" = "x"; then
  8604. PVP="0"
  8605. fi
  8606. cat >>confdefs.h <<_ACEOF
  8607. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8608. _ACEOF
  8609. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8610. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8611. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8612. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8613. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8614. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8615. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8616. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8617. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8618. if test x$APP_MAN_SUFFIX = x ; then
  8619. APP_MAN_SUFFIX=1
  8620. fi
  8621. if test x$APP_MAN_DIR = x ; then
  8622. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8623. fi
  8624. if test x$LIB_MAN_SUFFIX = x ; then
  8625. LIB_MAN_SUFFIX=3
  8626. fi
  8627. if test x$LIB_MAN_DIR = x ; then
  8628. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8629. fi
  8630. if test x$FILE_MAN_SUFFIX = x ; then
  8631. case $host_os in
  8632. solaris*) FILE_MAN_SUFFIX=4 ;;
  8633. *) FILE_MAN_SUFFIX=5 ;;
  8634. esac
  8635. fi
  8636. if test x$FILE_MAN_DIR = x ; then
  8637. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8638. fi
  8639. if test x$MISC_MAN_SUFFIX = x ; then
  8640. case $host_os in
  8641. solaris*) MISC_MAN_SUFFIX=5 ;;
  8642. *) MISC_MAN_SUFFIX=7 ;;
  8643. esac
  8644. fi
  8645. if test x$MISC_MAN_DIR = x ; then
  8646. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8647. fi
  8648. if test x$DRIVER_MAN_SUFFIX = x ; then
  8649. case $host_os in
  8650. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8651. *) DRIVER_MAN_SUFFIX=4 ;;
  8652. esac
  8653. fi
  8654. if test x$DRIVER_MAN_DIR = x ; then
  8655. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8656. fi
  8657. if test x$ADMIN_MAN_SUFFIX = x ; then
  8658. case $host_os in
  8659. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8660. *) ADMIN_MAN_SUFFIX=8 ;;
  8661. esac
  8662. fi
  8663. if test x$ADMIN_MAN_DIR = x ; then
  8664. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8665. fi
  8666. XORG_MAN_PAGE="X Version 11"
  8667. MAN_SUBSTS="\
  8668. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8669. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8670. -e 's|__xservername__|Xorg|g' \
  8671. -e 's|__xconfigfile__|xorg.conf|g' \
  8672. -e 's|__projectroot__|\$(prefix)|g' \
  8673. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8674. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8675. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8676. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8677. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8678. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8679. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8680. # Check whether --enable-silent-rules was given.
  8681. if test "${enable_silent_rules+set}" = set; then :
  8682. enableval=$enable_silent_rules;
  8683. fi
  8684. case $enable_silent_rules in # (((
  8685. yes) AM_DEFAULT_VERBOSITY=0;;
  8686. no) AM_DEFAULT_VERBOSITY=1;;
  8687. *) AM_DEFAULT_VERBOSITY=0;;
  8688. esac
  8689. am_make=${MAKE-make}
  8690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8691. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8692. if ${am_cv_make_support_nested_variables+:} false; then :
  8693. $as_echo_n "(cached) " >&6
  8694. else
  8695. if $as_echo 'TRUE=$(BAR$(V))
  8696. BAR0=false
  8697. BAR1=true
  8698. V=1
  8699. am__doit:
  8700. @$(TRUE)
  8701. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8702. am_cv_make_support_nested_variables=yes
  8703. else
  8704. am_cv_make_support_nested_variables=no
  8705. fi
  8706. fi
  8707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8708. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8709. if test $am_cv_make_support_nested_variables = yes; then
  8710. AM_V='$(V)'
  8711. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8712. else
  8713. AM_V=$AM_DEFAULT_VERBOSITY
  8714. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8715. fi
  8716. AM_BACKSLASH='\'
  8717. # Checks for pkg-config packages
  8718. pkg_failed=no
  8719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEV" >&5
  8720. $as_echo_n "checking for XEV... " >&6; }
  8721. if test -n "$XEV_CFLAGS"; then
  8722. pkg_cv_XEV_CFLAGS="$XEV_CFLAGS"
  8723. elif test -n "$PKG_CONFIG"; then
  8724. if test -n "$PKG_CONFIG" && \
  8725. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
  8726. ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
  8727. ac_status=$?
  8728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8729. test $ac_status = 0; }; then
  8730. pkg_cv_XEV_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
  8731. test "x$?" != "x0" && pkg_failed=yes
  8732. else
  8733. pkg_failed=yes
  8734. fi
  8735. else
  8736. pkg_failed=untried
  8737. fi
  8738. if test -n "$XEV_LIBS"; then
  8739. pkg_cv_XEV_LIBS="$XEV_LIBS"
  8740. elif test -n "$PKG_CONFIG"; then
  8741. if test -n "$PKG_CONFIG" && \
  8742. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr >= 1.2 x11 xproto >= 7.0.17\""; } >&5
  8743. ($PKG_CONFIG --exists --print-errors "xrandr >= 1.2 x11 xproto >= 7.0.17") 2>&5
  8744. ac_status=$?
  8745. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8746. test $ac_status = 0; }; then
  8747. pkg_cv_XEV_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>/dev/null`
  8748. test "x$?" != "x0" && pkg_failed=yes
  8749. else
  8750. pkg_failed=yes
  8751. fi
  8752. else
  8753. pkg_failed=untried
  8754. fi
  8755. if test $pkg_failed = yes; then
  8756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8757. $as_echo "no" >&6; }
  8758. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8759. _pkg_short_errors_supported=yes
  8760. else
  8761. _pkg_short_errors_supported=no
  8762. fi
  8763. if test $_pkg_short_errors_supported = yes; then
  8764. XEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
  8765. else
  8766. XEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr >= 1.2 x11 xproto >= 7.0.17" 2>&1`
  8767. fi
  8768. # Put the nasty error message in config.log where it belongs
  8769. echo "$XEV_PKG_ERRORS" >&5
  8770. as_fn_error $? "Package requirements (xrandr >= 1.2 x11 xproto >= 7.0.17) were not met:
  8771. $XEV_PKG_ERRORS
  8772. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8773. installed software in a non-standard prefix.
  8774. Alternatively, you may set the environment variables XEV_CFLAGS
  8775. and XEV_LIBS to avoid the need to call pkg-config.
  8776. See the pkg-config man page for more details." "$LINENO" 5
  8777. elif test $pkg_failed = untried; then
  8778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8779. $as_echo "no" >&6; }
  8780. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8781. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8782. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8783. is in your PATH or set the PKG_CONFIG environment variable to the full
  8784. path to pkg-config.
  8785. Alternatively, you may set the environment variables XEV_CFLAGS
  8786. and XEV_LIBS to avoid the need to call pkg-config.
  8787. See the pkg-config man page for more details.
  8788. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8789. See \`config.log' for more details" "$LINENO" 5; }
  8790. else
  8791. XEV_CFLAGS=$pkg_cv_XEV_CFLAGS
  8792. XEV_LIBS=$pkg_cv_XEV_LIBS
  8793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8794. $as_echo "yes" >&6; }
  8795. fi
  8796. ac_config_files="$ac_config_files Makefile man/Makefile"
  8797. cat >confcache <<\_ACEOF
  8798. # This file is a shell script that caches the results of configure
  8799. # tests run on this system so they can be shared between configure
  8800. # scripts and configure runs, see configure's option --config-cache.
  8801. # It is not useful on other systems. If it contains results you don't
  8802. # want to keep, you may remove or edit it.
  8803. #
  8804. # config.status only pays attention to the cache file if you give it
  8805. # the --recheck option to rerun configure.
  8806. #
  8807. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8808. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8809. # following values.
  8810. _ACEOF
  8811. # The following way of writing the cache mishandles newlines in values,
  8812. # but we know of no workaround that is simple, portable, and efficient.
  8813. # So, we kill variables containing newlines.
  8814. # Ultrix sh set writes to stderr and can't be redirected directly,
  8815. # and sets the high bit in the cache file unless we assign to the vars.
  8816. (
  8817. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8818. eval ac_val=\$$ac_var
  8819. case $ac_val in #(
  8820. *${as_nl}*)
  8821. case $ac_var in #(
  8822. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8823. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8824. esac
  8825. case $ac_var in #(
  8826. _ | IFS | as_nl) ;; #(
  8827. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8828. *) { eval $ac_var=; unset $ac_var;} ;;
  8829. esac ;;
  8830. esac
  8831. done
  8832. (set) 2>&1 |
  8833. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8834. *${as_nl}ac_space=\ *)
  8835. # `set' does not quote correctly, so add quotes: double-quote
  8836. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8837. sed -n \
  8838. "s/'/'\\\\''/g;
  8839. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8840. ;; #(
  8841. *)
  8842. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8843. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8844. ;;
  8845. esac |
  8846. sort
  8847. ) |
  8848. sed '
  8849. /^ac_cv_env_/b end
  8850. t clear
  8851. :clear
  8852. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8853. t end
  8854. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8855. :end' >>confcache
  8856. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8857. if test -w "$cache_file"; then
  8858. if test "x$cache_file" != "x/dev/null"; then
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8860. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8861. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8862. cat confcache >"$cache_file"
  8863. else
  8864. case $cache_file in #(
  8865. */* | ?:*)
  8866. mv -f confcache "$cache_file"$$ &&
  8867. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8868. *)
  8869. mv -f confcache "$cache_file" ;;
  8870. esac
  8871. fi
  8872. fi
  8873. else
  8874. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8875. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8876. fi
  8877. fi
  8878. rm -f confcache
  8879. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8880. # Let make expand exec_prefix.
  8881. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8882. DEFS=-DHAVE_CONFIG_H
  8883. ac_libobjs=
  8884. ac_ltlibobjs=
  8885. U=
  8886. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8887. # 1. Remove the extension, and $U if already installed.
  8888. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8889. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8890. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8891. # will be set to the directory where LIBOBJS objects are built.
  8892. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8893. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8894. done
  8895. LIBOBJS=$ac_libobjs
  8896. LTLIBOBJS=$ac_ltlibobjs
  8897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8898. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8899. if test -n "$am_sleep_pid"; then
  8900. # Hide warnings about reused PIDs.
  8901. wait $am_sleep_pid 2>/dev/null
  8902. fi
  8903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8904. $as_echo "done" >&6; }
  8905. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8906. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8907. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8908. fi
  8909. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8910. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8911. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8912. fi
  8913. if test -n "$EXEEXT"; then
  8914. am__EXEEXT_TRUE=
  8915. am__EXEEXT_FALSE='#'
  8916. else
  8917. am__EXEEXT_TRUE='#'
  8918. am__EXEEXT_FALSE=
  8919. fi
  8920. : "${CONFIG_STATUS=./config.status}"
  8921. ac_write_fail=0
  8922. ac_clean_files_save=$ac_clean_files
  8923. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8924. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8925. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8926. as_write_fail=0
  8927. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8928. #! $SHELL
  8929. # Generated by $as_me.
  8930. # Run this file to recreate the current configuration.
  8931. # Compiler output produced by configure, useful for debugging
  8932. # configure, is in config.log if it exists.
  8933. debug=false
  8934. ac_cs_recheck=false
  8935. ac_cs_silent=false
  8936. SHELL=\${CONFIG_SHELL-$SHELL}
  8937. export SHELL
  8938. _ASEOF
  8939. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8940. ## -------------------- ##
  8941. ## M4sh Initialization. ##
  8942. ## -------------------- ##
  8943. # Be more Bourne compatible
  8944. DUALCASE=1; export DUALCASE # for MKS sh
  8945. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8946. emulate sh
  8947. NULLCMD=:
  8948. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8949. # is contrary to our usage. Disable this feature.
  8950. alias -g '${1+"$@"}'='"$@"'
  8951. setopt NO_GLOB_SUBST
  8952. else
  8953. case `(set -o) 2>/dev/null` in #(
  8954. *posix*) :
  8955. set -o posix ;; #(
  8956. *) :
  8957. ;;
  8958. esac
  8959. fi
  8960. as_nl='
  8961. '
  8962. export as_nl
  8963. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8964. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8965. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8966. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8967. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8968. # but without wasting forks for bash or zsh.
  8969. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8970. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8971. as_echo='print -r --'
  8972. as_echo_n='print -rn --'
  8973. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8974. as_echo='printf %s\n'
  8975. as_echo_n='printf %s'
  8976. else
  8977. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8978. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8979. as_echo_n='/usr/ucb/echo -n'
  8980. else
  8981. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8982. as_echo_n_body='eval
  8983. arg=$1;
  8984. case $arg in #(
  8985. *"$as_nl"*)
  8986. expr "X$arg" : "X\\(.*\\)$as_nl";
  8987. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8988. esac;
  8989. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8990. '
  8991. export as_echo_n_body
  8992. as_echo_n='sh -c $as_echo_n_body as_echo'
  8993. fi
  8994. export as_echo_body
  8995. as_echo='sh -c $as_echo_body as_echo'
  8996. fi
  8997. # The user is always right.
  8998. if test "${PATH_SEPARATOR+set}" != set; then
  8999. PATH_SEPARATOR=:
  9000. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9001. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9002. PATH_SEPARATOR=';'
  9003. }
  9004. fi
  9005. # IFS
  9006. # We need space, tab and new line, in precisely that order. Quoting is
  9007. # there to prevent editors from complaining about space-tab.
  9008. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9009. # splitting by setting IFS to empty value.)
  9010. IFS=" "" $as_nl"
  9011. # Find who we are. Look in the path if we contain no directory separator.
  9012. as_myself=
  9013. case $0 in #((
  9014. *[\\/]* ) as_myself=$0 ;;
  9015. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9016. for as_dir in $PATH
  9017. do
  9018. IFS=$as_save_IFS
  9019. test -z "$as_dir" && as_dir=.
  9020. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9021. done
  9022. IFS=$as_save_IFS
  9023. ;;
  9024. esac
  9025. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9026. # in which case we are not to be found in the path.
  9027. if test "x$as_myself" = x; then
  9028. as_myself=$0
  9029. fi
  9030. if test ! -f "$as_myself"; then
  9031. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9032. exit 1
  9033. fi
  9034. # Unset variables that we do not need and which cause bugs (e.g. in
  9035. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9036. # suppresses any "Segmentation fault" message there. '((' could
  9037. # trigger a bug in pdksh 5.2.14.
  9038. for as_var in BASH_ENV ENV MAIL MAILPATH
  9039. do eval test x\${$as_var+set} = xset \
  9040. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9041. done
  9042. PS1='$ '
  9043. PS2='> '
  9044. PS4='+ '
  9045. # NLS nuisances.
  9046. LC_ALL=C
  9047. export LC_ALL
  9048. LANGUAGE=C
  9049. export LANGUAGE
  9050. # CDPATH.
  9051. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9052. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9053. # ----------------------------------------
  9054. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9055. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9056. # script with STATUS, using 1 if that was 0.
  9057. as_fn_error ()
  9058. {
  9059. as_status=$1; test $as_status -eq 0 && as_status=1
  9060. if test "$4"; then
  9061. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9062. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9063. fi
  9064. $as_echo "$as_me: error: $2" >&2
  9065. as_fn_exit $as_status
  9066. } # as_fn_error
  9067. # as_fn_set_status STATUS
  9068. # -----------------------
  9069. # Set $? to STATUS, without forking.
  9070. as_fn_set_status ()
  9071. {
  9072. return $1
  9073. } # as_fn_set_status
  9074. # as_fn_exit STATUS
  9075. # -----------------
  9076. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9077. as_fn_exit ()
  9078. {
  9079. set +e
  9080. as_fn_set_status $1
  9081. exit $1
  9082. } # as_fn_exit
  9083. # as_fn_unset VAR
  9084. # ---------------
  9085. # Portably unset VAR.
  9086. as_fn_unset ()
  9087. {
  9088. { eval $1=; unset $1;}
  9089. }
  9090. as_unset=as_fn_unset
  9091. # as_fn_append VAR VALUE
  9092. # ----------------------
  9093. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9094. # advantage of any shell optimizations that allow amortized linear growth over
  9095. # repeated appends, instead of the typical quadratic growth present in naive
  9096. # implementations.
  9097. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9098. eval 'as_fn_append ()
  9099. {
  9100. eval $1+=\$2
  9101. }'
  9102. else
  9103. as_fn_append ()
  9104. {
  9105. eval $1=\$$1\$2
  9106. }
  9107. fi # as_fn_append
  9108. # as_fn_arith ARG...
  9109. # ------------------
  9110. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9111. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9112. # must be portable across $(()) and expr.
  9113. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9114. eval 'as_fn_arith ()
  9115. {
  9116. as_val=$(( $* ))
  9117. }'
  9118. else
  9119. as_fn_arith ()
  9120. {
  9121. as_val=`expr "$@" || test $? -eq 1`
  9122. }
  9123. fi # as_fn_arith
  9124. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9125. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9126. as_expr=expr
  9127. else
  9128. as_expr=false
  9129. fi
  9130. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9131. as_basename=basename
  9132. else
  9133. as_basename=false
  9134. fi
  9135. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9136. as_dirname=dirname
  9137. else
  9138. as_dirname=false
  9139. fi
  9140. as_me=`$as_basename -- "$0" ||
  9141. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9142. X"$0" : 'X\(//\)$' \| \
  9143. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9144. $as_echo X/"$0" |
  9145. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9146. s//\1/
  9147. q
  9148. }
  9149. /^X\/\(\/\/\)$/{
  9150. s//\1/
  9151. q
  9152. }
  9153. /^X\/\(\/\).*/{
  9154. s//\1/
  9155. q
  9156. }
  9157. s/.*/./; q'`
  9158. # Avoid depending upon Character Ranges.
  9159. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9160. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9161. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9162. as_cr_digits='0123456789'
  9163. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9164. ECHO_C= ECHO_N= ECHO_T=
  9165. case `echo -n x` in #(((((
  9166. -n*)
  9167. case `echo 'xy\c'` in
  9168. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9169. xy) ECHO_C='\c';;
  9170. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9171. ECHO_T=' ';;
  9172. esac;;
  9173. *)
  9174. ECHO_N='-n';;
  9175. esac
  9176. rm -f conf$$ conf$$.exe conf$$.file
  9177. if test -d conf$$.dir; then
  9178. rm -f conf$$.dir/conf$$.file
  9179. else
  9180. rm -f conf$$.dir
  9181. mkdir conf$$.dir 2>/dev/null
  9182. fi
  9183. if (echo >conf$$.file) 2>/dev/null; then
  9184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9185. as_ln_s='ln -s'
  9186. # ... but there are two gotchas:
  9187. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9188. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9189. # In both cases, we have to default to `cp -pR'.
  9190. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9191. as_ln_s='cp -pR'
  9192. elif ln conf$$.file conf$$ 2>/dev/null; then
  9193. as_ln_s=ln
  9194. else
  9195. as_ln_s='cp -pR'
  9196. fi
  9197. else
  9198. as_ln_s='cp -pR'
  9199. fi
  9200. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9201. rmdir conf$$.dir 2>/dev/null
  9202. # as_fn_mkdir_p
  9203. # -------------
  9204. # Create "$as_dir" as a directory, including parents if necessary.
  9205. as_fn_mkdir_p ()
  9206. {
  9207. case $as_dir in #(
  9208. -*) as_dir=./$as_dir;;
  9209. esac
  9210. test -d "$as_dir" || eval $as_mkdir_p || {
  9211. as_dirs=
  9212. while :; do
  9213. case $as_dir in #(
  9214. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9215. *) as_qdir=$as_dir;;
  9216. esac
  9217. as_dirs="'$as_qdir' $as_dirs"
  9218. as_dir=`$as_dirname -- "$as_dir" ||
  9219. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9220. X"$as_dir" : 'X\(//\)[^/]' \| \
  9221. X"$as_dir" : 'X\(//\)$' \| \
  9222. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9223. $as_echo X"$as_dir" |
  9224. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9225. s//\1/
  9226. q
  9227. }
  9228. /^X\(\/\/\)[^/].*/{
  9229. s//\1/
  9230. q
  9231. }
  9232. /^X\(\/\/\)$/{
  9233. s//\1/
  9234. q
  9235. }
  9236. /^X\(\/\).*/{
  9237. s//\1/
  9238. q
  9239. }
  9240. s/.*/./; q'`
  9241. test -d "$as_dir" && break
  9242. done
  9243. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9244. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9245. } # as_fn_mkdir_p
  9246. if mkdir -p . 2>/dev/null; then
  9247. as_mkdir_p='mkdir -p "$as_dir"'
  9248. else
  9249. test -d ./-p && rmdir ./-p
  9250. as_mkdir_p=false
  9251. fi
  9252. # as_fn_executable_p FILE
  9253. # -----------------------
  9254. # Test if FILE is an executable regular file.
  9255. as_fn_executable_p ()
  9256. {
  9257. test -f "$1" && test -x "$1"
  9258. } # as_fn_executable_p
  9259. as_test_x='test -x'
  9260. as_executable_p=as_fn_executable_p
  9261. # Sed expression to map a string onto a valid CPP name.
  9262. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9263. # Sed expression to map a string onto a valid variable name.
  9264. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9265. exec 6>&1
  9266. ## ----------------------------------- ##
  9267. ## Main body of $CONFIG_STATUS script. ##
  9268. ## ----------------------------------- ##
  9269. _ASEOF
  9270. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9272. # Save the log message, to keep $0 and so on meaningful, and to
  9273. # report actual input values of CONFIG_FILES etc. instead of their
  9274. # values after options handling.
  9275. ac_log="
  9276. This file was extended by xev $as_me 1.2.2, which was
  9277. generated by GNU Autoconf 2.69. Invocation command line was
  9278. CONFIG_FILES = $CONFIG_FILES
  9279. CONFIG_HEADERS = $CONFIG_HEADERS
  9280. CONFIG_LINKS = $CONFIG_LINKS
  9281. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9282. $ $0 $@
  9283. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9284. "
  9285. _ACEOF
  9286. case $ac_config_files in *"
  9287. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9288. esac
  9289. case $ac_config_headers in *"
  9290. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9291. esac
  9292. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9293. # Files that config.status was made for.
  9294. config_files="$ac_config_files"
  9295. config_headers="$ac_config_headers"
  9296. config_commands="$ac_config_commands"
  9297. _ACEOF
  9298. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9299. ac_cs_usage="\
  9300. \`$as_me' instantiates files and other configuration actions
  9301. from templates according to the current configuration. Unless the files
  9302. and actions are specified as TAGs, all are instantiated by default.
  9303. Usage: $0 [OPTION]... [TAG]...
  9304. -h, --help print this help, then exit
  9305. -V, --version print version number and configuration settings, then exit
  9306. --config print configuration, then exit
  9307. -q, --quiet, --silent
  9308. do not print progress messages
  9309. -d, --debug don't remove temporary files
  9310. --recheck update $as_me by reconfiguring in the same conditions
  9311. --file=FILE[:TEMPLATE]
  9312. instantiate the configuration file FILE
  9313. --header=FILE[:TEMPLATE]
  9314. instantiate the configuration header FILE
  9315. Configuration files:
  9316. $config_files
  9317. Configuration headers:
  9318. $config_headers
  9319. Configuration commands:
  9320. $config_commands
  9321. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9322. _ACEOF
  9323. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9324. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9325. ac_cs_version="\\
  9326. xev config.status 1.2.2
  9327. configured by $0, generated by GNU Autoconf 2.69,
  9328. with options \\"\$ac_cs_config\\"
  9329. Copyright (C) 2012 Free Software Foundation, Inc.
  9330. This config.status script is free software; the Free Software Foundation
  9331. gives unlimited permission to copy, distribute and modify it."
  9332. ac_pwd='$ac_pwd'
  9333. srcdir='$srcdir'
  9334. INSTALL='$INSTALL'
  9335. MKDIR_P='$MKDIR_P'
  9336. AWK='$AWK'
  9337. test -n "\$AWK" || AWK=awk
  9338. _ACEOF
  9339. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9340. # The default lists apply if the user does not specify any file.
  9341. ac_need_defaults=:
  9342. while test $# != 0
  9343. do
  9344. case $1 in
  9345. --*=?*)
  9346. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9347. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9348. ac_shift=:
  9349. ;;
  9350. --*=)
  9351. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9352. ac_optarg=
  9353. ac_shift=:
  9354. ;;
  9355. *)
  9356. ac_option=$1
  9357. ac_optarg=$2
  9358. ac_shift=shift
  9359. ;;
  9360. esac
  9361. case $ac_option in
  9362. # Handling of the options.
  9363. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9364. ac_cs_recheck=: ;;
  9365. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9366. $as_echo "$ac_cs_version"; exit ;;
  9367. --config | --confi | --conf | --con | --co | --c )
  9368. $as_echo "$ac_cs_config"; exit ;;
  9369. --debug | --debu | --deb | --de | --d | -d )
  9370. debug=: ;;
  9371. --file | --fil | --fi | --f )
  9372. $ac_shift
  9373. case $ac_optarg in
  9374. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9375. '') as_fn_error $? "missing file argument" ;;
  9376. esac
  9377. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9378. ac_need_defaults=false;;
  9379. --header | --heade | --head | --hea )
  9380. $ac_shift
  9381. case $ac_optarg in
  9382. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9383. esac
  9384. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9385. ac_need_defaults=false;;
  9386. --he | --h)
  9387. # Conflict between --help and --header
  9388. as_fn_error $? "ambiguous option: \`$1'
  9389. Try \`$0 --help' for more information.";;
  9390. --help | --hel | -h )
  9391. $as_echo "$ac_cs_usage"; exit ;;
  9392. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9393. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9394. ac_cs_silent=: ;;
  9395. # This is an error.
  9396. -*) as_fn_error $? "unrecognized option: \`$1'
  9397. Try \`$0 --help' for more information." ;;
  9398. *) as_fn_append ac_config_targets " $1"
  9399. ac_need_defaults=false ;;
  9400. esac
  9401. shift
  9402. done
  9403. ac_configure_extra_args=
  9404. if $ac_cs_silent; then
  9405. exec 6>/dev/null
  9406. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9407. fi
  9408. _ACEOF
  9409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9410. if \$ac_cs_recheck; then
  9411. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9412. shift
  9413. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9414. CONFIG_SHELL='$SHELL'
  9415. export CONFIG_SHELL
  9416. exec "\$@"
  9417. fi
  9418. _ACEOF
  9419. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9420. exec 5>>config.log
  9421. {
  9422. echo
  9423. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9424. ## Running $as_me. ##
  9425. _ASBOX
  9426. $as_echo "$ac_log"
  9427. } >&5
  9428. _ACEOF
  9429. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9430. #
  9431. # INIT-COMMANDS
  9432. #
  9433. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9434. _ACEOF
  9435. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9436. # Handling of arguments.
  9437. for ac_config_target in $ac_config_targets
  9438. do
  9439. case $ac_config_target in
  9440. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9441. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9442. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9443. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9444. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9445. esac
  9446. done
  9447. # If the user did not use the arguments to specify the items to instantiate,
  9448. # then the envvar interface is used. Set only those that are not.
  9449. # We use the long form for the default assignment because of an extremely
  9450. # bizarre bug on SunOS 4.1.3.
  9451. if $ac_need_defaults; then
  9452. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9453. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9454. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9455. fi
  9456. # Have a temporary directory for convenience. Make it in the build tree
  9457. # simply because there is no reason against having it here, and in addition,
  9458. # creating and moving files from /tmp can sometimes cause problems.
  9459. # Hook for its removal unless debugging.
  9460. # Note that there is a small window in which the directory will not be cleaned:
  9461. # after its creation but before its name has been assigned to `$tmp'.
  9462. $debug ||
  9463. {
  9464. tmp= ac_tmp=
  9465. trap 'exit_status=$?
  9466. : "${ac_tmp:=$tmp}"
  9467. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9468. ' 0
  9469. trap 'as_fn_exit 1' 1 2 13 15
  9470. }
  9471. # Create a (secure) tmp directory for tmp files.
  9472. {
  9473. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9474. test -d "$tmp"
  9475. } ||
  9476. {
  9477. tmp=./conf$$-$RANDOM
  9478. (umask 077 && mkdir "$tmp")
  9479. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9480. ac_tmp=$tmp
  9481. # Set up the scripts for CONFIG_FILES section.
  9482. # No need to generate them if there are no CONFIG_FILES.
  9483. # This happens for instance with `./config.status config.h'.
  9484. if test -n "$CONFIG_FILES"; then
  9485. ac_cr=`echo X | tr X '\015'`
  9486. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9487. # But we know of no other shell where ac_cr would be empty at this
  9488. # point, so we can use a bashism as a fallback.
  9489. if test "x$ac_cr" = x; then
  9490. eval ac_cr=\$\'\\r\'
  9491. fi
  9492. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9493. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9494. ac_cs_awk_cr='\\r'
  9495. else
  9496. ac_cs_awk_cr=$ac_cr
  9497. fi
  9498. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9499. _ACEOF
  9500. {
  9501. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9502. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9503. echo "_ACEOF"
  9504. } >conf$$subs.sh ||
  9505. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9506. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9507. ac_delim='%!_!# '
  9508. for ac_last_try in false false false false false :; do
  9509. . ./conf$$subs.sh ||
  9510. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9511. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9512. if test $ac_delim_n = $ac_delim_num; then
  9513. break
  9514. elif $ac_last_try; then
  9515. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9516. else
  9517. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9518. fi
  9519. done
  9520. rm -f conf$$subs.sh
  9521. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9522. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9523. _ACEOF
  9524. sed -n '
  9525. h
  9526. s/^/S["/; s/!.*/"]=/
  9527. p
  9528. g
  9529. s/^[^!]*!//
  9530. :repl
  9531. t repl
  9532. s/'"$ac_delim"'$//
  9533. t delim
  9534. :nl
  9535. h
  9536. s/\(.\{148\}\)..*/\1/
  9537. t more1
  9538. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9539. p
  9540. n
  9541. b repl
  9542. :more1
  9543. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9544. p
  9545. g
  9546. s/.\{148\}//
  9547. t nl
  9548. :delim
  9549. h
  9550. s/\(.\{148\}\)..*/\1/
  9551. t more2
  9552. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9553. p
  9554. b
  9555. :more2
  9556. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9557. p
  9558. g
  9559. s/.\{148\}//
  9560. t delim
  9561. ' <conf$$subs.awk | sed '
  9562. /^[^""]/{
  9563. N
  9564. s/\n//
  9565. }
  9566. ' >>$CONFIG_STATUS || ac_write_fail=1
  9567. rm -f conf$$subs.awk
  9568. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9569. _ACAWK
  9570. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9571. for (key in S) S_is_set[key] = 1
  9572. FS = ""
  9573. }
  9574. {
  9575. line = $ 0
  9576. nfields = split(line, field, "@")
  9577. substed = 0
  9578. len = length(field[1])
  9579. for (i = 2; i < nfields; i++) {
  9580. key = field[i]
  9581. keylen = length(key)
  9582. if (S_is_set[key]) {
  9583. value = S[key]
  9584. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9585. len += length(value) + length(field[++i])
  9586. substed = 1
  9587. } else
  9588. len += 1 + keylen
  9589. }
  9590. print line
  9591. }
  9592. _ACAWK
  9593. _ACEOF
  9594. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9595. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9596. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9597. else
  9598. cat
  9599. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9600. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9601. _ACEOF
  9602. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9603. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9604. # trailing colons and then remove the whole line if VPATH becomes empty
  9605. # (actually we leave an empty line to preserve line numbers).
  9606. if test "x$srcdir" = x.; then
  9607. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9608. h
  9609. s///
  9610. s/^/:/
  9611. s/[ ]*$/:/
  9612. s/:\$(srcdir):/:/g
  9613. s/:\${srcdir}:/:/g
  9614. s/:@srcdir@:/:/g
  9615. s/^:*//
  9616. s/:*$//
  9617. x
  9618. s/\(=[ ]*\).*/\1/
  9619. G
  9620. s/\n//
  9621. s/^[^=]*=[ ]*$//
  9622. }'
  9623. fi
  9624. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9625. fi # test -n "$CONFIG_FILES"
  9626. # Set up the scripts for CONFIG_HEADERS section.
  9627. # No need to generate them if there are no CONFIG_HEADERS.
  9628. # This happens for instance with `./config.status Makefile'.
  9629. if test -n "$CONFIG_HEADERS"; then
  9630. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9631. BEGIN {
  9632. _ACEOF
  9633. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9634. # here-document in config.status, that substitutes the proper values into
  9635. # config.h.in to produce config.h.
  9636. # Create a delimiter string that does not exist in confdefs.h, to ease
  9637. # handling of long lines.
  9638. ac_delim='%!_!# '
  9639. for ac_last_try in false false :; do
  9640. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9641. if test -z "$ac_tt"; then
  9642. break
  9643. elif $ac_last_try; then
  9644. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9645. else
  9646. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9647. fi
  9648. done
  9649. # For the awk script, D is an array of macro values keyed by name,
  9650. # likewise P contains macro parameters if any. Preserve backslash
  9651. # newline sequences.
  9652. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9653. sed -n '
  9654. s/.\{148\}/&'"$ac_delim"'/g
  9655. t rset
  9656. :rset
  9657. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9658. t def
  9659. d
  9660. :def
  9661. s/\\$//
  9662. t bsnl
  9663. s/["\\]/\\&/g
  9664. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9665. D["\1"]=" \3"/p
  9666. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9667. d
  9668. :bsnl
  9669. s/["\\]/\\&/g
  9670. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9671. D["\1"]=" \3\\\\\\n"\\/p
  9672. t cont
  9673. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9674. t cont
  9675. d
  9676. :cont
  9677. n
  9678. s/.\{148\}/&'"$ac_delim"'/g
  9679. t clear
  9680. :clear
  9681. s/\\$//
  9682. t bsnlc
  9683. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9684. d
  9685. :bsnlc
  9686. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9687. b cont
  9688. ' <confdefs.h | sed '
  9689. s/'"$ac_delim"'/"\\\
  9690. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9691. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9692. for (key in D) D_is_set[key] = 1
  9693. FS = ""
  9694. }
  9695. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9696. line = \$ 0
  9697. split(line, arg, " ")
  9698. if (arg[1] == "#") {
  9699. defundef = arg[2]
  9700. mac1 = arg[3]
  9701. } else {
  9702. defundef = substr(arg[1], 2)
  9703. mac1 = arg[2]
  9704. }
  9705. split(mac1, mac2, "(") #)
  9706. macro = mac2[1]
  9707. prefix = substr(line, 1, index(line, defundef) - 1)
  9708. if (D_is_set[macro]) {
  9709. # Preserve the white space surrounding the "#".
  9710. print prefix "define", macro P[macro] D[macro]
  9711. next
  9712. } else {
  9713. # Replace #undef with comments. This is necessary, for example,
  9714. # in the case of _POSIX_SOURCE, which is predefined and required
  9715. # on some systems where configure will not decide to define it.
  9716. if (defundef == "undef") {
  9717. print "/*", prefix defundef, macro, "*/"
  9718. next
  9719. }
  9720. }
  9721. }
  9722. { print }
  9723. _ACAWK
  9724. _ACEOF
  9725. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9726. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9727. fi # test -n "$CONFIG_HEADERS"
  9728. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9729. shift
  9730. for ac_tag
  9731. do
  9732. case $ac_tag in
  9733. :[FHLC]) ac_mode=$ac_tag; continue;;
  9734. esac
  9735. case $ac_mode$ac_tag in
  9736. :[FHL]*:*);;
  9737. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9738. :[FH]-) ac_tag=-:-;;
  9739. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9740. esac
  9741. ac_save_IFS=$IFS
  9742. IFS=:
  9743. set x $ac_tag
  9744. IFS=$ac_save_IFS
  9745. shift
  9746. ac_file=$1
  9747. shift
  9748. case $ac_mode in
  9749. :L) ac_source=$1;;
  9750. :[FH])
  9751. ac_file_inputs=
  9752. for ac_f
  9753. do
  9754. case $ac_f in
  9755. -) ac_f="$ac_tmp/stdin";;
  9756. *) # Look for the file first in the build tree, then in the source tree
  9757. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9758. # because $ac_f cannot contain `:'.
  9759. test -f "$ac_f" ||
  9760. case $ac_f in
  9761. [\\/$]*) false;;
  9762. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9763. esac ||
  9764. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9765. esac
  9766. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9767. as_fn_append ac_file_inputs " '$ac_f'"
  9768. done
  9769. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9770. # use $as_me), people would be surprised to read:
  9771. # /* config.h. Generated by config.status. */
  9772. configure_input='Generated from '`
  9773. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9774. `' by configure.'
  9775. if test x"$ac_file" != x-; then
  9776. configure_input="$ac_file. $configure_input"
  9777. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9778. $as_echo "$as_me: creating $ac_file" >&6;}
  9779. fi
  9780. # Neutralize special characters interpreted by sed in replacement strings.
  9781. case $configure_input in #(
  9782. *\&* | *\|* | *\\* )
  9783. ac_sed_conf_input=`$as_echo "$configure_input" |
  9784. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9785. *) ac_sed_conf_input=$configure_input;;
  9786. esac
  9787. case $ac_tag in
  9788. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9789. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9790. esac
  9791. ;;
  9792. esac
  9793. ac_dir=`$as_dirname -- "$ac_file" ||
  9794. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9795. X"$ac_file" : 'X\(//\)[^/]' \| \
  9796. X"$ac_file" : 'X\(//\)$' \| \
  9797. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9798. $as_echo X"$ac_file" |
  9799. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9800. s//\1/
  9801. q
  9802. }
  9803. /^X\(\/\/\)[^/].*/{
  9804. s//\1/
  9805. q
  9806. }
  9807. /^X\(\/\/\)$/{
  9808. s//\1/
  9809. q
  9810. }
  9811. /^X\(\/\).*/{
  9812. s//\1/
  9813. q
  9814. }
  9815. s/.*/./; q'`
  9816. as_dir="$ac_dir"; as_fn_mkdir_p
  9817. ac_builddir=.
  9818. case "$ac_dir" in
  9819. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9820. *)
  9821. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9822. # A ".." for each directory in $ac_dir_suffix.
  9823. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9824. case $ac_top_builddir_sub in
  9825. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9826. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9827. esac ;;
  9828. esac
  9829. ac_abs_top_builddir=$ac_pwd
  9830. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9831. # for backward compatibility:
  9832. ac_top_builddir=$ac_top_build_prefix
  9833. case $srcdir in
  9834. .) # We are building in place.
  9835. ac_srcdir=.
  9836. ac_top_srcdir=$ac_top_builddir_sub
  9837. ac_abs_top_srcdir=$ac_pwd ;;
  9838. [\\/]* | ?:[\\/]* ) # Absolute name.
  9839. ac_srcdir=$srcdir$ac_dir_suffix;
  9840. ac_top_srcdir=$srcdir
  9841. ac_abs_top_srcdir=$srcdir ;;
  9842. *) # Relative name.
  9843. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9844. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9845. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9846. esac
  9847. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9848. case $ac_mode in
  9849. :F)
  9850. #
  9851. # CONFIG_FILE
  9852. #
  9853. case $INSTALL in
  9854. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9855. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9856. esac
  9857. ac_MKDIR_P=$MKDIR_P
  9858. case $MKDIR_P in
  9859. [\\/$]* | ?:[\\/]* ) ;;
  9860. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9861. esac
  9862. _ACEOF
  9863. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9864. # If the template does not know about datarootdir, expand it.
  9865. # FIXME: This hack should be removed a few years after 2.60.
  9866. ac_datarootdir_hack=; ac_datarootdir_seen=
  9867. ac_sed_dataroot='
  9868. /datarootdir/ {
  9869. p
  9870. q
  9871. }
  9872. /@datadir@/p
  9873. /@docdir@/p
  9874. /@infodir@/p
  9875. /@localedir@/p
  9876. /@mandir@/p'
  9877. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9878. *datarootdir*) ac_datarootdir_seen=yes;;
  9879. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9881. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9882. _ACEOF
  9883. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9884. ac_datarootdir_hack='
  9885. s&@datadir@&$datadir&g
  9886. s&@docdir@&$docdir&g
  9887. s&@infodir@&$infodir&g
  9888. s&@localedir@&$localedir&g
  9889. s&@mandir@&$mandir&g
  9890. s&\\\${datarootdir}&$datarootdir&g' ;;
  9891. esac
  9892. _ACEOF
  9893. # Neutralize VPATH when `$srcdir' = `.'.
  9894. # Shell code in configure.ac might set extrasub.
  9895. # FIXME: do we really want to maintain this feature?
  9896. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9897. ac_sed_extra="$ac_vpsub
  9898. $extrasub
  9899. _ACEOF
  9900. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9901. :t
  9902. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9903. s|@configure_input@|$ac_sed_conf_input|;t t
  9904. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9905. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9906. s&@srcdir@&$ac_srcdir&;t t
  9907. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9908. s&@top_srcdir@&$ac_top_srcdir&;t t
  9909. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9910. s&@builddir@&$ac_builddir&;t t
  9911. s&@abs_builddir@&$ac_abs_builddir&;t t
  9912. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9913. s&@INSTALL@&$ac_INSTALL&;t t
  9914. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9915. $ac_datarootdir_hack
  9916. "
  9917. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9918. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9919. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9920. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9921. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9922. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9924. which seems to be undefined. Please make sure it is defined" >&5
  9925. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9926. which seems to be undefined. Please make sure it is defined" >&2;}
  9927. rm -f "$ac_tmp/stdin"
  9928. case $ac_file in
  9929. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9930. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9931. esac \
  9932. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9933. ;;
  9934. :H)
  9935. #
  9936. # CONFIG_HEADER
  9937. #
  9938. if test x"$ac_file" != x-; then
  9939. {
  9940. $as_echo "/* $configure_input */" \
  9941. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9942. } >"$ac_tmp/config.h" \
  9943. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9944. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9945. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9946. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9947. else
  9948. rm -f "$ac_file"
  9949. mv "$ac_tmp/config.h" "$ac_file" \
  9950. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9951. fi
  9952. else
  9953. $as_echo "/* $configure_input */" \
  9954. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9955. || as_fn_error $? "could not create -" "$LINENO" 5
  9956. fi
  9957. # Compute "$ac_file"'s index in $config_headers.
  9958. _am_arg="$ac_file"
  9959. _am_stamp_count=1
  9960. for _am_header in $config_headers :; do
  9961. case $_am_header in
  9962. $_am_arg | $_am_arg:* )
  9963. break ;;
  9964. * )
  9965. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9966. esac
  9967. done
  9968. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9969. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9970. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9971. X"$_am_arg" : 'X\(//\)$' \| \
  9972. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9973. $as_echo X"$_am_arg" |
  9974. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9975. s//\1/
  9976. q
  9977. }
  9978. /^X\(\/\/\)[^/].*/{
  9979. s//\1/
  9980. q
  9981. }
  9982. /^X\(\/\/\)$/{
  9983. s//\1/
  9984. q
  9985. }
  9986. /^X\(\/\).*/{
  9987. s//\1/
  9988. q
  9989. }
  9990. s/.*/./; q'`/stamp-h$_am_stamp_count
  9991. ;;
  9992. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9993. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9994. ;;
  9995. esac
  9996. case $ac_file$ac_mode in
  9997. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  9998. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  9999. # are listed without --file. Let's play safe and only enable the eval
  10000. # if we detect the quoting.
  10001. case $CONFIG_FILES in
  10002. *\'*) eval set x "$CONFIG_FILES" ;;
  10003. *) set x $CONFIG_FILES ;;
  10004. esac
  10005. shift
  10006. for mf
  10007. do
  10008. # Strip MF so we end up with the name of the file.
  10009. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10010. # Check whether this is an Automake generated Makefile or not.
  10011. # We used to match only the files named 'Makefile.in', but
  10012. # some people rename them; so instead we look at the file content.
  10013. # Grep'ing the first line is not enough: some people post-process
  10014. # each Makefile.in and add a new line on top of each file to say so.
  10015. # Grep'ing the whole file is not good either: AIX grep has a line
  10016. # limit of 2048, but all sed's we know have understand at least 4000.
  10017. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10018. dirpart=`$as_dirname -- "$mf" ||
  10019. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10020. X"$mf" : 'X\(//\)[^/]' \| \
  10021. X"$mf" : 'X\(//\)$' \| \
  10022. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10023. $as_echo X"$mf" |
  10024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10025. s//\1/
  10026. q
  10027. }
  10028. /^X\(\/\/\)[^/].*/{
  10029. s//\1/
  10030. q
  10031. }
  10032. /^X\(\/\/\)$/{
  10033. s//\1/
  10034. q
  10035. }
  10036. /^X\(\/\).*/{
  10037. s//\1/
  10038. q
  10039. }
  10040. s/.*/./; q'`
  10041. else
  10042. continue
  10043. fi
  10044. # Extract the definition of DEPDIR, am__include, and am__quote
  10045. # from the Makefile without running 'make'.
  10046. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10047. test -z "$DEPDIR" && continue
  10048. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10049. test -z "am__include" && continue
  10050. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10051. # Find all dependency output files, they are included files with
  10052. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10053. # simplest approach to changing $(DEPDIR) to its actual value in the
  10054. # expansion.
  10055. for file in `sed -n "
  10056. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10057. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10058. # Make sure the directory exists.
  10059. test -f "$dirpart/$file" && continue
  10060. fdir=`$as_dirname -- "$file" ||
  10061. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10062. X"$file" : 'X\(//\)[^/]' \| \
  10063. X"$file" : 'X\(//\)$' \| \
  10064. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10065. $as_echo X"$file" |
  10066. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10067. s//\1/
  10068. q
  10069. }
  10070. /^X\(\/\/\)[^/].*/{
  10071. s//\1/
  10072. q
  10073. }
  10074. /^X\(\/\/\)$/{
  10075. s//\1/
  10076. q
  10077. }
  10078. /^X\(\/\).*/{
  10079. s//\1/
  10080. q
  10081. }
  10082. s/.*/./; q'`
  10083. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10084. # echo "creating $dirpart/$file"
  10085. echo '# dummy' > "$dirpart/$file"
  10086. done
  10087. done
  10088. }
  10089. ;;
  10090. esac
  10091. done # for ac_tag
  10092. as_fn_exit 0
  10093. _ACEOF
  10094. ac_clean_files=$ac_clean_files_save
  10095. test $ac_write_fail = 0 ||
  10096. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10097. # configure is writing to config.log, and then calls config.status.
  10098. # config.status does its own redirection, appending to config.log.
  10099. # Unfortunately, on DOS this fails, as config.log is still kept open
  10100. # by configure, so config.status won't be able to write to it; its
  10101. # output is simply discarded. So we exec the FD to /dev/null,
  10102. # effectively closing config.log, so it can be properly (re)opened and
  10103. # appended to by config.status. When coming back to configure, we
  10104. # need to make the FD available again.
  10105. if test "$no_create" != yes; then
  10106. ac_cs_success=:
  10107. ac_config_status_args=
  10108. test "$silent" = yes &&
  10109. ac_config_status_args="$ac_config_status_args --quiet"
  10110. exec 5>/dev/null
  10111. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10112. exec 5>>config.log
  10113. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10114. # would make configure fail if this is the last instruction.
  10115. $ac_cs_success || as_fn_exit 1
  10116. fi
  10117. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10119. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10120. fi