configure 342 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xorg-docs 1.7.1.
  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. as_awk_strverscmp='
  517. # Use only awk features that work with 7th edition Unix awk (1978).
  518. # My, what an old awk you have, Mr. Solaris!
  519. END {
  520. while (length(v1) && length(v2)) {
  521. # Set d1 to be the next thing to compare from v1, and likewise for d2.
  522. # Normally this is a single character, but if v1 and v2 contain digits,
  523. # compare them as integers and fractions as strverscmp does.
  524. if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
  525. # Split v1 and v2 into their leading digit string components d1 and d2,
  526. # and advance v1 and v2 past the leading digit strings.
  527. for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
  528. for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
  529. d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
  530. d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
  531. if (d1 ~ /^0/) {
  532. if (d2 ~ /^0/) {
  533. # Compare two fractions.
  534. while (d1 ~ /^0/ && d2 ~ /^0/) {
  535. d1 = substr(d1, 2); len1--
  536. d2 = substr(d2, 2); len2--
  537. }
  538. if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
  539. # The two components differ in length, and the common prefix
  540. # contains only leading zeros. Consider the longer to be less.
  541. d1 = -len1
  542. d2 = -len2
  543. } else {
  544. # Otherwise, compare as strings.
  545. d1 = "x" d1
  546. d2 = "x" d2
  547. }
  548. } else {
  549. # A fraction is less than an integer.
  550. exit 1
  551. }
  552. } else {
  553. if (d2 ~ /^0/) {
  554. # An integer is greater than a fraction.
  555. exit 2
  556. } else {
  557. # Compare two integers.
  558. d1 += 0
  559. d2 += 0
  560. }
  561. }
  562. } else {
  563. # The normal case, without worrying about digits.
  564. d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
  565. d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
  566. }
  567. if (d1 < d2) exit 1
  568. if (d1 > d2) exit 2
  569. }
  570. # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
  571. # which mishandles some comparisons of empty strings to integers.
  572. if (length(v2)) exit 1
  573. if (length(v1)) exit 2
  574. }
  575. '
  576. test -n "$DJDIR" || exec 7<&0 </dev/null
  577. exec 6>&1
  578. # Name of the host.
  579. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  580. # so uname gets run too.
  581. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  582. #
  583. # Initializations.
  584. #
  585. ac_default_prefix=/usr/local
  586. ac_clean_files=
  587. ac_config_libobj_dir=.
  588. LIBOBJS=
  589. cross_compiling=no
  590. subdirs=
  591. MFLAGS=
  592. MAKEFLAGS=
  593. # Identity of this package.
  594. PACKAGE_NAME='xorg-docs'
  595. PACKAGE_TARNAME='xorg-docs'
  596. PACKAGE_VERSION='1.7.1'
  597. PACKAGE_STRING='xorg-docs 1.7.1'
  598. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  599. PACKAGE_URL=''
  600. ac_unique_file="Makefile.am"
  601. # Factoring default headers for most tests.
  602. ac_includes_default="\
  603. #include <stdio.h>
  604. #ifdef HAVE_SYS_TYPES_H
  605. # include <sys/types.h>
  606. #endif
  607. #ifdef HAVE_SYS_STAT_H
  608. # include <sys/stat.h>
  609. #endif
  610. #ifdef STDC_HEADERS
  611. # include <stdlib.h>
  612. # include <stddef.h>
  613. #else
  614. # ifdef HAVE_STDLIB_H
  615. # include <stdlib.h>
  616. # endif
  617. #endif
  618. #ifdef HAVE_STRING_H
  619. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  620. # include <memory.h>
  621. # endif
  622. # include <string.h>
  623. #endif
  624. #ifdef HAVE_STRINGS_H
  625. # include <strings.h>
  626. #endif
  627. #ifdef HAVE_INTTYPES_H
  628. # include <inttypes.h>
  629. #endif
  630. #ifdef HAVE_STDINT_H
  631. # include <stdint.h>
  632. #endif
  633. #ifdef HAVE_UNISTD_H
  634. # include <unistd.h>
  635. #endif"
  636. ac_subst_vars='am__EXEEXT_FALSE
  637. am__EXEEXT_TRUE
  638. LTLIBOBJS
  639. LIBOBJS
  640. HAVE_STYLESHEETS_FALSE
  641. HAVE_STYLESHEETS_TRUE
  642. XSL_STYLESHEET
  643. STYLESHEET_SRCDIR
  644. XORG_SGML_PATH
  645. HAVE_FOP_FALSE
  646. HAVE_FOP_TRUE
  647. FOP
  648. HAVE_XSLTPROC_FALSE
  649. HAVE_XSLTPROC_TRUE
  650. XSLTPROC
  651. HAVE_XMLTO_FALSE
  652. HAVE_XMLTO_TRUE
  653. HAVE_XMLTO_TEXT_FALSE
  654. HAVE_XMLTO_TEXT_TRUE
  655. XMLTO
  656. ENABLE_SPECS_FALSE
  657. ENABLE_SPECS_TRUE
  658. ENABLE_DOCS_FALSE
  659. ENABLE_DOCS_TRUE
  660. AM_BACKSLASH
  661. AM_DEFAULT_VERBOSITY
  662. AM_DEFAULT_V
  663. AM_V
  664. MAN_SUBSTS
  665. XORG_MAN_PAGE
  666. ADMIN_MAN_DIR
  667. DRIVER_MAN_DIR
  668. MISC_MAN_DIR
  669. FILE_MAN_DIR
  670. LIB_MAN_DIR
  671. APP_MAN_DIR
  672. ADMIN_MAN_SUFFIX
  673. DRIVER_MAN_SUFFIX
  674. MISC_MAN_SUFFIX
  675. FILE_MAN_SUFFIX
  676. LIB_MAN_SUFFIX
  677. APP_MAN_SUFFIX
  678. SED
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. build_os
  684. build_vendor
  685. build_cpu
  686. build
  687. INSTALL_CMD
  688. PKG_CONFIG_LIBDIR
  689. PKG_CONFIG_PATH
  690. PKG_CONFIG
  691. CHANGELOG_CMD
  692. STRICT_CFLAGS
  693. CWARNFLAGS
  694. BASE_CFLAGS
  695. EGREP
  696. GREP
  697. CPP
  698. am__fastdepCC_FALSE
  699. am__fastdepCC_TRUE
  700. CCDEPMODE
  701. am__nodep
  702. AMDEPBACKSLASH
  703. AMDEP_FALSE
  704. AMDEP_TRUE
  705. am__quote
  706. am__include
  707. DEPDIR
  708. OBJEXT
  709. EXEEXT
  710. ac_ct_CC
  711. CPPFLAGS
  712. LDFLAGS
  713. CFLAGS
  714. CC
  715. am__untar
  716. am__tar
  717. AMTAR
  718. am__leading_dot
  719. SET_MAKE
  720. AWK
  721. mkdir_p
  722. MKDIR_P
  723. INSTALL_STRIP_PROGRAM
  724. STRIP
  725. install_sh
  726. MAKEINFO
  727. AUTOHEADER
  728. AUTOMAKE
  729. AUTOCONF
  730. ACLOCAL
  731. VERSION
  732. PACKAGE
  733. CYGPATH_W
  734. am__isrc
  735. INSTALL_DATA
  736. INSTALL_SCRIPT
  737. INSTALL_PROGRAM
  738. target_alias
  739. host_alias
  740. build_alias
  741. LIBS
  742. ECHO_T
  743. ECHO_N
  744. ECHO_C
  745. DEFS
  746. mandir
  747. localedir
  748. libdir
  749. psdir
  750. pdfdir
  751. dvidir
  752. htmldir
  753. infodir
  754. docdir
  755. oldincludedir
  756. includedir
  757. localstatedir
  758. sharedstatedir
  759. sysconfdir
  760. datadir
  761. datarootdir
  762. libexecdir
  763. sbindir
  764. bindir
  765. program_transform_name
  766. prefix
  767. exec_prefix
  768. PACKAGE_URL
  769. PACKAGE_BUGREPORT
  770. PACKAGE_STRING
  771. PACKAGE_VERSION
  772. PACKAGE_TARNAME
  773. PACKAGE_NAME
  774. PATH_SEPARATOR
  775. SHELL'
  776. ac_subst_files=''
  777. ac_user_opts='
  778. enable_option_checking
  779. enable_dependency_tracking
  780. enable_selective_werror
  781. enable_strict_compilation
  782. enable_silent_rules
  783. enable_docs
  784. enable_specs
  785. with_xmlto
  786. with_xsltproc
  787. with_fop
  788. '
  789. ac_precious_vars='build_alias
  790. host_alias
  791. target_alias
  792. CC
  793. CFLAGS
  794. LDFLAGS
  795. LIBS
  796. CPPFLAGS
  797. CPP
  798. PKG_CONFIG
  799. PKG_CONFIG_PATH
  800. PKG_CONFIG_LIBDIR
  801. XMLTO
  802. XSLTPROC
  803. FOP'
  804. # Initialize some variables set by options.
  805. ac_init_help=
  806. ac_init_version=false
  807. ac_unrecognized_opts=
  808. ac_unrecognized_sep=
  809. # The variables have the same names as the options, with
  810. # dashes changed to underlines.
  811. cache_file=/dev/null
  812. exec_prefix=NONE
  813. no_create=
  814. no_recursion=
  815. prefix=NONE
  816. program_prefix=NONE
  817. program_suffix=NONE
  818. program_transform_name=s,x,x,
  819. silent=
  820. site=
  821. srcdir=
  822. verbose=
  823. x_includes=NONE
  824. x_libraries=NONE
  825. # Installation directory options.
  826. # These are left unexpanded so users can "make install exec_prefix=/foo"
  827. # and all the variables that are supposed to be based on exec_prefix
  828. # by default will actually change.
  829. # Use braces instead of parens because sh, perl, etc. also accept them.
  830. # (The list follows the same order as the GNU Coding Standards.)
  831. bindir='${exec_prefix}/bin'
  832. sbindir='${exec_prefix}/sbin'
  833. libexecdir='${exec_prefix}/libexec'
  834. datarootdir='${prefix}/share'
  835. datadir='${datarootdir}'
  836. sysconfdir='${prefix}/etc'
  837. sharedstatedir='${prefix}/com'
  838. localstatedir='${prefix}/var'
  839. includedir='${prefix}/include'
  840. oldincludedir='/usr/include'
  841. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  842. infodir='${datarootdir}/info'
  843. htmldir='${docdir}'
  844. dvidir='${docdir}'
  845. pdfdir='${docdir}'
  846. psdir='${docdir}'
  847. libdir='${exec_prefix}/lib'
  848. localedir='${datarootdir}/locale'
  849. mandir='${datarootdir}/man'
  850. ac_prev=
  851. ac_dashdash=
  852. for ac_option
  853. do
  854. # If the previous option needs an argument, assign it.
  855. if test -n "$ac_prev"; then
  856. eval $ac_prev=\$ac_option
  857. ac_prev=
  858. continue
  859. fi
  860. case $ac_option in
  861. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  862. *=) ac_optarg= ;;
  863. *) ac_optarg=yes ;;
  864. esac
  865. # Accept the important Cygnus configure options, so we can diagnose typos.
  866. case $ac_dashdash$ac_option in
  867. --)
  868. ac_dashdash=yes ;;
  869. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  870. ac_prev=bindir ;;
  871. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  872. bindir=$ac_optarg ;;
  873. -build | --build | --buil | --bui | --bu)
  874. ac_prev=build_alias ;;
  875. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  876. build_alias=$ac_optarg ;;
  877. -cache-file | --cache-file | --cache-fil | --cache-fi \
  878. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  879. ac_prev=cache_file ;;
  880. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  881. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  882. cache_file=$ac_optarg ;;
  883. --config-cache | -C)
  884. cache_file=config.cache ;;
  885. -datadir | --datadir | --datadi | --datad)
  886. ac_prev=datadir ;;
  887. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  888. datadir=$ac_optarg ;;
  889. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  890. | --dataroo | --dataro | --datar)
  891. ac_prev=datarootdir ;;
  892. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  893. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  894. datarootdir=$ac_optarg ;;
  895. -disable-* | --disable-*)
  896. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  897. # Reject names that are not valid shell variable names.
  898. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  899. as_fn_error $? "invalid feature name: $ac_useropt"
  900. ac_useropt_orig=$ac_useropt
  901. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  902. case $ac_user_opts in
  903. *"
  904. "enable_$ac_useropt"
  905. "*) ;;
  906. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  907. ac_unrecognized_sep=', ';;
  908. esac
  909. eval enable_$ac_useropt=no ;;
  910. -docdir | --docdir | --docdi | --doc | --do)
  911. ac_prev=docdir ;;
  912. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  913. docdir=$ac_optarg ;;
  914. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  915. ac_prev=dvidir ;;
  916. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  917. dvidir=$ac_optarg ;;
  918. -enable-* | --enable-*)
  919. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  920. # Reject names that are not valid shell variable names.
  921. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  922. as_fn_error $? "invalid feature name: $ac_useropt"
  923. ac_useropt_orig=$ac_useropt
  924. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  925. case $ac_user_opts in
  926. *"
  927. "enable_$ac_useropt"
  928. "*) ;;
  929. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  930. ac_unrecognized_sep=', ';;
  931. esac
  932. eval enable_$ac_useropt=\$ac_optarg ;;
  933. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  934. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  935. | --exec | --exe | --ex)
  936. ac_prev=exec_prefix ;;
  937. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  938. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  939. | --exec=* | --exe=* | --ex=*)
  940. exec_prefix=$ac_optarg ;;
  941. -gas | --gas | --ga | --g)
  942. # Obsolete; use --with-gas.
  943. with_gas=yes ;;
  944. -help | --help | --hel | --he | -h)
  945. ac_init_help=long ;;
  946. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  947. ac_init_help=recursive ;;
  948. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  949. ac_init_help=short ;;
  950. -host | --host | --hos | --ho)
  951. ac_prev=host_alias ;;
  952. -host=* | --host=* | --hos=* | --ho=*)
  953. host_alias=$ac_optarg ;;
  954. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  955. ac_prev=htmldir ;;
  956. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  957. | --ht=*)
  958. htmldir=$ac_optarg ;;
  959. -includedir | --includedir | --includedi | --included | --include \
  960. | --includ | --inclu | --incl | --inc)
  961. ac_prev=includedir ;;
  962. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  963. | --includ=* | --inclu=* | --incl=* | --inc=*)
  964. includedir=$ac_optarg ;;
  965. -infodir | --infodir | --infodi | --infod | --info | --inf)
  966. ac_prev=infodir ;;
  967. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  968. infodir=$ac_optarg ;;
  969. -libdir | --libdir | --libdi | --libd)
  970. ac_prev=libdir ;;
  971. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  972. libdir=$ac_optarg ;;
  973. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  974. | --libexe | --libex | --libe)
  975. ac_prev=libexecdir ;;
  976. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  977. | --libexe=* | --libex=* | --libe=*)
  978. libexecdir=$ac_optarg ;;
  979. -localedir | --localedir | --localedi | --localed | --locale)
  980. ac_prev=localedir ;;
  981. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  982. localedir=$ac_optarg ;;
  983. -localstatedir | --localstatedir | --localstatedi | --localstated \
  984. | --localstate | --localstat | --localsta | --localst | --locals)
  985. ac_prev=localstatedir ;;
  986. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  987. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  988. localstatedir=$ac_optarg ;;
  989. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  990. ac_prev=mandir ;;
  991. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  992. mandir=$ac_optarg ;;
  993. -nfp | --nfp | --nf)
  994. # Obsolete; use --without-fp.
  995. with_fp=no ;;
  996. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  997. | --no-cr | --no-c | -n)
  998. no_create=yes ;;
  999. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1000. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1001. no_recursion=yes ;;
  1002. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1003. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1004. | --oldin | --oldi | --old | --ol | --o)
  1005. ac_prev=oldincludedir ;;
  1006. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1007. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1008. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1009. oldincludedir=$ac_optarg ;;
  1010. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1011. ac_prev=prefix ;;
  1012. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1013. prefix=$ac_optarg ;;
  1014. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1015. | --program-pre | --program-pr | --program-p)
  1016. ac_prev=program_prefix ;;
  1017. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1018. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1019. program_prefix=$ac_optarg ;;
  1020. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1021. | --program-suf | --program-su | --program-s)
  1022. ac_prev=program_suffix ;;
  1023. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1024. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1025. program_suffix=$ac_optarg ;;
  1026. -program-transform-name | --program-transform-name \
  1027. | --program-transform-nam | --program-transform-na \
  1028. | --program-transform-n | --program-transform- \
  1029. | --program-transform | --program-transfor \
  1030. | --program-transfo | --program-transf \
  1031. | --program-trans | --program-tran \
  1032. | --progr-tra | --program-tr | --program-t)
  1033. ac_prev=program_transform_name ;;
  1034. -program-transform-name=* | --program-transform-name=* \
  1035. | --program-transform-nam=* | --program-transform-na=* \
  1036. | --program-transform-n=* | --program-transform-=* \
  1037. | --program-transform=* | --program-transfor=* \
  1038. | --program-transfo=* | --program-transf=* \
  1039. | --program-trans=* | --program-tran=* \
  1040. | --progr-tra=* | --program-tr=* | --program-t=*)
  1041. program_transform_name=$ac_optarg ;;
  1042. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1043. ac_prev=pdfdir ;;
  1044. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1045. pdfdir=$ac_optarg ;;
  1046. -psdir | --psdir | --psdi | --psd | --ps)
  1047. ac_prev=psdir ;;
  1048. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1049. psdir=$ac_optarg ;;
  1050. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1051. | -silent | --silent | --silen | --sile | --sil)
  1052. silent=yes ;;
  1053. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1054. ac_prev=sbindir ;;
  1055. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1056. | --sbi=* | --sb=*)
  1057. sbindir=$ac_optarg ;;
  1058. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1059. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1060. | --sharedst | --shareds | --shared | --share | --shar \
  1061. | --sha | --sh)
  1062. ac_prev=sharedstatedir ;;
  1063. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1064. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1065. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1066. | --sha=* | --sh=*)
  1067. sharedstatedir=$ac_optarg ;;
  1068. -site | --site | --sit)
  1069. ac_prev=site ;;
  1070. -site=* | --site=* | --sit=*)
  1071. site=$ac_optarg ;;
  1072. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1073. ac_prev=srcdir ;;
  1074. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1075. srcdir=$ac_optarg ;;
  1076. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1077. | --syscon | --sysco | --sysc | --sys | --sy)
  1078. ac_prev=sysconfdir ;;
  1079. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1080. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1081. sysconfdir=$ac_optarg ;;
  1082. -target | --target | --targe | --targ | --tar | --ta | --t)
  1083. ac_prev=target_alias ;;
  1084. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1085. target_alias=$ac_optarg ;;
  1086. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1087. verbose=yes ;;
  1088. -version | --version | --versio | --versi | --vers | -V)
  1089. ac_init_version=: ;;
  1090. -with-* | --with-*)
  1091. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1092. # Reject names that are not valid shell variable names.
  1093. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1094. as_fn_error $? "invalid package name: $ac_useropt"
  1095. ac_useropt_orig=$ac_useropt
  1096. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1097. case $ac_user_opts in
  1098. *"
  1099. "with_$ac_useropt"
  1100. "*) ;;
  1101. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1102. ac_unrecognized_sep=', ';;
  1103. esac
  1104. eval with_$ac_useropt=\$ac_optarg ;;
  1105. -without-* | --without-*)
  1106. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1107. # Reject names that are not valid shell variable names.
  1108. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1109. as_fn_error $? "invalid package name: $ac_useropt"
  1110. ac_useropt_orig=$ac_useropt
  1111. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1112. case $ac_user_opts in
  1113. *"
  1114. "with_$ac_useropt"
  1115. "*) ;;
  1116. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1117. ac_unrecognized_sep=', ';;
  1118. esac
  1119. eval with_$ac_useropt=no ;;
  1120. --x)
  1121. # Obsolete; use --with-x.
  1122. with_x=yes ;;
  1123. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1124. | --x-incl | --x-inc | --x-in | --x-i)
  1125. ac_prev=x_includes ;;
  1126. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1127. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1128. x_includes=$ac_optarg ;;
  1129. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1130. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1131. ac_prev=x_libraries ;;
  1132. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1133. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1134. x_libraries=$ac_optarg ;;
  1135. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1136. Try \`$0 --help' for more information"
  1137. ;;
  1138. *=*)
  1139. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1140. # Reject names that are not valid shell variable names.
  1141. case $ac_envvar in #(
  1142. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1143. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1144. esac
  1145. eval $ac_envvar=\$ac_optarg
  1146. export $ac_envvar ;;
  1147. *)
  1148. # FIXME: should be removed in autoconf 3.0.
  1149. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1150. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1151. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1152. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1153. ;;
  1154. esac
  1155. done
  1156. if test -n "$ac_prev"; then
  1157. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1158. as_fn_error $? "missing argument to $ac_option"
  1159. fi
  1160. if test -n "$ac_unrecognized_opts"; then
  1161. case $enable_option_checking in
  1162. no) ;;
  1163. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1164. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1165. esac
  1166. fi
  1167. # Check all directory arguments for consistency.
  1168. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1169. datadir sysconfdir sharedstatedir localstatedir includedir \
  1170. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1171. libdir localedir mandir
  1172. do
  1173. eval ac_val=\$$ac_var
  1174. # Remove trailing slashes.
  1175. case $ac_val in
  1176. */ )
  1177. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1178. eval $ac_var=\$ac_val;;
  1179. esac
  1180. # Be sure to have absolute directory names.
  1181. case $ac_val in
  1182. [\\/$]* | ?:[\\/]* ) continue;;
  1183. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1184. esac
  1185. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1186. done
  1187. # There might be people who depend on the old broken behavior: `$host'
  1188. # used to hold the argument of --host etc.
  1189. # FIXME: To remove some day.
  1190. build=$build_alias
  1191. host=$host_alias
  1192. target=$target_alias
  1193. # FIXME: To remove some day.
  1194. if test "x$host_alias" != x; then
  1195. if test "x$build_alias" = x; then
  1196. cross_compiling=maybe
  1197. elif test "x$build_alias" != "x$host_alias"; then
  1198. cross_compiling=yes
  1199. fi
  1200. fi
  1201. ac_tool_prefix=
  1202. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1203. test "$silent" = yes && exec 6>/dev/null
  1204. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1205. ac_ls_di=`ls -di .` &&
  1206. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1207. as_fn_error $? "working directory cannot be determined"
  1208. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1209. as_fn_error $? "pwd does not report name of working directory"
  1210. # Find the source files, if location was not specified.
  1211. if test -z "$srcdir"; then
  1212. ac_srcdir_defaulted=yes
  1213. # Try the directory containing this script, then the parent directory.
  1214. ac_confdir=`$as_dirname -- "$as_myself" ||
  1215. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1216. X"$as_myself" : 'X\(//\)[^/]' \| \
  1217. X"$as_myself" : 'X\(//\)$' \| \
  1218. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1219. $as_echo X"$as_myself" |
  1220. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1221. s//\1/
  1222. q
  1223. }
  1224. /^X\(\/\/\)[^/].*/{
  1225. s//\1/
  1226. q
  1227. }
  1228. /^X\(\/\/\)$/{
  1229. s//\1/
  1230. q
  1231. }
  1232. /^X\(\/\).*/{
  1233. s//\1/
  1234. q
  1235. }
  1236. s/.*/./; q'`
  1237. srcdir=$ac_confdir
  1238. if test ! -r "$srcdir/$ac_unique_file"; then
  1239. srcdir=..
  1240. fi
  1241. else
  1242. ac_srcdir_defaulted=no
  1243. fi
  1244. if test ! -r "$srcdir/$ac_unique_file"; then
  1245. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1246. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1247. fi
  1248. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1249. ac_abs_confdir=`(
  1250. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1251. pwd)`
  1252. # When building in place, set srcdir=.
  1253. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1254. srcdir=.
  1255. fi
  1256. # Remove unnecessary trailing slashes from srcdir.
  1257. # Double slashes in file names in object file debugging info
  1258. # mess up M-x gdb in Emacs.
  1259. case $srcdir in
  1260. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1261. esac
  1262. for ac_var in $ac_precious_vars; do
  1263. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1264. eval ac_env_${ac_var}_value=\$${ac_var}
  1265. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1266. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1267. done
  1268. #
  1269. # Report the --help message.
  1270. #
  1271. if test "$ac_init_help" = "long"; then
  1272. # Omit some internal or obsolete options to make the list less imposing.
  1273. # This message is too long to be a string in the A/UX 3.1 sh.
  1274. cat <<_ACEOF
  1275. \`configure' configures xorg-docs 1.7.1 to adapt to many kinds of systems.
  1276. Usage: $0 [OPTION]... [VAR=VALUE]...
  1277. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1278. VAR=VALUE. See below for descriptions of some of the useful variables.
  1279. Defaults for the options are specified in brackets.
  1280. Configuration:
  1281. -h, --help display this help and exit
  1282. --help=short display options specific to this package
  1283. --help=recursive display the short help of all the included packages
  1284. -V, --version display version information and exit
  1285. -q, --quiet, --silent do not print \`checking ...' messages
  1286. --cache-file=FILE cache test results in FILE [disabled]
  1287. -C, --config-cache alias for \`--cache-file=config.cache'
  1288. -n, --no-create do not create output files
  1289. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1290. Installation directories:
  1291. --prefix=PREFIX install architecture-independent files in PREFIX
  1292. [$ac_default_prefix]
  1293. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1294. [PREFIX]
  1295. By default, \`make install' will install all the files in
  1296. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1297. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1298. for instance \`--prefix=\$HOME'.
  1299. For better control, use the options below.
  1300. Fine tuning of the installation directories:
  1301. --bindir=DIR user executables [EPREFIX/bin]
  1302. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1303. --libexecdir=DIR program executables [EPREFIX/libexec]
  1304. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1305. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1306. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1307. --libdir=DIR object code libraries [EPREFIX/lib]
  1308. --includedir=DIR C header files [PREFIX/include]
  1309. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1310. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1311. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1312. --infodir=DIR info documentation [DATAROOTDIR/info]
  1313. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1314. --mandir=DIR man documentation [DATAROOTDIR/man]
  1315. --docdir=DIR documentation root [DATAROOTDIR/doc/xorg-docs]
  1316. --htmldir=DIR html documentation [DOCDIR]
  1317. --dvidir=DIR dvi documentation [DOCDIR]
  1318. --pdfdir=DIR pdf documentation [DOCDIR]
  1319. --psdir=DIR ps documentation [DOCDIR]
  1320. _ACEOF
  1321. cat <<\_ACEOF
  1322. Program names:
  1323. --program-prefix=PREFIX prepend PREFIX to installed program names
  1324. --program-suffix=SUFFIX append SUFFIX to installed program names
  1325. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1326. System types:
  1327. --build=BUILD configure for building on BUILD [guessed]
  1328. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1329. _ACEOF
  1330. fi
  1331. if test -n "$ac_init_help"; then
  1332. case $ac_init_help in
  1333. short | recursive ) echo "Configuration of xorg-docs 1.7.1:";;
  1334. esac
  1335. cat <<\_ACEOF
  1336. Optional Features:
  1337. --disable-option-checking ignore unrecognized --enable/--with options
  1338. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1339. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1340. --enable-dependency-tracking
  1341. do not reject slow dependency extractors
  1342. --disable-dependency-tracking
  1343. speeds up one-time build
  1344. --disable-selective-werror
  1345. Turn off selective compiler errors. (default:
  1346. enabled)
  1347. --enable-strict-compilation
  1348. Enable all warnings from compiler and make them
  1349. errors (default: disabled)
  1350. --enable-silent-rules less verbose build output (undo: "make V=1")
  1351. --disable-silent-rules verbose build output (undo: "make V=0")
  1352. --enable-docs Enable building the documentation (default: yes)
  1353. --enable-specs Enable building the specs (default: yes)
  1354. Optional Packages:
  1355. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1356. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1357. --with-xmlto Use xmlto to regenerate documentation (default:
  1358. auto)
  1359. --with-xsltproc Use xsltproc for the transformation of XML documents
  1360. (default: auto)
  1361. --with-fop Use fop to regenerate documentation (default: auto)
  1362. Some influential environment variables:
  1363. CC C compiler command
  1364. CFLAGS C compiler flags
  1365. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1366. nonstandard directory <lib dir>
  1367. LIBS libraries to pass to the linker, e.g. -l<library>
  1368. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1369. you have headers in a nonstandard directory <include dir>
  1370. CPP C preprocessor
  1371. PKG_CONFIG path to pkg-config utility
  1372. PKG_CONFIG_PATH
  1373. directories to add to pkg-config's search path
  1374. PKG_CONFIG_LIBDIR
  1375. path overriding pkg-config's built-in search path
  1376. XMLTO Path to xmlto command
  1377. XSLTPROC Path to xsltproc command
  1378. FOP Path to fop command
  1379. Use these variables to override the choices made by `configure' or to help
  1380. it to find libraries and programs with nonstandard names/locations.
  1381. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1382. _ACEOF
  1383. ac_status=$?
  1384. fi
  1385. if test "$ac_init_help" = "recursive"; then
  1386. # If there are subdirs, report their specific --help.
  1387. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1388. test -d "$ac_dir" ||
  1389. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1390. continue
  1391. ac_builddir=.
  1392. case "$ac_dir" in
  1393. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1394. *)
  1395. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1396. # A ".." for each directory in $ac_dir_suffix.
  1397. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1398. case $ac_top_builddir_sub in
  1399. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1400. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1401. esac ;;
  1402. esac
  1403. ac_abs_top_builddir=$ac_pwd
  1404. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1405. # for backward compatibility:
  1406. ac_top_builddir=$ac_top_build_prefix
  1407. case $srcdir in
  1408. .) # We are building in place.
  1409. ac_srcdir=.
  1410. ac_top_srcdir=$ac_top_builddir_sub
  1411. ac_abs_top_srcdir=$ac_pwd ;;
  1412. [\\/]* | ?:[\\/]* ) # Absolute name.
  1413. ac_srcdir=$srcdir$ac_dir_suffix;
  1414. ac_top_srcdir=$srcdir
  1415. ac_abs_top_srcdir=$srcdir ;;
  1416. *) # Relative name.
  1417. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1418. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1419. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1420. esac
  1421. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1422. cd "$ac_dir" || { ac_status=$?; continue; }
  1423. # Check for guested configure.
  1424. if test -f "$ac_srcdir/configure.gnu"; then
  1425. echo &&
  1426. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1427. elif test -f "$ac_srcdir/configure"; then
  1428. echo &&
  1429. $SHELL "$ac_srcdir/configure" --help=recursive
  1430. else
  1431. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1432. fi || ac_status=$?
  1433. cd "$ac_pwd" || { ac_status=$?; break; }
  1434. done
  1435. fi
  1436. test -n "$ac_init_help" && exit $ac_status
  1437. if $ac_init_version; then
  1438. cat <<\_ACEOF
  1439. xorg-docs configure 1.7.1
  1440. generated by GNU Autoconf 2.69
  1441. Copyright (C) 2012 Free Software Foundation, Inc.
  1442. This configure script is free software; the Free Software Foundation
  1443. gives unlimited permission to copy, distribute and modify it.
  1444. _ACEOF
  1445. exit
  1446. fi
  1447. ## ------------------------ ##
  1448. ## Autoconf initialization. ##
  1449. ## ------------------------ ##
  1450. # ac_fn_c_try_compile LINENO
  1451. # --------------------------
  1452. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1453. ac_fn_c_try_compile ()
  1454. {
  1455. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1456. rm -f conftest.$ac_objext
  1457. if { { ac_try="$ac_compile"
  1458. case "(($ac_try" in
  1459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1460. *) ac_try_echo=$ac_try;;
  1461. esac
  1462. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1463. $as_echo "$ac_try_echo"; } >&5
  1464. (eval "$ac_compile") 2>conftest.err
  1465. ac_status=$?
  1466. if test -s conftest.err; then
  1467. grep -v '^ *+' conftest.err >conftest.er1
  1468. cat conftest.er1 >&5
  1469. mv -f conftest.er1 conftest.err
  1470. fi
  1471. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1472. test $ac_status = 0; } && {
  1473. test -z "$ac_c_werror_flag" ||
  1474. test ! -s conftest.err
  1475. } && test -s conftest.$ac_objext; then :
  1476. ac_retval=0
  1477. else
  1478. $as_echo "$as_me: failed program was:" >&5
  1479. sed 's/^/| /' conftest.$ac_ext >&5
  1480. ac_retval=1
  1481. fi
  1482. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. as_fn_set_status $ac_retval
  1484. } # ac_fn_c_try_compile
  1485. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1486. # ---------------------------------------------
  1487. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1488. # accordingly.
  1489. ac_fn_c_check_decl ()
  1490. {
  1491. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1492. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1493. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1495. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1496. if eval \${$3+:} false; then :
  1497. $as_echo_n "(cached) " >&6
  1498. else
  1499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1500. /* end confdefs.h. */
  1501. $4
  1502. int
  1503. main ()
  1504. {
  1505. #ifndef $as_decl_name
  1506. #ifdef __cplusplus
  1507. (void) $as_decl_use;
  1508. #else
  1509. (void) $as_decl_name;
  1510. #endif
  1511. #endif
  1512. ;
  1513. return 0;
  1514. }
  1515. _ACEOF
  1516. if ac_fn_c_try_compile "$LINENO"; then :
  1517. eval "$3=yes"
  1518. else
  1519. eval "$3=no"
  1520. fi
  1521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1522. fi
  1523. eval ac_res=\$$3
  1524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1525. $as_echo "$ac_res" >&6; }
  1526. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1527. } # ac_fn_c_check_decl
  1528. # ac_fn_c_try_cpp LINENO
  1529. # ----------------------
  1530. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1531. ac_fn_c_try_cpp ()
  1532. {
  1533. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1534. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1542. ac_status=$?
  1543. if test -s conftest.err; then
  1544. grep -v '^ *+' conftest.err >conftest.er1
  1545. cat conftest.er1 >&5
  1546. mv -f conftest.er1 conftest.err
  1547. fi
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; } > conftest.i && {
  1550. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1551. test ! -s conftest.err
  1552. }; then :
  1553. ac_retval=0
  1554. else
  1555. $as_echo "$as_me: failed program was:" >&5
  1556. sed 's/^/| /' conftest.$ac_ext >&5
  1557. ac_retval=1
  1558. fi
  1559. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1560. as_fn_set_status $ac_retval
  1561. } # ac_fn_c_try_cpp
  1562. # ac_fn_c_try_run LINENO
  1563. # ----------------------
  1564. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1565. # that executables *can* be run.
  1566. ac_fn_c_try_run ()
  1567. {
  1568. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1569. if { { ac_try="$ac_link"
  1570. case "(($ac_try" in
  1571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1572. *) ac_try_echo=$ac_try;;
  1573. esac
  1574. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1575. $as_echo "$ac_try_echo"; } >&5
  1576. (eval "$ac_link") 2>&5
  1577. ac_status=$?
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1580. { { case "(($ac_try" in
  1581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1582. *) ac_try_echo=$ac_try;;
  1583. esac
  1584. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1585. $as_echo "$ac_try_echo"; } >&5
  1586. (eval "$ac_try") 2>&5
  1587. ac_status=$?
  1588. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1589. test $ac_status = 0; }; }; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: program exited with status $ac_status" >&5
  1593. $as_echo "$as_me: failed program was:" >&5
  1594. sed 's/^/| /' conftest.$ac_ext >&5
  1595. ac_retval=$ac_status
  1596. fi
  1597. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1598. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1599. as_fn_set_status $ac_retval
  1600. } # ac_fn_c_try_run
  1601. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1602. # -------------------------------------------------------
  1603. # Tests whether HEADER exists and can be compiled using the include files in
  1604. # INCLUDES, setting the cache variable VAR accordingly.
  1605. ac_fn_c_check_header_compile ()
  1606. {
  1607. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1609. $as_echo_n "checking for $2... " >&6; }
  1610. if eval \${$3+:} false; then :
  1611. $as_echo_n "(cached) " >&6
  1612. else
  1613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1614. /* end confdefs.h. */
  1615. $4
  1616. #include <$2>
  1617. _ACEOF
  1618. if ac_fn_c_try_compile "$LINENO"; then :
  1619. eval "$3=yes"
  1620. else
  1621. eval "$3=no"
  1622. fi
  1623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1624. fi
  1625. eval ac_res=\$$3
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1627. $as_echo "$ac_res" >&6; }
  1628. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1629. } # ac_fn_c_check_header_compile
  1630. # ac_fn_c_try_link LINENO
  1631. # -----------------------
  1632. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1633. ac_fn_c_try_link ()
  1634. {
  1635. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1636. rm -f conftest.$ac_objext conftest$ac_exeext
  1637. if { { ac_try="$ac_link"
  1638. case "(($ac_try" in
  1639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1640. *) ac_try_echo=$ac_try;;
  1641. esac
  1642. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1643. $as_echo "$ac_try_echo"; } >&5
  1644. (eval "$ac_link") 2>conftest.err
  1645. ac_status=$?
  1646. if test -s conftest.err; then
  1647. grep -v '^ *+' conftest.err >conftest.er1
  1648. cat conftest.er1 >&5
  1649. mv -f conftest.er1 conftest.err
  1650. fi
  1651. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1652. test $ac_status = 0; } && {
  1653. test -z "$ac_c_werror_flag" ||
  1654. test ! -s conftest.err
  1655. } && test -s conftest$ac_exeext && {
  1656. test "$cross_compiling" = yes ||
  1657. test -x conftest$ac_exeext
  1658. }; then :
  1659. ac_retval=0
  1660. else
  1661. $as_echo "$as_me: failed program was:" >&5
  1662. sed 's/^/| /' conftest.$ac_ext >&5
  1663. ac_retval=1
  1664. fi
  1665. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1666. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1667. # interfere with the next link command; also delete a directory that is
  1668. # left behind by Apple's compiler. We do this before executing the actions.
  1669. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1670. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1671. as_fn_set_status $ac_retval
  1672. } # ac_fn_c_try_link
  1673. cat >config.log <<_ACEOF
  1674. This file contains any messages produced by compilers while
  1675. running configure, to aid debugging if configure makes a mistake.
  1676. It was created by xorg-docs $as_me 1.7.1, which was
  1677. generated by GNU Autoconf 2.69. Invocation command line was
  1678. $ $0 $@
  1679. _ACEOF
  1680. exec 5>>config.log
  1681. {
  1682. cat <<_ASUNAME
  1683. ## --------- ##
  1684. ## Platform. ##
  1685. ## --------- ##
  1686. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1687. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1688. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1689. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1690. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1691. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1692. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1693. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1694. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1695. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1696. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1697. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1698. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1699. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1700. _ASUNAME
  1701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1702. for as_dir in $PATH
  1703. do
  1704. IFS=$as_save_IFS
  1705. test -z "$as_dir" && as_dir=.
  1706. $as_echo "PATH: $as_dir"
  1707. done
  1708. IFS=$as_save_IFS
  1709. } >&5
  1710. cat >&5 <<_ACEOF
  1711. ## ----------- ##
  1712. ## Core tests. ##
  1713. ## ----------- ##
  1714. _ACEOF
  1715. # Keep a trace of the command line.
  1716. # Strip out --no-create and --no-recursion so they do not pile up.
  1717. # Strip out --silent because we don't want to record it for future runs.
  1718. # Also quote any args containing shell meta-characters.
  1719. # Make two passes to allow for proper duplicate-argument suppression.
  1720. ac_configure_args=
  1721. ac_configure_args0=
  1722. ac_configure_args1=
  1723. ac_must_keep_next=false
  1724. for ac_pass in 1 2
  1725. do
  1726. for ac_arg
  1727. do
  1728. case $ac_arg in
  1729. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1730. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1731. | -silent | --silent | --silen | --sile | --sil)
  1732. continue ;;
  1733. *\'*)
  1734. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1735. esac
  1736. case $ac_pass in
  1737. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1738. 2)
  1739. as_fn_append ac_configure_args1 " '$ac_arg'"
  1740. if test $ac_must_keep_next = true; then
  1741. ac_must_keep_next=false # Got value, back to normal.
  1742. else
  1743. case $ac_arg in
  1744. *=* | --config-cache | -C | -disable-* | --disable-* \
  1745. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1746. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1747. | -with-* | --with-* | -without-* | --without-* | --x)
  1748. case "$ac_configure_args0 " in
  1749. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1750. esac
  1751. ;;
  1752. -* ) ac_must_keep_next=true ;;
  1753. esac
  1754. fi
  1755. as_fn_append ac_configure_args " '$ac_arg'"
  1756. ;;
  1757. esac
  1758. done
  1759. done
  1760. { ac_configure_args0=; unset ac_configure_args0;}
  1761. { ac_configure_args1=; unset ac_configure_args1;}
  1762. # When interrupted or exit'd, cleanup temporary files, and complete
  1763. # config.log. We remove comments because anyway the quotes in there
  1764. # would cause problems or look ugly.
  1765. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1766. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1767. trap 'exit_status=$?
  1768. # Save into config.log some information that might help in debugging.
  1769. {
  1770. echo
  1771. $as_echo "## ---------------- ##
  1772. ## Cache variables. ##
  1773. ## ---------------- ##"
  1774. echo
  1775. # The following way of writing the cache mishandles newlines in values,
  1776. (
  1777. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1778. eval ac_val=\$$ac_var
  1779. case $ac_val in #(
  1780. *${as_nl}*)
  1781. case $ac_var in #(
  1782. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1783. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1784. esac
  1785. case $ac_var in #(
  1786. _ | IFS | as_nl) ;; #(
  1787. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1788. *) { eval $ac_var=; unset $ac_var;} ;;
  1789. esac ;;
  1790. esac
  1791. done
  1792. (set) 2>&1 |
  1793. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1794. *${as_nl}ac_space=\ *)
  1795. sed -n \
  1796. "s/'\''/'\''\\\\'\'''\''/g;
  1797. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1798. ;; #(
  1799. *)
  1800. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1801. ;;
  1802. esac |
  1803. sort
  1804. )
  1805. echo
  1806. $as_echo "## ----------------- ##
  1807. ## Output variables. ##
  1808. ## ----------------- ##"
  1809. echo
  1810. for ac_var in $ac_subst_vars
  1811. do
  1812. eval ac_val=\$$ac_var
  1813. case $ac_val in
  1814. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1815. esac
  1816. $as_echo "$ac_var='\''$ac_val'\''"
  1817. done | sort
  1818. echo
  1819. if test -n "$ac_subst_files"; then
  1820. $as_echo "## ------------------- ##
  1821. ## File substitutions. ##
  1822. ## ------------------- ##"
  1823. echo
  1824. for ac_var in $ac_subst_files
  1825. do
  1826. eval ac_val=\$$ac_var
  1827. case $ac_val in
  1828. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1829. esac
  1830. $as_echo "$ac_var='\''$ac_val'\''"
  1831. done | sort
  1832. echo
  1833. fi
  1834. if test -s confdefs.h; then
  1835. $as_echo "## ----------- ##
  1836. ## confdefs.h. ##
  1837. ## ----------- ##"
  1838. echo
  1839. cat confdefs.h
  1840. echo
  1841. fi
  1842. test "$ac_signal" != 0 &&
  1843. $as_echo "$as_me: caught signal $ac_signal"
  1844. $as_echo "$as_me: exit $exit_status"
  1845. } >&5
  1846. rm -f core *.core core.conftest.* &&
  1847. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1848. exit $exit_status
  1849. ' 0
  1850. for ac_signal in 1 2 13 15; do
  1851. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1852. done
  1853. ac_signal=0
  1854. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1855. rm -f -r conftest* confdefs.h
  1856. $as_echo "/* confdefs.h */" > confdefs.h
  1857. # Predefined preprocessor variables.
  1858. cat >>confdefs.h <<_ACEOF
  1859. #define PACKAGE_NAME "$PACKAGE_NAME"
  1860. _ACEOF
  1861. cat >>confdefs.h <<_ACEOF
  1862. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1863. _ACEOF
  1864. cat >>confdefs.h <<_ACEOF
  1865. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1866. _ACEOF
  1867. cat >>confdefs.h <<_ACEOF
  1868. #define PACKAGE_STRING "$PACKAGE_STRING"
  1869. _ACEOF
  1870. cat >>confdefs.h <<_ACEOF
  1871. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1872. _ACEOF
  1873. cat >>confdefs.h <<_ACEOF
  1874. #define PACKAGE_URL "$PACKAGE_URL"
  1875. _ACEOF
  1876. # Let the site file select an alternate cache file if it wants to.
  1877. # Prefer an explicitly selected file to automatically selected ones.
  1878. ac_site_file1=NONE
  1879. ac_site_file2=NONE
  1880. if test -n "$CONFIG_SITE"; then
  1881. # We do not want a PATH search for config.site.
  1882. case $CONFIG_SITE in #((
  1883. -*) ac_site_file1=./$CONFIG_SITE;;
  1884. */*) ac_site_file1=$CONFIG_SITE;;
  1885. *) ac_site_file1=./$CONFIG_SITE;;
  1886. esac
  1887. elif test "x$prefix" != xNONE; then
  1888. ac_site_file1=$prefix/share/config.site
  1889. ac_site_file2=$prefix/etc/config.site
  1890. else
  1891. ac_site_file1=$ac_default_prefix/share/config.site
  1892. ac_site_file2=$ac_default_prefix/etc/config.site
  1893. fi
  1894. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1895. do
  1896. test "x$ac_site_file" = xNONE && continue
  1897. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1898. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1899. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1900. sed 's/^/| /' "$ac_site_file" >&5
  1901. . "$ac_site_file" \
  1902. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1904. as_fn_error $? "failed to load site script $ac_site_file
  1905. See \`config.log' for more details" "$LINENO" 5; }
  1906. fi
  1907. done
  1908. if test -r "$cache_file"; then
  1909. # Some versions of bash will fail to source /dev/null (special files
  1910. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1911. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1912. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1913. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1914. case $cache_file in
  1915. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1916. *) . "./$cache_file";;
  1917. esac
  1918. fi
  1919. else
  1920. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1921. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1922. >$cache_file
  1923. fi
  1924. # Check that the precious variables saved in the cache have kept the same
  1925. # value.
  1926. ac_cache_corrupted=false
  1927. for ac_var in $ac_precious_vars; do
  1928. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1929. eval ac_new_set=\$ac_env_${ac_var}_set
  1930. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1931. eval ac_new_val=\$ac_env_${ac_var}_value
  1932. case $ac_old_set,$ac_new_set in
  1933. set,)
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1935. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1936. ac_cache_corrupted=: ;;
  1937. ,set)
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1939. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1940. ac_cache_corrupted=: ;;
  1941. ,);;
  1942. *)
  1943. if test "x$ac_old_val" != "x$ac_new_val"; then
  1944. # differences in whitespace do not lead to failure.
  1945. ac_old_val_w=`echo x $ac_old_val`
  1946. ac_new_val_w=`echo x $ac_new_val`
  1947. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1949. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1950. ac_cache_corrupted=:
  1951. else
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1953. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1954. eval $ac_var=\$ac_old_val
  1955. fi
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1957. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1958. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1959. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1960. fi;;
  1961. esac
  1962. # Pass precious variables to config.status.
  1963. if test "$ac_new_set" = set; then
  1964. case $ac_new_val in
  1965. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1966. *) ac_arg=$ac_var=$ac_new_val ;;
  1967. esac
  1968. case " $ac_configure_args " in
  1969. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1970. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1971. esac
  1972. fi
  1973. done
  1974. if $ac_cache_corrupted; then
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1976. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1978. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1979. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1980. fi
  1981. ## -------------------- ##
  1982. ## Main body of script. ##
  1983. ## -------------------- ##
  1984. ac_ext=c
  1985. ac_cpp='$CPP $CPPFLAGS'
  1986. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1987. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1988. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1989. # Initialize Automake
  1990. am__api_version='1.12'
  1991. ac_aux_dir=
  1992. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1993. if test -f "$ac_dir/install-sh"; then
  1994. ac_aux_dir=$ac_dir
  1995. ac_install_sh="$ac_aux_dir/install-sh -c"
  1996. break
  1997. elif test -f "$ac_dir/install.sh"; then
  1998. ac_aux_dir=$ac_dir
  1999. ac_install_sh="$ac_aux_dir/install.sh -c"
  2000. break
  2001. elif test -f "$ac_dir/shtool"; then
  2002. ac_aux_dir=$ac_dir
  2003. ac_install_sh="$ac_aux_dir/shtool install -c"
  2004. break
  2005. fi
  2006. done
  2007. if test -z "$ac_aux_dir"; then
  2008. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2009. fi
  2010. # These three variables are undocumented and unsupported,
  2011. # and are intended to be withdrawn in a future Autoconf release.
  2012. # They can cause serious problems if a builder's source tree is in a directory
  2013. # whose full name contains unusual characters.
  2014. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2015. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2016. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2017. # Find a good install program. We prefer a C program (faster),
  2018. # so one script is as good as another. But avoid the broken or
  2019. # incompatible versions:
  2020. # SysV /etc/install, /usr/sbin/install
  2021. # SunOS /usr/etc/install
  2022. # IRIX /sbin/install
  2023. # AIX /bin/install
  2024. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2025. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2026. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2027. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2028. # OS/2's system install, which has a completely different semantic
  2029. # ./install, which can be erroneously created by make from ./install.sh.
  2030. # Reject install programs that cannot install multiple files.
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2032. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2033. if test -z "$INSTALL"; then
  2034. if ${ac_cv_path_install+:} false; then :
  2035. $as_echo_n "(cached) " >&6
  2036. else
  2037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2038. for as_dir in $PATH
  2039. do
  2040. IFS=$as_save_IFS
  2041. test -z "$as_dir" && as_dir=.
  2042. # Account for people who put trailing slashes in PATH elements.
  2043. case $as_dir/ in #((
  2044. ./ | .// | /[cC]/* | \
  2045. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2046. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2047. /usr/ucb/* ) ;;
  2048. *)
  2049. # OSF1 and SCO ODT 3.0 have their own names for install.
  2050. # Don't use installbsd from OSF since it installs stuff as root
  2051. # by default.
  2052. for ac_prog in ginstall scoinst install; do
  2053. for ac_exec_ext in '' $ac_executable_extensions; do
  2054. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2055. if test $ac_prog = install &&
  2056. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2057. # AIX install. It has an incompatible calling convention.
  2058. :
  2059. elif test $ac_prog = install &&
  2060. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2061. # program-specific install script used by HP pwplus--don't use.
  2062. :
  2063. else
  2064. rm -rf conftest.one conftest.two conftest.dir
  2065. echo one > conftest.one
  2066. echo two > conftest.two
  2067. mkdir conftest.dir
  2068. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2069. test -s conftest.one && test -s conftest.two &&
  2070. test -s conftest.dir/conftest.one &&
  2071. test -s conftest.dir/conftest.two
  2072. then
  2073. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2074. break 3
  2075. fi
  2076. fi
  2077. fi
  2078. done
  2079. done
  2080. ;;
  2081. esac
  2082. done
  2083. IFS=$as_save_IFS
  2084. rm -rf conftest.one conftest.two conftest.dir
  2085. fi
  2086. if test "${ac_cv_path_install+set}" = set; then
  2087. INSTALL=$ac_cv_path_install
  2088. else
  2089. # As a last resort, use the slow shell script. Don't cache a
  2090. # value for INSTALL within a source directory, because that will
  2091. # break other packages using the cache if that directory is
  2092. # removed, or if the value is a relative name.
  2093. INSTALL=$ac_install_sh
  2094. fi
  2095. fi
  2096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2097. $as_echo "$INSTALL" >&6; }
  2098. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2099. # It thinks the first close brace ends the variable substitution.
  2100. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2101. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2102. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2104. $as_echo_n "checking whether build environment is sane... " >&6; }
  2105. # Reject unsafe characters in $srcdir or the absolute working directory
  2106. # name. Accept space and tab only in the latter.
  2107. am_lf='
  2108. '
  2109. case `pwd` in
  2110. *[\\\"\#\$\&\'\`$am_lf]*)
  2111. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2112. esac
  2113. case $srcdir in
  2114. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2115. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2116. esac
  2117. # Do 'set' in a subshell so we don't clobber the current shell's
  2118. # arguments. Must try -L first in case configure is actually a
  2119. # symlink; some systems play weird games with the mod time of symlinks
  2120. # (eg FreeBSD returns the mod time of the symlink's containing
  2121. # directory).
  2122. if (
  2123. am_has_slept=no
  2124. for am_try in 1 2; do
  2125. echo "timestamp, slept: $am_has_slept" > conftest.file
  2126. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2127. if test "$*" = "X"; then
  2128. # -L didn't work.
  2129. set X `ls -t "$srcdir/configure" conftest.file`
  2130. fi
  2131. if test "$*" != "X $srcdir/configure conftest.file" \
  2132. && test "$*" != "X conftest.file $srcdir/configure"; then
  2133. # If neither matched, then we have a broken ls. This can happen
  2134. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2135. # broken ls alias from the environment. This has actually
  2136. # happened. Such a system could not be considered "sane".
  2137. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2138. alias in your environment" "$LINENO" 5
  2139. fi
  2140. if test "$2" = conftest.file || test $am_try -eq 2; then
  2141. break
  2142. fi
  2143. # Just in case.
  2144. sleep 1
  2145. am_has_slept=yes
  2146. done
  2147. test "$2" = conftest.file
  2148. )
  2149. then
  2150. # Ok.
  2151. :
  2152. else
  2153. as_fn_error $? "newly created file is older than distributed files!
  2154. Check your system clock" "$LINENO" 5
  2155. fi
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2157. $as_echo "yes" >&6; }
  2158. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2159. # generated files are strictly newer.
  2160. am_sleep_pid=
  2161. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2162. ( sleep 1 ) &
  2163. am_sleep_pid=$!
  2164. fi
  2165. rm -f conftest.file
  2166. test "$program_prefix" != NONE &&
  2167. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2168. # Use a double $ so make ignores it.
  2169. test "$program_suffix" != NONE &&
  2170. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2171. # Double any \ or $.
  2172. # By default was `s,x,x', remove it if useless.
  2173. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2174. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2175. # expand $ac_aux_dir to an absolute path
  2176. am_aux_dir=`cd $ac_aux_dir && pwd`
  2177. if test x"${MISSING+set}" != xset; then
  2178. case $am_aux_dir in
  2179. *\ * | *\ *)
  2180. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2181. *)
  2182. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2183. esac
  2184. fi
  2185. # Use eval to expand $SHELL
  2186. if eval "$MISSING --run true"; then
  2187. am_missing_run="$MISSING --run "
  2188. else
  2189. am_missing_run=
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2191. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2192. fi
  2193. if test x"${install_sh}" != xset; then
  2194. case $am_aux_dir in
  2195. *\ * | *\ *)
  2196. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2197. *)
  2198. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2199. esac
  2200. fi
  2201. # Installed binaries are usually stripped using 'strip' when the user
  2202. # run "make install-strip". However 'strip' might not be the right
  2203. # tool to use in cross-compilation environments, therefore Automake
  2204. # will honor the 'STRIP' environment variable to overrule this program.
  2205. if test "$cross_compiling" != no; then
  2206. if test -n "$ac_tool_prefix"; then
  2207. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2208. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2210. $as_echo_n "checking for $ac_word... " >&6; }
  2211. if ${ac_cv_prog_STRIP+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. if test -n "$STRIP"; then
  2215. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2216. else
  2217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2218. for as_dir in $PATH
  2219. do
  2220. IFS=$as_save_IFS
  2221. test -z "$as_dir" && as_dir=.
  2222. for ac_exec_ext in '' $ac_executable_extensions; do
  2223. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2224. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2225. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2226. break 2
  2227. fi
  2228. done
  2229. done
  2230. IFS=$as_save_IFS
  2231. fi
  2232. fi
  2233. STRIP=$ac_cv_prog_STRIP
  2234. if test -n "$STRIP"; then
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2236. $as_echo "$STRIP" >&6; }
  2237. else
  2238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2239. $as_echo "no" >&6; }
  2240. fi
  2241. fi
  2242. if test -z "$ac_cv_prog_STRIP"; then
  2243. ac_ct_STRIP=$STRIP
  2244. # Extract the first word of "strip", so it can be a program name with args.
  2245. set dummy strip; ac_word=$2
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2247. $as_echo_n "checking for $ac_word... " >&6; }
  2248. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2249. $as_echo_n "(cached) " >&6
  2250. else
  2251. if test -n "$ac_ct_STRIP"; then
  2252. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2253. else
  2254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2255. for as_dir in $PATH
  2256. do
  2257. IFS=$as_save_IFS
  2258. test -z "$as_dir" && as_dir=.
  2259. for ac_exec_ext in '' $ac_executable_extensions; do
  2260. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2261. ac_cv_prog_ac_ct_STRIP="strip"
  2262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2263. break 2
  2264. fi
  2265. done
  2266. done
  2267. IFS=$as_save_IFS
  2268. fi
  2269. fi
  2270. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2271. if test -n "$ac_ct_STRIP"; then
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2273. $as_echo "$ac_ct_STRIP" >&6; }
  2274. else
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2276. $as_echo "no" >&6; }
  2277. fi
  2278. if test "x$ac_ct_STRIP" = x; then
  2279. STRIP=":"
  2280. else
  2281. case $cross_compiling:$ac_tool_warned in
  2282. yes:)
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2284. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2285. ac_tool_warned=yes ;;
  2286. esac
  2287. STRIP=$ac_ct_STRIP
  2288. fi
  2289. else
  2290. STRIP="$ac_cv_prog_STRIP"
  2291. fi
  2292. fi
  2293. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2295. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2296. if test -z "$MKDIR_P"; then
  2297. if ${ac_cv_path_mkdir+:} false; then :
  2298. $as_echo_n "(cached) " >&6
  2299. else
  2300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2301. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2302. do
  2303. IFS=$as_save_IFS
  2304. test -z "$as_dir" && as_dir=.
  2305. for ac_prog in mkdir gmkdir; do
  2306. for ac_exec_ext in '' $ac_executable_extensions; do
  2307. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2308. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2309. 'mkdir (GNU coreutils) '* | \
  2310. 'mkdir (coreutils) '* | \
  2311. 'mkdir (fileutils) '4.1*)
  2312. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2313. break 3;;
  2314. esac
  2315. done
  2316. done
  2317. done
  2318. IFS=$as_save_IFS
  2319. fi
  2320. test -d ./--version && rmdir ./--version
  2321. if test "${ac_cv_path_mkdir+set}" = set; then
  2322. MKDIR_P="$ac_cv_path_mkdir -p"
  2323. else
  2324. # As a last resort, use the slow shell script. Don't cache a
  2325. # value for MKDIR_P within a source directory, because that will
  2326. # break other packages using the cache if that directory is
  2327. # removed, or if the value is a relative name.
  2328. MKDIR_P="$ac_install_sh -d"
  2329. fi
  2330. fi
  2331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2332. $as_echo "$MKDIR_P" >&6; }
  2333. for ac_prog in gawk mawk nawk awk
  2334. do
  2335. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2336. set dummy $ac_prog; ac_word=$2
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2338. $as_echo_n "checking for $ac_word... " >&6; }
  2339. if ${ac_cv_prog_AWK+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. if test -n "$AWK"; then
  2343. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2344. else
  2345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2346. for as_dir in $PATH
  2347. do
  2348. IFS=$as_save_IFS
  2349. test -z "$as_dir" && as_dir=.
  2350. for ac_exec_ext in '' $ac_executable_extensions; do
  2351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2352. ac_cv_prog_AWK="$ac_prog"
  2353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2354. break 2
  2355. fi
  2356. done
  2357. done
  2358. IFS=$as_save_IFS
  2359. fi
  2360. fi
  2361. AWK=$ac_cv_prog_AWK
  2362. if test -n "$AWK"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2364. $as_echo "$AWK" >&6; }
  2365. else
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2367. $as_echo "no" >&6; }
  2368. fi
  2369. test -n "$AWK" && break
  2370. done
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2372. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2373. set x ${MAKE-make}
  2374. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2375. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2376. $as_echo_n "(cached) " >&6
  2377. else
  2378. cat >conftest.make <<\_ACEOF
  2379. SHELL = /bin/sh
  2380. all:
  2381. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2382. _ACEOF
  2383. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2384. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2385. *@@@%%%=?*=@@@%%%*)
  2386. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2387. *)
  2388. eval ac_cv_prog_make_${ac_make}_set=no;;
  2389. esac
  2390. rm -f conftest.make
  2391. fi
  2392. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2394. $as_echo "yes" >&6; }
  2395. SET_MAKE=
  2396. else
  2397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2398. $as_echo "no" >&6; }
  2399. SET_MAKE="MAKE=${MAKE-make}"
  2400. fi
  2401. rm -rf .tst 2>/dev/null
  2402. mkdir .tst 2>/dev/null
  2403. if test -d .tst; then
  2404. am__leading_dot=.
  2405. else
  2406. am__leading_dot=_
  2407. fi
  2408. rmdir .tst 2>/dev/null
  2409. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2410. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2411. # is not polluted with repeated "-I."
  2412. am__isrc=' -I$(srcdir)'
  2413. # test to see if srcdir already configured
  2414. if test -f $srcdir/config.status; then
  2415. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2416. fi
  2417. fi
  2418. # test whether we have cygpath
  2419. if test -z "$CYGPATH_W"; then
  2420. if (cygpath --version) >/dev/null 2>/dev/null; then
  2421. CYGPATH_W='cygpath -w'
  2422. else
  2423. CYGPATH_W=echo
  2424. fi
  2425. fi
  2426. # Define the identity of the package.
  2427. PACKAGE='xorg-docs'
  2428. VERSION='1.7.1'
  2429. cat >>confdefs.h <<_ACEOF
  2430. #define PACKAGE "$PACKAGE"
  2431. _ACEOF
  2432. cat >>confdefs.h <<_ACEOF
  2433. #define VERSION "$VERSION"
  2434. _ACEOF
  2435. # Some tools Automake needs.
  2436. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2437. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2438. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2439. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2440. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2441. # For better backward compatibility. To be removed once Automake 1.9.x
  2442. # dies out for good. For more background, see:
  2443. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2444. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2445. mkdir_p='$(MKDIR_P)'
  2446. # We need awk for the "check" target. The system "awk" is bad on
  2447. # some platforms.
  2448. # Always define AMTAR for backward compatibility. Yes, it's still used
  2449. # in the wild :-( We should find a proper way to deprecate it ...
  2450. AMTAR='$${TAR-tar}'
  2451. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2452. # Require xorg-macros minimum of 1.12 for XORG_WITH_XSLTPROC
  2453. DEPDIR="${am__leading_dot}deps"
  2454. ac_config_commands="$ac_config_commands depfiles"
  2455. am_make=${MAKE-make}
  2456. cat > confinc << 'END'
  2457. am__doit:
  2458. @echo this is the am__doit target
  2459. .PHONY: am__doit
  2460. END
  2461. # If we don't find an include directive, just comment out the code.
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2463. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2464. am__include="#"
  2465. am__quote=
  2466. _am_result=none
  2467. # First try GNU make style include.
  2468. echo "include confinc" > confmf
  2469. # Ignore all kinds of additional output from 'make'.
  2470. case `$am_make -s -f confmf 2> /dev/null` in #(
  2471. *the\ am__doit\ target*)
  2472. am__include=include
  2473. am__quote=
  2474. _am_result=GNU
  2475. ;;
  2476. esac
  2477. # Now try BSD make style include.
  2478. if test "$am__include" = "#"; then
  2479. echo '.include "confinc"' > confmf
  2480. case `$am_make -s -f confmf 2> /dev/null` in #(
  2481. *the\ am__doit\ target*)
  2482. am__include=.include
  2483. am__quote="\""
  2484. _am_result=BSD
  2485. ;;
  2486. esac
  2487. fi
  2488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2489. $as_echo "$_am_result" >&6; }
  2490. rm -f confinc confmf
  2491. # Check whether --enable-dependency-tracking was given.
  2492. if test "${enable_dependency_tracking+set}" = set; then :
  2493. enableval=$enable_dependency_tracking;
  2494. fi
  2495. if test "x$enable_dependency_tracking" != xno; then
  2496. am_depcomp="$ac_aux_dir/depcomp"
  2497. AMDEPBACKSLASH='\'
  2498. am__nodep='_no'
  2499. fi
  2500. if test "x$enable_dependency_tracking" != xno; then
  2501. AMDEP_TRUE=
  2502. AMDEP_FALSE='#'
  2503. else
  2504. AMDEP_TRUE='#'
  2505. AMDEP_FALSE=
  2506. fi
  2507. ac_ext=c
  2508. ac_cpp='$CPP $CPPFLAGS'
  2509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2512. if test -n "$ac_tool_prefix"; then
  2513. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2514. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2516. $as_echo_n "checking for $ac_word... " >&6; }
  2517. if ${ac_cv_prog_CC+:} false; then :
  2518. $as_echo_n "(cached) " >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. for as_dir in $PATH
  2525. do
  2526. IFS=$as_save_IFS
  2527. test -z "$as_dir" && as_dir=.
  2528. for ac_exec_ext in '' $ac_executable_extensions; do
  2529. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2530. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2531. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2532. break 2
  2533. fi
  2534. done
  2535. done
  2536. IFS=$as_save_IFS
  2537. fi
  2538. fi
  2539. CC=$ac_cv_prog_CC
  2540. if test -n "$CC"; then
  2541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2542. $as_echo "$CC" >&6; }
  2543. else
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2545. $as_echo "no" >&6; }
  2546. fi
  2547. fi
  2548. if test -z "$ac_cv_prog_CC"; then
  2549. ac_ct_CC=$CC
  2550. # Extract the first word of "gcc", so it can be a program name with args.
  2551. set dummy gcc; ac_word=$2
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2553. $as_echo_n "checking for $ac_word... " >&6; }
  2554. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2555. $as_echo_n "(cached) " >&6
  2556. else
  2557. if test -n "$ac_ct_CC"; then
  2558. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2559. else
  2560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2561. for as_dir in $PATH
  2562. do
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2567. ac_cv_prog_ac_ct_CC="gcc"
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2569. break 2
  2570. fi
  2571. done
  2572. done
  2573. IFS=$as_save_IFS
  2574. fi
  2575. fi
  2576. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2577. if test -n "$ac_ct_CC"; then
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2579. $as_echo "$ac_ct_CC" >&6; }
  2580. else
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2582. $as_echo "no" >&6; }
  2583. fi
  2584. if test "x$ac_ct_CC" = x; then
  2585. CC=""
  2586. else
  2587. case $cross_compiling:$ac_tool_warned in
  2588. yes:)
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2590. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2591. ac_tool_warned=yes ;;
  2592. esac
  2593. CC=$ac_ct_CC
  2594. fi
  2595. else
  2596. CC="$ac_cv_prog_CC"
  2597. fi
  2598. if test -z "$CC"; then
  2599. if test -n "$ac_tool_prefix"; then
  2600. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2601. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2603. $as_echo_n "checking for $ac_word... " >&6; }
  2604. if ${ac_cv_prog_CC+:} false; then :
  2605. $as_echo_n "(cached) " >&6
  2606. else
  2607. if test -n "$CC"; then
  2608. ac_cv_prog_CC="$CC" # Let the user override the test.
  2609. else
  2610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2611. for as_dir in $PATH
  2612. do
  2613. IFS=$as_save_IFS
  2614. test -z "$as_dir" && as_dir=.
  2615. for ac_exec_ext in '' $ac_executable_extensions; do
  2616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2617. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2619. break 2
  2620. fi
  2621. done
  2622. done
  2623. IFS=$as_save_IFS
  2624. fi
  2625. fi
  2626. CC=$ac_cv_prog_CC
  2627. if test -n "$CC"; then
  2628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2629. $as_echo "$CC" >&6; }
  2630. else
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2632. $as_echo "no" >&6; }
  2633. fi
  2634. fi
  2635. fi
  2636. if test -z "$CC"; then
  2637. # Extract the first word of "cc", so it can be a program name with args.
  2638. set dummy cc; ac_word=$2
  2639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2640. $as_echo_n "checking for $ac_word... " >&6; }
  2641. if ${ac_cv_prog_CC+:} false; then :
  2642. $as_echo_n "(cached) " >&6
  2643. else
  2644. if test -n "$CC"; then
  2645. ac_cv_prog_CC="$CC" # Let the user override the test.
  2646. else
  2647. ac_prog_rejected=no
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2655. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2656. ac_prog_rejected=yes
  2657. continue
  2658. fi
  2659. ac_cv_prog_CC="cc"
  2660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2661. break 2
  2662. fi
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. if test $ac_prog_rejected = yes; then
  2667. # We found a bogon in the path, so make sure we never use it.
  2668. set dummy $ac_cv_prog_CC
  2669. shift
  2670. if test $# != 0; then
  2671. # We chose a different compiler from the bogus one.
  2672. # However, it has the same basename, so the bogon will be chosen
  2673. # first if we set CC to just the basename; use the full file name.
  2674. shift
  2675. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2676. fi
  2677. fi
  2678. fi
  2679. fi
  2680. CC=$ac_cv_prog_CC
  2681. if test -n "$CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2683. $as_echo "$CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. fi
  2689. if test -z "$CC"; then
  2690. if test -n "$ac_tool_prefix"; then
  2691. for ac_prog in cl.exe
  2692. do
  2693. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2694. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2696. $as_echo_n "checking for $ac_word... " >&6; }
  2697. if ${ac_cv_prog_CC+:} false; then :
  2698. $as_echo_n "(cached) " >&6
  2699. else
  2700. if test -n "$CC"; then
  2701. ac_cv_prog_CC="$CC" # Let the user override the test.
  2702. else
  2703. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2704. for as_dir in $PATH
  2705. do
  2706. IFS=$as_save_IFS
  2707. test -z "$as_dir" && as_dir=.
  2708. for ac_exec_ext in '' $ac_executable_extensions; do
  2709. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2710. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2711. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2712. break 2
  2713. fi
  2714. done
  2715. done
  2716. IFS=$as_save_IFS
  2717. fi
  2718. fi
  2719. CC=$ac_cv_prog_CC
  2720. if test -n "$CC"; then
  2721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2722. $as_echo "$CC" >&6; }
  2723. else
  2724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2725. $as_echo "no" >&6; }
  2726. fi
  2727. test -n "$CC" && break
  2728. done
  2729. fi
  2730. if test -z "$CC"; then
  2731. ac_ct_CC=$CC
  2732. for ac_prog in cl.exe
  2733. do
  2734. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2735. set dummy $ac_prog; ac_word=$2
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2737. $as_echo_n "checking for $ac_word... " >&6; }
  2738. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2739. $as_echo_n "(cached) " >&6
  2740. else
  2741. if test -n "$ac_ct_CC"; then
  2742. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2743. else
  2744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2745. for as_dir in $PATH
  2746. do
  2747. IFS=$as_save_IFS
  2748. test -z "$as_dir" && as_dir=.
  2749. for ac_exec_ext in '' $ac_executable_extensions; do
  2750. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2751. ac_cv_prog_ac_ct_CC="$ac_prog"
  2752. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2753. break 2
  2754. fi
  2755. done
  2756. done
  2757. IFS=$as_save_IFS
  2758. fi
  2759. fi
  2760. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2761. if test -n "$ac_ct_CC"; then
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2763. $as_echo "$ac_ct_CC" >&6; }
  2764. else
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2766. $as_echo "no" >&6; }
  2767. fi
  2768. test -n "$ac_ct_CC" && break
  2769. done
  2770. if test "x$ac_ct_CC" = x; then
  2771. CC=""
  2772. else
  2773. case $cross_compiling:$ac_tool_warned in
  2774. yes:)
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2777. ac_tool_warned=yes ;;
  2778. esac
  2779. CC=$ac_ct_CC
  2780. fi
  2781. fi
  2782. fi
  2783. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2784. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2785. as_fn_error $? "no acceptable C compiler found in \$PATH
  2786. See \`config.log' for more details" "$LINENO" 5; }
  2787. # Provide some information about the compiler.
  2788. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2789. set X $ac_compile
  2790. ac_compiler=$2
  2791. for ac_option in --version -v -V -qversion; do
  2792. { { ac_try="$ac_compiler $ac_option >&5"
  2793. case "(($ac_try" in
  2794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2795. *) ac_try_echo=$ac_try;;
  2796. esac
  2797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2798. $as_echo "$ac_try_echo"; } >&5
  2799. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2800. ac_status=$?
  2801. if test -s conftest.err; then
  2802. sed '10a\
  2803. ... rest of stderr output deleted ...
  2804. 10q' conftest.err >conftest.er1
  2805. cat conftest.er1 >&5
  2806. fi
  2807. rm -f conftest.er1 conftest.err
  2808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2809. test $ac_status = 0; }
  2810. done
  2811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2812. /* end confdefs.h. */
  2813. int
  2814. main ()
  2815. {
  2816. ;
  2817. return 0;
  2818. }
  2819. _ACEOF
  2820. ac_clean_files_save=$ac_clean_files
  2821. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2822. # Try to create an executable without -o first, disregard a.out.
  2823. # It will help us diagnose broken compilers, and finding out an intuition
  2824. # of exeext.
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2826. $as_echo_n "checking whether the C compiler works... " >&6; }
  2827. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2828. # The possible output files:
  2829. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2830. ac_rmfiles=
  2831. for ac_file in $ac_files
  2832. do
  2833. case $ac_file in
  2834. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2835. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2836. esac
  2837. done
  2838. rm -f $ac_rmfiles
  2839. if { { ac_try="$ac_link_default"
  2840. case "(($ac_try" in
  2841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2842. *) ac_try_echo=$ac_try;;
  2843. esac
  2844. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2845. $as_echo "$ac_try_echo"; } >&5
  2846. (eval "$ac_link_default") 2>&5
  2847. ac_status=$?
  2848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2849. test $ac_status = 0; }; then :
  2850. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2851. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2852. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2853. # so that the user can short-circuit this test for compilers unknown to
  2854. # Autoconf.
  2855. for ac_file in $ac_files ''
  2856. do
  2857. test -f "$ac_file" || continue
  2858. case $ac_file in
  2859. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2860. ;;
  2861. [ab].out )
  2862. # We found the default executable, but exeext='' is most
  2863. # certainly right.
  2864. break;;
  2865. *.* )
  2866. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2867. then :; else
  2868. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2869. fi
  2870. # We set ac_cv_exeext here because the later test for it is not
  2871. # safe: cross compilers may not add the suffix if given an `-o'
  2872. # argument, so we may need to know it at that point already.
  2873. # Even if this section looks crufty: it has the advantage of
  2874. # actually working.
  2875. break;;
  2876. * )
  2877. break;;
  2878. esac
  2879. done
  2880. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2881. else
  2882. ac_file=''
  2883. fi
  2884. if test -z "$ac_file"; then :
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2886. $as_echo "no" >&6; }
  2887. $as_echo "$as_me: failed program was:" >&5
  2888. sed 's/^/| /' conftest.$ac_ext >&5
  2889. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2890. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2891. as_fn_error 77 "C compiler cannot create executables
  2892. See \`config.log' for more details" "$LINENO" 5; }
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2895. $as_echo "yes" >&6; }
  2896. fi
  2897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2898. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2900. $as_echo "$ac_file" >&6; }
  2901. ac_exeext=$ac_cv_exeext
  2902. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2903. ac_clean_files=$ac_clean_files_save
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2905. $as_echo_n "checking for suffix of executables... " >&6; }
  2906. if { { ac_try="$ac_link"
  2907. case "(($ac_try" in
  2908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2909. *) ac_try_echo=$ac_try;;
  2910. esac
  2911. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2912. $as_echo "$ac_try_echo"; } >&5
  2913. (eval "$ac_link") 2>&5
  2914. ac_status=$?
  2915. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2916. test $ac_status = 0; }; then :
  2917. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2918. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2919. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2920. # `rm'.
  2921. for ac_file in conftest.exe conftest conftest.*; do
  2922. test -f "$ac_file" || continue
  2923. case $ac_file in
  2924. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2925. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2926. break;;
  2927. * ) break;;
  2928. esac
  2929. done
  2930. else
  2931. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2932. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2933. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2934. See \`config.log' for more details" "$LINENO" 5; }
  2935. fi
  2936. rm -f conftest conftest$ac_cv_exeext
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2938. $as_echo "$ac_cv_exeext" >&6; }
  2939. rm -f conftest.$ac_ext
  2940. EXEEXT=$ac_cv_exeext
  2941. ac_exeext=$EXEEXT
  2942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2943. /* end confdefs.h. */
  2944. #include <stdio.h>
  2945. int
  2946. main ()
  2947. {
  2948. FILE *f = fopen ("conftest.out", "w");
  2949. return ferror (f) || fclose (f) != 0;
  2950. ;
  2951. return 0;
  2952. }
  2953. _ACEOF
  2954. ac_clean_files="$ac_clean_files conftest.out"
  2955. # Check that the compiler produces executables we can run. If not, either
  2956. # the compiler is broken, or we cross compile.
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2958. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2959. if test "$cross_compiling" != yes; then
  2960. { { ac_try="$ac_link"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_link") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2970. test $ac_status = 0; }
  2971. if { ac_try='./conftest$ac_cv_exeext'
  2972. { { case "(($ac_try" in
  2973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2974. *) ac_try_echo=$ac_try;;
  2975. esac
  2976. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2977. $as_echo "$ac_try_echo"; } >&5
  2978. (eval "$ac_try") 2>&5
  2979. ac_status=$?
  2980. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2981. test $ac_status = 0; }; }; then
  2982. cross_compiling=no
  2983. else
  2984. if test "$cross_compiling" = maybe; then
  2985. cross_compiling=yes
  2986. else
  2987. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2988. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2989. as_fn_error $? "cannot run C compiled programs.
  2990. If you meant to cross compile, use \`--host'.
  2991. See \`config.log' for more details" "$LINENO" 5; }
  2992. fi
  2993. fi
  2994. fi
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2996. $as_echo "$cross_compiling" >&6; }
  2997. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2998. ac_clean_files=$ac_clean_files_save
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3000. $as_echo_n "checking for suffix of object files... " >&6; }
  3001. if ${ac_cv_objext+:} false; then :
  3002. $as_echo_n "(cached) " >&6
  3003. else
  3004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. rm -f conftest.o conftest.obj
  3014. if { { ac_try="$ac_compile"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_compile") 2>&5
  3022. ac_status=$?
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3024. test $ac_status = 0; }; then :
  3025. for ac_file in conftest.o conftest.obj conftest.*; do
  3026. test -f "$ac_file" || continue;
  3027. case $ac_file in
  3028. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3029. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3030. break;;
  3031. esac
  3032. done
  3033. else
  3034. $as_echo "$as_me: failed program was:" >&5
  3035. sed 's/^/| /' conftest.$ac_ext >&5
  3036. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3038. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3039. See \`config.log' for more details" "$LINENO" 5; }
  3040. fi
  3041. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3044. $as_echo "$ac_cv_objext" >&6; }
  3045. OBJEXT=$ac_cv_objext
  3046. ac_objext=$OBJEXT
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3048. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3049. if ${ac_cv_c_compiler_gnu+:} false; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3053. /* end confdefs.h. */
  3054. int
  3055. main ()
  3056. {
  3057. #ifndef __GNUC__
  3058. choke me
  3059. #endif
  3060. ;
  3061. return 0;
  3062. }
  3063. _ACEOF
  3064. if ac_fn_c_try_compile "$LINENO"; then :
  3065. ac_compiler_gnu=yes
  3066. else
  3067. ac_compiler_gnu=no
  3068. fi
  3069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3070. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3071. fi
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3073. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3074. if test $ac_compiler_gnu = yes; then
  3075. GCC=yes
  3076. else
  3077. GCC=
  3078. fi
  3079. ac_test_CFLAGS=${CFLAGS+set}
  3080. ac_save_CFLAGS=$CFLAGS
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3082. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3083. if ${ac_cv_prog_cc_g+:} false; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. ac_save_c_werror_flag=$ac_c_werror_flag
  3087. ac_c_werror_flag=yes
  3088. ac_cv_prog_cc_g=no
  3089. CFLAGS="-g"
  3090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3091. /* end confdefs.h. */
  3092. int
  3093. main ()
  3094. {
  3095. ;
  3096. return 0;
  3097. }
  3098. _ACEOF
  3099. if ac_fn_c_try_compile "$LINENO"; then :
  3100. ac_cv_prog_cc_g=yes
  3101. else
  3102. CFLAGS=""
  3103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3104. /* end confdefs.h. */
  3105. int
  3106. main ()
  3107. {
  3108. ;
  3109. return 0;
  3110. }
  3111. _ACEOF
  3112. if ac_fn_c_try_compile "$LINENO"; then :
  3113. else
  3114. ac_c_werror_flag=$ac_save_c_werror_flag
  3115. CFLAGS="-g"
  3116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h. */
  3118. int
  3119. main ()
  3120. {
  3121. ;
  3122. return 0;
  3123. }
  3124. _ACEOF
  3125. if ac_fn_c_try_compile "$LINENO"; then :
  3126. ac_cv_prog_cc_g=yes
  3127. fi
  3128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. ac_c_werror_flag=$ac_save_c_werror_flag
  3134. fi
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3136. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3137. if test "$ac_test_CFLAGS" = set; then
  3138. CFLAGS=$ac_save_CFLAGS
  3139. elif test $ac_cv_prog_cc_g = yes; then
  3140. if test "$GCC" = yes; then
  3141. CFLAGS="-g -O2"
  3142. else
  3143. CFLAGS="-g"
  3144. fi
  3145. else
  3146. if test "$GCC" = yes; then
  3147. CFLAGS="-O2"
  3148. else
  3149. CFLAGS=
  3150. fi
  3151. fi
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3153. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3154. if ${ac_cv_prog_cc_c89+:} false; then :
  3155. $as_echo_n "(cached) " >&6
  3156. else
  3157. ac_cv_prog_cc_c89=no
  3158. ac_save_CC=$CC
  3159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3160. /* end confdefs.h. */
  3161. #include <stdarg.h>
  3162. #include <stdio.h>
  3163. struct stat;
  3164. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3165. struct buf { int x; };
  3166. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3167. static char *e (p, i)
  3168. char **p;
  3169. int i;
  3170. {
  3171. return p[i];
  3172. }
  3173. static char *f (char * (*g) (char **, int), char **p, ...)
  3174. {
  3175. char *s;
  3176. va_list v;
  3177. va_start (v,p);
  3178. s = g (p, va_arg (v,int));
  3179. va_end (v);
  3180. return s;
  3181. }
  3182. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3183. function prototypes and stuff, but not '\xHH' hex character constants.
  3184. These don't provoke an error unfortunately, instead are silently treated
  3185. as 'x'. The following induces an error, until -std is added to get
  3186. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3187. array size at least. It's necessary to write '\x00'==0 to get something
  3188. that's true only with -std. */
  3189. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3190. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3191. inside strings and character constants. */
  3192. #define FOO(x) 'x'
  3193. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3194. int test (int i, double x);
  3195. struct s1 {int (*f) (int a);};
  3196. struct s2 {int (*f) (double a);};
  3197. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3198. int argc;
  3199. char **argv;
  3200. int
  3201. main ()
  3202. {
  3203. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3204. ;
  3205. return 0;
  3206. }
  3207. _ACEOF
  3208. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3209. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3210. do
  3211. CC="$ac_save_CC $ac_arg"
  3212. if ac_fn_c_try_compile "$LINENO"; then :
  3213. ac_cv_prog_cc_c89=$ac_arg
  3214. fi
  3215. rm -f core conftest.err conftest.$ac_objext
  3216. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3217. done
  3218. rm -f conftest.$ac_ext
  3219. CC=$ac_save_CC
  3220. fi
  3221. # AC_CACHE_VAL
  3222. case "x$ac_cv_prog_cc_c89" in
  3223. x)
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3225. $as_echo "none needed" >&6; } ;;
  3226. xno)
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3228. $as_echo "unsupported" >&6; } ;;
  3229. *)
  3230. CC="$CC $ac_cv_prog_cc_c89"
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3232. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3233. esac
  3234. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3235. fi
  3236. ac_ext=c
  3237. ac_cpp='$CPP $CPPFLAGS'
  3238. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3239. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3240. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3241. depcc="$CC" am_compiler_list=
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3243. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3244. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3248. # We make a subdir and do the tests there. Otherwise we can end up
  3249. # making bogus files that we don't know about and never remove. For
  3250. # instance it was reported that on HP-UX the gcc test will end up
  3251. # making a dummy file named 'D' -- because '-MD' means "put the output
  3252. # in D".
  3253. rm -rf conftest.dir
  3254. mkdir conftest.dir
  3255. # Copy depcomp to subdir because otherwise we won't find it if we're
  3256. # using a relative directory.
  3257. cp "$am_depcomp" conftest.dir
  3258. cd conftest.dir
  3259. # We will build objects and dependencies in a subdirectory because
  3260. # it helps to detect inapplicable dependency modes. For instance
  3261. # both Tru64's cc and ICC support -MD to output dependencies as a
  3262. # side effect of compilation, but ICC will put the dependencies in
  3263. # the current directory while Tru64 will put them in the object
  3264. # directory.
  3265. mkdir sub
  3266. am_cv_CC_dependencies_compiler_type=none
  3267. if test "$am_compiler_list" = ""; then
  3268. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3269. fi
  3270. am__universal=false
  3271. case " $depcc " in #(
  3272. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3273. esac
  3274. for depmode in $am_compiler_list; do
  3275. # Setup a source with many dependencies, because some compilers
  3276. # like to wrap large dependency lists on column 80 (with \), and
  3277. # we should not choose a depcomp mode which is confused by this.
  3278. #
  3279. # We need to recreate these files for each test, as the compiler may
  3280. # overwrite some of them when testing with obscure command lines.
  3281. # This happens at least with the AIX C compiler.
  3282. : > sub/conftest.c
  3283. for i in 1 2 3 4 5 6; do
  3284. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3285. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3286. # Solaris 10 /bin/sh.
  3287. echo '/* dummy */' > sub/conftst$i.h
  3288. done
  3289. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3290. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3291. # mode. It turns out that the SunPro C++ compiler does not properly
  3292. # handle '-M -o', and we need to detect this. Also, some Intel
  3293. # versions had trouble with output in subdirs.
  3294. am__obj=sub/conftest.${OBJEXT-o}
  3295. am__minus_obj="-o $am__obj"
  3296. case $depmode in
  3297. gcc)
  3298. # This depmode causes a compiler race in universal mode.
  3299. test "$am__universal" = false || continue
  3300. ;;
  3301. nosideeffect)
  3302. # After this tag, mechanisms are not by side-effect, so they'll
  3303. # only be used when explicitly requested.
  3304. if test "x$enable_dependency_tracking" = xyes; then
  3305. continue
  3306. else
  3307. break
  3308. fi
  3309. ;;
  3310. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3311. # This compiler won't grok '-c -o', but also, the minuso test has
  3312. # not run yet. These depmodes are late enough in the game, and
  3313. # so weak that their functioning should not be impacted.
  3314. am__obj=conftest.${OBJEXT-o}
  3315. am__minus_obj=
  3316. ;;
  3317. none) break ;;
  3318. esac
  3319. if depmode=$depmode \
  3320. source=sub/conftest.c object=$am__obj \
  3321. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3322. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3323. >/dev/null 2>conftest.err &&
  3324. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3325. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3326. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3327. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3328. # icc doesn't choke on unknown options, it will just issue warnings
  3329. # or remarks (even with -Werror). So we grep stderr for any message
  3330. # that says an option was ignored or not supported.
  3331. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3332. # icc: Command line warning: ignoring option '-M'; no argument required
  3333. # The diagnosis changed in icc 8.0:
  3334. # icc: Command line remark: option '-MP' not supported
  3335. if (grep 'ignoring option' conftest.err ||
  3336. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3337. am_cv_CC_dependencies_compiler_type=$depmode
  3338. break
  3339. fi
  3340. fi
  3341. done
  3342. cd ..
  3343. rm -rf conftest.dir
  3344. else
  3345. am_cv_CC_dependencies_compiler_type=none
  3346. fi
  3347. fi
  3348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3349. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3350. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3351. if
  3352. test "x$enable_dependency_tracking" != xno \
  3353. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3354. am__fastdepCC_TRUE=
  3355. am__fastdepCC_FALSE='#'
  3356. else
  3357. am__fastdepCC_TRUE='#'
  3358. am__fastdepCC_FALSE=
  3359. fi
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3361. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3362. if ${ac_cv_prog_cc_c99+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. ac_cv_prog_cc_c99=no
  3366. ac_save_CC=$CC
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <stdarg.h>
  3370. #include <stdbool.h>
  3371. #include <stdlib.h>
  3372. #include <wchar.h>
  3373. #include <stdio.h>
  3374. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3375. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3376. #define showlist(...) puts (#__VA_ARGS__)
  3377. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3378. static void
  3379. test_varargs_macros (void)
  3380. {
  3381. int x = 1234;
  3382. int y = 5678;
  3383. debug ("Flag");
  3384. debug ("X = %d\n", x);
  3385. showlist (The first, second, and third items.);
  3386. report (x>y, "x is %d but y is %d", x, y);
  3387. }
  3388. // Check long long types.
  3389. #define BIG64 18446744073709551615ull
  3390. #define BIG32 4294967295ul
  3391. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3392. #if !BIG_OK
  3393. your preprocessor is broken;
  3394. #endif
  3395. #if BIG_OK
  3396. #else
  3397. your preprocessor is broken;
  3398. #endif
  3399. static long long int bignum = -9223372036854775807LL;
  3400. static unsigned long long int ubignum = BIG64;
  3401. struct incomplete_array
  3402. {
  3403. int datasize;
  3404. double data[];
  3405. };
  3406. struct named_init {
  3407. int number;
  3408. const wchar_t *name;
  3409. double average;
  3410. };
  3411. typedef const char *ccp;
  3412. static inline int
  3413. test_restrict (ccp restrict text)
  3414. {
  3415. // See if C++-style comments work.
  3416. // Iterate through items via the restricted pointer.
  3417. // Also check for declarations in for loops.
  3418. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3419. continue;
  3420. return 0;
  3421. }
  3422. // Check varargs and va_copy.
  3423. static void
  3424. test_varargs (const char *format, ...)
  3425. {
  3426. va_list args;
  3427. va_start (args, format);
  3428. va_list args_copy;
  3429. va_copy (args_copy, args);
  3430. const char *str;
  3431. int number;
  3432. float fnumber;
  3433. while (*format)
  3434. {
  3435. switch (*format++)
  3436. {
  3437. case 's': // string
  3438. str = va_arg (args_copy, const char *);
  3439. break;
  3440. case 'd': // int
  3441. number = va_arg (args_copy, int);
  3442. break;
  3443. case 'f': // float
  3444. fnumber = va_arg (args_copy, double);
  3445. break;
  3446. default:
  3447. break;
  3448. }
  3449. }
  3450. va_end (args_copy);
  3451. va_end (args);
  3452. }
  3453. int
  3454. main ()
  3455. {
  3456. // Check bool.
  3457. _Bool success = false;
  3458. // Check restrict.
  3459. if (test_restrict ("String literal") == 0)
  3460. success = true;
  3461. char *restrict newvar = "Another string";
  3462. // Check varargs.
  3463. test_varargs ("s, d' f .", "string", 65, 34.234);
  3464. test_varargs_macros ();
  3465. // Check flexible array members.
  3466. struct incomplete_array *ia =
  3467. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3468. ia->datasize = 10;
  3469. for (int i = 0; i < ia->datasize; ++i)
  3470. ia->data[i] = i * 1.234;
  3471. // Check named initializers.
  3472. struct named_init ni = {
  3473. .number = 34,
  3474. .name = L"Test wide string",
  3475. .average = 543.34343,
  3476. };
  3477. ni.number = 58;
  3478. int dynamic_array[ni.number];
  3479. dynamic_array[ni.number - 1] = 543;
  3480. // work around unused variable warnings
  3481. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3482. || dynamic_array[ni.number - 1] != 543);
  3483. ;
  3484. return 0;
  3485. }
  3486. _ACEOF
  3487. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3488. do
  3489. CC="$ac_save_CC $ac_arg"
  3490. if ac_fn_c_try_compile "$LINENO"; then :
  3491. ac_cv_prog_cc_c99=$ac_arg
  3492. fi
  3493. rm -f core conftest.err conftest.$ac_objext
  3494. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3495. done
  3496. rm -f conftest.$ac_ext
  3497. CC=$ac_save_CC
  3498. fi
  3499. # AC_CACHE_VAL
  3500. case "x$ac_cv_prog_cc_c99" in
  3501. x)
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3503. $as_echo "none needed" >&6; } ;;
  3504. xno)
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3506. $as_echo "unsupported" >&6; } ;;
  3507. *)
  3508. CC="$CC $ac_cv_prog_cc_c99"
  3509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3510. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3511. esac
  3512. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3513. fi
  3514. ac_ext=c
  3515. ac_cpp='$CPP $CPPFLAGS'
  3516. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3517. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3518. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3520. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3521. # On Suns, sometimes $CPP names a directory.
  3522. if test -n "$CPP" && test -d "$CPP"; then
  3523. CPP=
  3524. fi
  3525. if test -z "$CPP"; then
  3526. if ${ac_cv_prog_CPP+:} false; then :
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. # Double quotes because CPP needs to be expanded
  3530. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3531. do
  3532. ac_preproc_ok=false
  3533. for ac_c_preproc_warn_flag in '' yes
  3534. do
  3535. # Use a header file that comes with gcc, so configuring glibc
  3536. # with a fresh cross-compiler works.
  3537. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3538. # <limits.h> exists even on freestanding compilers.
  3539. # On the NeXT, cc -E runs the code through the compiler's parser,
  3540. # not just through cpp. "Syntax error" is here to catch this case.
  3541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3542. /* end confdefs.h. */
  3543. #ifdef __STDC__
  3544. # include <limits.h>
  3545. #else
  3546. # include <assert.h>
  3547. #endif
  3548. Syntax error
  3549. _ACEOF
  3550. if ac_fn_c_try_cpp "$LINENO"; then :
  3551. else
  3552. # Broken: fails on valid input.
  3553. continue
  3554. fi
  3555. rm -f conftest.err conftest.i conftest.$ac_ext
  3556. # OK, works on sane cases. Now check whether nonexistent headers
  3557. # can be detected and how.
  3558. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3559. /* end confdefs.h. */
  3560. #include <ac_nonexistent.h>
  3561. _ACEOF
  3562. if ac_fn_c_try_cpp "$LINENO"; then :
  3563. # Broken: success on invalid input.
  3564. continue
  3565. else
  3566. # Passes both tests.
  3567. ac_preproc_ok=:
  3568. break
  3569. fi
  3570. rm -f conftest.err conftest.i conftest.$ac_ext
  3571. done
  3572. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3573. rm -f conftest.i conftest.err conftest.$ac_ext
  3574. if $ac_preproc_ok; then :
  3575. break
  3576. fi
  3577. done
  3578. ac_cv_prog_CPP=$CPP
  3579. fi
  3580. CPP=$ac_cv_prog_CPP
  3581. else
  3582. ac_cv_prog_CPP=$CPP
  3583. fi
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3585. $as_echo "$CPP" >&6; }
  3586. ac_preproc_ok=false
  3587. for ac_c_preproc_warn_flag in '' yes
  3588. do
  3589. # Use a header file that comes with gcc, so configuring glibc
  3590. # with a fresh cross-compiler works.
  3591. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3592. # <limits.h> exists even on freestanding compilers.
  3593. # On the NeXT, cc -E runs the code through the compiler's parser,
  3594. # not just through cpp. "Syntax error" is here to catch this case.
  3595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3596. /* end confdefs.h. */
  3597. #ifdef __STDC__
  3598. # include <limits.h>
  3599. #else
  3600. # include <assert.h>
  3601. #endif
  3602. Syntax error
  3603. _ACEOF
  3604. if ac_fn_c_try_cpp "$LINENO"; then :
  3605. else
  3606. # Broken: fails on valid input.
  3607. continue
  3608. fi
  3609. rm -f conftest.err conftest.i conftest.$ac_ext
  3610. # OK, works on sane cases. Now check whether nonexistent headers
  3611. # can be detected and how.
  3612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3613. /* end confdefs.h. */
  3614. #include <ac_nonexistent.h>
  3615. _ACEOF
  3616. if ac_fn_c_try_cpp "$LINENO"; then :
  3617. # Broken: success on invalid input.
  3618. continue
  3619. else
  3620. # Passes both tests.
  3621. ac_preproc_ok=:
  3622. break
  3623. fi
  3624. rm -f conftest.err conftest.i conftest.$ac_ext
  3625. done
  3626. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3627. rm -f conftest.i conftest.err conftest.$ac_ext
  3628. if $ac_preproc_ok; then :
  3629. else
  3630. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3631. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3632. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3633. See \`config.log' for more details" "$LINENO" 5; }
  3634. fi
  3635. ac_ext=c
  3636. ac_cpp='$CPP $CPPFLAGS'
  3637. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3638. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3639. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3641. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3642. if ${ac_cv_path_GREP+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if test -z "$GREP"; then
  3646. ac_path_GREP_found=false
  3647. # Loop through the user's path and test for each of PROGNAME-LIST
  3648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3649. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3650. do
  3651. IFS=$as_save_IFS
  3652. test -z "$as_dir" && as_dir=.
  3653. for ac_prog in grep ggrep; do
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3656. as_fn_executable_p "$ac_path_GREP" || continue
  3657. # Check for GNU ac_path_GREP and select it if it is found.
  3658. # Check for GNU $ac_path_GREP
  3659. case `"$ac_path_GREP" --version 2>&1` in
  3660. *GNU*)
  3661. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3662. *)
  3663. ac_count=0
  3664. $as_echo_n 0123456789 >"conftest.in"
  3665. while :
  3666. do
  3667. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3668. mv "conftest.tmp" "conftest.in"
  3669. cp "conftest.in" "conftest.nl"
  3670. $as_echo 'GREP' >> "conftest.nl"
  3671. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3672. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3673. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3674. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3675. # Best one so far, save it but keep looking for a better one
  3676. ac_cv_path_GREP="$ac_path_GREP"
  3677. ac_path_GREP_max=$ac_count
  3678. fi
  3679. # 10*(2^10) chars as input seems more than enough
  3680. test $ac_count -gt 10 && break
  3681. done
  3682. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3683. esac
  3684. $ac_path_GREP_found && break 3
  3685. done
  3686. done
  3687. done
  3688. IFS=$as_save_IFS
  3689. if test -z "$ac_cv_path_GREP"; then
  3690. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3691. fi
  3692. else
  3693. ac_cv_path_GREP=$GREP
  3694. fi
  3695. fi
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3697. $as_echo "$ac_cv_path_GREP" >&6; }
  3698. GREP="$ac_cv_path_GREP"
  3699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3700. $as_echo_n "checking for egrep... " >&6; }
  3701. if ${ac_cv_path_EGREP+:} false; then :
  3702. $as_echo_n "(cached) " >&6
  3703. else
  3704. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3705. then ac_cv_path_EGREP="$GREP -E"
  3706. else
  3707. if test -z "$EGREP"; then
  3708. ac_path_EGREP_found=false
  3709. # Loop through the user's path and test for each of PROGNAME-LIST
  3710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3711. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3712. do
  3713. IFS=$as_save_IFS
  3714. test -z "$as_dir" && as_dir=.
  3715. for ac_prog in egrep; do
  3716. for ac_exec_ext in '' $ac_executable_extensions; do
  3717. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3718. as_fn_executable_p "$ac_path_EGREP" || continue
  3719. # Check for GNU ac_path_EGREP and select it if it is found.
  3720. # Check for GNU $ac_path_EGREP
  3721. case `"$ac_path_EGREP" --version 2>&1` in
  3722. *GNU*)
  3723. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3724. *)
  3725. ac_count=0
  3726. $as_echo_n 0123456789 >"conftest.in"
  3727. while :
  3728. do
  3729. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3730. mv "conftest.tmp" "conftest.in"
  3731. cp "conftest.in" "conftest.nl"
  3732. $as_echo 'EGREP' >> "conftest.nl"
  3733. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3734. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3735. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3736. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3737. # Best one so far, save it but keep looking for a better one
  3738. ac_cv_path_EGREP="$ac_path_EGREP"
  3739. ac_path_EGREP_max=$ac_count
  3740. fi
  3741. # 10*(2^10) chars as input seems more than enough
  3742. test $ac_count -gt 10 && break
  3743. done
  3744. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3745. esac
  3746. $ac_path_EGREP_found && break 3
  3747. done
  3748. done
  3749. done
  3750. IFS=$as_save_IFS
  3751. if test -z "$ac_cv_path_EGREP"; then
  3752. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3753. fi
  3754. else
  3755. ac_cv_path_EGREP=$EGREP
  3756. fi
  3757. fi
  3758. fi
  3759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3760. $as_echo "$ac_cv_path_EGREP" >&6; }
  3761. EGREP="$ac_cv_path_EGREP"
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3763. $as_echo_n "checking for ANSI C header files... " >&6; }
  3764. if ${ac_cv_header_stdc+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h. */
  3769. #include <stdlib.h>
  3770. #include <stdarg.h>
  3771. #include <string.h>
  3772. #include <float.h>
  3773. int
  3774. main ()
  3775. {
  3776. ;
  3777. return 0;
  3778. }
  3779. _ACEOF
  3780. if ac_fn_c_try_compile "$LINENO"; then :
  3781. ac_cv_header_stdc=yes
  3782. else
  3783. ac_cv_header_stdc=no
  3784. fi
  3785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3786. if test $ac_cv_header_stdc = yes; then
  3787. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3789. /* end confdefs.h. */
  3790. #include <string.h>
  3791. _ACEOF
  3792. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3793. $EGREP "memchr" >/dev/null 2>&1; then :
  3794. else
  3795. ac_cv_header_stdc=no
  3796. fi
  3797. rm -f conftest*
  3798. fi
  3799. if test $ac_cv_header_stdc = yes; then
  3800. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3802. /* end confdefs.h. */
  3803. #include <stdlib.h>
  3804. _ACEOF
  3805. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3806. $EGREP "free" >/dev/null 2>&1; then :
  3807. else
  3808. ac_cv_header_stdc=no
  3809. fi
  3810. rm -f conftest*
  3811. fi
  3812. if test $ac_cv_header_stdc = yes; then
  3813. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3814. if test "$cross_compiling" = yes; then :
  3815. :
  3816. else
  3817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3818. /* end confdefs.h. */
  3819. #include <ctype.h>
  3820. #include <stdlib.h>
  3821. #if ((' ' & 0x0FF) == 0x020)
  3822. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3823. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3824. #else
  3825. # define ISLOWER(c) \
  3826. (('a' <= (c) && (c) <= 'i') \
  3827. || ('j' <= (c) && (c) <= 'r') \
  3828. || ('s' <= (c) && (c) <= 'z'))
  3829. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3830. #endif
  3831. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3832. int
  3833. main ()
  3834. {
  3835. int i;
  3836. for (i = 0; i < 256; i++)
  3837. if (XOR (islower (i), ISLOWER (i))
  3838. || toupper (i) != TOUPPER (i))
  3839. return 2;
  3840. return 0;
  3841. }
  3842. _ACEOF
  3843. if ac_fn_c_try_run "$LINENO"; then :
  3844. else
  3845. ac_cv_header_stdc=no
  3846. fi
  3847. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3848. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3849. fi
  3850. fi
  3851. fi
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3853. $as_echo "$ac_cv_header_stdc" >&6; }
  3854. if test $ac_cv_header_stdc = yes; then
  3855. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3856. fi
  3857. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3858. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3859. inttypes.h stdint.h unistd.h
  3860. do :
  3861. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3862. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3863. "
  3864. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3865. cat >>confdefs.h <<_ACEOF
  3866. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3867. _ACEOF
  3868. fi
  3869. done
  3870. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3871. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3872. CLANGCC="yes"
  3873. else
  3874. CLANGCC="no"
  3875. fi
  3876. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3877. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3878. INTELCC="yes"
  3879. else
  3880. INTELCC="no"
  3881. fi
  3882. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3883. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3884. SUNCC="yes"
  3885. else
  3886. SUNCC="no"
  3887. fi
  3888. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3889. if test -n "$ac_tool_prefix"; then
  3890. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3891. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3893. $as_echo_n "checking for $ac_word... " >&6; }
  3894. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. case $PKG_CONFIG in
  3898. [\\/]* | ?:[\\/]*)
  3899. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3900. ;;
  3901. *)
  3902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3903. for as_dir in $PATH
  3904. do
  3905. IFS=$as_save_IFS
  3906. test -z "$as_dir" && as_dir=.
  3907. for ac_exec_ext in '' $ac_executable_extensions; do
  3908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3909. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3911. break 2
  3912. fi
  3913. done
  3914. done
  3915. IFS=$as_save_IFS
  3916. ;;
  3917. esac
  3918. fi
  3919. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3920. if test -n "$PKG_CONFIG"; then
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3922. $as_echo "$PKG_CONFIG" >&6; }
  3923. else
  3924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3925. $as_echo "no" >&6; }
  3926. fi
  3927. fi
  3928. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3929. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3930. # Extract the first word of "pkg-config", so it can be a program name with args.
  3931. set dummy pkg-config; ac_word=$2
  3932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3933. $as_echo_n "checking for $ac_word... " >&6; }
  3934. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3935. $as_echo_n "(cached) " >&6
  3936. else
  3937. case $ac_pt_PKG_CONFIG in
  3938. [\\/]* | ?:[\\/]*)
  3939. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3940. ;;
  3941. *)
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_exec_ext in '' $ac_executable_extensions; do
  3948. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3949. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3950. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3951. break 2
  3952. fi
  3953. done
  3954. done
  3955. IFS=$as_save_IFS
  3956. ;;
  3957. esac
  3958. fi
  3959. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3960. if test -n "$ac_pt_PKG_CONFIG"; then
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3962. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3963. else
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3965. $as_echo "no" >&6; }
  3966. fi
  3967. if test "x$ac_pt_PKG_CONFIG" = x; then
  3968. PKG_CONFIG=""
  3969. else
  3970. case $cross_compiling:$ac_tool_warned in
  3971. yes:)
  3972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3974. ac_tool_warned=yes ;;
  3975. esac
  3976. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3977. fi
  3978. else
  3979. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3980. fi
  3981. fi
  3982. if test -n "$PKG_CONFIG"; then
  3983. _pkg_min_version=0.9.0
  3984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3985. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3986. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3988. $as_echo "yes" >&6; }
  3989. else
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3991. $as_echo "no" >&6; }
  3992. PKG_CONFIG=""
  3993. fi
  3994. fi
  3995. # Make sure we can run config.sub.
  3996. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3997. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3999. $as_echo_n "checking build system type... " >&6; }
  4000. if ${ac_cv_build+:} false; then :
  4001. $as_echo_n "(cached) " >&6
  4002. else
  4003. ac_build_alias=$build_alias
  4004. test "x$ac_build_alias" = x &&
  4005. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4006. test "x$ac_build_alias" = x &&
  4007. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4008. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4009. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4012. $as_echo "$ac_cv_build" >&6; }
  4013. case $ac_cv_build in
  4014. *-*-*) ;;
  4015. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4016. esac
  4017. build=$ac_cv_build
  4018. ac_save_IFS=$IFS; IFS='-'
  4019. set x $ac_cv_build
  4020. shift
  4021. build_cpu=$1
  4022. build_vendor=$2
  4023. shift; shift
  4024. # Remember, the first character of IFS is used to create $*,
  4025. # except with old shells:
  4026. build_os=$*
  4027. IFS=$ac_save_IFS
  4028. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4030. $as_echo_n "checking host system type... " >&6; }
  4031. if ${ac_cv_host+:} false; then :
  4032. $as_echo_n "(cached) " >&6
  4033. else
  4034. if test "x$host_alias" = x; then
  4035. ac_cv_host=$ac_cv_build
  4036. else
  4037. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4038. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4039. fi
  4040. fi
  4041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4042. $as_echo "$ac_cv_host" >&6; }
  4043. case $ac_cv_host in
  4044. *-*-*) ;;
  4045. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4046. esac
  4047. host=$ac_cv_host
  4048. ac_save_IFS=$IFS; IFS='-'
  4049. set x $ac_cv_host
  4050. shift
  4051. host_cpu=$1
  4052. host_vendor=$2
  4053. shift; shift
  4054. # Remember, the first character of IFS is used to create $*,
  4055. # except with old shells:
  4056. host_os=$*
  4057. IFS=$ac_save_IFS
  4058. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4060. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4061. if ${ac_cv_path_SED+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4065. for ac_i in 1 2 3 4 5 6 7; do
  4066. ac_script="$ac_script$as_nl$ac_script"
  4067. done
  4068. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4069. { ac_script=; unset ac_script;}
  4070. if test -z "$SED"; then
  4071. ac_path_SED_found=false
  4072. # Loop through the user's path and test for each of PROGNAME-LIST
  4073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4074. for as_dir in $PATH
  4075. do
  4076. IFS=$as_save_IFS
  4077. test -z "$as_dir" && as_dir=.
  4078. for ac_prog in sed gsed; do
  4079. for ac_exec_ext in '' $ac_executable_extensions; do
  4080. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4081. as_fn_executable_p "$ac_path_SED" || continue
  4082. # Check for GNU ac_path_SED and select it if it is found.
  4083. # Check for GNU $ac_path_SED
  4084. case `"$ac_path_SED" --version 2>&1` in
  4085. *GNU*)
  4086. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4087. *)
  4088. ac_count=0
  4089. $as_echo_n 0123456789 >"conftest.in"
  4090. while :
  4091. do
  4092. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4093. mv "conftest.tmp" "conftest.in"
  4094. cp "conftest.in" "conftest.nl"
  4095. $as_echo '' >> "conftest.nl"
  4096. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4097. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4098. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4099. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4100. # Best one so far, save it but keep looking for a better one
  4101. ac_cv_path_SED="$ac_path_SED"
  4102. ac_path_SED_max=$ac_count
  4103. fi
  4104. # 10*(2^10) chars as input seems more than enough
  4105. test $ac_count -gt 10 && break
  4106. done
  4107. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4108. esac
  4109. $ac_path_SED_found && break 3
  4110. done
  4111. done
  4112. done
  4113. IFS=$as_save_IFS
  4114. if test -z "$ac_cv_path_SED"; then
  4115. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4116. fi
  4117. else
  4118. ac_cv_path_SED=$SED
  4119. fi
  4120. fi
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4122. $as_echo "$ac_cv_path_SED" >&6; }
  4123. SED="$ac_cv_path_SED"
  4124. rm -f conftest.sed
  4125. # Check whether --enable-selective-werror was given.
  4126. if test "${enable_selective_werror+set}" = set; then :
  4127. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4128. else
  4129. SELECTIVE_WERROR=yes
  4130. fi
  4131. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4132. if test "x$SUNCC" = "xyes"; then
  4133. BASE_CFLAGS="-v"
  4134. else
  4135. BASE_CFLAGS=""
  4136. fi
  4137. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4138. xorg_testset_save_CFLAGS="$CFLAGS"
  4139. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4140. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4142. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4143. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4144. $as_echo_n "(cached) " >&6
  4145. else
  4146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4147. /* end confdefs.h. */
  4148. int i;
  4149. _ACEOF
  4150. if ac_fn_c_try_compile "$LINENO"; then :
  4151. xorg_cv_cc_flag_unknown_warning_option=yes
  4152. else
  4153. xorg_cv_cc_flag_unknown_warning_option=no
  4154. fi
  4155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4156. fi
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4158. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4159. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4160. CFLAGS="$xorg_testset_save_CFLAGS"
  4161. fi
  4162. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4163. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4165. fi
  4166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4168. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4169. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4170. $as_echo_n "(cached) " >&6
  4171. else
  4172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4173. /* end confdefs.h. */
  4174. int i;
  4175. _ACEOF
  4176. if ac_fn_c_try_compile "$LINENO"; then :
  4177. xorg_cv_cc_flag_unused_command_line_argument=yes
  4178. else
  4179. xorg_cv_cc_flag_unused_command_line_argument=no
  4180. fi
  4181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4182. fi
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4184. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4185. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4186. CFLAGS="$xorg_testset_save_CFLAGS"
  4187. fi
  4188. found="no"
  4189. if test $found = "no" ; then
  4190. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4191. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4192. fi
  4193. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4194. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4195. fi
  4196. CFLAGS="$CFLAGS -Wall"
  4197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4198. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4199. cacheid=xorg_cv_cc_flag__Wall
  4200. if eval \${$cacheid+:} false; then :
  4201. $as_echo_n "(cached) " >&6
  4202. else
  4203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4204. /* end confdefs.h. */
  4205. int i;
  4206. int
  4207. main ()
  4208. {
  4209. ;
  4210. return 0;
  4211. }
  4212. _ACEOF
  4213. if ac_fn_c_try_link "$LINENO"; then :
  4214. eval $cacheid=yes
  4215. else
  4216. eval $cacheid=no
  4217. fi
  4218. rm -f core conftest.err conftest.$ac_objext \
  4219. conftest$ac_exeext conftest.$ac_ext
  4220. fi
  4221. CFLAGS="$xorg_testset_save_CFLAGS"
  4222. eval supported=\$$cacheid
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4224. $as_echo "$supported" >&6; }
  4225. if test "$supported" = "yes" ; then
  4226. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4227. found="yes"
  4228. fi
  4229. fi
  4230. xorg_testset_save_CFLAGS="$CFLAGS"
  4231. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4232. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4234. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4235. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4242. if ac_fn_c_try_compile "$LINENO"; then :
  4243. xorg_cv_cc_flag_unknown_warning_option=yes
  4244. else
  4245. xorg_cv_cc_flag_unknown_warning_option=no
  4246. fi
  4247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4250. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4251. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4252. CFLAGS="$xorg_testset_save_CFLAGS"
  4253. fi
  4254. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4255. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4257. fi
  4258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4260. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4261. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4262. $as_echo_n "(cached) " >&6
  4263. else
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. int i;
  4267. _ACEOF
  4268. if ac_fn_c_try_compile "$LINENO"; then :
  4269. xorg_cv_cc_flag_unused_command_line_argument=yes
  4270. else
  4271. xorg_cv_cc_flag_unused_command_line_argument=no
  4272. fi
  4273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4274. fi
  4275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4276. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4277. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4278. CFLAGS="$xorg_testset_save_CFLAGS"
  4279. fi
  4280. found="no"
  4281. if test $found = "no" ; then
  4282. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4283. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4284. fi
  4285. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4286. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4287. fi
  4288. CFLAGS="$CFLAGS -Wpointer-arith"
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4290. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4291. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4292. if eval \${$cacheid+:} false; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4296. /* end confdefs.h. */
  4297. int i;
  4298. int
  4299. main ()
  4300. {
  4301. ;
  4302. return 0;
  4303. }
  4304. _ACEOF
  4305. if ac_fn_c_try_link "$LINENO"; then :
  4306. eval $cacheid=yes
  4307. else
  4308. eval $cacheid=no
  4309. fi
  4310. rm -f core conftest.err conftest.$ac_objext \
  4311. conftest$ac_exeext conftest.$ac_ext
  4312. fi
  4313. CFLAGS="$xorg_testset_save_CFLAGS"
  4314. eval supported=\$$cacheid
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4316. $as_echo "$supported" >&6; }
  4317. if test "$supported" = "yes" ; then
  4318. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4319. found="yes"
  4320. fi
  4321. fi
  4322. xorg_testset_save_CFLAGS="$CFLAGS"
  4323. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4324. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4326. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4327. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4334. if ac_fn_c_try_compile "$LINENO"; then :
  4335. xorg_cv_cc_flag_unknown_warning_option=yes
  4336. else
  4337. xorg_cv_cc_flag_unknown_warning_option=no
  4338. fi
  4339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4340. fi
  4341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4342. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4343. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4344. CFLAGS="$xorg_testset_save_CFLAGS"
  4345. fi
  4346. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4347. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4349. fi
  4350. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4352. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4353. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4357. /* end confdefs.h. */
  4358. int i;
  4359. _ACEOF
  4360. if ac_fn_c_try_compile "$LINENO"; then :
  4361. xorg_cv_cc_flag_unused_command_line_argument=yes
  4362. else
  4363. xorg_cv_cc_flag_unused_command_line_argument=no
  4364. fi
  4365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4366. fi
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4368. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4369. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4370. CFLAGS="$xorg_testset_save_CFLAGS"
  4371. fi
  4372. found="no"
  4373. if test $found = "no" ; then
  4374. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4375. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4376. fi
  4377. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4378. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4379. fi
  4380. CFLAGS="$CFLAGS -Wmissing-declarations"
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4382. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4383. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4384. if eval \${$cacheid+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4388. /* end confdefs.h. */
  4389. int i;
  4390. int
  4391. main ()
  4392. {
  4393. ;
  4394. return 0;
  4395. }
  4396. _ACEOF
  4397. if ac_fn_c_try_link "$LINENO"; then :
  4398. eval $cacheid=yes
  4399. else
  4400. eval $cacheid=no
  4401. fi
  4402. rm -f core conftest.err conftest.$ac_objext \
  4403. conftest$ac_exeext conftest.$ac_ext
  4404. fi
  4405. CFLAGS="$xorg_testset_save_CFLAGS"
  4406. eval supported=\$$cacheid
  4407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4408. $as_echo "$supported" >&6; }
  4409. if test "$supported" = "yes" ; then
  4410. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4411. found="yes"
  4412. fi
  4413. fi
  4414. xorg_testset_save_CFLAGS="$CFLAGS"
  4415. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4416. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4418. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4419. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4426. if ac_fn_c_try_compile "$LINENO"; then :
  4427. xorg_cv_cc_flag_unknown_warning_option=yes
  4428. else
  4429. xorg_cv_cc_flag_unknown_warning_option=no
  4430. fi
  4431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4432. fi
  4433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4434. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4435. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4436. CFLAGS="$xorg_testset_save_CFLAGS"
  4437. fi
  4438. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4439. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4440. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4441. fi
  4442. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4444. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4445. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end confdefs.h. */
  4450. int i;
  4451. _ACEOF
  4452. if ac_fn_c_try_compile "$LINENO"; then :
  4453. xorg_cv_cc_flag_unused_command_line_argument=yes
  4454. else
  4455. xorg_cv_cc_flag_unused_command_line_argument=no
  4456. fi
  4457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4458. fi
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4460. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4461. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4462. CFLAGS="$xorg_testset_save_CFLAGS"
  4463. fi
  4464. found="no"
  4465. if test $found = "no" ; then
  4466. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4467. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4468. fi
  4469. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4470. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4471. fi
  4472. CFLAGS="$CFLAGS -Wformat=2"
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4474. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4475. cacheid=xorg_cv_cc_flag__Wformat_2
  4476. if eval \${$cacheid+:} false; then :
  4477. $as_echo_n "(cached) " >&6
  4478. else
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. int i;
  4482. int
  4483. main ()
  4484. {
  4485. ;
  4486. return 0;
  4487. }
  4488. _ACEOF
  4489. if ac_fn_c_try_link "$LINENO"; then :
  4490. eval $cacheid=yes
  4491. else
  4492. eval $cacheid=no
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext \
  4495. conftest$ac_exeext conftest.$ac_ext
  4496. fi
  4497. CFLAGS="$xorg_testset_save_CFLAGS"
  4498. eval supported=\$$cacheid
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4500. $as_echo "$supported" >&6; }
  4501. if test "$supported" = "yes" ; then
  4502. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4503. found="yes"
  4504. fi
  4505. fi
  4506. if test $found = "no" ; then
  4507. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4508. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4509. fi
  4510. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4511. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4512. fi
  4513. CFLAGS="$CFLAGS -Wformat"
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4515. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4516. cacheid=xorg_cv_cc_flag__Wformat
  4517. if eval \${$cacheid+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4521. /* end confdefs.h. */
  4522. int i;
  4523. int
  4524. main ()
  4525. {
  4526. ;
  4527. return 0;
  4528. }
  4529. _ACEOF
  4530. if ac_fn_c_try_link "$LINENO"; then :
  4531. eval $cacheid=yes
  4532. else
  4533. eval $cacheid=no
  4534. fi
  4535. rm -f core conftest.err conftest.$ac_objext \
  4536. conftest$ac_exeext conftest.$ac_ext
  4537. fi
  4538. CFLAGS="$xorg_testset_save_CFLAGS"
  4539. eval supported=\$$cacheid
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4541. $as_echo "$supported" >&6; }
  4542. if test "$supported" = "yes" ; then
  4543. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4544. found="yes"
  4545. fi
  4546. fi
  4547. xorg_testset_save_CFLAGS="$CFLAGS"
  4548. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4549. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4551. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4552. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4559. if ac_fn_c_try_compile "$LINENO"; then :
  4560. xorg_cv_cc_flag_unknown_warning_option=yes
  4561. else
  4562. xorg_cv_cc_flag_unknown_warning_option=no
  4563. fi
  4564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4565. fi
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4567. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4568. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4569. CFLAGS="$xorg_testset_save_CFLAGS"
  4570. fi
  4571. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4572. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4574. fi
  4575. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4577. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4578. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4579. $as_echo_n "(cached) " >&6
  4580. else
  4581. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4582. /* end confdefs.h. */
  4583. int i;
  4584. _ACEOF
  4585. if ac_fn_c_try_compile "$LINENO"; then :
  4586. xorg_cv_cc_flag_unused_command_line_argument=yes
  4587. else
  4588. xorg_cv_cc_flag_unused_command_line_argument=no
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4593. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4594. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4595. CFLAGS="$xorg_testset_save_CFLAGS"
  4596. fi
  4597. found="no"
  4598. if test $found = "no" ; then
  4599. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4600. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4601. fi
  4602. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4603. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4604. fi
  4605. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4607. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4608. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4609. if eval \${$cacheid+:} false; then :
  4610. $as_echo_n "(cached) " >&6
  4611. else
  4612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4613. /* end confdefs.h. */
  4614. int i;
  4615. int
  4616. main ()
  4617. {
  4618. ;
  4619. return 0;
  4620. }
  4621. _ACEOF
  4622. if ac_fn_c_try_link "$LINENO"; then :
  4623. eval $cacheid=yes
  4624. else
  4625. eval $cacheid=no
  4626. fi
  4627. rm -f core conftest.err conftest.$ac_objext \
  4628. conftest$ac_exeext conftest.$ac_ext
  4629. fi
  4630. CFLAGS="$xorg_testset_save_CFLAGS"
  4631. eval supported=\$$cacheid
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4633. $as_echo "$supported" >&6; }
  4634. if test "$supported" = "yes" ; then
  4635. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4636. found="yes"
  4637. fi
  4638. fi
  4639. xorg_testset_save_CFLAGS="$CFLAGS"
  4640. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4641. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4643. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4644. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4651. if ac_fn_c_try_compile "$LINENO"; then :
  4652. xorg_cv_cc_flag_unknown_warning_option=yes
  4653. else
  4654. xorg_cv_cc_flag_unknown_warning_option=no
  4655. fi
  4656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4657. fi
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4659. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4660. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4661. CFLAGS="$xorg_testset_save_CFLAGS"
  4662. fi
  4663. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4664. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4666. fi
  4667. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4669. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4670. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4674. /* end confdefs.h. */
  4675. int i;
  4676. _ACEOF
  4677. if ac_fn_c_try_compile "$LINENO"; then :
  4678. xorg_cv_cc_flag_unused_command_line_argument=yes
  4679. else
  4680. xorg_cv_cc_flag_unused_command_line_argument=no
  4681. fi
  4682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4683. fi
  4684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4685. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4686. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4687. CFLAGS="$xorg_testset_save_CFLAGS"
  4688. fi
  4689. found="no"
  4690. if test $found = "no" ; then
  4691. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4692. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4693. fi
  4694. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4695. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4696. fi
  4697. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4699. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4700. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4701. if eval \${$cacheid+:} false; then :
  4702. $as_echo_n "(cached) " >&6
  4703. else
  4704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4705. /* end confdefs.h. */
  4706. int i;
  4707. int
  4708. main ()
  4709. {
  4710. ;
  4711. return 0;
  4712. }
  4713. _ACEOF
  4714. if ac_fn_c_try_link "$LINENO"; then :
  4715. eval $cacheid=yes
  4716. else
  4717. eval $cacheid=no
  4718. fi
  4719. rm -f core conftest.err conftest.$ac_objext \
  4720. conftest$ac_exeext conftest.$ac_ext
  4721. fi
  4722. CFLAGS="$xorg_testset_save_CFLAGS"
  4723. eval supported=\$$cacheid
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4725. $as_echo "$supported" >&6; }
  4726. if test "$supported" = "yes" ; then
  4727. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4728. found="yes"
  4729. fi
  4730. fi
  4731. xorg_testset_save_CFLAGS="$CFLAGS"
  4732. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4733. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4735. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4736. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4743. if ac_fn_c_try_compile "$LINENO"; then :
  4744. xorg_cv_cc_flag_unknown_warning_option=yes
  4745. else
  4746. xorg_cv_cc_flag_unknown_warning_option=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4751. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4752. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4753. CFLAGS="$xorg_testset_save_CFLAGS"
  4754. fi
  4755. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4756. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4758. fi
  4759. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4761. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4762. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4766. /* end confdefs.h. */
  4767. int i;
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. xorg_cv_cc_flag_unused_command_line_argument=yes
  4771. else
  4772. xorg_cv_cc_flag_unused_command_line_argument=no
  4773. fi
  4774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4775. fi
  4776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4777. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4778. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4779. CFLAGS="$xorg_testset_save_CFLAGS"
  4780. fi
  4781. found="no"
  4782. if test $found = "no" ; then
  4783. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4784. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4785. fi
  4786. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4787. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4788. fi
  4789. CFLAGS="$CFLAGS -Wnested-externs"
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4791. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4792. cacheid=xorg_cv_cc_flag__Wnested_externs
  4793. if eval \${$cacheid+:} false; then :
  4794. $as_echo_n "(cached) " >&6
  4795. else
  4796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4797. /* end confdefs.h. */
  4798. int i;
  4799. int
  4800. main ()
  4801. {
  4802. ;
  4803. return 0;
  4804. }
  4805. _ACEOF
  4806. if ac_fn_c_try_link "$LINENO"; then :
  4807. eval $cacheid=yes
  4808. else
  4809. eval $cacheid=no
  4810. fi
  4811. rm -f core conftest.err conftest.$ac_objext \
  4812. conftest$ac_exeext conftest.$ac_ext
  4813. fi
  4814. CFLAGS="$xorg_testset_save_CFLAGS"
  4815. eval supported=\$$cacheid
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4817. $as_echo "$supported" >&6; }
  4818. if test "$supported" = "yes" ; then
  4819. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4820. found="yes"
  4821. fi
  4822. fi
  4823. xorg_testset_save_CFLAGS="$CFLAGS"
  4824. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4825. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4827. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4828. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4835. if ac_fn_c_try_compile "$LINENO"; then :
  4836. xorg_cv_cc_flag_unknown_warning_option=yes
  4837. else
  4838. xorg_cv_cc_flag_unknown_warning_option=no
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4841. fi
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4843. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4844. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4845. CFLAGS="$xorg_testset_save_CFLAGS"
  4846. fi
  4847. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4848. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4850. fi
  4851. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4853. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4854. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4855. $as_echo_n "(cached) " >&6
  4856. else
  4857. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4858. /* end confdefs.h. */
  4859. int i;
  4860. _ACEOF
  4861. if ac_fn_c_try_compile "$LINENO"; then :
  4862. xorg_cv_cc_flag_unused_command_line_argument=yes
  4863. else
  4864. xorg_cv_cc_flag_unused_command_line_argument=no
  4865. fi
  4866. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4867. fi
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4869. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4870. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4871. CFLAGS="$xorg_testset_save_CFLAGS"
  4872. fi
  4873. found="no"
  4874. if test $found = "no" ; then
  4875. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4876. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4877. fi
  4878. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4879. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4880. fi
  4881. CFLAGS="$CFLAGS -Wbad-function-cast"
  4882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4883. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4884. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4885. if eval \${$cacheid+:} false; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4889. /* end confdefs.h. */
  4890. int i;
  4891. int
  4892. main ()
  4893. {
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. if ac_fn_c_try_link "$LINENO"; then :
  4899. eval $cacheid=yes
  4900. else
  4901. eval $cacheid=no
  4902. fi
  4903. rm -f core conftest.err conftest.$ac_objext \
  4904. conftest$ac_exeext conftest.$ac_ext
  4905. fi
  4906. CFLAGS="$xorg_testset_save_CFLAGS"
  4907. eval supported=\$$cacheid
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4909. $as_echo "$supported" >&6; }
  4910. if test "$supported" = "yes" ; then
  4911. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4912. found="yes"
  4913. fi
  4914. fi
  4915. xorg_testset_save_CFLAGS="$CFLAGS"
  4916. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4917. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4919. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4920. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  4927. if ac_fn_c_try_compile "$LINENO"; then :
  4928. xorg_cv_cc_flag_unknown_warning_option=yes
  4929. else
  4930. xorg_cv_cc_flag_unknown_warning_option=no
  4931. fi
  4932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4933. fi
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4935. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4936. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4937. CFLAGS="$xorg_testset_save_CFLAGS"
  4938. fi
  4939. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4940. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4941. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4942. fi
  4943. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4945. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4946. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4950. /* end confdefs.h. */
  4951. int i;
  4952. _ACEOF
  4953. if ac_fn_c_try_compile "$LINENO"; then :
  4954. xorg_cv_cc_flag_unused_command_line_argument=yes
  4955. else
  4956. xorg_cv_cc_flag_unused_command_line_argument=no
  4957. fi
  4958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4959. fi
  4960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4961. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4962. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4963. CFLAGS="$xorg_testset_save_CFLAGS"
  4964. fi
  4965. found="no"
  4966. if test $found = "no" ; then
  4967. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4968. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4969. fi
  4970. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4971. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4972. fi
  4973. CFLAGS="$CFLAGS -Wold-style-definition"
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4975. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4976. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4977. if eval \${$cacheid+:} false; then :
  4978. $as_echo_n "(cached) " >&6
  4979. else
  4980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4981. /* end confdefs.h. */
  4982. int i;
  4983. int
  4984. main ()
  4985. {
  4986. ;
  4987. return 0;
  4988. }
  4989. _ACEOF
  4990. if ac_fn_c_try_link "$LINENO"; then :
  4991. eval $cacheid=yes
  4992. else
  4993. eval $cacheid=no
  4994. fi
  4995. rm -f core conftest.err conftest.$ac_objext \
  4996. conftest$ac_exeext conftest.$ac_ext
  4997. fi
  4998. CFLAGS="$xorg_testset_save_CFLAGS"
  4999. eval supported=\$$cacheid
  5000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5001. $as_echo "$supported" >&6; }
  5002. if test "$supported" = "yes" ; then
  5003. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5004. found="yes"
  5005. fi
  5006. fi
  5007. if test $found = "no" ; then
  5008. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5009. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5010. fi
  5011. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5012. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5013. fi
  5014. CFLAGS="$CFLAGS -fd"
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5016. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5017. cacheid=xorg_cv_cc_flag__fd
  5018. if eval \${$cacheid+:} false; then :
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h. */
  5023. int i;
  5024. int
  5025. main ()
  5026. {
  5027. ;
  5028. return 0;
  5029. }
  5030. _ACEOF
  5031. if ac_fn_c_try_link "$LINENO"; then :
  5032. eval $cacheid=yes
  5033. else
  5034. eval $cacheid=no
  5035. fi
  5036. rm -f core conftest.err conftest.$ac_objext \
  5037. conftest$ac_exeext conftest.$ac_ext
  5038. fi
  5039. CFLAGS="$xorg_testset_save_CFLAGS"
  5040. eval supported=\$$cacheid
  5041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5042. $as_echo "$supported" >&6; }
  5043. if test "$supported" = "yes" ; then
  5044. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5045. found="yes"
  5046. fi
  5047. fi
  5048. xorg_testset_save_CFLAGS="$CFLAGS"
  5049. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5050. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5052. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5053. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5060. if ac_fn_c_try_compile "$LINENO"; then :
  5061. xorg_cv_cc_flag_unknown_warning_option=yes
  5062. else
  5063. xorg_cv_cc_flag_unknown_warning_option=no
  5064. fi
  5065. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5066. fi
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5068. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5069. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5070. CFLAGS="$xorg_testset_save_CFLAGS"
  5071. fi
  5072. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5073. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5074. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5075. fi
  5076. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5078. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5079. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5083. /* end confdefs.h. */
  5084. int i;
  5085. _ACEOF
  5086. if ac_fn_c_try_compile "$LINENO"; then :
  5087. xorg_cv_cc_flag_unused_command_line_argument=yes
  5088. else
  5089. xorg_cv_cc_flag_unused_command_line_argument=no
  5090. fi
  5091. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5094. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5095. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5096. CFLAGS="$xorg_testset_save_CFLAGS"
  5097. fi
  5098. found="no"
  5099. if test $found = "no" ; then
  5100. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5101. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5102. fi
  5103. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5104. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5105. fi
  5106. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5108. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5109. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5110. if eval \${$cacheid+:} false; then :
  5111. $as_echo_n "(cached) " >&6
  5112. else
  5113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5114. /* end confdefs.h. */
  5115. int i;
  5116. int
  5117. main ()
  5118. {
  5119. ;
  5120. return 0;
  5121. }
  5122. _ACEOF
  5123. if ac_fn_c_try_link "$LINENO"; then :
  5124. eval $cacheid=yes
  5125. else
  5126. eval $cacheid=no
  5127. fi
  5128. rm -f core conftest.err conftest.$ac_objext \
  5129. conftest$ac_exeext conftest.$ac_ext
  5130. fi
  5131. CFLAGS="$xorg_testset_save_CFLAGS"
  5132. eval supported=\$$cacheid
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5134. $as_echo "$supported" >&6; }
  5135. if test "$supported" = "yes" ; then
  5136. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5137. found="yes"
  5138. fi
  5139. fi
  5140. # This chunk adds additional warnings that could catch undesired effects.
  5141. xorg_testset_save_CFLAGS="$CFLAGS"
  5142. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5143. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5145. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5146. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5147. $as_echo_n "(cached) " >&6
  5148. else
  5149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5150. /* end confdefs.h. */
  5151. int i;
  5152. _ACEOF
  5153. if ac_fn_c_try_compile "$LINENO"; then :
  5154. xorg_cv_cc_flag_unknown_warning_option=yes
  5155. else
  5156. xorg_cv_cc_flag_unknown_warning_option=no
  5157. fi
  5158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5159. fi
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5161. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5162. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5163. CFLAGS="$xorg_testset_save_CFLAGS"
  5164. fi
  5165. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5166. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5167. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5168. fi
  5169. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5171. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5172. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5173. $as_echo_n "(cached) " >&6
  5174. else
  5175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5176. /* end confdefs.h. */
  5177. int i;
  5178. _ACEOF
  5179. if ac_fn_c_try_compile "$LINENO"; then :
  5180. xorg_cv_cc_flag_unused_command_line_argument=yes
  5181. else
  5182. xorg_cv_cc_flag_unused_command_line_argument=no
  5183. fi
  5184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5185. fi
  5186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5187. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5188. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5189. CFLAGS="$xorg_testset_save_CFLAGS"
  5190. fi
  5191. found="no"
  5192. if test $found = "no" ; then
  5193. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5194. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5195. fi
  5196. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5197. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5198. fi
  5199. CFLAGS="$CFLAGS -Wunused"
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5201. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5202. cacheid=xorg_cv_cc_flag__Wunused
  5203. if eval \${$cacheid+:} false; then :
  5204. $as_echo_n "(cached) " >&6
  5205. else
  5206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5207. /* end confdefs.h. */
  5208. int i;
  5209. int
  5210. main ()
  5211. {
  5212. ;
  5213. return 0;
  5214. }
  5215. _ACEOF
  5216. if ac_fn_c_try_link "$LINENO"; then :
  5217. eval $cacheid=yes
  5218. else
  5219. eval $cacheid=no
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext \
  5222. conftest$ac_exeext conftest.$ac_ext
  5223. fi
  5224. CFLAGS="$xorg_testset_save_CFLAGS"
  5225. eval supported=\$$cacheid
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5227. $as_echo "$supported" >&6; }
  5228. if test "$supported" = "yes" ; then
  5229. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5230. found="yes"
  5231. fi
  5232. fi
  5233. xorg_testset_save_CFLAGS="$CFLAGS"
  5234. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5237. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5238. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5245. if ac_fn_c_try_compile "$LINENO"; then :
  5246. xorg_cv_cc_flag_unknown_warning_option=yes
  5247. else
  5248. xorg_cv_cc_flag_unknown_warning_option=no
  5249. fi
  5250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5251. fi
  5252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5253. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5254. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5255. CFLAGS="$xorg_testset_save_CFLAGS"
  5256. fi
  5257. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5258. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5259. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5260. fi
  5261. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5263. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5264. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5265. $as_echo_n "(cached) " >&6
  5266. else
  5267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5268. /* end confdefs.h. */
  5269. int i;
  5270. _ACEOF
  5271. if ac_fn_c_try_compile "$LINENO"; then :
  5272. xorg_cv_cc_flag_unused_command_line_argument=yes
  5273. else
  5274. xorg_cv_cc_flag_unused_command_line_argument=no
  5275. fi
  5276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5277. fi
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5279. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5280. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5281. CFLAGS="$xorg_testset_save_CFLAGS"
  5282. fi
  5283. found="no"
  5284. if test $found = "no" ; then
  5285. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5286. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5287. fi
  5288. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5289. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5290. fi
  5291. CFLAGS="$CFLAGS -Wuninitialized"
  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5293. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5294. cacheid=xorg_cv_cc_flag__Wuninitialized
  5295. if eval \${$cacheid+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5299. /* end confdefs.h. */
  5300. int i;
  5301. int
  5302. main ()
  5303. {
  5304. ;
  5305. return 0;
  5306. }
  5307. _ACEOF
  5308. if ac_fn_c_try_link "$LINENO"; then :
  5309. eval $cacheid=yes
  5310. else
  5311. eval $cacheid=no
  5312. fi
  5313. rm -f core conftest.err conftest.$ac_objext \
  5314. conftest$ac_exeext conftest.$ac_ext
  5315. fi
  5316. CFLAGS="$xorg_testset_save_CFLAGS"
  5317. eval supported=\$$cacheid
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5319. $as_echo "$supported" >&6; }
  5320. if test "$supported" = "yes" ; then
  5321. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5322. found="yes"
  5323. fi
  5324. fi
  5325. xorg_testset_save_CFLAGS="$CFLAGS"
  5326. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5327. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5329. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5330. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5337. if ac_fn_c_try_compile "$LINENO"; then :
  5338. xorg_cv_cc_flag_unknown_warning_option=yes
  5339. else
  5340. xorg_cv_cc_flag_unknown_warning_option=no
  5341. fi
  5342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5343. fi
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5345. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5346. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5347. CFLAGS="$xorg_testset_save_CFLAGS"
  5348. fi
  5349. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5350. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5351. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5352. fi
  5353. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5355. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5356. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5360. /* end confdefs.h. */
  5361. int i;
  5362. _ACEOF
  5363. if ac_fn_c_try_compile "$LINENO"; then :
  5364. xorg_cv_cc_flag_unused_command_line_argument=yes
  5365. else
  5366. xorg_cv_cc_flag_unused_command_line_argument=no
  5367. fi
  5368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5371. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5372. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5373. CFLAGS="$xorg_testset_save_CFLAGS"
  5374. fi
  5375. found="no"
  5376. if test $found = "no" ; then
  5377. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5378. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5379. fi
  5380. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5381. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5382. fi
  5383. CFLAGS="$CFLAGS -Wshadow"
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5385. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5386. cacheid=xorg_cv_cc_flag__Wshadow
  5387. if eval \${$cacheid+:} false; then :
  5388. $as_echo_n "(cached) " >&6
  5389. else
  5390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5391. /* end confdefs.h. */
  5392. int i;
  5393. int
  5394. main ()
  5395. {
  5396. ;
  5397. return 0;
  5398. }
  5399. _ACEOF
  5400. if ac_fn_c_try_link "$LINENO"; then :
  5401. eval $cacheid=yes
  5402. else
  5403. eval $cacheid=no
  5404. fi
  5405. rm -f core conftest.err conftest.$ac_objext \
  5406. conftest$ac_exeext conftest.$ac_ext
  5407. fi
  5408. CFLAGS="$xorg_testset_save_CFLAGS"
  5409. eval supported=\$$cacheid
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5411. $as_echo "$supported" >&6; }
  5412. if test "$supported" = "yes" ; then
  5413. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5414. found="yes"
  5415. fi
  5416. fi
  5417. xorg_testset_save_CFLAGS="$CFLAGS"
  5418. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5419. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5421. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5422. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5429. if ac_fn_c_try_compile "$LINENO"; then :
  5430. xorg_cv_cc_flag_unknown_warning_option=yes
  5431. else
  5432. xorg_cv_cc_flag_unknown_warning_option=no
  5433. fi
  5434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5437. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5438. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5439. CFLAGS="$xorg_testset_save_CFLAGS"
  5440. fi
  5441. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5442. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5443. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5444. fi
  5445. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5447. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5448. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5449. $as_echo_n "(cached) " >&6
  5450. else
  5451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5452. /* end confdefs.h. */
  5453. int i;
  5454. _ACEOF
  5455. if ac_fn_c_try_compile "$LINENO"; then :
  5456. xorg_cv_cc_flag_unused_command_line_argument=yes
  5457. else
  5458. xorg_cv_cc_flag_unused_command_line_argument=no
  5459. fi
  5460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5461. fi
  5462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5463. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5464. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5465. CFLAGS="$xorg_testset_save_CFLAGS"
  5466. fi
  5467. found="no"
  5468. if test $found = "no" ; then
  5469. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5470. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5471. fi
  5472. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5473. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5474. fi
  5475. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5477. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5478. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5479. if eval \${$cacheid+:} false; then :
  5480. $as_echo_n "(cached) " >&6
  5481. else
  5482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5483. /* end confdefs.h. */
  5484. int i;
  5485. int
  5486. main ()
  5487. {
  5488. ;
  5489. return 0;
  5490. }
  5491. _ACEOF
  5492. if ac_fn_c_try_link "$LINENO"; then :
  5493. eval $cacheid=yes
  5494. else
  5495. eval $cacheid=no
  5496. fi
  5497. rm -f core conftest.err conftest.$ac_objext \
  5498. conftest$ac_exeext conftest.$ac_ext
  5499. fi
  5500. CFLAGS="$xorg_testset_save_CFLAGS"
  5501. eval supported=\$$cacheid
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5503. $as_echo "$supported" >&6; }
  5504. if test "$supported" = "yes" ; then
  5505. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5506. found="yes"
  5507. fi
  5508. fi
  5509. xorg_testset_save_CFLAGS="$CFLAGS"
  5510. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5511. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5513. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5514. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5521. if ac_fn_c_try_compile "$LINENO"; then :
  5522. xorg_cv_cc_flag_unknown_warning_option=yes
  5523. else
  5524. xorg_cv_cc_flag_unknown_warning_option=no
  5525. fi
  5526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5527. fi
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5529. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5530. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5531. CFLAGS="$xorg_testset_save_CFLAGS"
  5532. fi
  5533. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5534. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5535. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5536. fi
  5537. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5539. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5540. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5541. $as_echo_n "(cached) " >&6
  5542. else
  5543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5544. /* end confdefs.h. */
  5545. int i;
  5546. _ACEOF
  5547. if ac_fn_c_try_compile "$LINENO"; then :
  5548. xorg_cv_cc_flag_unused_command_line_argument=yes
  5549. else
  5550. xorg_cv_cc_flag_unused_command_line_argument=no
  5551. fi
  5552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5553. fi
  5554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5555. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5556. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5557. CFLAGS="$xorg_testset_save_CFLAGS"
  5558. fi
  5559. found="no"
  5560. if test $found = "no" ; then
  5561. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5562. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5563. fi
  5564. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5565. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5566. fi
  5567. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5569. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5570. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5571. if eval \${$cacheid+:} false; then :
  5572. $as_echo_n "(cached) " >&6
  5573. else
  5574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5575. /* end confdefs.h. */
  5576. int i;
  5577. int
  5578. main ()
  5579. {
  5580. ;
  5581. return 0;
  5582. }
  5583. _ACEOF
  5584. if ac_fn_c_try_link "$LINENO"; then :
  5585. eval $cacheid=yes
  5586. else
  5587. eval $cacheid=no
  5588. fi
  5589. rm -f core conftest.err conftest.$ac_objext \
  5590. conftest$ac_exeext conftest.$ac_ext
  5591. fi
  5592. CFLAGS="$xorg_testset_save_CFLAGS"
  5593. eval supported=\$$cacheid
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5595. $as_echo "$supported" >&6; }
  5596. if test "$supported" = "yes" ; then
  5597. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5598. found="yes"
  5599. fi
  5600. fi
  5601. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5602. xorg_testset_save_CFLAGS="$CFLAGS"
  5603. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5604. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5606. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5607. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5608. $as_echo_n "(cached) " >&6
  5609. else
  5610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5611. /* end confdefs.h. */
  5612. int i;
  5613. _ACEOF
  5614. if ac_fn_c_try_compile "$LINENO"; then :
  5615. xorg_cv_cc_flag_unknown_warning_option=yes
  5616. else
  5617. xorg_cv_cc_flag_unknown_warning_option=no
  5618. fi
  5619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5620. fi
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5622. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5623. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5624. CFLAGS="$xorg_testset_save_CFLAGS"
  5625. fi
  5626. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5627. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5628. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5629. fi
  5630. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5632. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5633. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5634. $as_echo_n "(cached) " >&6
  5635. else
  5636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5637. /* end confdefs.h. */
  5638. int i;
  5639. _ACEOF
  5640. if ac_fn_c_try_compile "$LINENO"; then :
  5641. xorg_cv_cc_flag_unused_command_line_argument=yes
  5642. else
  5643. xorg_cv_cc_flag_unused_command_line_argument=no
  5644. fi
  5645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5646. fi
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5648. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5649. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5650. CFLAGS="$xorg_testset_save_CFLAGS"
  5651. fi
  5652. found="no"
  5653. if test $found = "no" ; then
  5654. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5655. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5656. fi
  5657. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5658. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5659. fi
  5660. CFLAGS="$CFLAGS -Wlogical-op"
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5662. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5663. cacheid=xorg_cv_cc_flag__Wlogical_op
  5664. if eval \${$cacheid+:} false; then :
  5665. $as_echo_n "(cached) " >&6
  5666. else
  5667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5668. /* end confdefs.h. */
  5669. int i;
  5670. int
  5671. main ()
  5672. {
  5673. ;
  5674. return 0;
  5675. }
  5676. _ACEOF
  5677. if ac_fn_c_try_link "$LINENO"; then :
  5678. eval $cacheid=yes
  5679. else
  5680. eval $cacheid=no
  5681. fi
  5682. rm -f core conftest.err conftest.$ac_objext \
  5683. conftest$ac_exeext conftest.$ac_ext
  5684. fi
  5685. CFLAGS="$xorg_testset_save_CFLAGS"
  5686. eval supported=\$$cacheid
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5688. $as_echo "$supported" >&6; }
  5689. if test "$supported" = "yes" ; then
  5690. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5691. found="yes"
  5692. fi
  5693. fi
  5694. # These are currently disabled because they are noisy. They will be enabled
  5695. # in the future once the codebase is sufficiently modernized to silence
  5696. # them. For now, I don't want them to drown out the other warnings.
  5697. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5698. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5699. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5700. # Turn some warnings into errors, so we don't accidently get successful builds
  5701. # when there are problems that should be fixed.
  5702. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5703. xorg_testset_save_CFLAGS="$CFLAGS"
  5704. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5705. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5707. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5708. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5709. $as_echo_n "(cached) " >&6
  5710. else
  5711. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5712. /* end confdefs.h. */
  5713. int i;
  5714. _ACEOF
  5715. if ac_fn_c_try_compile "$LINENO"; then :
  5716. xorg_cv_cc_flag_unknown_warning_option=yes
  5717. else
  5718. xorg_cv_cc_flag_unknown_warning_option=no
  5719. fi
  5720. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5723. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5724. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5725. CFLAGS="$xorg_testset_save_CFLAGS"
  5726. fi
  5727. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5728. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5729. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5730. fi
  5731. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5733. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5734. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5738. /* end confdefs.h. */
  5739. int i;
  5740. _ACEOF
  5741. if ac_fn_c_try_compile "$LINENO"; then :
  5742. xorg_cv_cc_flag_unused_command_line_argument=yes
  5743. else
  5744. xorg_cv_cc_flag_unused_command_line_argument=no
  5745. fi
  5746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5747. fi
  5748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5749. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5750. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5751. CFLAGS="$xorg_testset_save_CFLAGS"
  5752. fi
  5753. found="no"
  5754. if test $found = "no" ; then
  5755. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5756. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5757. fi
  5758. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5759. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5760. fi
  5761. CFLAGS="$CFLAGS -Werror=implicit"
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5763. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5764. cacheid=xorg_cv_cc_flag__Werror_implicit
  5765. if eval \${$cacheid+:} false; then :
  5766. $as_echo_n "(cached) " >&6
  5767. else
  5768. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5769. /* end confdefs.h. */
  5770. int i;
  5771. int
  5772. main ()
  5773. {
  5774. ;
  5775. return 0;
  5776. }
  5777. _ACEOF
  5778. if ac_fn_c_try_link "$LINENO"; then :
  5779. eval $cacheid=yes
  5780. else
  5781. eval $cacheid=no
  5782. fi
  5783. rm -f core conftest.err conftest.$ac_objext \
  5784. conftest$ac_exeext conftest.$ac_ext
  5785. fi
  5786. CFLAGS="$xorg_testset_save_CFLAGS"
  5787. eval supported=\$$cacheid
  5788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5789. $as_echo "$supported" >&6; }
  5790. if test "$supported" = "yes" ; then
  5791. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5792. found="yes"
  5793. fi
  5794. fi
  5795. if test $found = "no" ; then
  5796. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5797. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5798. fi
  5799. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5800. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5801. fi
  5802. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5804. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5805. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5806. if eval \${$cacheid+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5810. /* end confdefs.h. */
  5811. int i;
  5812. int
  5813. main ()
  5814. {
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. if ac_fn_c_try_link "$LINENO"; then :
  5820. eval $cacheid=yes
  5821. else
  5822. eval $cacheid=no
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext \
  5825. conftest$ac_exeext conftest.$ac_ext
  5826. fi
  5827. CFLAGS="$xorg_testset_save_CFLAGS"
  5828. eval supported=\$$cacheid
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5830. $as_echo "$supported" >&6; }
  5831. if test "$supported" = "yes" ; then
  5832. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5833. found="yes"
  5834. fi
  5835. fi
  5836. xorg_testset_save_CFLAGS="$CFLAGS"
  5837. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5838. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5840. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5841. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5848. if ac_fn_c_try_compile "$LINENO"; then :
  5849. xorg_cv_cc_flag_unknown_warning_option=yes
  5850. else
  5851. xorg_cv_cc_flag_unknown_warning_option=no
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5854. fi
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5856. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5857. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5858. CFLAGS="$xorg_testset_save_CFLAGS"
  5859. fi
  5860. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5861. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5862. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5863. fi
  5864. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5866. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5867. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5868. $as_echo_n "(cached) " >&6
  5869. else
  5870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5871. /* end confdefs.h. */
  5872. int i;
  5873. _ACEOF
  5874. if ac_fn_c_try_compile "$LINENO"; then :
  5875. xorg_cv_cc_flag_unused_command_line_argument=yes
  5876. else
  5877. xorg_cv_cc_flag_unused_command_line_argument=no
  5878. fi
  5879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5880. fi
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5882. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5883. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5884. CFLAGS="$xorg_testset_save_CFLAGS"
  5885. fi
  5886. found="no"
  5887. if test $found = "no" ; then
  5888. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5889. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5890. fi
  5891. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5892. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5893. fi
  5894. CFLAGS="$CFLAGS -Werror=nonnull"
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5896. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5897. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5898. if eval \${$cacheid+:} false; then :
  5899. $as_echo_n "(cached) " >&6
  5900. else
  5901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5902. /* end confdefs.h. */
  5903. int i;
  5904. int
  5905. main ()
  5906. {
  5907. ;
  5908. return 0;
  5909. }
  5910. _ACEOF
  5911. if ac_fn_c_try_link "$LINENO"; then :
  5912. eval $cacheid=yes
  5913. else
  5914. eval $cacheid=no
  5915. fi
  5916. rm -f core conftest.err conftest.$ac_objext \
  5917. conftest$ac_exeext conftest.$ac_ext
  5918. fi
  5919. CFLAGS="$xorg_testset_save_CFLAGS"
  5920. eval supported=\$$cacheid
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5922. $as_echo "$supported" >&6; }
  5923. if test "$supported" = "yes" ; then
  5924. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5925. found="yes"
  5926. fi
  5927. fi
  5928. xorg_testset_save_CFLAGS="$CFLAGS"
  5929. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5930. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5932. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5933. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  5940. if ac_fn_c_try_compile "$LINENO"; then :
  5941. xorg_cv_cc_flag_unknown_warning_option=yes
  5942. else
  5943. xorg_cv_cc_flag_unknown_warning_option=no
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5946. fi
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5948. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5949. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5950. CFLAGS="$xorg_testset_save_CFLAGS"
  5951. fi
  5952. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5953. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5954. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5955. fi
  5956. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5958. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5959. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5960. $as_echo_n "(cached) " >&6
  5961. else
  5962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5963. /* end confdefs.h. */
  5964. int i;
  5965. _ACEOF
  5966. if ac_fn_c_try_compile "$LINENO"; then :
  5967. xorg_cv_cc_flag_unused_command_line_argument=yes
  5968. else
  5969. xorg_cv_cc_flag_unused_command_line_argument=no
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5972. fi
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5974. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5975. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5976. CFLAGS="$xorg_testset_save_CFLAGS"
  5977. fi
  5978. found="no"
  5979. if test $found = "no" ; then
  5980. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5982. fi
  5983. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5985. fi
  5986. CFLAGS="$CFLAGS -Werror=init-self"
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5988. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5989. cacheid=xorg_cv_cc_flag__Werror_init_self
  5990. if eval \${$cacheid+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5994. /* end confdefs.h. */
  5995. int i;
  5996. int
  5997. main ()
  5998. {
  5999. ;
  6000. return 0;
  6001. }
  6002. _ACEOF
  6003. if ac_fn_c_try_link "$LINENO"; then :
  6004. eval $cacheid=yes
  6005. else
  6006. eval $cacheid=no
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext \
  6009. conftest$ac_exeext conftest.$ac_ext
  6010. fi
  6011. CFLAGS="$xorg_testset_save_CFLAGS"
  6012. eval supported=\$$cacheid
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6014. $as_echo "$supported" >&6; }
  6015. if test "$supported" = "yes" ; then
  6016. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6017. found="yes"
  6018. fi
  6019. fi
  6020. xorg_testset_save_CFLAGS="$CFLAGS"
  6021. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6022. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6024. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6025. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6032. if ac_fn_c_try_compile "$LINENO"; then :
  6033. xorg_cv_cc_flag_unknown_warning_option=yes
  6034. else
  6035. xorg_cv_cc_flag_unknown_warning_option=no
  6036. fi
  6037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6038. fi
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6040. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6041. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6042. CFLAGS="$xorg_testset_save_CFLAGS"
  6043. fi
  6044. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6045. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6047. fi
  6048. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6050. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6051. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6052. $as_echo_n "(cached) " >&6
  6053. else
  6054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6055. /* end confdefs.h. */
  6056. int i;
  6057. _ACEOF
  6058. if ac_fn_c_try_compile "$LINENO"; then :
  6059. xorg_cv_cc_flag_unused_command_line_argument=yes
  6060. else
  6061. xorg_cv_cc_flag_unused_command_line_argument=no
  6062. fi
  6063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6064. fi
  6065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6066. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6067. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6068. CFLAGS="$xorg_testset_save_CFLAGS"
  6069. fi
  6070. found="no"
  6071. if test $found = "no" ; then
  6072. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6073. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6074. fi
  6075. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6076. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6077. fi
  6078. CFLAGS="$CFLAGS -Werror=main"
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6080. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6081. cacheid=xorg_cv_cc_flag__Werror_main
  6082. if eval \${$cacheid+:} false; then :
  6083. $as_echo_n "(cached) " >&6
  6084. else
  6085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6086. /* end confdefs.h. */
  6087. int i;
  6088. int
  6089. main ()
  6090. {
  6091. ;
  6092. return 0;
  6093. }
  6094. _ACEOF
  6095. if ac_fn_c_try_link "$LINENO"; then :
  6096. eval $cacheid=yes
  6097. else
  6098. eval $cacheid=no
  6099. fi
  6100. rm -f core conftest.err conftest.$ac_objext \
  6101. conftest$ac_exeext conftest.$ac_ext
  6102. fi
  6103. CFLAGS="$xorg_testset_save_CFLAGS"
  6104. eval supported=\$$cacheid
  6105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6106. $as_echo "$supported" >&6; }
  6107. if test "$supported" = "yes" ; then
  6108. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6109. found="yes"
  6110. fi
  6111. fi
  6112. xorg_testset_save_CFLAGS="$CFLAGS"
  6113. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6114. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6116. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6117. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6124. if ac_fn_c_try_compile "$LINENO"; then :
  6125. xorg_cv_cc_flag_unknown_warning_option=yes
  6126. else
  6127. xorg_cv_cc_flag_unknown_warning_option=no
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6130. fi
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6132. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6133. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6134. CFLAGS="$xorg_testset_save_CFLAGS"
  6135. fi
  6136. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6137. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6138. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6139. fi
  6140. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6142. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6143. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6144. $as_echo_n "(cached) " >&6
  6145. else
  6146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6147. /* end confdefs.h. */
  6148. int i;
  6149. _ACEOF
  6150. if ac_fn_c_try_compile "$LINENO"; then :
  6151. xorg_cv_cc_flag_unused_command_line_argument=yes
  6152. else
  6153. xorg_cv_cc_flag_unused_command_line_argument=no
  6154. fi
  6155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6156. fi
  6157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6158. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6159. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6160. CFLAGS="$xorg_testset_save_CFLAGS"
  6161. fi
  6162. found="no"
  6163. if test $found = "no" ; then
  6164. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6165. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6166. fi
  6167. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6168. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6169. fi
  6170. CFLAGS="$CFLAGS -Werror=missing-braces"
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6172. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6173. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6174. if eval \${$cacheid+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6178. /* end confdefs.h. */
  6179. int i;
  6180. int
  6181. main ()
  6182. {
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. if ac_fn_c_try_link "$LINENO"; then :
  6188. eval $cacheid=yes
  6189. else
  6190. eval $cacheid=no
  6191. fi
  6192. rm -f core conftest.err conftest.$ac_objext \
  6193. conftest$ac_exeext conftest.$ac_ext
  6194. fi
  6195. CFLAGS="$xorg_testset_save_CFLAGS"
  6196. eval supported=\$$cacheid
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6198. $as_echo "$supported" >&6; }
  6199. if test "$supported" = "yes" ; then
  6200. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6201. found="yes"
  6202. fi
  6203. fi
  6204. xorg_testset_save_CFLAGS="$CFLAGS"
  6205. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6206. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6208. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6209. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6216. if ac_fn_c_try_compile "$LINENO"; then :
  6217. xorg_cv_cc_flag_unknown_warning_option=yes
  6218. else
  6219. xorg_cv_cc_flag_unknown_warning_option=no
  6220. fi
  6221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6222. fi
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6224. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6225. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6226. CFLAGS="$xorg_testset_save_CFLAGS"
  6227. fi
  6228. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6229. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6230. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6231. fi
  6232. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6234. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6235. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6236. $as_echo_n "(cached) " >&6
  6237. else
  6238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6239. /* end confdefs.h. */
  6240. int i;
  6241. _ACEOF
  6242. if ac_fn_c_try_compile "$LINENO"; then :
  6243. xorg_cv_cc_flag_unused_command_line_argument=yes
  6244. else
  6245. xorg_cv_cc_flag_unused_command_line_argument=no
  6246. fi
  6247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6248. fi
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6250. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6251. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6252. CFLAGS="$xorg_testset_save_CFLAGS"
  6253. fi
  6254. found="no"
  6255. if test $found = "no" ; then
  6256. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6257. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6258. fi
  6259. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6260. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6261. fi
  6262. CFLAGS="$CFLAGS -Werror=sequence-point"
  6263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6264. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6265. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6266. if eval \${$cacheid+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6270. /* end confdefs.h. */
  6271. int i;
  6272. int
  6273. main ()
  6274. {
  6275. ;
  6276. return 0;
  6277. }
  6278. _ACEOF
  6279. if ac_fn_c_try_link "$LINENO"; then :
  6280. eval $cacheid=yes
  6281. else
  6282. eval $cacheid=no
  6283. fi
  6284. rm -f core conftest.err conftest.$ac_objext \
  6285. conftest$ac_exeext conftest.$ac_ext
  6286. fi
  6287. CFLAGS="$xorg_testset_save_CFLAGS"
  6288. eval supported=\$$cacheid
  6289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6290. $as_echo "$supported" >&6; }
  6291. if test "$supported" = "yes" ; then
  6292. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6293. found="yes"
  6294. fi
  6295. fi
  6296. xorg_testset_save_CFLAGS="$CFLAGS"
  6297. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6298. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6300. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6301. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6308. if ac_fn_c_try_compile "$LINENO"; then :
  6309. xorg_cv_cc_flag_unknown_warning_option=yes
  6310. else
  6311. xorg_cv_cc_flag_unknown_warning_option=no
  6312. fi
  6313. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6314. fi
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6316. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6317. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6318. CFLAGS="$xorg_testset_save_CFLAGS"
  6319. fi
  6320. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6321. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6322. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6323. fi
  6324. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6326. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6327. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6328. $as_echo_n "(cached) " >&6
  6329. else
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. int i;
  6333. _ACEOF
  6334. if ac_fn_c_try_compile "$LINENO"; then :
  6335. xorg_cv_cc_flag_unused_command_line_argument=yes
  6336. else
  6337. xorg_cv_cc_flag_unused_command_line_argument=no
  6338. fi
  6339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6340. fi
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6342. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6343. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6344. CFLAGS="$xorg_testset_save_CFLAGS"
  6345. fi
  6346. found="no"
  6347. if test $found = "no" ; then
  6348. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6349. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6350. fi
  6351. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6352. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6353. fi
  6354. CFLAGS="$CFLAGS -Werror=return-type"
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6356. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6357. cacheid=xorg_cv_cc_flag__Werror_return_type
  6358. if eval \${$cacheid+:} false; then :
  6359. $as_echo_n "(cached) " >&6
  6360. else
  6361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6362. /* end confdefs.h. */
  6363. int i;
  6364. int
  6365. main ()
  6366. {
  6367. ;
  6368. return 0;
  6369. }
  6370. _ACEOF
  6371. if ac_fn_c_try_link "$LINENO"; then :
  6372. eval $cacheid=yes
  6373. else
  6374. eval $cacheid=no
  6375. fi
  6376. rm -f core conftest.err conftest.$ac_objext \
  6377. conftest$ac_exeext conftest.$ac_ext
  6378. fi
  6379. CFLAGS="$xorg_testset_save_CFLAGS"
  6380. eval supported=\$$cacheid
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6382. $as_echo "$supported" >&6; }
  6383. if test "$supported" = "yes" ; then
  6384. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6385. found="yes"
  6386. fi
  6387. fi
  6388. if test $found = "no" ; then
  6389. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6390. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6391. fi
  6392. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6393. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6394. fi
  6395. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6397. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6398. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6399. if eval \${$cacheid+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int i;
  6405. int
  6406. main ()
  6407. {
  6408. ;
  6409. return 0;
  6410. }
  6411. _ACEOF
  6412. if ac_fn_c_try_link "$LINENO"; then :
  6413. eval $cacheid=yes
  6414. else
  6415. eval $cacheid=no
  6416. fi
  6417. rm -f core conftest.err conftest.$ac_objext \
  6418. conftest$ac_exeext conftest.$ac_ext
  6419. fi
  6420. CFLAGS="$xorg_testset_save_CFLAGS"
  6421. eval supported=\$$cacheid
  6422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6423. $as_echo "$supported" >&6; }
  6424. if test "$supported" = "yes" ; then
  6425. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6426. found="yes"
  6427. fi
  6428. fi
  6429. xorg_testset_save_CFLAGS="$CFLAGS"
  6430. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6431. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6433. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6434. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6441. if ac_fn_c_try_compile "$LINENO"; then :
  6442. xorg_cv_cc_flag_unknown_warning_option=yes
  6443. else
  6444. xorg_cv_cc_flag_unknown_warning_option=no
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6447. fi
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6449. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6450. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6451. CFLAGS="$xorg_testset_save_CFLAGS"
  6452. fi
  6453. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6454. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6455. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6456. fi
  6457. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6459. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6460. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6461. $as_echo_n "(cached) " >&6
  6462. else
  6463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6464. /* end confdefs.h. */
  6465. int i;
  6466. _ACEOF
  6467. if ac_fn_c_try_compile "$LINENO"; then :
  6468. xorg_cv_cc_flag_unused_command_line_argument=yes
  6469. else
  6470. xorg_cv_cc_flag_unused_command_line_argument=no
  6471. fi
  6472. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6475. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6476. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6477. CFLAGS="$xorg_testset_save_CFLAGS"
  6478. fi
  6479. found="no"
  6480. if test $found = "no" ; then
  6481. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6482. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6483. fi
  6484. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6485. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6486. fi
  6487. CFLAGS="$CFLAGS -Werror=trigraphs"
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6489. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6490. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6491. if eval \${$cacheid+:} false; then :
  6492. $as_echo_n "(cached) " >&6
  6493. else
  6494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6495. /* end confdefs.h. */
  6496. int i;
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_link "$LINENO"; then :
  6505. eval $cacheid=yes
  6506. else
  6507. eval $cacheid=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext \
  6510. conftest$ac_exeext conftest.$ac_ext
  6511. fi
  6512. CFLAGS="$xorg_testset_save_CFLAGS"
  6513. eval supported=\$$cacheid
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6515. $as_echo "$supported" >&6; }
  6516. if test "$supported" = "yes" ; then
  6517. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6518. found="yes"
  6519. fi
  6520. fi
  6521. xorg_testset_save_CFLAGS="$CFLAGS"
  6522. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6525. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6526. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6533. if ac_fn_c_try_compile "$LINENO"; then :
  6534. xorg_cv_cc_flag_unknown_warning_option=yes
  6535. else
  6536. xorg_cv_cc_flag_unknown_warning_option=no
  6537. fi
  6538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6539. fi
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6541. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6542. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6543. CFLAGS="$xorg_testset_save_CFLAGS"
  6544. fi
  6545. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6546. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6547. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6548. fi
  6549. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6551. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6552. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6553. $as_echo_n "(cached) " >&6
  6554. else
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. int i;
  6558. _ACEOF
  6559. if ac_fn_c_try_compile "$LINENO"; then :
  6560. xorg_cv_cc_flag_unused_command_line_argument=yes
  6561. else
  6562. xorg_cv_cc_flag_unused_command_line_argument=no
  6563. fi
  6564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6565. fi
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6567. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6568. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6569. CFLAGS="$xorg_testset_save_CFLAGS"
  6570. fi
  6571. found="no"
  6572. if test $found = "no" ; then
  6573. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6574. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6575. fi
  6576. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6577. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6578. fi
  6579. CFLAGS="$CFLAGS -Werror=array-bounds"
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6581. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6582. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6583. if eval \${$cacheid+:} false; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6587. /* end confdefs.h. */
  6588. int i;
  6589. int
  6590. main ()
  6591. {
  6592. ;
  6593. return 0;
  6594. }
  6595. _ACEOF
  6596. if ac_fn_c_try_link "$LINENO"; then :
  6597. eval $cacheid=yes
  6598. else
  6599. eval $cacheid=no
  6600. fi
  6601. rm -f core conftest.err conftest.$ac_objext \
  6602. conftest$ac_exeext conftest.$ac_ext
  6603. fi
  6604. CFLAGS="$xorg_testset_save_CFLAGS"
  6605. eval supported=\$$cacheid
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6607. $as_echo "$supported" >&6; }
  6608. if test "$supported" = "yes" ; then
  6609. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6610. found="yes"
  6611. fi
  6612. fi
  6613. xorg_testset_save_CFLAGS="$CFLAGS"
  6614. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6615. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6617. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6618. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6625. if ac_fn_c_try_compile "$LINENO"; then :
  6626. xorg_cv_cc_flag_unknown_warning_option=yes
  6627. else
  6628. xorg_cv_cc_flag_unknown_warning_option=no
  6629. fi
  6630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6631. fi
  6632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6633. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6634. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6635. CFLAGS="$xorg_testset_save_CFLAGS"
  6636. fi
  6637. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6638. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6640. fi
  6641. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6643. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6644. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6645. $as_echo_n "(cached) " >&6
  6646. else
  6647. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6648. /* end confdefs.h. */
  6649. int i;
  6650. _ACEOF
  6651. if ac_fn_c_try_compile "$LINENO"; then :
  6652. xorg_cv_cc_flag_unused_command_line_argument=yes
  6653. else
  6654. xorg_cv_cc_flag_unused_command_line_argument=no
  6655. fi
  6656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6657. fi
  6658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6659. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6660. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6661. CFLAGS="$xorg_testset_save_CFLAGS"
  6662. fi
  6663. found="no"
  6664. if test $found = "no" ; then
  6665. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6666. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6667. fi
  6668. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6669. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6670. fi
  6671. CFLAGS="$CFLAGS -Werror=write-strings"
  6672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6673. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6674. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6675. if eval \${$cacheid+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6679. /* end confdefs.h. */
  6680. int i;
  6681. int
  6682. main ()
  6683. {
  6684. ;
  6685. return 0;
  6686. }
  6687. _ACEOF
  6688. if ac_fn_c_try_link "$LINENO"; then :
  6689. eval $cacheid=yes
  6690. else
  6691. eval $cacheid=no
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext \
  6694. conftest$ac_exeext conftest.$ac_ext
  6695. fi
  6696. CFLAGS="$xorg_testset_save_CFLAGS"
  6697. eval supported=\$$cacheid
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6699. $as_echo "$supported" >&6; }
  6700. if test "$supported" = "yes" ; then
  6701. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6702. found="yes"
  6703. fi
  6704. fi
  6705. xorg_testset_save_CFLAGS="$CFLAGS"
  6706. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6707. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6709. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6710. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6717. if ac_fn_c_try_compile "$LINENO"; then :
  6718. xorg_cv_cc_flag_unknown_warning_option=yes
  6719. else
  6720. xorg_cv_cc_flag_unknown_warning_option=no
  6721. fi
  6722. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6723. fi
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6725. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6726. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6727. CFLAGS="$xorg_testset_save_CFLAGS"
  6728. fi
  6729. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6730. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6731. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6732. fi
  6733. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6735. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6736. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6737. $as_echo_n "(cached) " >&6
  6738. else
  6739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6740. /* end confdefs.h. */
  6741. int i;
  6742. _ACEOF
  6743. if ac_fn_c_try_compile "$LINENO"; then :
  6744. xorg_cv_cc_flag_unused_command_line_argument=yes
  6745. else
  6746. xorg_cv_cc_flag_unused_command_line_argument=no
  6747. fi
  6748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6751. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6752. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6753. CFLAGS="$xorg_testset_save_CFLAGS"
  6754. fi
  6755. found="no"
  6756. if test $found = "no" ; then
  6757. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6758. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6759. fi
  6760. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6761. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6762. fi
  6763. CFLAGS="$CFLAGS -Werror=address"
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6765. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6766. cacheid=xorg_cv_cc_flag__Werror_address
  6767. if eval \${$cacheid+:} false; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6771. /* end confdefs.h. */
  6772. int i;
  6773. int
  6774. main ()
  6775. {
  6776. ;
  6777. return 0;
  6778. }
  6779. _ACEOF
  6780. if ac_fn_c_try_link "$LINENO"; then :
  6781. eval $cacheid=yes
  6782. else
  6783. eval $cacheid=no
  6784. fi
  6785. rm -f core conftest.err conftest.$ac_objext \
  6786. conftest$ac_exeext conftest.$ac_ext
  6787. fi
  6788. CFLAGS="$xorg_testset_save_CFLAGS"
  6789. eval supported=\$$cacheid
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6791. $as_echo "$supported" >&6; }
  6792. if test "$supported" = "yes" ; then
  6793. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6794. found="yes"
  6795. fi
  6796. fi
  6797. xorg_testset_save_CFLAGS="$CFLAGS"
  6798. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6799. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6801. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6802. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6809. if ac_fn_c_try_compile "$LINENO"; then :
  6810. xorg_cv_cc_flag_unknown_warning_option=yes
  6811. else
  6812. xorg_cv_cc_flag_unknown_warning_option=no
  6813. fi
  6814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6815. fi
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6817. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6818. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6819. CFLAGS="$xorg_testset_save_CFLAGS"
  6820. fi
  6821. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6822. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6823. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6824. fi
  6825. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6827. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6828. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6832. /* end confdefs.h. */
  6833. int i;
  6834. _ACEOF
  6835. if ac_fn_c_try_compile "$LINENO"; then :
  6836. xorg_cv_cc_flag_unused_command_line_argument=yes
  6837. else
  6838. xorg_cv_cc_flag_unused_command_line_argument=no
  6839. fi
  6840. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6841. fi
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6843. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6844. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6845. CFLAGS="$xorg_testset_save_CFLAGS"
  6846. fi
  6847. found="no"
  6848. if test $found = "no" ; then
  6849. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6850. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6851. fi
  6852. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6853. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6854. fi
  6855. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6857. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6858. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6859. if eval \${$cacheid+:} false; then :
  6860. $as_echo_n "(cached) " >&6
  6861. else
  6862. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6863. /* end confdefs.h. */
  6864. int i;
  6865. int
  6866. main ()
  6867. {
  6868. ;
  6869. return 0;
  6870. }
  6871. _ACEOF
  6872. if ac_fn_c_try_link "$LINENO"; then :
  6873. eval $cacheid=yes
  6874. else
  6875. eval $cacheid=no
  6876. fi
  6877. rm -f core conftest.err conftest.$ac_objext \
  6878. conftest$ac_exeext conftest.$ac_ext
  6879. fi
  6880. CFLAGS="$xorg_testset_save_CFLAGS"
  6881. eval supported=\$$cacheid
  6882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6883. $as_echo "$supported" >&6; }
  6884. if test "$supported" = "yes" ; then
  6885. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6886. found="yes"
  6887. fi
  6888. fi
  6889. if test $found = "no" ; then
  6890. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6891. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6892. fi
  6893. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6894. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6895. fi
  6896. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6898. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6899. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6900. if eval \${$cacheid+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6904. /* end confdefs.h. */
  6905. int i;
  6906. int
  6907. main ()
  6908. {
  6909. ;
  6910. return 0;
  6911. }
  6912. _ACEOF
  6913. if ac_fn_c_try_link "$LINENO"; then :
  6914. eval $cacheid=yes
  6915. else
  6916. eval $cacheid=no
  6917. fi
  6918. rm -f core conftest.err conftest.$ac_objext \
  6919. conftest$ac_exeext conftest.$ac_ext
  6920. fi
  6921. CFLAGS="$xorg_testset_save_CFLAGS"
  6922. eval supported=\$$cacheid
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6924. $as_echo "$supported" >&6; }
  6925. if test "$supported" = "yes" ; then
  6926. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6927. found="yes"
  6928. fi
  6929. fi
  6930. xorg_testset_save_CFLAGS="$CFLAGS"
  6931. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6932. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6934. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6935. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  6942. if ac_fn_c_try_compile "$LINENO"; then :
  6943. xorg_cv_cc_flag_unknown_warning_option=yes
  6944. else
  6945. xorg_cv_cc_flag_unknown_warning_option=no
  6946. fi
  6947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6948. fi
  6949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6950. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6951. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6952. CFLAGS="$xorg_testset_save_CFLAGS"
  6953. fi
  6954. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6955. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6956. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6957. fi
  6958. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6960. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6961. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6965. /* end confdefs.h. */
  6966. int i;
  6967. _ACEOF
  6968. if ac_fn_c_try_compile "$LINENO"; then :
  6969. xorg_cv_cc_flag_unused_command_line_argument=yes
  6970. else
  6971. xorg_cv_cc_flag_unused_command_line_argument=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6974. fi
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6976. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6977. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6978. CFLAGS="$xorg_testset_save_CFLAGS"
  6979. fi
  6980. found="no"
  6981. if test $found = "no" ; then
  6982. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6983. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6984. fi
  6985. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6986. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6987. fi
  6988. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6990. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6991. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6992. if eval \${$cacheid+:} false; then :
  6993. $as_echo_n "(cached) " >&6
  6994. else
  6995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6996. /* end confdefs.h. */
  6997. int i;
  6998. int
  6999. main ()
  7000. {
  7001. ;
  7002. return 0;
  7003. }
  7004. _ACEOF
  7005. if ac_fn_c_try_link "$LINENO"; then :
  7006. eval $cacheid=yes
  7007. else
  7008. eval $cacheid=no
  7009. fi
  7010. rm -f core conftest.err conftest.$ac_objext \
  7011. conftest$ac_exeext conftest.$ac_ext
  7012. fi
  7013. CFLAGS="$xorg_testset_save_CFLAGS"
  7014. eval supported=\$$cacheid
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7016. $as_echo "$supported" >&6; }
  7017. if test "$supported" = "yes" ; then
  7018. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7019. found="yes"
  7020. fi
  7021. fi
  7022. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7023. else
  7024. { $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
  7025. $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;}
  7026. xorg_testset_save_CFLAGS="$CFLAGS"
  7027. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7030. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7031. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7035. /* end confdefs.h. */
  7036. int i;
  7037. _ACEOF
  7038. if ac_fn_c_try_compile "$LINENO"; then :
  7039. xorg_cv_cc_flag_unknown_warning_option=yes
  7040. else
  7041. xorg_cv_cc_flag_unknown_warning_option=no
  7042. fi
  7043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7044. fi
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7046. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7047. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7048. CFLAGS="$xorg_testset_save_CFLAGS"
  7049. fi
  7050. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7051. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7052. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7053. fi
  7054. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7056. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7057. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7061. /* end confdefs.h. */
  7062. int i;
  7063. _ACEOF
  7064. if ac_fn_c_try_compile "$LINENO"; then :
  7065. xorg_cv_cc_flag_unused_command_line_argument=yes
  7066. else
  7067. xorg_cv_cc_flag_unused_command_line_argument=no
  7068. fi
  7069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7070. fi
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7072. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7073. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7074. CFLAGS="$xorg_testset_save_CFLAGS"
  7075. fi
  7076. found="no"
  7077. if test $found = "no" ; then
  7078. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7079. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7080. fi
  7081. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7082. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7083. fi
  7084. CFLAGS="$CFLAGS -Wimplicit"
  7085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7086. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7087. cacheid=xorg_cv_cc_flag__Wimplicit
  7088. if eval \${$cacheid+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7092. /* end confdefs.h. */
  7093. int i;
  7094. int
  7095. main ()
  7096. {
  7097. ;
  7098. return 0;
  7099. }
  7100. _ACEOF
  7101. if ac_fn_c_try_link "$LINENO"; then :
  7102. eval $cacheid=yes
  7103. else
  7104. eval $cacheid=no
  7105. fi
  7106. rm -f core conftest.err conftest.$ac_objext \
  7107. conftest$ac_exeext conftest.$ac_ext
  7108. fi
  7109. CFLAGS="$xorg_testset_save_CFLAGS"
  7110. eval supported=\$$cacheid
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7112. $as_echo "$supported" >&6; }
  7113. if test "$supported" = "yes" ; then
  7114. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7115. found="yes"
  7116. fi
  7117. fi
  7118. xorg_testset_save_CFLAGS="$CFLAGS"
  7119. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7120. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7122. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7123. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7130. if ac_fn_c_try_compile "$LINENO"; then :
  7131. xorg_cv_cc_flag_unknown_warning_option=yes
  7132. else
  7133. xorg_cv_cc_flag_unknown_warning_option=no
  7134. fi
  7135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7136. fi
  7137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7138. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7139. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7140. CFLAGS="$xorg_testset_save_CFLAGS"
  7141. fi
  7142. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7143. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7145. fi
  7146. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7148. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7149. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7153. /* end confdefs.h. */
  7154. int i;
  7155. _ACEOF
  7156. if ac_fn_c_try_compile "$LINENO"; then :
  7157. xorg_cv_cc_flag_unused_command_line_argument=yes
  7158. else
  7159. xorg_cv_cc_flag_unused_command_line_argument=no
  7160. fi
  7161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7164. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7165. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7166. CFLAGS="$xorg_testset_save_CFLAGS"
  7167. fi
  7168. found="no"
  7169. if test $found = "no" ; then
  7170. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7171. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7172. fi
  7173. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7174. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7175. fi
  7176. CFLAGS="$CFLAGS -Wnonnull"
  7177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7178. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7179. cacheid=xorg_cv_cc_flag__Wnonnull
  7180. if eval \${$cacheid+:} false; then :
  7181. $as_echo_n "(cached) " >&6
  7182. else
  7183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7184. /* end confdefs.h. */
  7185. int i;
  7186. int
  7187. main ()
  7188. {
  7189. ;
  7190. return 0;
  7191. }
  7192. _ACEOF
  7193. if ac_fn_c_try_link "$LINENO"; then :
  7194. eval $cacheid=yes
  7195. else
  7196. eval $cacheid=no
  7197. fi
  7198. rm -f core conftest.err conftest.$ac_objext \
  7199. conftest$ac_exeext conftest.$ac_ext
  7200. fi
  7201. CFLAGS="$xorg_testset_save_CFLAGS"
  7202. eval supported=\$$cacheid
  7203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7204. $as_echo "$supported" >&6; }
  7205. if test "$supported" = "yes" ; then
  7206. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7207. found="yes"
  7208. fi
  7209. fi
  7210. xorg_testset_save_CFLAGS="$CFLAGS"
  7211. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7212. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7214. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7215. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7222. if ac_fn_c_try_compile "$LINENO"; then :
  7223. xorg_cv_cc_flag_unknown_warning_option=yes
  7224. else
  7225. xorg_cv_cc_flag_unknown_warning_option=no
  7226. fi
  7227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7228. fi
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7230. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7231. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7232. CFLAGS="$xorg_testset_save_CFLAGS"
  7233. fi
  7234. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7235. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7237. fi
  7238. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7240. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7241. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7242. $as_echo_n "(cached) " >&6
  7243. else
  7244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7245. /* end confdefs.h. */
  7246. int i;
  7247. _ACEOF
  7248. if ac_fn_c_try_compile "$LINENO"; then :
  7249. xorg_cv_cc_flag_unused_command_line_argument=yes
  7250. else
  7251. xorg_cv_cc_flag_unused_command_line_argument=no
  7252. fi
  7253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7254. fi
  7255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7256. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7257. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7258. CFLAGS="$xorg_testset_save_CFLAGS"
  7259. fi
  7260. found="no"
  7261. if test $found = "no" ; then
  7262. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7263. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7264. fi
  7265. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7266. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7267. fi
  7268. CFLAGS="$CFLAGS -Winit-self"
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7270. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7271. cacheid=xorg_cv_cc_flag__Winit_self
  7272. if eval \${$cacheid+:} false; then :
  7273. $as_echo_n "(cached) " >&6
  7274. else
  7275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7276. /* end confdefs.h. */
  7277. int i;
  7278. int
  7279. main ()
  7280. {
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_c_try_link "$LINENO"; then :
  7286. eval $cacheid=yes
  7287. else
  7288. eval $cacheid=no
  7289. fi
  7290. rm -f core conftest.err conftest.$ac_objext \
  7291. conftest$ac_exeext conftest.$ac_ext
  7292. fi
  7293. CFLAGS="$xorg_testset_save_CFLAGS"
  7294. eval supported=\$$cacheid
  7295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7296. $as_echo "$supported" >&6; }
  7297. if test "$supported" = "yes" ; then
  7298. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7299. found="yes"
  7300. fi
  7301. fi
  7302. xorg_testset_save_CFLAGS="$CFLAGS"
  7303. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7304. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7306. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7307. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7314. if ac_fn_c_try_compile "$LINENO"; then :
  7315. xorg_cv_cc_flag_unknown_warning_option=yes
  7316. else
  7317. xorg_cv_cc_flag_unknown_warning_option=no
  7318. fi
  7319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7320. fi
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7322. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7323. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7324. CFLAGS="$xorg_testset_save_CFLAGS"
  7325. fi
  7326. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7327. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7329. fi
  7330. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7332. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7333. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7334. $as_echo_n "(cached) " >&6
  7335. else
  7336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7337. /* end confdefs.h. */
  7338. int i;
  7339. _ACEOF
  7340. if ac_fn_c_try_compile "$LINENO"; then :
  7341. xorg_cv_cc_flag_unused_command_line_argument=yes
  7342. else
  7343. xorg_cv_cc_flag_unused_command_line_argument=no
  7344. fi
  7345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7346. fi
  7347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7348. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7349. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7350. CFLAGS="$xorg_testset_save_CFLAGS"
  7351. fi
  7352. found="no"
  7353. if test $found = "no" ; then
  7354. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7355. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7356. fi
  7357. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7358. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7359. fi
  7360. CFLAGS="$CFLAGS -Wmain"
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7362. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7363. cacheid=xorg_cv_cc_flag__Wmain
  7364. if eval \${$cacheid+:} false; then :
  7365. $as_echo_n "(cached) " >&6
  7366. else
  7367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7368. /* end confdefs.h. */
  7369. int i;
  7370. int
  7371. main ()
  7372. {
  7373. ;
  7374. return 0;
  7375. }
  7376. _ACEOF
  7377. if ac_fn_c_try_link "$LINENO"; then :
  7378. eval $cacheid=yes
  7379. else
  7380. eval $cacheid=no
  7381. fi
  7382. rm -f core conftest.err conftest.$ac_objext \
  7383. conftest$ac_exeext conftest.$ac_ext
  7384. fi
  7385. CFLAGS="$xorg_testset_save_CFLAGS"
  7386. eval supported=\$$cacheid
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7388. $as_echo "$supported" >&6; }
  7389. if test "$supported" = "yes" ; then
  7390. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7391. found="yes"
  7392. fi
  7393. fi
  7394. xorg_testset_save_CFLAGS="$CFLAGS"
  7395. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7396. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7398. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7399. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7406. if ac_fn_c_try_compile "$LINENO"; then :
  7407. xorg_cv_cc_flag_unknown_warning_option=yes
  7408. else
  7409. xorg_cv_cc_flag_unknown_warning_option=no
  7410. fi
  7411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7412. fi
  7413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7414. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7415. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7416. CFLAGS="$xorg_testset_save_CFLAGS"
  7417. fi
  7418. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7419. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7420. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7421. fi
  7422. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7424. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7425. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7426. $as_echo_n "(cached) " >&6
  7427. else
  7428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7429. /* end confdefs.h. */
  7430. int i;
  7431. _ACEOF
  7432. if ac_fn_c_try_compile "$LINENO"; then :
  7433. xorg_cv_cc_flag_unused_command_line_argument=yes
  7434. else
  7435. xorg_cv_cc_flag_unused_command_line_argument=no
  7436. fi
  7437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7438. fi
  7439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7440. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7441. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7442. CFLAGS="$xorg_testset_save_CFLAGS"
  7443. fi
  7444. found="no"
  7445. if test $found = "no" ; then
  7446. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7447. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7448. fi
  7449. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7450. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7451. fi
  7452. CFLAGS="$CFLAGS -Wmissing-braces"
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7454. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7455. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7456. if eval \${$cacheid+:} false; then :
  7457. $as_echo_n "(cached) " >&6
  7458. else
  7459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7460. /* end confdefs.h. */
  7461. int i;
  7462. int
  7463. main ()
  7464. {
  7465. ;
  7466. return 0;
  7467. }
  7468. _ACEOF
  7469. if ac_fn_c_try_link "$LINENO"; then :
  7470. eval $cacheid=yes
  7471. else
  7472. eval $cacheid=no
  7473. fi
  7474. rm -f core conftest.err conftest.$ac_objext \
  7475. conftest$ac_exeext conftest.$ac_ext
  7476. fi
  7477. CFLAGS="$xorg_testset_save_CFLAGS"
  7478. eval supported=\$$cacheid
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7480. $as_echo "$supported" >&6; }
  7481. if test "$supported" = "yes" ; then
  7482. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7483. found="yes"
  7484. fi
  7485. fi
  7486. xorg_testset_save_CFLAGS="$CFLAGS"
  7487. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7488. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7490. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7491. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7498. if ac_fn_c_try_compile "$LINENO"; then :
  7499. xorg_cv_cc_flag_unknown_warning_option=yes
  7500. else
  7501. xorg_cv_cc_flag_unknown_warning_option=no
  7502. fi
  7503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7504. fi
  7505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7506. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7507. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7508. CFLAGS="$xorg_testset_save_CFLAGS"
  7509. fi
  7510. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7511. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7512. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7513. fi
  7514. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7516. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7517. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7518. $as_echo_n "(cached) " >&6
  7519. else
  7520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7521. /* end confdefs.h. */
  7522. int i;
  7523. _ACEOF
  7524. if ac_fn_c_try_compile "$LINENO"; then :
  7525. xorg_cv_cc_flag_unused_command_line_argument=yes
  7526. else
  7527. xorg_cv_cc_flag_unused_command_line_argument=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7532. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7533. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7534. CFLAGS="$xorg_testset_save_CFLAGS"
  7535. fi
  7536. found="no"
  7537. if test $found = "no" ; then
  7538. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7539. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7540. fi
  7541. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7542. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7543. fi
  7544. CFLAGS="$CFLAGS -Wsequence-point"
  7545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7546. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7547. cacheid=xorg_cv_cc_flag__Wsequence_point
  7548. if eval \${$cacheid+:} false; then :
  7549. $as_echo_n "(cached) " >&6
  7550. else
  7551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7552. /* end confdefs.h. */
  7553. int i;
  7554. int
  7555. main ()
  7556. {
  7557. ;
  7558. return 0;
  7559. }
  7560. _ACEOF
  7561. if ac_fn_c_try_link "$LINENO"; then :
  7562. eval $cacheid=yes
  7563. else
  7564. eval $cacheid=no
  7565. fi
  7566. rm -f core conftest.err conftest.$ac_objext \
  7567. conftest$ac_exeext conftest.$ac_ext
  7568. fi
  7569. CFLAGS="$xorg_testset_save_CFLAGS"
  7570. eval supported=\$$cacheid
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7572. $as_echo "$supported" >&6; }
  7573. if test "$supported" = "yes" ; then
  7574. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7575. found="yes"
  7576. fi
  7577. fi
  7578. xorg_testset_save_CFLAGS="$CFLAGS"
  7579. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7580. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7582. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7583. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7590. if ac_fn_c_try_compile "$LINENO"; then :
  7591. xorg_cv_cc_flag_unknown_warning_option=yes
  7592. else
  7593. xorg_cv_cc_flag_unknown_warning_option=no
  7594. fi
  7595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7596. fi
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7598. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7599. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7600. CFLAGS="$xorg_testset_save_CFLAGS"
  7601. fi
  7602. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7603. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7604. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7605. fi
  7606. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7608. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7609. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7610. $as_echo_n "(cached) " >&6
  7611. else
  7612. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7613. /* end confdefs.h. */
  7614. int i;
  7615. _ACEOF
  7616. if ac_fn_c_try_compile "$LINENO"; then :
  7617. xorg_cv_cc_flag_unused_command_line_argument=yes
  7618. else
  7619. xorg_cv_cc_flag_unused_command_line_argument=no
  7620. fi
  7621. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7622. fi
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7624. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7625. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7626. CFLAGS="$xorg_testset_save_CFLAGS"
  7627. fi
  7628. found="no"
  7629. if test $found = "no" ; then
  7630. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7631. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7632. fi
  7633. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7634. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7635. fi
  7636. CFLAGS="$CFLAGS -Wreturn-type"
  7637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7638. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7639. cacheid=xorg_cv_cc_flag__Wreturn_type
  7640. if eval \${$cacheid+:} false; then :
  7641. $as_echo_n "(cached) " >&6
  7642. else
  7643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7644. /* end confdefs.h. */
  7645. int i;
  7646. int
  7647. main ()
  7648. {
  7649. ;
  7650. return 0;
  7651. }
  7652. _ACEOF
  7653. if ac_fn_c_try_link "$LINENO"; then :
  7654. eval $cacheid=yes
  7655. else
  7656. eval $cacheid=no
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext \
  7659. conftest$ac_exeext conftest.$ac_ext
  7660. fi
  7661. CFLAGS="$xorg_testset_save_CFLAGS"
  7662. eval supported=\$$cacheid
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7664. $as_echo "$supported" >&6; }
  7665. if test "$supported" = "yes" ; then
  7666. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7667. found="yes"
  7668. fi
  7669. fi
  7670. xorg_testset_save_CFLAGS="$CFLAGS"
  7671. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7672. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7674. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7675. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7682. if ac_fn_c_try_compile "$LINENO"; then :
  7683. xorg_cv_cc_flag_unknown_warning_option=yes
  7684. else
  7685. xorg_cv_cc_flag_unknown_warning_option=no
  7686. fi
  7687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7688. fi
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7690. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7691. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7692. CFLAGS="$xorg_testset_save_CFLAGS"
  7693. fi
  7694. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7695. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7696. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7697. fi
  7698. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7700. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7701. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7702. $as_echo_n "(cached) " >&6
  7703. else
  7704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7705. /* end confdefs.h. */
  7706. int i;
  7707. _ACEOF
  7708. if ac_fn_c_try_compile "$LINENO"; then :
  7709. xorg_cv_cc_flag_unused_command_line_argument=yes
  7710. else
  7711. xorg_cv_cc_flag_unused_command_line_argument=no
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7714. fi
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7716. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7717. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7718. CFLAGS="$xorg_testset_save_CFLAGS"
  7719. fi
  7720. found="no"
  7721. if test $found = "no" ; then
  7722. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7723. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7724. fi
  7725. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7726. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7727. fi
  7728. CFLAGS="$CFLAGS -Wtrigraphs"
  7729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7730. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7731. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7732. if eval \${$cacheid+:} false; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7736. /* end confdefs.h. */
  7737. int i;
  7738. int
  7739. main ()
  7740. {
  7741. ;
  7742. return 0;
  7743. }
  7744. _ACEOF
  7745. if ac_fn_c_try_link "$LINENO"; then :
  7746. eval $cacheid=yes
  7747. else
  7748. eval $cacheid=no
  7749. fi
  7750. rm -f core conftest.err conftest.$ac_objext \
  7751. conftest$ac_exeext conftest.$ac_ext
  7752. fi
  7753. CFLAGS="$xorg_testset_save_CFLAGS"
  7754. eval supported=\$$cacheid
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7756. $as_echo "$supported" >&6; }
  7757. if test "$supported" = "yes" ; then
  7758. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7759. found="yes"
  7760. fi
  7761. fi
  7762. xorg_testset_save_CFLAGS="$CFLAGS"
  7763. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7764. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7766. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7767. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7774. if ac_fn_c_try_compile "$LINENO"; then :
  7775. xorg_cv_cc_flag_unknown_warning_option=yes
  7776. else
  7777. xorg_cv_cc_flag_unknown_warning_option=no
  7778. fi
  7779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7780. fi
  7781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7782. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7783. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7784. CFLAGS="$xorg_testset_save_CFLAGS"
  7785. fi
  7786. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7787. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7788. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7789. fi
  7790. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7792. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7793. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7794. $as_echo_n "(cached) " >&6
  7795. else
  7796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7797. /* end confdefs.h. */
  7798. int i;
  7799. _ACEOF
  7800. if ac_fn_c_try_compile "$LINENO"; then :
  7801. xorg_cv_cc_flag_unused_command_line_argument=yes
  7802. else
  7803. xorg_cv_cc_flag_unused_command_line_argument=no
  7804. fi
  7805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7808. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7809. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7810. CFLAGS="$xorg_testset_save_CFLAGS"
  7811. fi
  7812. found="no"
  7813. if test $found = "no" ; then
  7814. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7815. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7816. fi
  7817. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7818. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7819. fi
  7820. CFLAGS="$CFLAGS -Warray-bounds"
  7821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7822. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7823. cacheid=xorg_cv_cc_flag__Warray_bounds
  7824. if eval \${$cacheid+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7828. /* end confdefs.h. */
  7829. int i;
  7830. int
  7831. main ()
  7832. {
  7833. ;
  7834. return 0;
  7835. }
  7836. _ACEOF
  7837. if ac_fn_c_try_link "$LINENO"; then :
  7838. eval $cacheid=yes
  7839. else
  7840. eval $cacheid=no
  7841. fi
  7842. rm -f core conftest.err conftest.$ac_objext \
  7843. conftest$ac_exeext conftest.$ac_ext
  7844. fi
  7845. CFLAGS="$xorg_testset_save_CFLAGS"
  7846. eval supported=\$$cacheid
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7848. $as_echo "$supported" >&6; }
  7849. if test "$supported" = "yes" ; then
  7850. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7851. found="yes"
  7852. fi
  7853. fi
  7854. xorg_testset_save_CFLAGS="$CFLAGS"
  7855. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7856. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7858. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7859. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7866. if ac_fn_c_try_compile "$LINENO"; then :
  7867. xorg_cv_cc_flag_unknown_warning_option=yes
  7868. else
  7869. xorg_cv_cc_flag_unknown_warning_option=no
  7870. fi
  7871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7872. fi
  7873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7874. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7875. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7876. CFLAGS="$xorg_testset_save_CFLAGS"
  7877. fi
  7878. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7879. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7880. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7881. fi
  7882. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7884. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7885. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7886. $as_echo_n "(cached) " >&6
  7887. else
  7888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7889. /* end confdefs.h. */
  7890. int i;
  7891. _ACEOF
  7892. if ac_fn_c_try_compile "$LINENO"; then :
  7893. xorg_cv_cc_flag_unused_command_line_argument=yes
  7894. else
  7895. xorg_cv_cc_flag_unused_command_line_argument=no
  7896. fi
  7897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7898. fi
  7899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7900. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7901. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7902. CFLAGS="$xorg_testset_save_CFLAGS"
  7903. fi
  7904. found="no"
  7905. if test $found = "no" ; then
  7906. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7907. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7908. fi
  7909. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7910. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7911. fi
  7912. CFLAGS="$CFLAGS -Wwrite-strings"
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7914. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7915. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7916. if eval \${$cacheid+:} false; then :
  7917. $as_echo_n "(cached) " >&6
  7918. else
  7919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7920. /* end confdefs.h. */
  7921. int i;
  7922. int
  7923. main ()
  7924. {
  7925. ;
  7926. return 0;
  7927. }
  7928. _ACEOF
  7929. if ac_fn_c_try_link "$LINENO"; then :
  7930. eval $cacheid=yes
  7931. else
  7932. eval $cacheid=no
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext \
  7935. conftest$ac_exeext conftest.$ac_ext
  7936. fi
  7937. CFLAGS="$xorg_testset_save_CFLAGS"
  7938. eval supported=\$$cacheid
  7939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7940. $as_echo "$supported" >&6; }
  7941. if test "$supported" = "yes" ; then
  7942. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7943. found="yes"
  7944. fi
  7945. fi
  7946. xorg_testset_save_CFLAGS="$CFLAGS"
  7947. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7948. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7950. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7951. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  7958. if ac_fn_c_try_compile "$LINENO"; then :
  7959. xorg_cv_cc_flag_unknown_warning_option=yes
  7960. else
  7961. xorg_cv_cc_flag_unknown_warning_option=no
  7962. fi
  7963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7966. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7967. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7968. CFLAGS="$xorg_testset_save_CFLAGS"
  7969. fi
  7970. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7971. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7972. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7973. fi
  7974. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7976. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7977. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7978. $as_echo_n "(cached) " >&6
  7979. else
  7980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7981. /* end confdefs.h. */
  7982. int i;
  7983. _ACEOF
  7984. if ac_fn_c_try_compile "$LINENO"; then :
  7985. xorg_cv_cc_flag_unused_command_line_argument=yes
  7986. else
  7987. xorg_cv_cc_flag_unused_command_line_argument=no
  7988. fi
  7989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7992. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7993. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7994. CFLAGS="$xorg_testset_save_CFLAGS"
  7995. fi
  7996. found="no"
  7997. if test $found = "no" ; then
  7998. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7999. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8000. fi
  8001. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8002. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8003. fi
  8004. CFLAGS="$CFLAGS -Waddress"
  8005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8006. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8007. cacheid=xorg_cv_cc_flag__Waddress
  8008. if eval \${$cacheid+:} false; then :
  8009. $as_echo_n "(cached) " >&6
  8010. else
  8011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8012. /* end confdefs.h. */
  8013. int i;
  8014. int
  8015. main ()
  8016. {
  8017. ;
  8018. return 0;
  8019. }
  8020. _ACEOF
  8021. if ac_fn_c_try_link "$LINENO"; then :
  8022. eval $cacheid=yes
  8023. else
  8024. eval $cacheid=no
  8025. fi
  8026. rm -f core conftest.err conftest.$ac_objext \
  8027. conftest$ac_exeext conftest.$ac_ext
  8028. fi
  8029. CFLAGS="$xorg_testset_save_CFLAGS"
  8030. eval supported=\$$cacheid
  8031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8032. $as_echo "$supported" >&6; }
  8033. if test "$supported" = "yes" ; then
  8034. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8035. found="yes"
  8036. fi
  8037. fi
  8038. xorg_testset_save_CFLAGS="$CFLAGS"
  8039. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8040. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8042. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8043. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  8050. if ac_fn_c_try_compile "$LINENO"; then :
  8051. xorg_cv_cc_flag_unknown_warning_option=yes
  8052. else
  8053. xorg_cv_cc_flag_unknown_warning_option=no
  8054. fi
  8055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8056. fi
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8058. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8059. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8060. CFLAGS="$xorg_testset_save_CFLAGS"
  8061. fi
  8062. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8063. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8064. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8065. fi
  8066. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8068. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8069. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8070. $as_echo_n "(cached) " >&6
  8071. else
  8072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8073. /* end confdefs.h. */
  8074. int i;
  8075. _ACEOF
  8076. if ac_fn_c_try_compile "$LINENO"; then :
  8077. xorg_cv_cc_flag_unused_command_line_argument=yes
  8078. else
  8079. xorg_cv_cc_flag_unused_command_line_argument=no
  8080. fi
  8081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8082. fi
  8083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8084. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8085. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8086. CFLAGS="$xorg_testset_save_CFLAGS"
  8087. fi
  8088. found="no"
  8089. if test $found = "no" ; then
  8090. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8091. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8092. fi
  8093. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8094. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8095. fi
  8096. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8098. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8099. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8100. if eval \${$cacheid+:} false; then :
  8101. $as_echo_n "(cached) " >&6
  8102. else
  8103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8104. /* end confdefs.h. */
  8105. int i;
  8106. int
  8107. main ()
  8108. {
  8109. ;
  8110. return 0;
  8111. }
  8112. _ACEOF
  8113. if ac_fn_c_try_link "$LINENO"; then :
  8114. eval $cacheid=yes
  8115. else
  8116. eval $cacheid=no
  8117. fi
  8118. rm -f core conftest.err conftest.$ac_objext \
  8119. conftest$ac_exeext conftest.$ac_ext
  8120. fi
  8121. CFLAGS="$xorg_testset_save_CFLAGS"
  8122. eval supported=\$$cacheid
  8123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8124. $as_echo "$supported" >&6; }
  8125. if test "$supported" = "yes" ; then
  8126. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8127. found="yes"
  8128. fi
  8129. fi
  8130. xorg_testset_save_CFLAGS="$CFLAGS"
  8131. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8132. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8133. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8134. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8135. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  8142. if ac_fn_c_try_compile "$LINENO"; then :
  8143. xorg_cv_cc_flag_unknown_warning_option=yes
  8144. else
  8145. xorg_cv_cc_flag_unknown_warning_option=no
  8146. fi
  8147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8150. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8151. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8152. CFLAGS="$xorg_testset_save_CFLAGS"
  8153. fi
  8154. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8155. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8156. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8157. fi
  8158. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8160. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8161. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8162. $as_echo_n "(cached) " >&6
  8163. else
  8164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8165. /* end confdefs.h. */
  8166. int i;
  8167. _ACEOF
  8168. if ac_fn_c_try_compile "$LINENO"; then :
  8169. xorg_cv_cc_flag_unused_command_line_argument=yes
  8170. else
  8171. xorg_cv_cc_flag_unused_command_line_argument=no
  8172. fi
  8173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8176. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8177. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8178. CFLAGS="$xorg_testset_save_CFLAGS"
  8179. fi
  8180. found="no"
  8181. if test $found = "no" ; then
  8182. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8183. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8184. fi
  8185. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8186. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8187. fi
  8188. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8190. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8191. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8192. if eval \${$cacheid+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8196. /* end confdefs.h. */
  8197. int i;
  8198. int
  8199. main ()
  8200. {
  8201. ;
  8202. return 0;
  8203. }
  8204. _ACEOF
  8205. if ac_fn_c_try_link "$LINENO"; then :
  8206. eval $cacheid=yes
  8207. else
  8208. eval $cacheid=no
  8209. fi
  8210. rm -f core conftest.err conftest.$ac_objext \
  8211. conftest$ac_exeext conftest.$ac_ext
  8212. fi
  8213. CFLAGS="$xorg_testset_save_CFLAGS"
  8214. eval supported=\$$cacheid
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8216. $as_echo "$supported" >&6; }
  8217. if test "$supported" = "yes" ; then
  8218. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8219. found="yes"
  8220. fi
  8221. fi
  8222. fi
  8223. CWARNFLAGS="$BASE_CFLAGS"
  8224. if test "x$GCC" = xyes ; then
  8225. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8226. fi
  8227. # Check whether --enable-strict-compilation was given.
  8228. if test "${enable_strict_compilation+set}" = set; then :
  8229. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8230. else
  8231. STRICT_COMPILE=no
  8232. fi
  8233. STRICT_CFLAGS=""
  8234. xorg_testset_save_CFLAGS="$CFLAGS"
  8235. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8238. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8239. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8240. $as_echo_n "(cached) " >&6
  8241. else
  8242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8243. /* end confdefs.h. */
  8244. int i;
  8245. _ACEOF
  8246. if ac_fn_c_try_compile "$LINENO"; then :
  8247. xorg_cv_cc_flag_unknown_warning_option=yes
  8248. else
  8249. xorg_cv_cc_flag_unknown_warning_option=no
  8250. fi
  8251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8252. fi
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8254. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8255. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8256. CFLAGS="$xorg_testset_save_CFLAGS"
  8257. fi
  8258. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8259. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8260. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8261. fi
  8262. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8263. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8264. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8265. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8269. /* end confdefs.h. */
  8270. int i;
  8271. _ACEOF
  8272. if ac_fn_c_try_compile "$LINENO"; then :
  8273. xorg_cv_cc_flag_unused_command_line_argument=yes
  8274. else
  8275. xorg_cv_cc_flag_unused_command_line_argument=no
  8276. fi
  8277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8278. fi
  8279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8280. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8281. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8282. CFLAGS="$xorg_testset_save_CFLAGS"
  8283. fi
  8284. found="no"
  8285. if test $found = "no" ; then
  8286. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8287. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8288. fi
  8289. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8290. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8291. fi
  8292. CFLAGS="$CFLAGS -pedantic"
  8293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8294. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8295. cacheid=xorg_cv_cc_flag__pedantic
  8296. if eval \${$cacheid+:} false; then :
  8297. $as_echo_n "(cached) " >&6
  8298. else
  8299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8300. /* end confdefs.h. */
  8301. int i;
  8302. int
  8303. main ()
  8304. {
  8305. ;
  8306. return 0;
  8307. }
  8308. _ACEOF
  8309. if ac_fn_c_try_link "$LINENO"; then :
  8310. eval $cacheid=yes
  8311. else
  8312. eval $cacheid=no
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. fi
  8317. CFLAGS="$xorg_testset_save_CFLAGS"
  8318. eval supported=\$$cacheid
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8320. $as_echo "$supported" >&6; }
  8321. if test "$supported" = "yes" ; then
  8322. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8323. found="yes"
  8324. fi
  8325. fi
  8326. xorg_testset_save_CFLAGS="$CFLAGS"
  8327. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8330. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8331. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  8338. if ac_fn_c_try_compile "$LINENO"; then :
  8339. xorg_cv_cc_flag_unknown_warning_option=yes
  8340. else
  8341. xorg_cv_cc_flag_unknown_warning_option=no
  8342. fi
  8343. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8344. fi
  8345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8346. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8347. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8348. CFLAGS="$xorg_testset_save_CFLAGS"
  8349. fi
  8350. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8351. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8352. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8353. fi
  8354. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8356. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8357. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8358. $as_echo_n "(cached) " >&6
  8359. else
  8360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8361. /* end confdefs.h. */
  8362. int i;
  8363. _ACEOF
  8364. if ac_fn_c_try_compile "$LINENO"; then :
  8365. xorg_cv_cc_flag_unused_command_line_argument=yes
  8366. else
  8367. xorg_cv_cc_flag_unused_command_line_argument=no
  8368. fi
  8369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8370. fi
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8372. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8373. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8374. CFLAGS="$xorg_testset_save_CFLAGS"
  8375. fi
  8376. found="no"
  8377. if test $found = "no" ; then
  8378. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8379. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8380. fi
  8381. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8382. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8383. fi
  8384. CFLAGS="$CFLAGS -Werror"
  8385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8386. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8387. cacheid=xorg_cv_cc_flag__Werror
  8388. if eval \${$cacheid+:} false; then :
  8389. $as_echo_n "(cached) " >&6
  8390. else
  8391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8392. /* end confdefs.h. */
  8393. int i;
  8394. int
  8395. main ()
  8396. {
  8397. ;
  8398. return 0;
  8399. }
  8400. _ACEOF
  8401. if ac_fn_c_try_link "$LINENO"; then :
  8402. eval $cacheid=yes
  8403. else
  8404. eval $cacheid=no
  8405. fi
  8406. rm -f core conftest.err conftest.$ac_objext \
  8407. conftest$ac_exeext conftest.$ac_ext
  8408. fi
  8409. CFLAGS="$xorg_testset_save_CFLAGS"
  8410. eval supported=\$$cacheid
  8411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8412. $as_echo "$supported" >&6; }
  8413. if test "$supported" = "yes" ; then
  8414. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8415. found="yes"
  8416. fi
  8417. fi
  8418. if test $found = "no" ; then
  8419. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8420. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8421. fi
  8422. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8423. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8424. fi
  8425. CFLAGS="$CFLAGS -errwarn"
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8427. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8428. cacheid=xorg_cv_cc_flag__errwarn
  8429. if eval \${$cacheid+:} false; then :
  8430. $as_echo_n "(cached) " >&6
  8431. else
  8432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8433. /* end confdefs.h. */
  8434. int i;
  8435. int
  8436. main ()
  8437. {
  8438. ;
  8439. return 0;
  8440. }
  8441. _ACEOF
  8442. if ac_fn_c_try_link "$LINENO"; then :
  8443. eval $cacheid=yes
  8444. else
  8445. eval $cacheid=no
  8446. fi
  8447. rm -f core conftest.err conftest.$ac_objext \
  8448. conftest$ac_exeext conftest.$ac_ext
  8449. fi
  8450. CFLAGS="$xorg_testset_save_CFLAGS"
  8451. eval supported=\$$cacheid
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8453. $as_echo "$supported" >&6; }
  8454. if test "$supported" = "yes" ; then
  8455. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8456. found="yes"
  8457. fi
  8458. fi
  8459. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8460. # activate it with -Werror, so we add it here explicitly.
  8461. xorg_testset_save_CFLAGS="$CFLAGS"
  8462. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8463. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8465. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8466. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8467. $as_echo_n "(cached) " >&6
  8468. else
  8469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8470. /* end confdefs.h. */
  8471. int i;
  8472. _ACEOF
  8473. if ac_fn_c_try_compile "$LINENO"; then :
  8474. xorg_cv_cc_flag_unknown_warning_option=yes
  8475. else
  8476. xorg_cv_cc_flag_unknown_warning_option=no
  8477. fi
  8478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8479. fi
  8480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8481. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8482. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8483. CFLAGS="$xorg_testset_save_CFLAGS"
  8484. fi
  8485. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8486. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8487. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8488. fi
  8489. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8491. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8492. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8493. $as_echo_n "(cached) " >&6
  8494. else
  8495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8496. /* end confdefs.h. */
  8497. int i;
  8498. _ACEOF
  8499. if ac_fn_c_try_compile "$LINENO"; then :
  8500. xorg_cv_cc_flag_unused_command_line_argument=yes
  8501. else
  8502. xorg_cv_cc_flag_unused_command_line_argument=no
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8505. fi
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8507. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8508. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8509. CFLAGS="$xorg_testset_save_CFLAGS"
  8510. fi
  8511. found="no"
  8512. if test $found = "no" ; then
  8513. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8514. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8515. fi
  8516. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8517. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8518. fi
  8519. CFLAGS="$CFLAGS -Werror=attributes"
  8520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8521. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8522. cacheid=xorg_cv_cc_flag__Werror_attributes
  8523. if eval \${$cacheid+:} false; then :
  8524. $as_echo_n "(cached) " >&6
  8525. else
  8526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8527. /* end confdefs.h. */
  8528. int i;
  8529. int
  8530. main ()
  8531. {
  8532. ;
  8533. return 0;
  8534. }
  8535. _ACEOF
  8536. if ac_fn_c_try_link "$LINENO"; then :
  8537. eval $cacheid=yes
  8538. else
  8539. eval $cacheid=no
  8540. fi
  8541. rm -f core conftest.err conftest.$ac_objext \
  8542. conftest$ac_exeext conftest.$ac_ext
  8543. fi
  8544. CFLAGS="$xorg_testset_save_CFLAGS"
  8545. eval supported=\$$cacheid
  8546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8547. $as_echo "$supported" >&6; }
  8548. if test "$supported" = "yes" ; then
  8549. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8550. found="yes"
  8551. fi
  8552. fi
  8553. if test "x$STRICT_COMPILE" = "xyes"; then
  8554. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8555. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8556. fi
  8557. cat >>confdefs.h <<_ACEOF
  8558. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8559. _ACEOF
  8560. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8561. if test "x$PVM" = "x"; then
  8562. PVM="0"
  8563. fi
  8564. cat >>confdefs.h <<_ACEOF
  8565. #define PACKAGE_VERSION_MINOR $PVM
  8566. _ACEOF
  8567. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8568. if test "x$PVP" = "x"; then
  8569. PVP="0"
  8570. fi
  8571. cat >>confdefs.h <<_ACEOF
  8572. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8573. _ACEOF
  8574. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8575. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8576. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8577. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8578. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8579. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8580. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8581. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8582. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8583. if test x$APP_MAN_SUFFIX = x ; then
  8584. APP_MAN_SUFFIX=1
  8585. fi
  8586. if test x$APP_MAN_DIR = x ; then
  8587. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8588. fi
  8589. if test x$LIB_MAN_SUFFIX = x ; then
  8590. LIB_MAN_SUFFIX=3
  8591. fi
  8592. if test x$LIB_MAN_DIR = x ; then
  8593. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8594. fi
  8595. if test x$FILE_MAN_SUFFIX = x ; then
  8596. case $host_os in
  8597. solaris*) FILE_MAN_SUFFIX=4 ;;
  8598. *) FILE_MAN_SUFFIX=5 ;;
  8599. esac
  8600. fi
  8601. if test x$FILE_MAN_DIR = x ; then
  8602. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8603. fi
  8604. if test x$MISC_MAN_SUFFIX = x ; then
  8605. case $host_os in
  8606. solaris*) MISC_MAN_SUFFIX=5 ;;
  8607. *) MISC_MAN_SUFFIX=7 ;;
  8608. esac
  8609. fi
  8610. if test x$MISC_MAN_DIR = x ; then
  8611. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8612. fi
  8613. if test x$DRIVER_MAN_SUFFIX = x ; then
  8614. case $host_os in
  8615. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8616. *) DRIVER_MAN_SUFFIX=4 ;;
  8617. esac
  8618. fi
  8619. if test x$DRIVER_MAN_DIR = x ; then
  8620. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8621. fi
  8622. if test x$ADMIN_MAN_SUFFIX = x ; then
  8623. case $host_os in
  8624. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8625. *) ADMIN_MAN_SUFFIX=8 ;;
  8626. esac
  8627. fi
  8628. if test x$ADMIN_MAN_DIR = x ; then
  8629. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8630. fi
  8631. XORG_MAN_PAGE="X Version 11"
  8632. MAN_SUBSTS="\
  8633. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8634. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8635. -e 's|__xservername__|Xorg|g' \
  8636. -e 's|__xconfigfile__|xorg.conf|g' \
  8637. -e 's|__projectroot__|\$(prefix)|g' \
  8638. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8639. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8640. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8641. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8642. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8643. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8644. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8645. # Check whether --enable-silent-rules was given.
  8646. if test "${enable_silent_rules+set}" = set; then :
  8647. enableval=$enable_silent_rules;
  8648. fi
  8649. case $enable_silent_rules in # (((
  8650. yes) AM_DEFAULT_VERBOSITY=0;;
  8651. no) AM_DEFAULT_VERBOSITY=1;;
  8652. *) AM_DEFAULT_VERBOSITY=0;;
  8653. esac
  8654. am_make=${MAKE-make}
  8655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8656. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8657. if ${am_cv_make_support_nested_variables+:} false; then :
  8658. $as_echo_n "(cached) " >&6
  8659. else
  8660. if $as_echo 'TRUE=$(BAR$(V))
  8661. BAR0=false
  8662. BAR1=true
  8663. V=1
  8664. am__doit:
  8665. @$(TRUE)
  8666. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8667. am_cv_make_support_nested_variables=yes
  8668. else
  8669. am_cv_make_support_nested_variables=no
  8670. fi
  8671. fi
  8672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8673. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8674. if test $am_cv_make_support_nested_variables = yes; then
  8675. AM_V='$(V)'
  8676. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8677. else
  8678. AM_V=$AM_DEFAULT_VERBOSITY
  8679. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8680. fi
  8681. AM_BACKSLASH='\'
  8682. # Check whether --enable-docs was given.
  8683. if test "${enable_docs+set}" = set; then :
  8684. enableval=$enable_docs; build_docs=$enableval
  8685. else
  8686. build_docs=yes
  8687. fi
  8688. if test x$build_docs = xyes; then
  8689. ENABLE_DOCS_TRUE=
  8690. ENABLE_DOCS_FALSE='#'
  8691. else
  8692. ENABLE_DOCS_TRUE='#'
  8693. ENABLE_DOCS_FALSE=
  8694. fi
  8695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
  8696. $as_echo_n "checking whether to build documentation... " >&6; }
  8697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
  8698. $as_echo "$build_docs" >&6; }
  8699. # Check whether --enable-specs was given.
  8700. if test "${enable_specs+set}" = set; then :
  8701. enableval=$enable_specs; build_specs=$enableval
  8702. else
  8703. build_specs=yes
  8704. fi
  8705. if test x$build_specs = xyes; then
  8706. ENABLE_SPECS_TRUE=
  8707. ENABLE_SPECS_FALSE='#'
  8708. else
  8709. ENABLE_SPECS_TRUE='#'
  8710. ENABLE_SPECS_FALSE=
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5
  8713. $as_echo_n "checking whether to build functional specifications... " >&6; }
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5
  8715. $as_echo "$build_specs" >&6; }
  8716. # Check whether --with-xmlto was given.
  8717. if test "${with_xmlto+set}" = set; then :
  8718. withval=$with_xmlto; use_xmlto=$withval
  8719. else
  8720. use_xmlto=auto
  8721. fi
  8722. if test "x$use_xmlto" = x"auto"; then
  8723. # Extract the first word of "xmlto", so it can be a program name with args.
  8724. set dummy xmlto; ac_word=$2
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8726. $as_echo_n "checking for $ac_word... " >&6; }
  8727. if ${ac_cv_path_XMLTO+:} false; then :
  8728. $as_echo_n "(cached) " >&6
  8729. else
  8730. case $XMLTO in
  8731. [\\/]* | ?:[\\/]*)
  8732. ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
  8733. ;;
  8734. *)
  8735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8736. for as_dir in $PATH
  8737. do
  8738. IFS=$as_save_IFS
  8739. test -z "$as_dir" && as_dir=.
  8740. for ac_exec_ext in '' $ac_executable_extensions; do
  8741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8742. ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
  8743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8744. break 2
  8745. fi
  8746. done
  8747. done
  8748. IFS=$as_save_IFS
  8749. ;;
  8750. esac
  8751. fi
  8752. XMLTO=$ac_cv_path_XMLTO
  8753. if test -n "$XMLTO"; then
  8754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
  8755. $as_echo "$XMLTO" >&6; }
  8756. else
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8758. $as_echo "no" >&6; }
  8759. fi
  8760. if test "x$XMLTO" = "x"; then
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
  8762. $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
  8763. have_xmlto=no
  8764. else
  8765. have_xmlto=yes
  8766. fi
  8767. elif test "x$use_xmlto" = x"yes" ; then
  8768. # Extract the first word of "xmlto", so it can be a program name with args.
  8769. set dummy xmlto; ac_word=$2
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8771. $as_echo_n "checking for $ac_word... " >&6; }
  8772. if ${ac_cv_path_XMLTO+:} false; then :
  8773. $as_echo_n "(cached) " >&6
  8774. else
  8775. case $XMLTO in
  8776. [\\/]* | ?:[\\/]*)
  8777. ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
  8778. ;;
  8779. *)
  8780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8781. for as_dir in $PATH
  8782. do
  8783. IFS=$as_save_IFS
  8784. test -z "$as_dir" && as_dir=.
  8785. for ac_exec_ext in '' $ac_executable_extensions; do
  8786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8787. ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
  8788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8789. break 2
  8790. fi
  8791. done
  8792. done
  8793. IFS=$as_save_IFS
  8794. ;;
  8795. esac
  8796. fi
  8797. XMLTO=$ac_cv_path_XMLTO
  8798. if test -n "$XMLTO"; then
  8799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
  8800. $as_echo "$XMLTO" >&6; }
  8801. else
  8802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8803. $as_echo "no" >&6; }
  8804. fi
  8805. if test "x$XMLTO" = "x"; then
  8806. as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
  8807. fi
  8808. have_xmlto=yes
  8809. elif test "x$use_xmlto" = x"no" ; then
  8810. if test "x$XMLTO" != "x"; then
  8811. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
  8812. $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
  8813. fi
  8814. have_xmlto=no
  8815. else
  8816. as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
  8817. fi
  8818. # Test for a minimum version of xmlto, if provided.
  8819. if test "$have_xmlto" = yes; then
  8820. # scrape the xmlto version
  8821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
  8822. $as_echo_n "checking the xmlto version... " >&6; }
  8823. xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
  8825. $as_echo "$xmlto_version" >&6; }
  8826. as_arg_v1=$xmlto_version
  8827. as_arg_v2=0.0.22
  8828. awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
  8829. case $? in #(
  8830. 1) :
  8831. if test "x$use_xmlto" = xauto; then
  8832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
  8833. $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
  8834. have_xmlto=no
  8835. else
  8836. as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
  8837. fi ;; #(
  8838. 0) :
  8839. ;; #(
  8840. 2) :
  8841. ;; #(
  8842. *) :
  8843. ;;
  8844. esac
  8845. fi
  8846. # Test for the ability of xmlto to generate a text target
  8847. have_xmlto_text=no
  8848. cat > conftest.xml << "EOF"
  8849. EOF
  8850. if test "$have_xmlto" = yes; then :
  8851. if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
  8852. have_xmlto_text=yes
  8853. else
  8854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
  8855. $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
  8856. fi
  8857. fi
  8858. rm -f conftest.xml
  8859. if test $have_xmlto_text = yes; then
  8860. HAVE_XMLTO_TEXT_TRUE=
  8861. HAVE_XMLTO_TEXT_FALSE='#'
  8862. else
  8863. HAVE_XMLTO_TEXT_TRUE='#'
  8864. HAVE_XMLTO_TEXT_FALSE=
  8865. fi
  8866. if test "$have_xmlto" = yes; then
  8867. HAVE_XMLTO_TRUE=
  8868. HAVE_XMLTO_FALSE='#'
  8869. else
  8870. HAVE_XMLTO_TRUE='#'
  8871. HAVE_XMLTO_FALSE=
  8872. fi
  8873. # Preserves the interface, should it be implemented later
  8874. # Check whether --with-xsltproc was given.
  8875. if test "${with_xsltproc+set}" = set; then :
  8876. withval=$with_xsltproc; use_xsltproc=$withval
  8877. else
  8878. use_xsltproc=auto
  8879. fi
  8880. if test "x$use_xsltproc" = x"auto"; then
  8881. # Extract the first word of "xsltproc", so it can be a program name with args.
  8882. set dummy xsltproc; ac_word=$2
  8883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8884. $as_echo_n "checking for $ac_word... " >&6; }
  8885. if ${ac_cv_path_XSLTPROC+:} false; then :
  8886. $as_echo_n "(cached) " >&6
  8887. else
  8888. case $XSLTPROC in
  8889. [\\/]* | ?:[\\/]*)
  8890. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  8891. ;;
  8892. *)
  8893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8894. for as_dir in $PATH
  8895. do
  8896. IFS=$as_save_IFS
  8897. test -z "$as_dir" && as_dir=.
  8898. for ac_exec_ext in '' $ac_executable_extensions; do
  8899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8900. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  8901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8902. break 2
  8903. fi
  8904. done
  8905. done
  8906. IFS=$as_save_IFS
  8907. ;;
  8908. esac
  8909. fi
  8910. XSLTPROC=$ac_cv_path_XSLTPROC
  8911. if test -n "$XSLTPROC"; then
  8912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  8913. $as_echo "$XSLTPROC" >&6; }
  8914. else
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8916. $as_echo "no" >&6; }
  8917. fi
  8918. if test "x$XSLTPROC" = "x"; then
  8919. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
  8920. $as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
  8921. have_xsltproc=no
  8922. else
  8923. have_xsltproc=yes
  8924. fi
  8925. elif test "x$use_xsltproc" = x"yes" ; then
  8926. # Extract the first word of "xsltproc", so it can be a program name with args.
  8927. set dummy xsltproc; ac_word=$2
  8928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8929. $as_echo_n "checking for $ac_word... " >&6; }
  8930. if ${ac_cv_path_XSLTPROC+:} false; then :
  8931. $as_echo_n "(cached) " >&6
  8932. else
  8933. case $XSLTPROC in
  8934. [\\/]* | ?:[\\/]*)
  8935. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  8936. ;;
  8937. *)
  8938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8939. for as_dir in $PATH
  8940. do
  8941. IFS=$as_save_IFS
  8942. test -z "$as_dir" && as_dir=.
  8943. for ac_exec_ext in '' $ac_executable_extensions; do
  8944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8945. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  8946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8947. break 2
  8948. fi
  8949. done
  8950. done
  8951. IFS=$as_save_IFS
  8952. ;;
  8953. esac
  8954. fi
  8955. XSLTPROC=$ac_cv_path_XSLTPROC
  8956. if test -n "$XSLTPROC"; then
  8957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  8958. $as_echo "$XSLTPROC" >&6; }
  8959. else
  8960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8961. $as_echo "no" >&6; }
  8962. fi
  8963. if test "x$XSLTPROC" = "x"; then
  8964. as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
  8965. fi
  8966. have_xsltproc=yes
  8967. elif test "x$use_xsltproc" = x"no" ; then
  8968. if test "x$XSLTPROC" != "x"; then
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
  8970. $as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
  8971. fi
  8972. have_xsltproc=no
  8973. else
  8974. as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
  8975. fi
  8976. if test "$have_xsltproc" = yes; then
  8977. HAVE_XSLTPROC_TRUE=
  8978. HAVE_XSLTPROC_FALSE='#'
  8979. else
  8980. HAVE_XSLTPROC_TRUE='#'
  8981. HAVE_XSLTPROC_FALSE=
  8982. fi
  8983. # Check whether --with-fop was given.
  8984. if test "${with_fop+set}" = set; then :
  8985. withval=$with_fop; use_fop=$withval
  8986. else
  8987. use_fop=auto
  8988. fi
  8989. if test "x$use_fop" = x"auto"; then
  8990. # Extract the first word of "fop", so it can be a program name with args.
  8991. set dummy fop; ac_word=$2
  8992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8993. $as_echo_n "checking for $ac_word... " >&6; }
  8994. if ${ac_cv_path_FOP+:} false; then :
  8995. $as_echo_n "(cached) " >&6
  8996. else
  8997. case $FOP in
  8998. [\\/]* | ?:[\\/]*)
  8999. ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
  9000. ;;
  9001. *)
  9002. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9003. for as_dir in $PATH
  9004. do
  9005. IFS=$as_save_IFS
  9006. test -z "$as_dir" && as_dir=.
  9007. for ac_exec_ext in '' $ac_executable_extensions; do
  9008. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9009. ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
  9010. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9011. break 2
  9012. fi
  9013. done
  9014. done
  9015. IFS=$as_save_IFS
  9016. ;;
  9017. esac
  9018. fi
  9019. FOP=$ac_cv_path_FOP
  9020. if test -n "$FOP"; then
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
  9022. $as_echo "$FOP" >&6; }
  9023. else
  9024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9025. $as_echo "no" >&6; }
  9026. fi
  9027. if test "x$FOP" = "x"; then
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
  9029. $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
  9030. have_fop=no
  9031. else
  9032. have_fop=yes
  9033. fi
  9034. elif test "x$use_fop" = x"yes" ; then
  9035. # Extract the first word of "fop", so it can be a program name with args.
  9036. set dummy fop; ac_word=$2
  9037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9038. $as_echo_n "checking for $ac_word... " >&6; }
  9039. if ${ac_cv_path_FOP+:} false; then :
  9040. $as_echo_n "(cached) " >&6
  9041. else
  9042. case $FOP in
  9043. [\\/]* | ?:[\\/]*)
  9044. ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
  9045. ;;
  9046. *)
  9047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9048. for as_dir in $PATH
  9049. do
  9050. IFS=$as_save_IFS
  9051. test -z "$as_dir" && as_dir=.
  9052. for ac_exec_ext in '' $ac_executable_extensions; do
  9053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9054. ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
  9055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9056. break 2
  9057. fi
  9058. done
  9059. done
  9060. IFS=$as_save_IFS
  9061. ;;
  9062. esac
  9063. fi
  9064. FOP=$ac_cv_path_FOP
  9065. if test -n "$FOP"; then
  9066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
  9067. $as_echo "$FOP" >&6; }
  9068. else
  9069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9070. $as_echo "no" >&6; }
  9071. fi
  9072. if test "x$FOP" = "x"; then
  9073. as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
  9074. fi
  9075. have_fop=yes
  9076. elif test "x$use_fop" = x"no" ; then
  9077. if test "x$FOP" != "x"; then
  9078. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
  9079. $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
  9080. fi
  9081. have_fop=no
  9082. else
  9083. as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
  9084. fi
  9085. # Test for a minimum version of fop, if provided.
  9086. if test "$have_fop" = yes; then
  9087. HAVE_FOP_TRUE=
  9088. HAVE_FOP_FALSE='#'
  9089. else
  9090. HAVE_FOP_TRUE='#'
  9091. HAVE_FOP_FALSE=
  9092. fi
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
  9094. $as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
  9095. XORG_SGML_PATH=
  9096. if test -n "$PKG_CONFIG" && \
  9097. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
  9098. ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
  9099. ac_status=$?
  9100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9101. test $ac_status = 0; }; then
  9102. XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
  9103. else
  9104. :
  9105. fi
  9106. # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
  9107. # the path and the name of the doc stylesheet
  9108. if test "x$XORG_SGML_PATH" != "x" ; then
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
  9110. $as_echo "$XORG_SGML_PATH" >&6; }
  9111. STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
  9112. XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
  9113. else
  9114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9115. $as_echo "no" >&6; }
  9116. fi
  9117. if test "x$XSL_STYLESHEET" != "x"; then
  9118. HAVE_STYLESHEETS_TRUE=
  9119. HAVE_STYLESHEETS_FALSE='#'
  9120. else
  9121. HAVE_STYLESHEETS_TRUE='#'
  9122. HAVE_STYLESHEETS_FALSE=
  9123. fi
  9124. ac_config_files="$ac_config_files Makefile general/Makefile general/fonts/Makefile general/input/Makefile general/graphics/Makefile general/platforms/Makefile man/Makefile specs/Makefile specs/CTEXT/Makefile specs/ICCCM/Makefile specs/Xext/Makefile specs/XLFD/Makefile specs/Xserver/Makefile"
  9125. cat >confcache <<\_ACEOF
  9126. # This file is a shell script that caches the results of configure
  9127. # tests run on this system so they can be shared between configure
  9128. # scripts and configure runs, see configure's option --config-cache.
  9129. # It is not useful on other systems. If it contains results you don't
  9130. # want to keep, you may remove or edit it.
  9131. #
  9132. # config.status only pays attention to the cache file if you give it
  9133. # the --recheck option to rerun configure.
  9134. #
  9135. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9136. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9137. # following values.
  9138. _ACEOF
  9139. # The following way of writing the cache mishandles newlines in values,
  9140. # but we know of no workaround that is simple, portable, and efficient.
  9141. # So, we kill variables containing newlines.
  9142. # Ultrix sh set writes to stderr and can't be redirected directly,
  9143. # and sets the high bit in the cache file unless we assign to the vars.
  9144. (
  9145. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9146. eval ac_val=\$$ac_var
  9147. case $ac_val in #(
  9148. *${as_nl}*)
  9149. case $ac_var in #(
  9150. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9151. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9152. esac
  9153. case $ac_var in #(
  9154. _ | IFS | as_nl) ;; #(
  9155. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9156. *) { eval $ac_var=; unset $ac_var;} ;;
  9157. esac ;;
  9158. esac
  9159. done
  9160. (set) 2>&1 |
  9161. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9162. *${as_nl}ac_space=\ *)
  9163. # `set' does not quote correctly, so add quotes: double-quote
  9164. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9165. sed -n \
  9166. "s/'/'\\\\''/g;
  9167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9168. ;; #(
  9169. *)
  9170. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9171. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9172. ;;
  9173. esac |
  9174. sort
  9175. ) |
  9176. sed '
  9177. /^ac_cv_env_/b end
  9178. t clear
  9179. :clear
  9180. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9181. t end
  9182. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9183. :end' >>confcache
  9184. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9185. if test -w "$cache_file"; then
  9186. if test "x$cache_file" != "x/dev/null"; then
  9187. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9188. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9189. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9190. cat confcache >"$cache_file"
  9191. else
  9192. case $cache_file in #(
  9193. */* | ?:*)
  9194. mv -f confcache "$cache_file"$$ &&
  9195. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9196. *)
  9197. mv -f confcache "$cache_file" ;;
  9198. esac
  9199. fi
  9200. fi
  9201. else
  9202. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9203. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9204. fi
  9205. fi
  9206. rm -f confcache
  9207. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9208. # Let make expand exec_prefix.
  9209. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9210. # Transform confdefs.h into DEFS.
  9211. # Protect against shell expansion while executing Makefile rules.
  9212. # Protect against Makefile macro expansion.
  9213. #
  9214. # If the first sed substitution is executed (which looks for macros that
  9215. # take arguments), then branch to the quote section. Otherwise,
  9216. # look for a macro that doesn't take arguments.
  9217. ac_script='
  9218. :mline
  9219. /\\$/{
  9220. N
  9221. s,\\\n,,
  9222. b mline
  9223. }
  9224. t clear
  9225. :clear
  9226. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9227. t quote
  9228. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9229. t quote
  9230. b any
  9231. :quote
  9232. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9233. s/\[/\\&/g
  9234. s/\]/\\&/g
  9235. s/\$/$$/g
  9236. H
  9237. :any
  9238. ${
  9239. g
  9240. s/^\n//
  9241. s/\n/ /g
  9242. p
  9243. }
  9244. '
  9245. DEFS=`sed -n "$ac_script" confdefs.h`
  9246. ac_libobjs=
  9247. ac_ltlibobjs=
  9248. U=
  9249. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9250. # 1. Remove the extension, and $U if already installed.
  9251. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9252. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9253. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9254. # will be set to the directory where LIBOBJS objects are built.
  9255. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9256. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9257. done
  9258. LIBOBJS=$ac_libobjs
  9259. LTLIBOBJS=$ac_ltlibobjs
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9261. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9262. if test -n "$am_sleep_pid"; then
  9263. # Hide warnings about reused PIDs.
  9264. wait $am_sleep_pid 2>/dev/null
  9265. fi
  9266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9267. $as_echo "done" >&6; }
  9268. if test -n "$EXEEXT"; then
  9269. am__EXEEXT_TRUE=
  9270. am__EXEEXT_FALSE='#'
  9271. else
  9272. am__EXEEXT_TRUE='#'
  9273. am__EXEEXT_FALSE=
  9274. fi
  9275. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9276. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9277. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9278. fi
  9279. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9280. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9281. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9282. fi
  9283. if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
  9284. as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
  9285. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9286. fi
  9287. if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then
  9288. as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined.
  9289. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9290. fi
  9291. if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
  9292. as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
  9293. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9294. fi
  9295. if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
  9296. as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
  9297. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9298. fi
  9299. if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
  9300. as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
  9301. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9302. fi
  9303. if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
  9304. as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
  9305. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9306. fi
  9307. if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
  9308. as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
  9309. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9310. fi
  9311. : "${CONFIG_STATUS=./config.status}"
  9312. ac_write_fail=0
  9313. ac_clean_files_save=$ac_clean_files
  9314. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9315. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9316. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9317. as_write_fail=0
  9318. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9319. #! $SHELL
  9320. # Generated by $as_me.
  9321. # Run this file to recreate the current configuration.
  9322. # Compiler output produced by configure, useful for debugging
  9323. # configure, is in config.log if it exists.
  9324. debug=false
  9325. ac_cs_recheck=false
  9326. ac_cs_silent=false
  9327. SHELL=\${CONFIG_SHELL-$SHELL}
  9328. export SHELL
  9329. _ASEOF
  9330. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9331. ## -------------------- ##
  9332. ## M4sh Initialization. ##
  9333. ## -------------------- ##
  9334. # Be more Bourne compatible
  9335. DUALCASE=1; export DUALCASE # for MKS sh
  9336. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9337. emulate sh
  9338. NULLCMD=:
  9339. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9340. # is contrary to our usage. Disable this feature.
  9341. alias -g '${1+"$@"}'='"$@"'
  9342. setopt NO_GLOB_SUBST
  9343. else
  9344. case `(set -o) 2>/dev/null` in #(
  9345. *posix*) :
  9346. set -o posix ;; #(
  9347. *) :
  9348. ;;
  9349. esac
  9350. fi
  9351. as_nl='
  9352. '
  9353. export as_nl
  9354. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9355. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9356. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9357. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9358. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9359. # but without wasting forks for bash or zsh.
  9360. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9361. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9362. as_echo='print -r --'
  9363. as_echo_n='print -rn --'
  9364. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9365. as_echo='printf %s\n'
  9366. as_echo_n='printf %s'
  9367. else
  9368. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9369. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9370. as_echo_n='/usr/ucb/echo -n'
  9371. else
  9372. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9373. as_echo_n_body='eval
  9374. arg=$1;
  9375. case $arg in #(
  9376. *"$as_nl"*)
  9377. expr "X$arg" : "X\\(.*\\)$as_nl";
  9378. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9379. esac;
  9380. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9381. '
  9382. export as_echo_n_body
  9383. as_echo_n='sh -c $as_echo_n_body as_echo'
  9384. fi
  9385. export as_echo_body
  9386. as_echo='sh -c $as_echo_body as_echo'
  9387. fi
  9388. # The user is always right.
  9389. if test "${PATH_SEPARATOR+set}" != set; then
  9390. PATH_SEPARATOR=:
  9391. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9392. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9393. PATH_SEPARATOR=';'
  9394. }
  9395. fi
  9396. # IFS
  9397. # We need space, tab and new line, in precisely that order. Quoting is
  9398. # there to prevent editors from complaining about space-tab.
  9399. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9400. # splitting by setting IFS to empty value.)
  9401. IFS=" "" $as_nl"
  9402. # Find who we are. Look in the path if we contain no directory separator.
  9403. as_myself=
  9404. case $0 in #((
  9405. *[\\/]* ) as_myself=$0 ;;
  9406. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9407. for as_dir in $PATH
  9408. do
  9409. IFS=$as_save_IFS
  9410. test -z "$as_dir" && as_dir=.
  9411. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9412. done
  9413. IFS=$as_save_IFS
  9414. ;;
  9415. esac
  9416. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9417. # in which case we are not to be found in the path.
  9418. if test "x$as_myself" = x; then
  9419. as_myself=$0
  9420. fi
  9421. if test ! -f "$as_myself"; then
  9422. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9423. exit 1
  9424. fi
  9425. # Unset variables that we do not need and which cause bugs (e.g. in
  9426. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9427. # suppresses any "Segmentation fault" message there. '((' could
  9428. # trigger a bug in pdksh 5.2.14.
  9429. for as_var in BASH_ENV ENV MAIL MAILPATH
  9430. do eval test x\${$as_var+set} = xset \
  9431. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9432. done
  9433. PS1='$ '
  9434. PS2='> '
  9435. PS4='+ '
  9436. # NLS nuisances.
  9437. LC_ALL=C
  9438. export LC_ALL
  9439. LANGUAGE=C
  9440. export LANGUAGE
  9441. # CDPATH.
  9442. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9443. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9444. # ----------------------------------------
  9445. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9446. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9447. # script with STATUS, using 1 if that was 0.
  9448. as_fn_error ()
  9449. {
  9450. as_status=$1; test $as_status -eq 0 && as_status=1
  9451. if test "$4"; then
  9452. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9453. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9454. fi
  9455. $as_echo "$as_me: error: $2" >&2
  9456. as_fn_exit $as_status
  9457. } # as_fn_error
  9458. # as_fn_set_status STATUS
  9459. # -----------------------
  9460. # Set $? to STATUS, without forking.
  9461. as_fn_set_status ()
  9462. {
  9463. return $1
  9464. } # as_fn_set_status
  9465. # as_fn_exit STATUS
  9466. # -----------------
  9467. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9468. as_fn_exit ()
  9469. {
  9470. set +e
  9471. as_fn_set_status $1
  9472. exit $1
  9473. } # as_fn_exit
  9474. # as_fn_unset VAR
  9475. # ---------------
  9476. # Portably unset VAR.
  9477. as_fn_unset ()
  9478. {
  9479. { eval $1=; unset $1;}
  9480. }
  9481. as_unset=as_fn_unset
  9482. # as_fn_append VAR VALUE
  9483. # ----------------------
  9484. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9485. # advantage of any shell optimizations that allow amortized linear growth over
  9486. # repeated appends, instead of the typical quadratic growth present in naive
  9487. # implementations.
  9488. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9489. eval 'as_fn_append ()
  9490. {
  9491. eval $1+=\$2
  9492. }'
  9493. else
  9494. as_fn_append ()
  9495. {
  9496. eval $1=\$$1\$2
  9497. }
  9498. fi # as_fn_append
  9499. # as_fn_arith ARG...
  9500. # ------------------
  9501. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9502. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9503. # must be portable across $(()) and expr.
  9504. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9505. eval 'as_fn_arith ()
  9506. {
  9507. as_val=$(( $* ))
  9508. }'
  9509. else
  9510. as_fn_arith ()
  9511. {
  9512. as_val=`expr "$@" || test $? -eq 1`
  9513. }
  9514. fi # as_fn_arith
  9515. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9516. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9517. as_expr=expr
  9518. else
  9519. as_expr=false
  9520. fi
  9521. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9522. as_basename=basename
  9523. else
  9524. as_basename=false
  9525. fi
  9526. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9527. as_dirname=dirname
  9528. else
  9529. as_dirname=false
  9530. fi
  9531. as_me=`$as_basename -- "$0" ||
  9532. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9533. X"$0" : 'X\(//\)$' \| \
  9534. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9535. $as_echo X/"$0" |
  9536. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9537. s//\1/
  9538. q
  9539. }
  9540. /^X\/\(\/\/\)$/{
  9541. s//\1/
  9542. q
  9543. }
  9544. /^X\/\(\/\).*/{
  9545. s//\1/
  9546. q
  9547. }
  9548. s/.*/./; q'`
  9549. # Avoid depending upon Character Ranges.
  9550. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9551. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9552. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9553. as_cr_digits='0123456789'
  9554. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9555. ECHO_C= ECHO_N= ECHO_T=
  9556. case `echo -n x` in #(((((
  9557. -n*)
  9558. case `echo 'xy\c'` in
  9559. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9560. xy) ECHO_C='\c';;
  9561. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9562. ECHO_T=' ';;
  9563. esac;;
  9564. *)
  9565. ECHO_N='-n';;
  9566. esac
  9567. rm -f conf$$ conf$$.exe conf$$.file
  9568. if test -d conf$$.dir; then
  9569. rm -f conf$$.dir/conf$$.file
  9570. else
  9571. rm -f conf$$.dir
  9572. mkdir conf$$.dir 2>/dev/null
  9573. fi
  9574. if (echo >conf$$.file) 2>/dev/null; then
  9575. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9576. as_ln_s='ln -s'
  9577. # ... but there are two gotchas:
  9578. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9579. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9580. # In both cases, we have to default to `cp -pR'.
  9581. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9582. as_ln_s='cp -pR'
  9583. elif ln conf$$.file conf$$ 2>/dev/null; then
  9584. as_ln_s=ln
  9585. else
  9586. as_ln_s='cp -pR'
  9587. fi
  9588. else
  9589. as_ln_s='cp -pR'
  9590. fi
  9591. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9592. rmdir conf$$.dir 2>/dev/null
  9593. # as_fn_mkdir_p
  9594. # -------------
  9595. # Create "$as_dir" as a directory, including parents if necessary.
  9596. as_fn_mkdir_p ()
  9597. {
  9598. case $as_dir in #(
  9599. -*) as_dir=./$as_dir;;
  9600. esac
  9601. test -d "$as_dir" || eval $as_mkdir_p || {
  9602. as_dirs=
  9603. while :; do
  9604. case $as_dir in #(
  9605. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9606. *) as_qdir=$as_dir;;
  9607. esac
  9608. as_dirs="'$as_qdir' $as_dirs"
  9609. as_dir=`$as_dirname -- "$as_dir" ||
  9610. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9611. X"$as_dir" : 'X\(//\)[^/]' \| \
  9612. X"$as_dir" : 'X\(//\)$' \| \
  9613. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9614. $as_echo X"$as_dir" |
  9615. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9616. s//\1/
  9617. q
  9618. }
  9619. /^X\(\/\/\)[^/].*/{
  9620. s//\1/
  9621. q
  9622. }
  9623. /^X\(\/\/\)$/{
  9624. s//\1/
  9625. q
  9626. }
  9627. /^X\(\/\).*/{
  9628. s//\1/
  9629. q
  9630. }
  9631. s/.*/./; q'`
  9632. test -d "$as_dir" && break
  9633. done
  9634. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9635. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9636. } # as_fn_mkdir_p
  9637. if mkdir -p . 2>/dev/null; then
  9638. as_mkdir_p='mkdir -p "$as_dir"'
  9639. else
  9640. test -d ./-p && rmdir ./-p
  9641. as_mkdir_p=false
  9642. fi
  9643. # as_fn_executable_p FILE
  9644. # -----------------------
  9645. # Test if FILE is an executable regular file.
  9646. as_fn_executable_p ()
  9647. {
  9648. test -f "$1" && test -x "$1"
  9649. } # as_fn_executable_p
  9650. as_test_x='test -x'
  9651. as_executable_p=as_fn_executable_p
  9652. # Sed expression to map a string onto a valid CPP name.
  9653. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9654. # Sed expression to map a string onto a valid variable name.
  9655. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9656. exec 6>&1
  9657. ## ----------------------------------- ##
  9658. ## Main body of $CONFIG_STATUS script. ##
  9659. ## ----------------------------------- ##
  9660. _ASEOF
  9661. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9662. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9663. # Save the log message, to keep $0 and so on meaningful, and to
  9664. # report actual input values of CONFIG_FILES etc. instead of their
  9665. # values after options handling.
  9666. ac_log="
  9667. This file was extended by xorg-docs $as_me 1.7.1, which was
  9668. generated by GNU Autoconf 2.69. Invocation command line was
  9669. CONFIG_FILES = $CONFIG_FILES
  9670. CONFIG_HEADERS = $CONFIG_HEADERS
  9671. CONFIG_LINKS = $CONFIG_LINKS
  9672. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9673. $ $0 $@
  9674. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9675. "
  9676. _ACEOF
  9677. case $ac_config_files in *"
  9678. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9679. esac
  9680. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9681. # Files that config.status was made for.
  9682. config_files="$ac_config_files"
  9683. config_commands="$ac_config_commands"
  9684. _ACEOF
  9685. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9686. ac_cs_usage="\
  9687. \`$as_me' instantiates files and other configuration actions
  9688. from templates according to the current configuration. Unless the files
  9689. and actions are specified as TAGs, all are instantiated by default.
  9690. Usage: $0 [OPTION]... [TAG]...
  9691. -h, --help print this help, then exit
  9692. -V, --version print version number and configuration settings, then exit
  9693. --config print configuration, then exit
  9694. -q, --quiet, --silent
  9695. do not print progress messages
  9696. -d, --debug don't remove temporary files
  9697. --recheck update $as_me by reconfiguring in the same conditions
  9698. --file=FILE[:TEMPLATE]
  9699. instantiate the configuration file FILE
  9700. Configuration files:
  9701. $config_files
  9702. Configuration commands:
  9703. $config_commands
  9704. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9705. _ACEOF
  9706. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9707. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9708. ac_cs_version="\\
  9709. xorg-docs config.status 1.7.1
  9710. configured by $0, generated by GNU Autoconf 2.69,
  9711. with options \\"\$ac_cs_config\\"
  9712. Copyright (C) 2012 Free Software Foundation, Inc.
  9713. This config.status script is free software; the Free Software Foundation
  9714. gives unlimited permission to copy, distribute and modify it."
  9715. ac_pwd='$ac_pwd'
  9716. srcdir='$srcdir'
  9717. INSTALL='$INSTALL'
  9718. MKDIR_P='$MKDIR_P'
  9719. AWK='$AWK'
  9720. test -n "\$AWK" || AWK=awk
  9721. _ACEOF
  9722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9723. # The default lists apply if the user does not specify any file.
  9724. ac_need_defaults=:
  9725. while test $# != 0
  9726. do
  9727. case $1 in
  9728. --*=?*)
  9729. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9730. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9731. ac_shift=:
  9732. ;;
  9733. --*=)
  9734. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9735. ac_optarg=
  9736. ac_shift=:
  9737. ;;
  9738. *)
  9739. ac_option=$1
  9740. ac_optarg=$2
  9741. ac_shift=shift
  9742. ;;
  9743. esac
  9744. case $ac_option in
  9745. # Handling of the options.
  9746. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9747. ac_cs_recheck=: ;;
  9748. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9749. $as_echo "$ac_cs_version"; exit ;;
  9750. --config | --confi | --conf | --con | --co | --c )
  9751. $as_echo "$ac_cs_config"; exit ;;
  9752. --debug | --debu | --deb | --de | --d | -d )
  9753. debug=: ;;
  9754. --file | --fil | --fi | --f )
  9755. $ac_shift
  9756. case $ac_optarg in
  9757. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9758. '') as_fn_error $? "missing file argument" ;;
  9759. esac
  9760. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9761. ac_need_defaults=false;;
  9762. --he | --h | --help | --hel | -h )
  9763. $as_echo "$ac_cs_usage"; exit ;;
  9764. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9765. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9766. ac_cs_silent=: ;;
  9767. # This is an error.
  9768. -*) as_fn_error $? "unrecognized option: \`$1'
  9769. Try \`$0 --help' for more information." ;;
  9770. *) as_fn_append ac_config_targets " $1"
  9771. ac_need_defaults=false ;;
  9772. esac
  9773. shift
  9774. done
  9775. ac_configure_extra_args=
  9776. if $ac_cs_silent; then
  9777. exec 6>/dev/null
  9778. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9779. fi
  9780. _ACEOF
  9781. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9782. if \$ac_cs_recheck; then
  9783. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9784. shift
  9785. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9786. CONFIG_SHELL='$SHELL'
  9787. export CONFIG_SHELL
  9788. exec "\$@"
  9789. fi
  9790. _ACEOF
  9791. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9792. exec 5>>config.log
  9793. {
  9794. echo
  9795. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9796. ## Running $as_me. ##
  9797. _ASBOX
  9798. $as_echo "$ac_log"
  9799. } >&5
  9800. _ACEOF
  9801. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9802. #
  9803. # INIT-COMMANDS
  9804. #
  9805. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9806. _ACEOF
  9807. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9808. # Handling of arguments.
  9809. for ac_config_target in $ac_config_targets
  9810. do
  9811. case $ac_config_target in
  9812. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9813. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9814. "general/Makefile") CONFIG_FILES="$CONFIG_FILES general/Makefile" ;;
  9815. "general/fonts/Makefile") CONFIG_FILES="$CONFIG_FILES general/fonts/Makefile" ;;
  9816. "general/input/Makefile") CONFIG_FILES="$CONFIG_FILES general/input/Makefile" ;;
  9817. "general/graphics/Makefile") CONFIG_FILES="$CONFIG_FILES general/graphics/Makefile" ;;
  9818. "general/platforms/Makefile") CONFIG_FILES="$CONFIG_FILES general/platforms/Makefile" ;;
  9819. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9820. "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
  9821. "specs/CTEXT/Makefile") CONFIG_FILES="$CONFIG_FILES specs/CTEXT/Makefile" ;;
  9822. "specs/ICCCM/Makefile") CONFIG_FILES="$CONFIG_FILES specs/ICCCM/Makefile" ;;
  9823. "specs/Xext/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xext/Makefile" ;;
  9824. "specs/XLFD/Makefile") CONFIG_FILES="$CONFIG_FILES specs/XLFD/Makefile" ;;
  9825. "specs/Xserver/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Xserver/Makefile" ;;
  9826. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9827. esac
  9828. done
  9829. # If the user did not use the arguments to specify the items to instantiate,
  9830. # then the envvar interface is used. Set only those that are not.
  9831. # We use the long form for the default assignment because of an extremely
  9832. # bizarre bug on SunOS 4.1.3.
  9833. if $ac_need_defaults; then
  9834. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9835. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9836. fi
  9837. # Have a temporary directory for convenience. Make it in the build tree
  9838. # simply because there is no reason against having it here, and in addition,
  9839. # creating and moving files from /tmp can sometimes cause problems.
  9840. # Hook for its removal unless debugging.
  9841. # Note that there is a small window in which the directory will not be cleaned:
  9842. # after its creation but before its name has been assigned to `$tmp'.
  9843. $debug ||
  9844. {
  9845. tmp= ac_tmp=
  9846. trap 'exit_status=$?
  9847. : "${ac_tmp:=$tmp}"
  9848. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9849. ' 0
  9850. trap 'as_fn_exit 1' 1 2 13 15
  9851. }
  9852. # Create a (secure) tmp directory for tmp files.
  9853. {
  9854. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9855. test -d "$tmp"
  9856. } ||
  9857. {
  9858. tmp=./conf$$-$RANDOM
  9859. (umask 077 && mkdir "$tmp")
  9860. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9861. ac_tmp=$tmp
  9862. # Set up the scripts for CONFIG_FILES section.
  9863. # No need to generate them if there are no CONFIG_FILES.
  9864. # This happens for instance with `./config.status config.h'.
  9865. if test -n "$CONFIG_FILES"; then
  9866. ac_cr=`echo X | tr X '\015'`
  9867. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9868. # But we know of no other shell where ac_cr would be empty at this
  9869. # point, so we can use a bashism as a fallback.
  9870. if test "x$ac_cr" = x; then
  9871. eval ac_cr=\$\'\\r\'
  9872. fi
  9873. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9874. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9875. ac_cs_awk_cr='\\r'
  9876. else
  9877. ac_cs_awk_cr=$ac_cr
  9878. fi
  9879. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9880. _ACEOF
  9881. {
  9882. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9883. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9884. echo "_ACEOF"
  9885. } >conf$$subs.sh ||
  9886. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9887. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9888. ac_delim='%!_!# '
  9889. for ac_last_try in false false false false false :; do
  9890. . ./conf$$subs.sh ||
  9891. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9892. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9893. if test $ac_delim_n = $ac_delim_num; then
  9894. break
  9895. elif $ac_last_try; then
  9896. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9897. else
  9898. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9899. fi
  9900. done
  9901. rm -f conf$$subs.sh
  9902. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9903. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9904. _ACEOF
  9905. sed -n '
  9906. h
  9907. s/^/S["/; s/!.*/"]=/
  9908. p
  9909. g
  9910. s/^[^!]*!//
  9911. :repl
  9912. t repl
  9913. s/'"$ac_delim"'$//
  9914. t delim
  9915. :nl
  9916. h
  9917. s/\(.\{148\}\)..*/\1/
  9918. t more1
  9919. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9920. p
  9921. n
  9922. b repl
  9923. :more1
  9924. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9925. p
  9926. g
  9927. s/.\{148\}//
  9928. t nl
  9929. :delim
  9930. h
  9931. s/\(.\{148\}\)..*/\1/
  9932. t more2
  9933. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9934. p
  9935. b
  9936. :more2
  9937. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9938. p
  9939. g
  9940. s/.\{148\}//
  9941. t delim
  9942. ' <conf$$subs.awk | sed '
  9943. /^[^""]/{
  9944. N
  9945. s/\n//
  9946. }
  9947. ' >>$CONFIG_STATUS || ac_write_fail=1
  9948. rm -f conf$$subs.awk
  9949. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9950. _ACAWK
  9951. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9952. for (key in S) S_is_set[key] = 1
  9953. FS = ""
  9954. }
  9955. {
  9956. line = $ 0
  9957. nfields = split(line, field, "@")
  9958. substed = 0
  9959. len = length(field[1])
  9960. for (i = 2; i < nfields; i++) {
  9961. key = field[i]
  9962. keylen = length(key)
  9963. if (S_is_set[key]) {
  9964. value = S[key]
  9965. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9966. len += length(value) + length(field[++i])
  9967. substed = 1
  9968. } else
  9969. len += 1 + keylen
  9970. }
  9971. print line
  9972. }
  9973. _ACAWK
  9974. _ACEOF
  9975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9976. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9977. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9978. else
  9979. cat
  9980. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9981. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9982. _ACEOF
  9983. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9984. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9985. # trailing colons and then remove the whole line if VPATH becomes empty
  9986. # (actually we leave an empty line to preserve line numbers).
  9987. if test "x$srcdir" = x.; then
  9988. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9989. h
  9990. s///
  9991. s/^/:/
  9992. s/[ ]*$/:/
  9993. s/:\$(srcdir):/:/g
  9994. s/:\${srcdir}:/:/g
  9995. s/:@srcdir@:/:/g
  9996. s/^:*//
  9997. s/:*$//
  9998. x
  9999. s/\(=[ ]*\).*/\1/
  10000. G
  10001. s/\n//
  10002. s/^[^=]*=[ ]*$//
  10003. }'
  10004. fi
  10005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10006. fi # test -n "$CONFIG_FILES"
  10007. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10008. shift
  10009. for ac_tag
  10010. do
  10011. case $ac_tag in
  10012. :[FHLC]) ac_mode=$ac_tag; continue;;
  10013. esac
  10014. case $ac_mode$ac_tag in
  10015. :[FHL]*:*);;
  10016. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10017. :[FH]-) ac_tag=-:-;;
  10018. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10019. esac
  10020. ac_save_IFS=$IFS
  10021. IFS=:
  10022. set x $ac_tag
  10023. IFS=$ac_save_IFS
  10024. shift
  10025. ac_file=$1
  10026. shift
  10027. case $ac_mode in
  10028. :L) ac_source=$1;;
  10029. :[FH])
  10030. ac_file_inputs=
  10031. for ac_f
  10032. do
  10033. case $ac_f in
  10034. -) ac_f="$ac_tmp/stdin";;
  10035. *) # Look for the file first in the build tree, then in the source tree
  10036. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10037. # because $ac_f cannot contain `:'.
  10038. test -f "$ac_f" ||
  10039. case $ac_f in
  10040. [\\/$]*) false;;
  10041. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10042. esac ||
  10043. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10044. esac
  10045. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10046. as_fn_append ac_file_inputs " '$ac_f'"
  10047. done
  10048. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10049. # use $as_me), people would be surprised to read:
  10050. # /* config.h. Generated by config.status. */
  10051. configure_input='Generated from '`
  10052. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10053. `' by configure.'
  10054. if test x"$ac_file" != x-; then
  10055. configure_input="$ac_file. $configure_input"
  10056. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10057. $as_echo "$as_me: creating $ac_file" >&6;}
  10058. fi
  10059. # Neutralize special characters interpreted by sed in replacement strings.
  10060. case $configure_input in #(
  10061. *\&* | *\|* | *\\* )
  10062. ac_sed_conf_input=`$as_echo "$configure_input" |
  10063. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10064. *) ac_sed_conf_input=$configure_input;;
  10065. esac
  10066. case $ac_tag in
  10067. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10068. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10069. esac
  10070. ;;
  10071. esac
  10072. ac_dir=`$as_dirname -- "$ac_file" ||
  10073. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10074. X"$ac_file" : 'X\(//\)[^/]' \| \
  10075. X"$ac_file" : 'X\(//\)$' \| \
  10076. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10077. $as_echo X"$ac_file" |
  10078. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10079. s//\1/
  10080. q
  10081. }
  10082. /^X\(\/\/\)[^/].*/{
  10083. s//\1/
  10084. q
  10085. }
  10086. /^X\(\/\/\)$/{
  10087. s//\1/
  10088. q
  10089. }
  10090. /^X\(\/\).*/{
  10091. s//\1/
  10092. q
  10093. }
  10094. s/.*/./; q'`
  10095. as_dir="$ac_dir"; as_fn_mkdir_p
  10096. ac_builddir=.
  10097. case "$ac_dir" in
  10098. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10099. *)
  10100. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10101. # A ".." for each directory in $ac_dir_suffix.
  10102. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10103. case $ac_top_builddir_sub in
  10104. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10105. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10106. esac ;;
  10107. esac
  10108. ac_abs_top_builddir=$ac_pwd
  10109. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10110. # for backward compatibility:
  10111. ac_top_builddir=$ac_top_build_prefix
  10112. case $srcdir in
  10113. .) # We are building in place.
  10114. ac_srcdir=.
  10115. ac_top_srcdir=$ac_top_builddir_sub
  10116. ac_abs_top_srcdir=$ac_pwd ;;
  10117. [\\/]* | ?:[\\/]* ) # Absolute name.
  10118. ac_srcdir=$srcdir$ac_dir_suffix;
  10119. ac_top_srcdir=$srcdir
  10120. ac_abs_top_srcdir=$srcdir ;;
  10121. *) # Relative name.
  10122. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10123. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10124. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10125. esac
  10126. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10127. case $ac_mode in
  10128. :F)
  10129. #
  10130. # CONFIG_FILE
  10131. #
  10132. case $INSTALL in
  10133. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10134. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10135. esac
  10136. ac_MKDIR_P=$MKDIR_P
  10137. case $MKDIR_P in
  10138. [\\/$]* | ?:[\\/]* ) ;;
  10139. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10140. esac
  10141. _ACEOF
  10142. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10143. # If the template does not know about datarootdir, expand it.
  10144. # FIXME: This hack should be removed a few years after 2.60.
  10145. ac_datarootdir_hack=; ac_datarootdir_seen=
  10146. ac_sed_dataroot='
  10147. /datarootdir/ {
  10148. p
  10149. q
  10150. }
  10151. /@datadir@/p
  10152. /@docdir@/p
  10153. /@infodir@/p
  10154. /@localedir@/p
  10155. /@mandir@/p'
  10156. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10157. *datarootdir*) ac_datarootdir_seen=yes;;
  10158. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10160. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10161. _ACEOF
  10162. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10163. ac_datarootdir_hack='
  10164. s&@datadir@&$datadir&g
  10165. s&@docdir@&$docdir&g
  10166. s&@infodir@&$infodir&g
  10167. s&@localedir@&$localedir&g
  10168. s&@mandir@&$mandir&g
  10169. s&\\\${datarootdir}&$datarootdir&g' ;;
  10170. esac
  10171. _ACEOF
  10172. # Neutralize VPATH when `$srcdir' = `.'.
  10173. # Shell code in configure.ac might set extrasub.
  10174. # FIXME: do we really want to maintain this feature?
  10175. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10176. ac_sed_extra="$ac_vpsub
  10177. $extrasub
  10178. _ACEOF
  10179. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10180. :t
  10181. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10182. s|@configure_input@|$ac_sed_conf_input|;t t
  10183. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10184. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10185. s&@srcdir@&$ac_srcdir&;t t
  10186. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10187. s&@top_srcdir@&$ac_top_srcdir&;t t
  10188. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10189. s&@builddir@&$ac_builddir&;t t
  10190. s&@abs_builddir@&$ac_abs_builddir&;t t
  10191. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10192. s&@INSTALL@&$ac_INSTALL&;t t
  10193. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10194. $ac_datarootdir_hack
  10195. "
  10196. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10197. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10198. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10199. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10200. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10201. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10202. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10203. which seems to be undefined. Please make sure it is defined" >&5
  10204. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10205. which seems to be undefined. Please make sure it is defined" >&2;}
  10206. rm -f "$ac_tmp/stdin"
  10207. case $ac_file in
  10208. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10209. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10210. esac \
  10211. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10212. ;;
  10213. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10214. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10215. ;;
  10216. esac
  10217. case $ac_file$ac_mode in
  10218. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10219. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10220. # are listed without --file. Let's play safe and only enable the eval
  10221. # if we detect the quoting.
  10222. case $CONFIG_FILES in
  10223. *\'*) eval set x "$CONFIG_FILES" ;;
  10224. *) set x $CONFIG_FILES ;;
  10225. esac
  10226. shift
  10227. for mf
  10228. do
  10229. # Strip MF so we end up with the name of the file.
  10230. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10231. # Check whether this is an Automake generated Makefile or not.
  10232. # We used to match only the files named 'Makefile.in', but
  10233. # some people rename them; so instead we look at the file content.
  10234. # Grep'ing the first line is not enough: some people post-process
  10235. # each Makefile.in and add a new line on top of each file to say so.
  10236. # Grep'ing the whole file is not good either: AIX grep has a line
  10237. # limit of 2048, but all sed's we know have understand at least 4000.
  10238. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10239. dirpart=`$as_dirname -- "$mf" ||
  10240. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10241. X"$mf" : 'X\(//\)[^/]' \| \
  10242. X"$mf" : 'X\(//\)$' \| \
  10243. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10244. $as_echo X"$mf" |
  10245. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10246. s//\1/
  10247. q
  10248. }
  10249. /^X\(\/\/\)[^/].*/{
  10250. s//\1/
  10251. q
  10252. }
  10253. /^X\(\/\/\)$/{
  10254. s//\1/
  10255. q
  10256. }
  10257. /^X\(\/\).*/{
  10258. s//\1/
  10259. q
  10260. }
  10261. s/.*/./; q'`
  10262. else
  10263. continue
  10264. fi
  10265. # Extract the definition of DEPDIR, am__include, and am__quote
  10266. # from the Makefile without running 'make'.
  10267. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10268. test -z "$DEPDIR" && continue
  10269. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10270. test -z "am__include" && continue
  10271. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10272. # Find all dependency output files, they are included files with
  10273. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10274. # simplest approach to changing $(DEPDIR) to its actual value in the
  10275. # expansion.
  10276. for file in `sed -n "
  10277. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10278. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10279. # Make sure the directory exists.
  10280. test -f "$dirpart/$file" && continue
  10281. fdir=`$as_dirname -- "$file" ||
  10282. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10283. X"$file" : 'X\(//\)[^/]' \| \
  10284. X"$file" : 'X\(//\)$' \| \
  10285. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10286. $as_echo X"$file" |
  10287. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10288. s//\1/
  10289. q
  10290. }
  10291. /^X\(\/\/\)[^/].*/{
  10292. s//\1/
  10293. q
  10294. }
  10295. /^X\(\/\/\)$/{
  10296. s//\1/
  10297. q
  10298. }
  10299. /^X\(\/\).*/{
  10300. s//\1/
  10301. q
  10302. }
  10303. s/.*/./; q'`
  10304. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10305. # echo "creating $dirpart/$file"
  10306. echo '# dummy' > "$dirpart/$file"
  10307. done
  10308. done
  10309. }
  10310. ;;
  10311. esac
  10312. done # for ac_tag
  10313. as_fn_exit 0
  10314. _ACEOF
  10315. ac_clean_files=$ac_clean_files_save
  10316. test $ac_write_fail = 0 ||
  10317. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10318. # configure is writing to config.log, and then calls config.status.
  10319. # config.status does its own redirection, appending to config.log.
  10320. # Unfortunately, on DOS this fails, as config.log is still kept open
  10321. # by configure, so config.status won't be able to write to it; its
  10322. # output is simply discarded. So we exec the FD to /dev/null,
  10323. # effectively closing config.log, so it can be properly (re)opened and
  10324. # appended to by config.status. When coming back to configure, we
  10325. # need to make the FD available again.
  10326. if test "$no_create" != yes; then
  10327. ac_cs_success=:
  10328. ac_config_status_args=
  10329. test "$silent" = yes &&
  10330. ac_config_status_args="$ac_config_status_args --quiet"
  10331. exec 5>/dev/null
  10332. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10333. exec 5>>config.log
  10334. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10335. # would make configure fail if this is the last instruction.
  10336. $ac_cs_success || as_fn_exit 1
  10337. fi
  10338. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10340. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10341. fi