configure 331 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xkill 1.0.4.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xkill'
  535. PACKAGE_TARNAME='xkill'
  536. PACKAGE_VERSION='1.0.4'
  537. PACKAGE_STRING='xkill 1.0.4'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XKILL_LIBS
  581. XKILL_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. CHANGELOG_CMD
  614. STRICT_CFLAGS
  615. CWARNFLAGS
  616. BASE_CFLAGS
  617. EGREP
  618. GREP
  619. CPP
  620. am__fastdepCC_FALSE
  621. am__fastdepCC_TRUE
  622. CCDEPMODE
  623. am__nodep
  624. AMDEPBACKSLASH
  625. AMDEP_FALSE
  626. AMDEP_TRUE
  627. am__quote
  628. am__include
  629. DEPDIR
  630. OBJEXT
  631. EXEEXT
  632. ac_ct_CC
  633. CPPFLAGS
  634. LDFLAGS
  635. CFLAGS
  636. CC
  637. MAINT
  638. MAINTAINER_MODE_FALSE
  639. MAINTAINER_MODE_TRUE
  640. am__untar
  641. am__tar
  642. AMTAR
  643. am__leading_dot
  644. SET_MAKE
  645. AWK
  646. mkdir_p
  647. MKDIR_P
  648. INSTALL_STRIP_PROGRAM
  649. STRIP
  650. install_sh
  651. MAKEINFO
  652. AUTOHEADER
  653. AUTOMAKE
  654. AUTOCONF
  655. ACLOCAL
  656. VERSION
  657. PACKAGE
  658. CYGPATH_W
  659. am__isrc
  660. INSTALL_DATA
  661. INSTALL_SCRIPT
  662. INSTALL_PROGRAM
  663. target_alias
  664. host_alias
  665. build_alias
  666. LIBS
  667. ECHO_T
  668. ECHO_N
  669. ECHO_C
  670. DEFS
  671. mandir
  672. localedir
  673. libdir
  674. psdir
  675. pdfdir
  676. dvidir
  677. htmldir
  678. infodir
  679. docdir
  680. oldincludedir
  681. includedir
  682. localstatedir
  683. sharedstatedir
  684. sysconfdir
  685. datadir
  686. datarootdir
  687. libexecdir
  688. sbindir
  689. bindir
  690. program_transform_name
  691. prefix
  692. exec_prefix
  693. PACKAGE_URL
  694. PACKAGE_BUGREPORT
  695. PACKAGE_STRING
  696. PACKAGE_VERSION
  697. PACKAGE_TARNAME
  698. PACKAGE_NAME
  699. PATH_SEPARATOR
  700. SHELL'
  701. ac_subst_files=''
  702. ac_user_opts='
  703. enable_option_checking
  704. enable_maintainer_mode
  705. enable_dependency_tracking
  706. enable_selective_werror
  707. enable_strict_compilation
  708. enable_silent_rules
  709. '
  710. ac_precious_vars='build_alias
  711. host_alias
  712. target_alias
  713. CC
  714. CFLAGS
  715. LDFLAGS
  716. LIBS
  717. CPPFLAGS
  718. CPP
  719. PKG_CONFIG
  720. PKG_CONFIG_PATH
  721. PKG_CONFIG_LIBDIR
  722. XKILL_CFLAGS
  723. XKILL_LIBS'
  724. # Initialize some variables set by options.
  725. ac_init_help=
  726. ac_init_version=false
  727. ac_unrecognized_opts=
  728. ac_unrecognized_sep=
  729. # The variables have the same names as the options, with
  730. # dashes changed to underlines.
  731. cache_file=/dev/null
  732. exec_prefix=NONE
  733. no_create=
  734. no_recursion=
  735. prefix=NONE
  736. program_prefix=NONE
  737. program_suffix=NONE
  738. program_transform_name=s,x,x,
  739. silent=
  740. site=
  741. srcdir=
  742. verbose=
  743. x_includes=NONE
  744. x_libraries=NONE
  745. # Installation directory options.
  746. # These are left unexpanded so users can "make install exec_prefix=/foo"
  747. # and all the variables that are supposed to be based on exec_prefix
  748. # by default will actually change.
  749. # Use braces instead of parens because sh, perl, etc. also accept them.
  750. # (The list follows the same order as the GNU Coding Standards.)
  751. bindir='${exec_prefix}/bin'
  752. sbindir='${exec_prefix}/sbin'
  753. libexecdir='${exec_prefix}/libexec'
  754. datarootdir='${prefix}/share'
  755. datadir='${datarootdir}'
  756. sysconfdir='${prefix}/etc'
  757. sharedstatedir='${prefix}/com'
  758. localstatedir='${prefix}/var'
  759. includedir='${prefix}/include'
  760. oldincludedir='/usr/include'
  761. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  762. infodir='${datarootdir}/info'
  763. htmldir='${docdir}'
  764. dvidir='${docdir}'
  765. pdfdir='${docdir}'
  766. psdir='${docdir}'
  767. libdir='${exec_prefix}/lib'
  768. localedir='${datarootdir}/locale'
  769. mandir='${datarootdir}/man'
  770. ac_prev=
  771. ac_dashdash=
  772. for ac_option
  773. do
  774. # If the previous option needs an argument, assign it.
  775. if test -n "$ac_prev"; then
  776. eval $ac_prev=\$ac_option
  777. ac_prev=
  778. continue
  779. fi
  780. case $ac_option in
  781. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  782. *=) ac_optarg= ;;
  783. *) ac_optarg=yes ;;
  784. esac
  785. # Accept the important Cygnus configure options, so we can diagnose typos.
  786. case $ac_dashdash$ac_option in
  787. --)
  788. ac_dashdash=yes ;;
  789. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  790. ac_prev=bindir ;;
  791. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  792. bindir=$ac_optarg ;;
  793. -build | --build | --buil | --bui | --bu)
  794. ac_prev=build_alias ;;
  795. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  796. build_alias=$ac_optarg ;;
  797. -cache-file | --cache-file | --cache-fil | --cache-fi \
  798. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  799. ac_prev=cache_file ;;
  800. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  801. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  802. cache_file=$ac_optarg ;;
  803. --config-cache | -C)
  804. cache_file=config.cache ;;
  805. -datadir | --datadir | --datadi | --datad)
  806. ac_prev=datadir ;;
  807. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  808. datadir=$ac_optarg ;;
  809. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  810. | --dataroo | --dataro | --datar)
  811. ac_prev=datarootdir ;;
  812. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  813. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  814. datarootdir=$ac_optarg ;;
  815. -disable-* | --disable-*)
  816. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  817. # Reject names that are not valid shell variable names.
  818. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  819. as_fn_error $? "invalid feature name: $ac_useropt"
  820. ac_useropt_orig=$ac_useropt
  821. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  822. case $ac_user_opts in
  823. *"
  824. "enable_$ac_useropt"
  825. "*) ;;
  826. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  827. ac_unrecognized_sep=', ';;
  828. esac
  829. eval enable_$ac_useropt=no ;;
  830. -docdir | --docdir | --docdi | --doc | --do)
  831. ac_prev=docdir ;;
  832. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  833. docdir=$ac_optarg ;;
  834. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  835. ac_prev=dvidir ;;
  836. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  837. dvidir=$ac_optarg ;;
  838. -enable-* | --enable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=\$ac_optarg ;;
  853. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  854. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  855. | --exec | --exe | --ex)
  856. ac_prev=exec_prefix ;;
  857. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  858. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  859. | --exec=* | --exe=* | --ex=*)
  860. exec_prefix=$ac_optarg ;;
  861. -gas | --gas | --ga | --g)
  862. # Obsolete; use --with-gas.
  863. with_gas=yes ;;
  864. -help | --help | --hel | --he | -h)
  865. ac_init_help=long ;;
  866. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  867. ac_init_help=recursive ;;
  868. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  869. ac_init_help=short ;;
  870. -host | --host | --hos | --ho)
  871. ac_prev=host_alias ;;
  872. -host=* | --host=* | --hos=* | --ho=*)
  873. host_alias=$ac_optarg ;;
  874. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  875. ac_prev=htmldir ;;
  876. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  877. | --ht=*)
  878. htmldir=$ac_optarg ;;
  879. -includedir | --includedir | --includedi | --included | --include \
  880. | --includ | --inclu | --incl | --inc)
  881. ac_prev=includedir ;;
  882. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  883. | --includ=* | --inclu=* | --incl=* | --inc=*)
  884. includedir=$ac_optarg ;;
  885. -infodir | --infodir | --infodi | --infod | --info | --inf)
  886. ac_prev=infodir ;;
  887. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  888. infodir=$ac_optarg ;;
  889. -libdir | --libdir | --libdi | --libd)
  890. ac_prev=libdir ;;
  891. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  892. libdir=$ac_optarg ;;
  893. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  894. | --libexe | --libex | --libe)
  895. ac_prev=libexecdir ;;
  896. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  897. | --libexe=* | --libex=* | --libe=*)
  898. libexecdir=$ac_optarg ;;
  899. -localedir | --localedir | --localedi | --localed | --locale)
  900. ac_prev=localedir ;;
  901. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  902. localedir=$ac_optarg ;;
  903. -localstatedir | --localstatedir | --localstatedi | --localstated \
  904. | --localstate | --localstat | --localsta | --localst | --locals)
  905. ac_prev=localstatedir ;;
  906. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  907. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  908. localstatedir=$ac_optarg ;;
  909. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  910. ac_prev=mandir ;;
  911. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  912. mandir=$ac_optarg ;;
  913. -nfp | --nfp | --nf)
  914. # Obsolete; use --without-fp.
  915. with_fp=no ;;
  916. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  917. | --no-cr | --no-c | -n)
  918. no_create=yes ;;
  919. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  920. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  921. no_recursion=yes ;;
  922. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  923. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  924. | --oldin | --oldi | --old | --ol | --o)
  925. ac_prev=oldincludedir ;;
  926. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  927. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  928. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  929. oldincludedir=$ac_optarg ;;
  930. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  931. ac_prev=prefix ;;
  932. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  933. prefix=$ac_optarg ;;
  934. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  935. | --program-pre | --program-pr | --program-p)
  936. ac_prev=program_prefix ;;
  937. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  938. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  939. program_prefix=$ac_optarg ;;
  940. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  941. | --program-suf | --program-su | --program-s)
  942. ac_prev=program_suffix ;;
  943. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  944. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  945. program_suffix=$ac_optarg ;;
  946. -program-transform-name | --program-transform-name \
  947. | --program-transform-nam | --program-transform-na \
  948. | --program-transform-n | --program-transform- \
  949. | --program-transform | --program-transfor \
  950. | --program-transfo | --program-transf \
  951. | --program-trans | --program-tran \
  952. | --progr-tra | --program-tr | --program-t)
  953. ac_prev=program_transform_name ;;
  954. -program-transform-name=* | --program-transform-name=* \
  955. | --program-transform-nam=* | --program-transform-na=* \
  956. | --program-transform-n=* | --program-transform-=* \
  957. | --program-transform=* | --program-transfor=* \
  958. | --program-transfo=* | --program-transf=* \
  959. | --program-trans=* | --program-tran=* \
  960. | --progr-tra=* | --program-tr=* | --program-t=*)
  961. program_transform_name=$ac_optarg ;;
  962. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  963. ac_prev=pdfdir ;;
  964. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  965. pdfdir=$ac_optarg ;;
  966. -psdir | --psdir | --psdi | --psd | --ps)
  967. ac_prev=psdir ;;
  968. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  969. psdir=$ac_optarg ;;
  970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  971. | -silent | --silent | --silen | --sile | --sil)
  972. silent=yes ;;
  973. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  974. ac_prev=sbindir ;;
  975. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  976. | --sbi=* | --sb=*)
  977. sbindir=$ac_optarg ;;
  978. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  979. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  980. | --sharedst | --shareds | --shared | --share | --shar \
  981. | --sha | --sh)
  982. ac_prev=sharedstatedir ;;
  983. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  984. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  985. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  986. | --sha=* | --sh=*)
  987. sharedstatedir=$ac_optarg ;;
  988. -site | --site | --sit)
  989. ac_prev=site ;;
  990. -site=* | --site=* | --sit=*)
  991. site=$ac_optarg ;;
  992. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  993. ac_prev=srcdir ;;
  994. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  995. srcdir=$ac_optarg ;;
  996. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  997. | --syscon | --sysco | --sysc | --sys | --sy)
  998. ac_prev=sysconfdir ;;
  999. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1000. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1001. sysconfdir=$ac_optarg ;;
  1002. -target | --target | --targe | --targ | --tar | --ta | --t)
  1003. ac_prev=target_alias ;;
  1004. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1005. target_alias=$ac_optarg ;;
  1006. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1007. verbose=yes ;;
  1008. -version | --version | --versio | --versi | --vers | -V)
  1009. ac_init_version=: ;;
  1010. -with-* | --with-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=\$ac_optarg ;;
  1025. -without-* | --without-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid package name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "with_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval with_$ac_useropt=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1056. Try \`$0 --help' for more information"
  1057. ;;
  1058. *=*)
  1059. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1060. # Reject names that are not valid shell variable names.
  1061. case $ac_envvar in #(
  1062. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1063. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1064. esac
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. as_fn_error $? "missing argument to $ac_option"
  1079. fi
  1080. if test -n "$ac_unrecognized_opts"; then
  1081. case $enable_option_checking in
  1082. no) ;;
  1083. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1084. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1085. esac
  1086. fi
  1087. # Check all directory arguments for consistency.
  1088. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1089. datadir sysconfdir sharedstatedir localstatedir includedir \
  1090. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1091. libdir localedir mandir
  1092. do
  1093. eval ac_val=\$$ac_var
  1094. # Remove trailing slashes.
  1095. case $ac_val in
  1096. */ )
  1097. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1098. eval $ac_var=\$ac_val;;
  1099. esac
  1100. # Be sure to have absolute directory names.
  1101. case $ac_val in
  1102. [\\/$]* | ?:[\\/]* ) continue;;
  1103. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1104. esac
  1105. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1106. done
  1107. # There might be people who depend on the old broken behavior: `$host'
  1108. # used to hold the argument of --host etc.
  1109. # FIXME: To remove some day.
  1110. build=$build_alias
  1111. host=$host_alias
  1112. target=$target_alias
  1113. # FIXME: To remove some day.
  1114. if test "x$host_alias" != x; then
  1115. if test "x$build_alias" = x; then
  1116. cross_compiling=maybe
  1117. elif test "x$build_alias" != "x$host_alias"; then
  1118. cross_compiling=yes
  1119. fi
  1120. fi
  1121. ac_tool_prefix=
  1122. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1123. test "$silent" = yes && exec 6>/dev/null
  1124. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1125. ac_ls_di=`ls -di .` &&
  1126. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1127. as_fn_error $? "working directory cannot be determined"
  1128. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1129. as_fn_error $? "pwd does not report name of working directory"
  1130. # Find the source files, if location was not specified.
  1131. if test -z "$srcdir"; then
  1132. ac_srcdir_defaulted=yes
  1133. # Try the directory containing this script, then the parent directory.
  1134. ac_confdir=`$as_dirname -- "$as_myself" ||
  1135. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1136. X"$as_myself" : 'X\(//\)[^/]' \| \
  1137. X"$as_myself" : 'X\(//\)$' \| \
  1138. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1139. $as_echo X"$as_myself" |
  1140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)[^/].*/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)$/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\).*/{
  1153. s//\1/
  1154. q
  1155. }
  1156. s/.*/./; q'`
  1157. srcdir=$ac_confdir
  1158. if test ! -r "$srcdir/$ac_unique_file"; then
  1159. srcdir=..
  1160. fi
  1161. else
  1162. ac_srcdir_defaulted=no
  1163. fi
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1166. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1167. fi
  1168. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1169. ac_abs_confdir=`(
  1170. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1171. pwd)`
  1172. # When building in place, set srcdir=.
  1173. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1174. srcdir=.
  1175. fi
  1176. # Remove unnecessary trailing slashes from srcdir.
  1177. # Double slashes in file names in object file debugging info
  1178. # mess up M-x gdb in Emacs.
  1179. case $srcdir in
  1180. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1181. esac
  1182. for ac_var in $ac_precious_vars; do
  1183. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_env_${ac_var}_value=\$${ac_var}
  1185. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1187. done
  1188. #
  1189. # Report the --help message.
  1190. #
  1191. if test "$ac_init_help" = "long"; then
  1192. # Omit some internal or obsolete options to make the list less imposing.
  1193. # This message is too long to be a string in the A/UX 3.1 sh.
  1194. cat <<_ACEOF
  1195. \`configure' configures xkill 1.0.4 to adapt to many kinds of systems.
  1196. Usage: $0 [OPTION]... [VAR=VALUE]...
  1197. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1198. VAR=VALUE. See below for descriptions of some of the useful variables.
  1199. Defaults for the options are specified in brackets.
  1200. Configuration:
  1201. -h, --help display this help and exit
  1202. --help=short display options specific to this package
  1203. --help=recursive display the short help of all the included packages
  1204. -V, --version display version information and exit
  1205. -q, --quiet, --silent do not print \`checking ...' messages
  1206. --cache-file=FILE cache test results in FILE [disabled]
  1207. -C, --config-cache alias for \`--cache-file=config.cache'
  1208. -n, --no-create do not create output files
  1209. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1210. Installation directories:
  1211. --prefix=PREFIX install architecture-independent files in PREFIX
  1212. [$ac_default_prefix]
  1213. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1214. [PREFIX]
  1215. By default, \`make install' will install all the files in
  1216. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1217. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1218. for instance \`--prefix=\$HOME'.
  1219. For better control, use the options below.
  1220. Fine tuning of the installation directories:
  1221. --bindir=DIR user executables [EPREFIX/bin]
  1222. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1223. --libexecdir=DIR program executables [EPREFIX/libexec]
  1224. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1225. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1226. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1227. --libdir=DIR object code libraries [EPREFIX/lib]
  1228. --includedir=DIR C header files [PREFIX/include]
  1229. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1230. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1231. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1232. --infodir=DIR info documentation [DATAROOTDIR/info]
  1233. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1234. --mandir=DIR man documentation [DATAROOTDIR/man]
  1235. --docdir=DIR documentation root [DATAROOTDIR/doc/xkill]
  1236. --htmldir=DIR html documentation [DOCDIR]
  1237. --dvidir=DIR dvi documentation [DOCDIR]
  1238. --pdfdir=DIR pdf documentation [DOCDIR]
  1239. --psdir=DIR ps documentation [DOCDIR]
  1240. _ACEOF
  1241. cat <<\_ACEOF
  1242. Program names:
  1243. --program-prefix=PREFIX prepend PREFIX to installed program names
  1244. --program-suffix=SUFFIX append SUFFIX to installed program names
  1245. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1246. System types:
  1247. --build=BUILD configure for building on BUILD [guessed]
  1248. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1249. _ACEOF
  1250. fi
  1251. if test -n "$ac_init_help"; then
  1252. case $ac_init_help in
  1253. short | recursive ) echo "Configuration of xkill 1.0.4:";;
  1254. esac
  1255. cat <<\_ACEOF
  1256. Optional Features:
  1257. --disable-option-checking ignore unrecognized --enable/--with options
  1258. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1259. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1260. --enable-maintainer-mode
  1261. enable make rules and dependencies not useful (and
  1262. sometimes confusing) to the casual installer
  1263. --enable-dependency-tracking
  1264. do not reject slow dependency extractors
  1265. --disable-dependency-tracking
  1266. speeds up one-time build
  1267. --disable-selective-werror
  1268. Turn off selective compiler errors. (default:
  1269. enabled)
  1270. --enable-strict-compilation
  1271. Enable all warnings from compiler and make them
  1272. errors (default: disabled)
  1273. --enable-silent-rules less verbose build output (undo: "make V=1")
  1274. --disable-silent-rules verbose build output (undo: "make V=0")
  1275. Some influential environment variables:
  1276. CC C compiler command
  1277. CFLAGS C compiler flags
  1278. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1279. nonstandard directory <lib dir>
  1280. LIBS libraries to pass to the linker, e.g. -l<library>
  1281. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1282. you have headers in a nonstandard directory <include dir>
  1283. CPP C preprocessor
  1284. PKG_CONFIG path to pkg-config utility
  1285. PKG_CONFIG_PATH
  1286. directories to add to pkg-config's search path
  1287. PKG_CONFIG_LIBDIR
  1288. path overriding pkg-config's built-in search path
  1289. XKILL_CFLAGS
  1290. C compiler flags for XKILL, overriding pkg-config
  1291. XKILL_LIBS linker flags for XKILL, overriding pkg-config
  1292. Use these variables to override the choices made by `configure' or to help
  1293. it to find libraries and programs with nonstandard names/locations.
  1294. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1295. _ACEOF
  1296. ac_status=$?
  1297. fi
  1298. if test "$ac_init_help" = "recursive"; then
  1299. # If there are subdirs, report their specific --help.
  1300. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1301. test -d "$ac_dir" ||
  1302. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1303. continue
  1304. ac_builddir=.
  1305. case "$ac_dir" in
  1306. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *)
  1308. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1309. # A ".." for each directory in $ac_dir_suffix.
  1310. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1311. case $ac_top_builddir_sub in
  1312. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1314. esac ;;
  1315. esac
  1316. ac_abs_top_builddir=$ac_pwd
  1317. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1318. # for backward compatibility:
  1319. ac_top_builddir=$ac_top_build_prefix
  1320. case $srcdir in
  1321. .) # We are building in place.
  1322. ac_srcdir=.
  1323. ac_top_srcdir=$ac_top_builddir_sub
  1324. ac_abs_top_srcdir=$ac_pwd ;;
  1325. [\\/]* | ?:[\\/]* ) # Absolute name.
  1326. ac_srcdir=$srcdir$ac_dir_suffix;
  1327. ac_top_srcdir=$srcdir
  1328. ac_abs_top_srcdir=$srcdir ;;
  1329. *) # Relative name.
  1330. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1331. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1332. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1333. esac
  1334. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1335. cd "$ac_dir" || { ac_status=$?; continue; }
  1336. # Check for guested configure.
  1337. if test -f "$ac_srcdir/configure.gnu"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1340. elif test -f "$ac_srcdir/configure"; then
  1341. echo &&
  1342. $SHELL "$ac_srcdir/configure" --help=recursive
  1343. else
  1344. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1345. fi || ac_status=$?
  1346. cd "$ac_pwd" || { ac_status=$?; break; }
  1347. done
  1348. fi
  1349. test -n "$ac_init_help" && exit $ac_status
  1350. if $ac_init_version; then
  1351. cat <<\_ACEOF
  1352. xkill configure 1.0.4
  1353. generated by GNU Autoconf 2.69
  1354. Copyright (C) 2012 Free Software Foundation, Inc.
  1355. This configure script is free software; the Free Software Foundation
  1356. gives unlimited permission to copy, distribute and modify it.
  1357. _ACEOF
  1358. exit
  1359. fi
  1360. ## ------------------------ ##
  1361. ## Autoconf initialization. ##
  1362. ## ------------------------ ##
  1363. # ac_fn_c_try_compile LINENO
  1364. # --------------------------
  1365. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1366. ac_fn_c_try_compile ()
  1367. {
  1368. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1369. rm -f conftest.$ac_objext
  1370. if { { ac_try="$ac_compile"
  1371. case "(($ac_try" in
  1372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1373. *) ac_try_echo=$ac_try;;
  1374. esac
  1375. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1376. $as_echo "$ac_try_echo"; } >&5
  1377. (eval "$ac_compile") 2>conftest.err
  1378. ac_status=$?
  1379. if test -s conftest.err; then
  1380. grep -v '^ *+' conftest.err >conftest.er1
  1381. cat conftest.er1 >&5
  1382. mv -f conftest.er1 conftest.err
  1383. fi
  1384. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1385. test $ac_status = 0; } && {
  1386. test -z "$ac_c_werror_flag" ||
  1387. test ! -s conftest.err
  1388. } && test -s conftest.$ac_objext; then :
  1389. ac_retval=0
  1390. else
  1391. $as_echo "$as_me: failed program was:" >&5
  1392. sed 's/^/| /' conftest.$ac_ext >&5
  1393. ac_retval=1
  1394. fi
  1395. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1396. as_fn_set_status $ac_retval
  1397. } # ac_fn_c_try_compile
  1398. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1399. # ---------------------------------------------
  1400. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1401. # accordingly.
  1402. ac_fn_c_check_decl ()
  1403. {
  1404. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1405. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1406. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1408. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1409. if eval \${$3+:} false; then :
  1410. $as_echo_n "(cached) " >&6
  1411. else
  1412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1413. /* end confdefs.h. */
  1414. $4
  1415. int
  1416. main ()
  1417. {
  1418. #ifndef $as_decl_name
  1419. #ifdef __cplusplus
  1420. (void) $as_decl_use;
  1421. #else
  1422. (void) $as_decl_name;
  1423. #endif
  1424. #endif
  1425. ;
  1426. return 0;
  1427. }
  1428. _ACEOF
  1429. if ac_fn_c_try_compile "$LINENO"; then :
  1430. eval "$3=yes"
  1431. else
  1432. eval "$3=no"
  1433. fi
  1434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1435. fi
  1436. eval ac_res=\$$3
  1437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1438. $as_echo "$ac_res" >&6; }
  1439. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1440. } # ac_fn_c_check_decl
  1441. # ac_fn_c_try_cpp LINENO
  1442. # ----------------------
  1443. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1444. ac_fn_c_try_cpp ()
  1445. {
  1446. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1447. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1448. case "(($ac_try" in
  1449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1450. *) ac_try_echo=$ac_try;;
  1451. esac
  1452. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1453. $as_echo "$ac_try_echo"; } >&5
  1454. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1455. ac_status=$?
  1456. if test -s conftest.err; then
  1457. grep -v '^ *+' conftest.err >conftest.er1
  1458. cat conftest.er1 >&5
  1459. mv -f conftest.er1 conftest.err
  1460. fi
  1461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1462. test $ac_status = 0; } > conftest.i && {
  1463. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1464. test ! -s conftest.err
  1465. }; then :
  1466. ac_retval=0
  1467. else
  1468. $as_echo "$as_me: failed program was:" >&5
  1469. sed 's/^/| /' conftest.$ac_ext >&5
  1470. ac_retval=1
  1471. fi
  1472. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1473. as_fn_set_status $ac_retval
  1474. } # ac_fn_c_try_cpp
  1475. # ac_fn_c_try_run LINENO
  1476. # ----------------------
  1477. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1478. # that executables *can* be run.
  1479. ac_fn_c_try_run ()
  1480. {
  1481. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1482. if { { ac_try="$ac_link"
  1483. case "(($ac_try" in
  1484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1485. *) ac_try_echo=$ac_try;;
  1486. esac
  1487. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1488. $as_echo "$ac_try_echo"; } >&5
  1489. (eval "$ac_link") 2>&5
  1490. ac_status=$?
  1491. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1492. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1493. { { case "(($ac_try" in
  1494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1495. *) ac_try_echo=$ac_try;;
  1496. esac
  1497. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1498. $as_echo "$ac_try_echo"; } >&5
  1499. (eval "$ac_try") 2>&5
  1500. ac_status=$?
  1501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1502. test $ac_status = 0; }; }; then :
  1503. ac_retval=0
  1504. else
  1505. $as_echo "$as_me: program exited with status $ac_status" >&5
  1506. $as_echo "$as_me: failed program was:" >&5
  1507. sed 's/^/| /' conftest.$ac_ext >&5
  1508. ac_retval=$ac_status
  1509. fi
  1510. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1511. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1512. as_fn_set_status $ac_retval
  1513. } # ac_fn_c_try_run
  1514. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1515. # -------------------------------------------------------
  1516. # Tests whether HEADER exists and can be compiled using the include files in
  1517. # INCLUDES, setting the cache variable VAR accordingly.
  1518. ac_fn_c_check_header_compile ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1522. $as_echo_n "checking for $2... " >&6; }
  1523. if eval \${$3+:} false; then :
  1524. $as_echo_n "(cached) " >&6
  1525. else
  1526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1527. /* end confdefs.h. */
  1528. $4
  1529. #include <$2>
  1530. _ACEOF
  1531. if ac_fn_c_try_compile "$LINENO"; then :
  1532. eval "$3=yes"
  1533. else
  1534. eval "$3=no"
  1535. fi
  1536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1537. fi
  1538. eval ac_res=\$$3
  1539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1540. $as_echo "$ac_res" >&6; }
  1541. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1542. } # ac_fn_c_check_header_compile
  1543. # ac_fn_c_try_link LINENO
  1544. # -----------------------
  1545. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1546. ac_fn_c_try_link ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. rm -f conftest.$ac_objext conftest$ac_exeext
  1550. if { { ac_try="$ac_link"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_link") 2>conftest.err
  1558. ac_status=$?
  1559. if test -s conftest.err; then
  1560. grep -v '^ *+' conftest.err >conftest.er1
  1561. cat conftest.er1 >&5
  1562. mv -f conftest.er1 conftest.err
  1563. fi
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && {
  1566. test -z "$ac_c_werror_flag" ||
  1567. test ! -s conftest.err
  1568. } && test -s conftest$ac_exeext && {
  1569. test "$cross_compiling" = yes ||
  1570. test -x conftest$ac_exeext
  1571. }; then :
  1572. ac_retval=0
  1573. else
  1574. $as_echo "$as_me: failed program was:" >&5
  1575. sed 's/^/| /' conftest.$ac_ext >&5
  1576. ac_retval=1
  1577. fi
  1578. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1579. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1580. # interfere with the next link command; also delete a directory that is
  1581. # left behind by Apple's compiler. We do this before executing the actions.
  1582. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1583. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1584. as_fn_set_status $ac_retval
  1585. } # ac_fn_c_try_link
  1586. cat >config.log <<_ACEOF
  1587. This file contains any messages produced by compilers while
  1588. running configure, to aid debugging if configure makes a mistake.
  1589. It was created by xkill $as_me 1.0.4, which was
  1590. generated by GNU Autoconf 2.69. Invocation command line was
  1591. $ $0 $@
  1592. _ACEOF
  1593. exec 5>>config.log
  1594. {
  1595. cat <<_ASUNAME
  1596. ## --------- ##
  1597. ## Platform. ##
  1598. ## --------- ##
  1599. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1600. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1601. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1602. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1603. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1604. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1605. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1606. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1607. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1608. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1609. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1610. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1611. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1612. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1613. _ASUNAME
  1614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1615. for as_dir in $PATH
  1616. do
  1617. IFS=$as_save_IFS
  1618. test -z "$as_dir" && as_dir=.
  1619. $as_echo "PATH: $as_dir"
  1620. done
  1621. IFS=$as_save_IFS
  1622. } >&5
  1623. cat >&5 <<_ACEOF
  1624. ## ----------- ##
  1625. ## Core tests. ##
  1626. ## ----------- ##
  1627. _ACEOF
  1628. # Keep a trace of the command line.
  1629. # Strip out --no-create and --no-recursion so they do not pile up.
  1630. # Strip out --silent because we don't want to record it for future runs.
  1631. # Also quote any args containing shell meta-characters.
  1632. # Make two passes to allow for proper duplicate-argument suppression.
  1633. ac_configure_args=
  1634. ac_configure_args0=
  1635. ac_configure_args1=
  1636. ac_must_keep_next=false
  1637. for ac_pass in 1 2
  1638. do
  1639. for ac_arg
  1640. do
  1641. case $ac_arg in
  1642. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1643. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1644. | -silent | --silent | --silen | --sile | --sil)
  1645. continue ;;
  1646. *\'*)
  1647. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1648. esac
  1649. case $ac_pass in
  1650. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1651. 2)
  1652. as_fn_append ac_configure_args1 " '$ac_arg'"
  1653. if test $ac_must_keep_next = true; then
  1654. ac_must_keep_next=false # Got value, back to normal.
  1655. else
  1656. case $ac_arg in
  1657. *=* | --config-cache | -C | -disable-* | --disable-* \
  1658. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1659. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1660. | -with-* | --with-* | -without-* | --without-* | --x)
  1661. case "$ac_configure_args0 " in
  1662. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1663. esac
  1664. ;;
  1665. -* ) ac_must_keep_next=true ;;
  1666. esac
  1667. fi
  1668. as_fn_append ac_configure_args " '$ac_arg'"
  1669. ;;
  1670. esac
  1671. done
  1672. done
  1673. { ac_configure_args0=; unset ac_configure_args0;}
  1674. { ac_configure_args1=; unset ac_configure_args1;}
  1675. # When interrupted or exit'd, cleanup temporary files, and complete
  1676. # config.log. We remove comments because anyway the quotes in there
  1677. # would cause problems or look ugly.
  1678. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1679. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1680. trap 'exit_status=$?
  1681. # Save into config.log some information that might help in debugging.
  1682. {
  1683. echo
  1684. $as_echo "## ---------------- ##
  1685. ## Cache variables. ##
  1686. ## ---------------- ##"
  1687. echo
  1688. # The following way of writing the cache mishandles newlines in values,
  1689. (
  1690. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1691. eval ac_val=\$$ac_var
  1692. case $ac_val in #(
  1693. *${as_nl}*)
  1694. case $ac_var in #(
  1695. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1696. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1697. esac
  1698. case $ac_var in #(
  1699. _ | IFS | as_nl) ;; #(
  1700. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1701. *) { eval $ac_var=; unset $ac_var;} ;;
  1702. esac ;;
  1703. esac
  1704. done
  1705. (set) 2>&1 |
  1706. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1707. *${as_nl}ac_space=\ *)
  1708. sed -n \
  1709. "s/'\''/'\''\\\\'\'''\''/g;
  1710. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1711. ;; #(
  1712. *)
  1713. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1714. ;;
  1715. esac |
  1716. sort
  1717. )
  1718. echo
  1719. $as_echo "## ----------------- ##
  1720. ## Output variables. ##
  1721. ## ----------------- ##"
  1722. echo
  1723. for ac_var in $ac_subst_vars
  1724. do
  1725. eval ac_val=\$$ac_var
  1726. case $ac_val in
  1727. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1728. esac
  1729. $as_echo "$ac_var='\''$ac_val'\''"
  1730. done | sort
  1731. echo
  1732. if test -n "$ac_subst_files"; then
  1733. $as_echo "## ------------------- ##
  1734. ## File substitutions. ##
  1735. ## ------------------- ##"
  1736. echo
  1737. for ac_var in $ac_subst_files
  1738. do
  1739. eval ac_val=\$$ac_var
  1740. case $ac_val in
  1741. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1742. esac
  1743. $as_echo "$ac_var='\''$ac_val'\''"
  1744. done | sort
  1745. echo
  1746. fi
  1747. if test -s confdefs.h; then
  1748. $as_echo "## ----------- ##
  1749. ## confdefs.h. ##
  1750. ## ----------- ##"
  1751. echo
  1752. cat confdefs.h
  1753. echo
  1754. fi
  1755. test "$ac_signal" != 0 &&
  1756. $as_echo "$as_me: caught signal $ac_signal"
  1757. $as_echo "$as_me: exit $exit_status"
  1758. } >&5
  1759. rm -f core *.core core.conftest.* &&
  1760. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1761. exit $exit_status
  1762. ' 0
  1763. for ac_signal in 1 2 13 15; do
  1764. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1765. done
  1766. ac_signal=0
  1767. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1768. rm -f -r conftest* confdefs.h
  1769. $as_echo "/* confdefs.h */" > confdefs.h
  1770. # Predefined preprocessor variables.
  1771. cat >>confdefs.h <<_ACEOF
  1772. #define PACKAGE_NAME "$PACKAGE_NAME"
  1773. _ACEOF
  1774. cat >>confdefs.h <<_ACEOF
  1775. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1776. _ACEOF
  1777. cat >>confdefs.h <<_ACEOF
  1778. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1779. _ACEOF
  1780. cat >>confdefs.h <<_ACEOF
  1781. #define PACKAGE_STRING "$PACKAGE_STRING"
  1782. _ACEOF
  1783. cat >>confdefs.h <<_ACEOF
  1784. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1785. _ACEOF
  1786. cat >>confdefs.h <<_ACEOF
  1787. #define PACKAGE_URL "$PACKAGE_URL"
  1788. _ACEOF
  1789. # Let the site file select an alternate cache file if it wants to.
  1790. # Prefer an explicitly selected file to automatically selected ones.
  1791. ac_site_file1=NONE
  1792. ac_site_file2=NONE
  1793. if test -n "$CONFIG_SITE"; then
  1794. # We do not want a PATH search for config.site.
  1795. case $CONFIG_SITE in #((
  1796. -*) ac_site_file1=./$CONFIG_SITE;;
  1797. */*) ac_site_file1=$CONFIG_SITE;;
  1798. *) ac_site_file1=./$CONFIG_SITE;;
  1799. esac
  1800. elif test "x$prefix" != xNONE; then
  1801. ac_site_file1=$prefix/share/config.site
  1802. ac_site_file2=$prefix/etc/config.site
  1803. else
  1804. ac_site_file1=$ac_default_prefix/share/config.site
  1805. ac_site_file2=$ac_default_prefix/etc/config.site
  1806. fi
  1807. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1808. do
  1809. test "x$ac_site_file" = xNONE && continue
  1810. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1811. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1812. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1813. sed 's/^/| /' "$ac_site_file" >&5
  1814. . "$ac_site_file" \
  1815. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1816. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1817. as_fn_error $? "failed to load site script $ac_site_file
  1818. See \`config.log' for more details" "$LINENO" 5; }
  1819. fi
  1820. done
  1821. if test -r "$cache_file"; then
  1822. # Some versions of bash will fail to source /dev/null (special files
  1823. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1824. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1826. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1827. case $cache_file in
  1828. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1829. *) . "./$cache_file";;
  1830. esac
  1831. fi
  1832. else
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1834. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1835. >$cache_file
  1836. fi
  1837. # Check that the precious variables saved in the cache have kept the same
  1838. # value.
  1839. ac_cache_corrupted=false
  1840. for ac_var in $ac_precious_vars; do
  1841. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1842. eval ac_new_set=\$ac_env_${ac_var}_set
  1843. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1844. eval ac_new_val=\$ac_env_${ac_var}_value
  1845. case $ac_old_set,$ac_new_set in
  1846. set,)
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1848. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1849. ac_cache_corrupted=: ;;
  1850. ,set)
  1851. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1852. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1853. ac_cache_corrupted=: ;;
  1854. ,);;
  1855. *)
  1856. if test "x$ac_old_val" != "x$ac_new_val"; then
  1857. # differences in whitespace do not lead to failure.
  1858. ac_old_val_w=`echo x $ac_old_val`
  1859. ac_new_val_w=`echo x $ac_new_val`
  1860. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1862. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1863. ac_cache_corrupted=:
  1864. else
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1866. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1867. eval $ac_var=\$ac_old_val
  1868. fi
  1869. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1870. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1871. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1872. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1873. fi;;
  1874. esac
  1875. # Pass precious variables to config.status.
  1876. if test "$ac_new_set" = set; then
  1877. case $ac_new_val in
  1878. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1879. *) ac_arg=$ac_var=$ac_new_val ;;
  1880. esac
  1881. case " $ac_configure_args " in
  1882. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1883. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1884. esac
  1885. fi
  1886. done
  1887. if $ac_cache_corrupted; then
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1889. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1890. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1891. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1892. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1893. fi
  1894. ## -------------------- ##
  1895. ## Main body of script. ##
  1896. ## -------------------- ##
  1897. ac_ext=c
  1898. ac_cpp='$CPP $CPPFLAGS'
  1899. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1900. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1901. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1902. ac_config_headers="$ac_config_headers config.h"
  1903. # Initialize Automake
  1904. am__api_version='1.12'
  1905. ac_aux_dir=
  1906. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1907. if test -f "$ac_dir/install-sh"; then
  1908. ac_aux_dir=$ac_dir
  1909. ac_install_sh="$ac_aux_dir/install-sh -c"
  1910. break
  1911. elif test -f "$ac_dir/install.sh"; then
  1912. ac_aux_dir=$ac_dir
  1913. ac_install_sh="$ac_aux_dir/install.sh -c"
  1914. break
  1915. elif test -f "$ac_dir/shtool"; then
  1916. ac_aux_dir=$ac_dir
  1917. ac_install_sh="$ac_aux_dir/shtool install -c"
  1918. break
  1919. fi
  1920. done
  1921. if test -z "$ac_aux_dir"; then
  1922. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1923. fi
  1924. # These three variables are undocumented and unsupported,
  1925. # and are intended to be withdrawn in a future Autoconf release.
  1926. # They can cause serious problems if a builder's source tree is in a directory
  1927. # whose full name contains unusual characters.
  1928. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1929. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1930. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1931. # Find a good install program. We prefer a C program (faster),
  1932. # so one script is as good as another. But avoid the broken or
  1933. # incompatible versions:
  1934. # SysV /etc/install, /usr/sbin/install
  1935. # SunOS /usr/etc/install
  1936. # IRIX /sbin/install
  1937. # AIX /bin/install
  1938. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1939. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1940. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1941. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1942. # OS/2's system install, which has a completely different semantic
  1943. # ./install, which can be erroneously created by make from ./install.sh.
  1944. # Reject install programs that cannot install multiple files.
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1946. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1947. if test -z "$INSTALL"; then
  1948. if ${ac_cv_path_install+:} false; then :
  1949. $as_echo_n "(cached) " >&6
  1950. else
  1951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1952. for as_dir in $PATH
  1953. do
  1954. IFS=$as_save_IFS
  1955. test -z "$as_dir" && as_dir=.
  1956. # Account for people who put trailing slashes in PATH elements.
  1957. case $as_dir/ in #((
  1958. ./ | .// | /[cC]/* | \
  1959. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1960. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1961. /usr/ucb/* ) ;;
  1962. *)
  1963. # OSF1 and SCO ODT 3.0 have their own names for install.
  1964. # Don't use installbsd from OSF since it installs stuff as root
  1965. # by default.
  1966. for ac_prog in ginstall scoinst install; do
  1967. for ac_exec_ext in '' $ac_executable_extensions; do
  1968. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1969. if test $ac_prog = install &&
  1970. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1971. # AIX install. It has an incompatible calling convention.
  1972. :
  1973. elif test $ac_prog = install &&
  1974. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1975. # program-specific install script used by HP pwplus--don't use.
  1976. :
  1977. else
  1978. rm -rf conftest.one conftest.two conftest.dir
  1979. echo one > conftest.one
  1980. echo two > conftest.two
  1981. mkdir conftest.dir
  1982. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1983. test -s conftest.one && test -s conftest.two &&
  1984. test -s conftest.dir/conftest.one &&
  1985. test -s conftest.dir/conftest.two
  1986. then
  1987. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1988. break 3
  1989. fi
  1990. fi
  1991. fi
  1992. done
  1993. done
  1994. ;;
  1995. esac
  1996. done
  1997. IFS=$as_save_IFS
  1998. rm -rf conftest.one conftest.two conftest.dir
  1999. fi
  2000. if test "${ac_cv_path_install+set}" = set; then
  2001. INSTALL=$ac_cv_path_install
  2002. else
  2003. # As a last resort, use the slow shell script. Don't cache a
  2004. # value for INSTALL within a source directory, because that will
  2005. # break other packages using the cache if that directory is
  2006. # removed, or if the value is a relative name.
  2007. INSTALL=$ac_install_sh
  2008. fi
  2009. fi
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2011. $as_echo "$INSTALL" >&6; }
  2012. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2013. # It thinks the first close brace ends the variable substitution.
  2014. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2015. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2016. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2018. $as_echo_n "checking whether build environment is sane... " >&6; }
  2019. # Reject unsafe characters in $srcdir or the absolute working directory
  2020. # name. Accept space and tab only in the latter.
  2021. am_lf='
  2022. '
  2023. case `pwd` in
  2024. *[\\\"\#\$\&\'\`$am_lf]*)
  2025. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2026. esac
  2027. case $srcdir in
  2028. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2029. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2030. esac
  2031. # Do 'set' in a subshell so we don't clobber the current shell's
  2032. # arguments. Must try -L first in case configure is actually a
  2033. # symlink; some systems play weird games with the mod time of symlinks
  2034. # (eg FreeBSD returns the mod time of the symlink's containing
  2035. # directory).
  2036. if (
  2037. am_has_slept=no
  2038. for am_try in 1 2; do
  2039. echo "timestamp, slept: $am_has_slept" > conftest.file
  2040. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2041. if test "$*" = "X"; then
  2042. # -L didn't work.
  2043. set X `ls -t "$srcdir/configure" conftest.file`
  2044. fi
  2045. if test "$*" != "X $srcdir/configure conftest.file" \
  2046. && test "$*" != "X conftest.file $srcdir/configure"; then
  2047. # If neither matched, then we have a broken ls. This can happen
  2048. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2049. # broken ls alias from the environment. This has actually
  2050. # happened. Such a system could not be considered "sane".
  2051. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2052. alias in your environment" "$LINENO" 5
  2053. fi
  2054. if test "$2" = conftest.file || test $am_try -eq 2; then
  2055. break
  2056. fi
  2057. # Just in case.
  2058. sleep 1
  2059. am_has_slept=yes
  2060. done
  2061. test "$2" = conftest.file
  2062. )
  2063. then
  2064. # Ok.
  2065. :
  2066. else
  2067. as_fn_error $? "newly created file is older than distributed files!
  2068. Check your system clock" "$LINENO" 5
  2069. fi
  2070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2071. $as_echo "yes" >&6; }
  2072. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2073. # generated files are strictly newer.
  2074. am_sleep_pid=
  2075. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2076. ( sleep 1 ) &
  2077. am_sleep_pid=$!
  2078. fi
  2079. rm -f conftest.file
  2080. test "$program_prefix" != NONE &&
  2081. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2082. # Use a double $ so make ignores it.
  2083. test "$program_suffix" != NONE &&
  2084. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2085. # Double any \ or $.
  2086. # By default was `s,x,x', remove it if useless.
  2087. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2088. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2089. # expand $ac_aux_dir to an absolute path
  2090. am_aux_dir=`cd $ac_aux_dir && pwd`
  2091. if test x"${MISSING+set}" != xset; then
  2092. case $am_aux_dir in
  2093. *\ * | *\ *)
  2094. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2095. *)
  2096. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2097. esac
  2098. fi
  2099. # Use eval to expand $SHELL
  2100. if eval "$MISSING --run true"; then
  2101. am_missing_run="$MISSING --run "
  2102. else
  2103. am_missing_run=
  2104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2105. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2106. fi
  2107. if test x"${install_sh}" != xset; then
  2108. case $am_aux_dir in
  2109. *\ * | *\ *)
  2110. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2111. *)
  2112. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2113. esac
  2114. fi
  2115. # Installed binaries are usually stripped using 'strip' when the user
  2116. # run "make install-strip". However 'strip' might not be the right
  2117. # tool to use in cross-compilation environments, therefore Automake
  2118. # will honor the 'STRIP' environment variable to overrule this program.
  2119. if test "$cross_compiling" != no; then
  2120. if test -n "$ac_tool_prefix"; then
  2121. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2122. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2124. $as_echo_n "checking for $ac_word... " >&6; }
  2125. if ${ac_cv_prog_STRIP+:} false; then :
  2126. $as_echo_n "(cached) " >&6
  2127. else
  2128. if test -n "$STRIP"; then
  2129. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2130. else
  2131. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2132. for as_dir in $PATH
  2133. do
  2134. IFS=$as_save_IFS
  2135. test -z "$as_dir" && as_dir=.
  2136. for ac_exec_ext in '' $ac_executable_extensions; do
  2137. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2138. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2139. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2140. break 2
  2141. fi
  2142. done
  2143. done
  2144. IFS=$as_save_IFS
  2145. fi
  2146. fi
  2147. STRIP=$ac_cv_prog_STRIP
  2148. if test -n "$STRIP"; then
  2149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2150. $as_echo "$STRIP" >&6; }
  2151. else
  2152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2153. $as_echo "no" >&6; }
  2154. fi
  2155. fi
  2156. if test -z "$ac_cv_prog_STRIP"; then
  2157. ac_ct_STRIP=$STRIP
  2158. # Extract the first word of "strip", so it can be a program name with args.
  2159. set dummy strip; ac_word=$2
  2160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2161. $as_echo_n "checking for $ac_word... " >&6; }
  2162. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. if test -n "$ac_ct_STRIP"; then
  2166. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2167. else
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. for ac_exec_ext in '' $ac_executable_extensions; do
  2174. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2175. ac_cv_prog_ac_ct_STRIP="strip"
  2176. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177. break 2
  2178. fi
  2179. done
  2180. done
  2181. IFS=$as_save_IFS
  2182. fi
  2183. fi
  2184. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2185. if test -n "$ac_ct_STRIP"; then
  2186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2187. $as_echo "$ac_ct_STRIP" >&6; }
  2188. else
  2189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2190. $as_echo "no" >&6; }
  2191. fi
  2192. if test "x$ac_ct_STRIP" = x; then
  2193. STRIP=":"
  2194. else
  2195. case $cross_compiling:$ac_tool_warned in
  2196. yes:)
  2197. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2198. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2199. ac_tool_warned=yes ;;
  2200. esac
  2201. STRIP=$ac_ct_STRIP
  2202. fi
  2203. else
  2204. STRIP="$ac_cv_prog_STRIP"
  2205. fi
  2206. fi
  2207. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2209. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2210. if test -z "$MKDIR_P"; then
  2211. if ${ac_cv_path_mkdir+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2215. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2216. do
  2217. IFS=$as_save_IFS
  2218. test -z "$as_dir" && as_dir=.
  2219. for ac_prog in mkdir gmkdir; do
  2220. for ac_exec_ext in '' $ac_executable_extensions; do
  2221. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2222. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2223. 'mkdir (GNU coreutils) '* | \
  2224. 'mkdir (coreutils) '* | \
  2225. 'mkdir (fileutils) '4.1*)
  2226. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2227. break 3;;
  2228. esac
  2229. done
  2230. done
  2231. done
  2232. IFS=$as_save_IFS
  2233. fi
  2234. test -d ./--version && rmdir ./--version
  2235. if test "${ac_cv_path_mkdir+set}" = set; then
  2236. MKDIR_P="$ac_cv_path_mkdir -p"
  2237. else
  2238. # As a last resort, use the slow shell script. Don't cache a
  2239. # value for MKDIR_P within a source directory, because that will
  2240. # break other packages using the cache if that directory is
  2241. # removed, or if the value is a relative name.
  2242. MKDIR_P="$ac_install_sh -d"
  2243. fi
  2244. fi
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2246. $as_echo "$MKDIR_P" >&6; }
  2247. for ac_prog in gawk mawk nawk awk
  2248. do
  2249. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2250. set dummy $ac_prog; ac_word=$2
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2252. $as_echo_n "checking for $ac_word... " >&6; }
  2253. if ${ac_cv_prog_AWK+:} false; then :
  2254. $as_echo_n "(cached) " >&6
  2255. else
  2256. if test -n "$AWK"; then
  2257. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2266. ac_cv_prog_AWK="$ac_prog"
  2267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. AWK=$ac_cv_prog_AWK
  2276. if test -n "$AWK"; then
  2277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2278. $as_echo "$AWK" >&6; }
  2279. else
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2281. $as_echo "no" >&6; }
  2282. fi
  2283. test -n "$AWK" && break
  2284. done
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2286. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2287. set x ${MAKE-make}
  2288. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2289. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2290. $as_echo_n "(cached) " >&6
  2291. else
  2292. cat >conftest.make <<\_ACEOF
  2293. SHELL = /bin/sh
  2294. all:
  2295. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2296. _ACEOF
  2297. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2298. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2299. *@@@%%%=?*=@@@%%%*)
  2300. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2301. *)
  2302. eval ac_cv_prog_make_${ac_make}_set=no;;
  2303. esac
  2304. rm -f conftest.make
  2305. fi
  2306. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2308. $as_echo "yes" >&6; }
  2309. SET_MAKE=
  2310. else
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2312. $as_echo "no" >&6; }
  2313. SET_MAKE="MAKE=${MAKE-make}"
  2314. fi
  2315. rm -rf .tst 2>/dev/null
  2316. mkdir .tst 2>/dev/null
  2317. if test -d .tst; then
  2318. am__leading_dot=.
  2319. else
  2320. am__leading_dot=_
  2321. fi
  2322. rmdir .tst 2>/dev/null
  2323. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2324. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2325. # is not polluted with repeated "-I."
  2326. am__isrc=' -I$(srcdir)'
  2327. # test to see if srcdir already configured
  2328. if test -f $srcdir/config.status; then
  2329. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2330. fi
  2331. fi
  2332. # test whether we have cygpath
  2333. if test -z "$CYGPATH_W"; then
  2334. if (cygpath --version) >/dev/null 2>/dev/null; then
  2335. CYGPATH_W='cygpath -w'
  2336. else
  2337. CYGPATH_W=echo
  2338. fi
  2339. fi
  2340. # Define the identity of the package.
  2341. PACKAGE='xkill'
  2342. VERSION='1.0.4'
  2343. cat >>confdefs.h <<_ACEOF
  2344. #define PACKAGE "$PACKAGE"
  2345. _ACEOF
  2346. cat >>confdefs.h <<_ACEOF
  2347. #define VERSION "$VERSION"
  2348. _ACEOF
  2349. # Some tools Automake needs.
  2350. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2351. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2352. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2353. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2354. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2355. # For better backward compatibility. To be removed once Automake 1.9.x
  2356. # dies out for good. For more background, see:
  2357. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2358. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2359. mkdir_p='$(MKDIR_P)'
  2360. # We need awk for the "check" target. The system "awk" is bad on
  2361. # some platforms.
  2362. # Always define AMTAR for backward compatibility. Yes, it's still used
  2363. # in the wild :-( We should find a proper way to deprecate it ...
  2364. AMTAR='$${TAR-tar}'
  2365. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2367. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2368. # Check whether --enable-maintainer-mode was given.
  2369. if test "${enable_maintainer_mode+set}" = set; then :
  2370. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2371. else
  2372. USE_MAINTAINER_MODE=no
  2373. fi
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2375. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2376. if test $USE_MAINTAINER_MODE = yes; then
  2377. MAINTAINER_MODE_TRUE=
  2378. MAINTAINER_MODE_FALSE='#'
  2379. else
  2380. MAINTAINER_MODE_TRUE='#'
  2381. MAINTAINER_MODE_FALSE=
  2382. fi
  2383. MAINT=$MAINTAINER_MODE_TRUE
  2384. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2385. DEPDIR="${am__leading_dot}deps"
  2386. ac_config_commands="$ac_config_commands depfiles"
  2387. am_make=${MAKE-make}
  2388. cat > confinc << 'END'
  2389. am__doit:
  2390. @echo this is the am__doit target
  2391. .PHONY: am__doit
  2392. END
  2393. # If we don't find an include directive, just comment out the code.
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2395. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2396. am__include="#"
  2397. am__quote=
  2398. _am_result=none
  2399. # First try GNU make style include.
  2400. echo "include confinc" > confmf
  2401. # Ignore all kinds of additional output from 'make'.
  2402. case `$am_make -s -f confmf 2> /dev/null` in #(
  2403. *the\ am__doit\ target*)
  2404. am__include=include
  2405. am__quote=
  2406. _am_result=GNU
  2407. ;;
  2408. esac
  2409. # Now try BSD make style include.
  2410. if test "$am__include" = "#"; then
  2411. echo '.include "confinc"' > confmf
  2412. case `$am_make -s -f confmf 2> /dev/null` in #(
  2413. *the\ am__doit\ target*)
  2414. am__include=.include
  2415. am__quote="\""
  2416. _am_result=BSD
  2417. ;;
  2418. esac
  2419. fi
  2420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2421. $as_echo "$_am_result" >&6; }
  2422. rm -f confinc confmf
  2423. # Check whether --enable-dependency-tracking was given.
  2424. if test "${enable_dependency_tracking+set}" = set; then :
  2425. enableval=$enable_dependency_tracking;
  2426. fi
  2427. if test "x$enable_dependency_tracking" != xno; then
  2428. am_depcomp="$ac_aux_dir/depcomp"
  2429. AMDEPBACKSLASH='\'
  2430. am__nodep='_no'
  2431. fi
  2432. if test "x$enable_dependency_tracking" != xno; then
  2433. AMDEP_TRUE=
  2434. AMDEP_FALSE='#'
  2435. else
  2436. AMDEP_TRUE='#'
  2437. AMDEP_FALSE=
  2438. fi
  2439. ac_ext=c
  2440. ac_cpp='$CPP $CPPFLAGS'
  2441. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2442. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2443. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2444. if test -n "$ac_tool_prefix"; then
  2445. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2446. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2448. $as_echo_n "checking for $ac_word... " >&6; }
  2449. if ${ac_cv_prog_CC+:} false; then :
  2450. $as_echo_n "(cached) " >&6
  2451. else
  2452. if test -n "$CC"; then
  2453. ac_cv_prog_CC="$CC" # Let the user override the test.
  2454. else
  2455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2456. for as_dir in $PATH
  2457. do
  2458. IFS=$as_save_IFS
  2459. test -z "$as_dir" && as_dir=.
  2460. for ac_exec_ext in '' $ac_executable_extensions; do
  2461. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2462. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2463. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2464. break 2
  2465. fi
  2466. done
  2467. done
  2468. IFS=$as_save_IFS
  2469. fi
  2470. fi
  2471. CC=$ac_cv_prog_CC
  2472. if test -n "$CC"; then
  2473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2474. $as_echo "$CC" >&6; }
  2475. else
  2476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2477. $as_echo "no" >&6; }
  2478. fi
  2479. fi
  2480. if test -z "$ac_cv_prog_CC"; then
  2481. ac_ct_CC=$CC
  2482. # Extract the first word of "gcc", so it can be a program name with args.
  2483. set dummy gcc; ac_word=$2
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2485. $as_echo_n "checking for $ac_word... " >&6; }
  2486. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2487. $as_echo_n "(cached) " >&6
  2488. else
  2489. if test -n "$ac_ct_CC"; then
  2490. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2491. else
  2492. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2493. for as_dir in $PATH
  2494. do
  2495. IFS=$as_save_IFS
  2496. test -z "$as_dir" && as_dir=.
  2497. for ac_exec_ext in '' $ac_executable_extensions; do
  2498. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2499. ac_cv_prog_ac_ct_CC="gcc"
  2500. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2501. break 2
  2502. fi
  2503. done
  2504. done
  2505. IFS=$as_save_IFS
  2506. fi
  2507. fi
  2508. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2509. if test -n "$ac_ct_CC"; then
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2511. $as_echo "$ac_ct_CC" >&6; }
  2512. else
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2514. $as_echo "no" >&6; }
  2515. fi
  2516. if test "x$ac_ct_CC" = x; then
  2517. CC=""
  2518. else
  2519. case $cross_compiling:$ac_tool_warned in
  2520. yes:)
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2522. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2523. ac_tool_warned=yes ;;
  2524. esac
  2525. CC=$ac_ct_CC
  2526. fi
  2527. else
  2528. CC="$ac_cv_prog_CC"
  2529. fi
  2530. if test -z "$CC"; then
  2531. if test -n "$ac_tool_prefix"; then
  2532. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2533. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2535. $as_echo_n "checking for $ac_word... " >&6; }
  2536. if ${ac_cv_prog_CC+:} false; then :
  2537. $as_echo_n "(cached) " >&6
  2538. else
  2539. if test -n "$CC"; then
  2540. ac_cv_prog_CC="$CC" # Let the user override the test.
  2541. else
  2542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2543. for as_dir in $PATH
  2544. do
  2545. IFS=$as_save_IFS
  2546. test -z "$as_dir" && as_dir=.
  2547. for ac_exec_ext in '' $ac_executable_extensions; do
  2548. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2549. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2551. break 2
  2552. fi
  2553. done
  2554. done
  2555. IFS=$as_save_IFS
  2556. fi
  2557. fi
  2558. CC=$ac_cv_prog_CC
  2559. if test -n "$CC"; then
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2561. $as_echo "$CC" >&6; }
  2562. else
  2563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2564. $as_echo "no" >&6; }
  2565. fi
  2566. fi
  2567. fi
  2568. if test -z "$CC"; then
  2569. # Extract the first word of "cc", so it can be a program name with args.
  2570. set dummy cc; ac_word=$2
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2572. $as_echo_n "checking for $ac_word... " >&6; }
  2573. if ${ac_cv_prog_CC+:} false; then :
  2574. $as_echo_n "(cached) " >&6
  2575. else
  2576. if test -n "$CC"; then
  2577. ac_cv_prog_CC="$CC" # Let the user override the test.
  2578. else
  2579. ac_prog_rejected=no
  2580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2581. for as_dir in $PATH
  2582. do
  2583. IFS=$as_save_IFS
  2584. test -z "$as_dir" && as_dir=.
  2585. for ac_exec_ext in '' $ac_executable_extensions; do
  2586. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2587. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2588. ac_prog_rejected=yes
  2589. continue
  2590. fi
  2591. ac_cv_prog_CC="cc"
  2592. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2593. break 2
  2594. fi
  2595. done
  2596. done
  2597. IFS=$as_save_IFS
  2598. if test $ac_prog_rejected = yes; then
  2599. # We found a bogon in the path, so make sure we never use it.
  2600. set dummy $ac_cv_prog_CC
  2601. shift
  2602. if test $# != 0; then
  2603. # We chose a different compiler from the bogus one.
  2604. # However, it has the same basename, so the bogon will be chosen
  2605. # first if we set CC to just the basename; use the full file name.
  2606. shift
  2607. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2608. fi
  2609. fi
  2610. fi
  2611. fi
  2612. CC=$ac_cv_prog_CC
  2613. if test -n "$CC"; then
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2615. $as_echo "$CC" >&6; }
  2616. else
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2618. $as_echo "no" >&6; }
  2619. fi
  2620. fi
  2621. if test -z "$CC"; then
  2622. if test -n "$ac_tool_prefix"; then
  2623. for ac_prog in cl.exe
  2624. do
  2625. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2626. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2628. $as_echo_n "checking for $ac_word... " >&6; }
  2629. if ${ac_cv_prog_CC+:} false; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. if test -n "$CC"; then
  2633. ac_cv_prog_CC="$CC" # Let the user override the test.
  2634. else
  2635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2636. for as_dir in $PATH
  2637. do
  2638. IFS=$as_save_IFS
  2639. test -z "$as_dir" && as_dir=.
  2640. for ac_exec_ext in '' $ac_executable_extensions; do
  2641. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2642. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2643. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2644. break 2
  2645. fi
  2646. done
  2647. done
  2648. IFS=$as_save_IFS
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. test -n "$CC" && break
  2660. done
  2661. fi
  2662. if test -z "$CC"; then
  2663. ac_ct_CC=$CC
  2664. for ac_prog in cl.exe
  2665. do
  2666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2667. set dummy $ac_prog; ac_word=$2
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2669. $as_echo_n "checking for $ac_word... " >&6; }
  2670. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. if test -n "$ac_ct_CC"; then
  2674. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2675. else
  2676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2677. for as_dir in $PATH
  2678. do
  2679. IFS=$as_save_IFS
  2680. test -z "$as_dir" && as_dir=.
  2681. for ac_exec_ext in '' $ac_executable_extensions; do
  2682. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2683. ac_cv_prog_ac_ct_CC="$ac_prog"
  2684. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2685. break 2
  2686. fi
  2687. done
  2688. done
  2689. IFS=$as_save_IFS
  2690. fi
  2691. fi
  2692. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2693. if test -n "$ac_ct_CC"; then
  2694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2695. $as_echo "$ac_ct_CC" >&6; }
  2696. else
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2698. $as_echo "no" >&6; }
  2699. fi
  2700. test -n "$ac_ct_CC" && break
  2701. done
  2702. if test "x$ac_ct_CC" = x; then
  2703. CC=""
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CC=$ac_ct_CC
  2712. fi
  2713. fi
  2714. fi
  2715. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2716. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2717. as_fn_error $? "no acceptable C compiler found in \$PATH
  2718. See \`config.log' for more details" "$LINENO" 5; }
  2719. # Provide some information about the compiler.
  2720. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2721. set X $ac_compile
  2722. ac_compiler=$2
  2723. for ac_option in --version -v -V -qversion; do
  2724. { { ac_try="$ac_compiler $ac_option >&5"
  2725. case "(($ac_try" in
  2726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2727. *) ac_try_echo=$ac_try;;
  2728. esac
  2729. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2730. $as_echo "$ac_try_echo"; } >&5
  2731. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2732. ac_status=$?
  2733. if test -s conftest.err; then
  2734. sed '10a\
  2735. ... rest of stderr output deleted ...
  2736. 10q' conftest.err >conftest.er1
  2737. cat conftest.er1 >&5
  2738. fi
  2739. rm -f conftest.er1 conftest.err
  2740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2741. test $ac_status = 0; }
  2742. done
  2743. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2744. /* end confdefs.h. */
  2745. int
  2746. main ()
  2747. {
  2748. ;
  2749. return 0;
  2750. }
  2751. _ACEOF
  2752. ac_clean_files_save=$ac_clean_files
  2753. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2754. # Try to create an executable without -o first, disregard a.out.
  2755. # It will help us diagnose broken compilers, and finding out an intuition
  2756. # of exeext.
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2758. $as_echo_n "checking whether the C compiler works... " >&6; }
  2759. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2760. # The possible output files:
  2761. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2762. ac_rmfiles=
  2763. for ac_file in $ac_files
  2764. do
  2765. case $ac_file in
  2766. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2767. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2768. esac
  2769. done
  2770. rm -f $ac_rmfiles
  2771. if { { ac_try="$ac_link_default"
  2772. case "(($ac_try" in
  2773. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2774. *) ac_try_echo=$ac_try;;
  2775. esac
  2776. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2777. $as_echo "$ac_try_echo"; } >&5
  2778. (eval "$ac_link_default") 2>&5
  2779. ac_status=$?
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2781. test $ac_status = 0; }; then :
  2782. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2783. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2784. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2785. # so that the user can short-circuit this test for compilers unknown to
  2786. # Autoconf.
  2787. for ac_file in $ac_files ''
  2788. do
  2789. test -f "$ac_file" || continue
  2790. case $ac_file in
  2791. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2792. ;;
  2793. [ab].out )
  2794. # We found the default executable, but exeext='' is most
  2795. # certainly right.
  2796. break;;
  2797. *.* )
  2798. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2799. then :; else
  2800. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2801. fi
  2802. # We set ac_cv_exeext here because the later test for it is not
  2803. # safe: cross compilers may not add the suffix if given an `-o'
  2804. # argument, so we may need to know it at that point already.
  2805. # Even if this section looks crufty: it has the advantage of
  2806. # actually working.
  2807. break;;
  2808. * )
  2809. break;;
  2810. esac
  2811. done
  2812. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2813. else
  2814. ac_file=''
  2815. fi
  2816. if test -z "$ac_file"; then :
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2818. $as_echo "no" >&6; }
  2819. $as_echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2822. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2823. as_fn_error 77 "C compiler cannot create executables
  2824. See \`config.log' for more details" "$LINENO" 5; }
  2825. else
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2827. $as_echo "yes" >&6; }
  2828. fi
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2830. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2832. $as_echo "$ac_file" >&6; }
  2833. ac_exeext=$ac_cv_exeext
  2834. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2835. ac_clean_files=$ac_clean_files_save
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2837. $as_echo_n "checking for suffix of executables... " >&6; }
  2838. if { { ac_try="$ac_link"
  2839. case "(($ac_try" in
  2840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2841. *) ac_try_echo=$ac_try;;
  2842. esac
  2843. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2844. $as_echo "$ac_try_echo"; } >&5
  2845. (eval "$ac_link") 2>&5
  2846. ac_status=$?
  2847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2848. test $ac_status = 0; }; then :
  2849. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2850. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2851. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2852. # `rm'.
  2853. for ac_file in conftest.exe conftest conftest.*; do
  2854. test -f "$ac_file" || continue
  2855. case $ac_file in
  2856. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2857. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2858. break;;
  2859. * ) break;;
  2860. esac
  2861. done
  2862. else
  2863. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2864. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2865. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2866. See \`config.log' for more details" "$LINENO" 5; }
  2867. fi
  2868. rm -f conftest conftest$ac_cv_exeext
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2870. $as_echo "$ac_cv_exeext" >&6; }
  2871. rm -f conftest.$ac_ext
  2872. EXEEXT=$ac_cv_exeext
  2873. ac_exeext=$EXEEXT
  2874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2875. /* end confdefs.h. */
  2876. #include <stdio.h>
  2877. int
  2878. main ()
  2879. {
  2880. FILE *f = fopen ("conftest.out", "w");
  2881. return ferror (f) || fclose (f) != 0;
  2882. ;
  2883. return 0;
  2884. }
  2885. _ACEOF
  2886. ac_clean_files="$ac_clean_files conftest.out"
  2887. # Check that the compiler produces executables we can run. If not, either
  2888. # the compiler is broken, or we cross compile.
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2890. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2891. if test "$cross_compiling" != yes; then
  2892. { { ac_try="$ac_link"
  2893. case "(($ac_try" in
  2894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2895. *) ac_try_echo=$ac_try;;
  2896. esac
  2897. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2898. $as_echo "$ac_try_echo"; } >&5
  2899. (eval "$ac_link") 2>&5
  2900. ac_status=$?
  2901. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2902. test $ac_status = 0; }
  2903. if { ac_try='./conftest$ac_cv_exeext'
  2904. { { case "(($ac_try" in
  2905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2906. *) ac_try_echo=$ac_try;;
  2907. esac
  2908. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2909. $as_echo "$ac_try_echo"; } >&5
  2910. (eval "$ac_try") 2>&5
  2911. ac_status=$?
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }; }; then
  2914. cross_compiling=no
  2915. else
  2916. if test "$cross_compiling" = maybe; then
  2917. cross_compiling=yes
  2918. else
  2919. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2920. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2921. as_fn_error $? "cannot run C compiled programs.
  2922. If you meant to cross compile, use \`--host'.
  2923. See \`config.log' for more details" "$LINENO" 5; }
  2924. fi
  2925. fi
  2926. fi
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2928. $as_echo "$cross_compiling" >&6; }
  2929. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2930. ac_clean_files=$ac_clean_files_save
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2932. $as_echo_n "checking for suffix of object files... " >&6; }
  2933. if ${ac_cv_objext+:} false; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2937. /* end confdefs.h. */
  2938. int
  2939. main ()
  2940. {
  2941. ;
  2942. return 0;
  2943. }
  2944. _ACEOF
  2945. rm -f conftest.o conftest.obj
  2946. if { { ac_try="$ac_compile"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_compile") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. for ac_file in conftest.o conftest.obj conftest.*; do
  2958. test -f "$ac_file" || continue;
  2959. case $ac_file in
  2960. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2961. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2962. break;;
  2963. esac
  2964. done
  2965. else
  2966. $as_echo "$as_me: failed program was:" >&5
  2967. sed 's/^/| /' conftest.$ac_ext >&5
  2968. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2969. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2970. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2971. See \`config.log' for more details" "$LINENO" 5; }
  2972. fi
  2973. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2976. $as_echo "$ac_cv_objext" >&6; }
  2977. OBJEXT=$ac_cv_objext
  2978. ac_objext=$OBJEXT
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2980. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2981. if ${ac_cv_c_compiler_gnu+:} false; then :
  2982. $as_echo_n "(cached) " >&6
  2983. else
  2984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2985. /* end confdefs.h. */
  2986. int
  2987. main ()
  2988. {
  2989. #ifndef __GNUC__
  2990. choke me
  2991. #endif
  2992. ;
  2993. return 0;
  2994. }
  2995. _ACEOF
  2996. if ac_fn_c_try_compile "$LINENO"; then :
  2997. ac_compiler_gnu=yes
  2998. else
  2999. ac_compiler_gnu=no
  3000. fi
  3001. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3002. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3003. fi
  3004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3005. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3006. if test $ac_compiler_gnu = yes; then
  3007. GCC=yes
  3008. else
  3009. GCC=
  3010. fi
  3011. ac_test_CFLAGS=${CFLAGS+set}
  3012. ac_save_CFLAGS=$CFLAGS
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3014. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3015. if ${ac_cv_prog_cc_g+:} false; then :
  3016. $as_echo_n "(cached) " >&6
  3017. else
  3018. ac_save_c_werror_flag=$ac_c_werror_flag
  3019. ac_c_werror_flag=yes
  3020. ac_cv_prog_cc_g=no
  3021. CFLAGS="-g"
  3022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3023. /* end confdefs.h. */
  3024. int
  3025. main ()
  3026. {
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. if ac_fn_c_try_compile "$LINENO"; then :
  3032. ac_cv_prog_cc_g=yes
  3033. else
  3034. CFLAGS=""
  3035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3036. /* end confdefs.h. */
  3037. int
  3038. main ()
  3039. {
  3040. ;
  3041. return 0;
  3042. }
  3043. _ACEOF
  3044. if ac_fn_c_try_compile "$LINENO"; then :
  3045. else
  3046. ac_c_werror_flag=$ac_save_c_werror_flag
  3047. CFLAGS="-g"
  3048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3049. /* end confdefs.h. */
  3050. int
  3051. main ()
  3052. {
  3053. ;
  3054. return 0;
  3055. }
  3056. _ACEOF
  3057. if ac_fn_c_try_compile "$LINENO"; then :
  3058. ac_cv_prog_cc_g=yes
  3059. fi
  3060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3061. fi
  3062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3063. fi
  3064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3065. ac_c_werror_flag=$ac_save_c_werror_flag
  3066. fi
  3067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3068. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3069. if test "$ac_test_CFLAGS" = set; then
  3070. CFLAGS=$ac_save_CFLAGS
  3071. elif test $ac_cv_prog_cc_g = yes; then
  3072. if test "$GCC" = yes; then
  3073. CFLAGS="-g -O2"
  3074. else
  3075. CFLAGS="-g"
  3076. fi
  3077. else
  3078. if test "$GCC" = yes; then
  3079. CFLAGS="-O2"
  3080. else
  3081. CFLAGS=
  3082. fi
  3083. fi
  3084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3085. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3086. if ${ac_cv_prog_cc_c89+:} false; then :
  3087. $as_echo_n "(cached) " >&6
  3088. else
  3089. ac_cv_prog_cc_c89=no
  3090. ac_save_CC=$CC
  3091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3092. /* end confdefs.h. */
  3093. #include <stdarg.h>
  3094. #include <stdio.h>
  3095. struct stat;
  3096. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3097. struct buf { int x; };
  3098. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3099. static char *e (p, i)
  3100. char **p;
  3101. int i;
  3102. {
  3103. return p[i];
  3104. }
  3105. static char *f (char * (*g) (char **, int), char **p, ...)
  3106. {
  3107. char *s;
  3108. va_list v;
  3109. va_start (v,p);
  3110. s = g (p, va_arg (v,int));
  3111. va_end (v);
  3112. return s;
  3113. }
  3114. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3115. function prototypes and stuff, but not '\xHH' hex character constants.
  3116. These don't provoke an error unfortunately, instead are silently treated
  3117. as 'x'. The following induces an error, until -std is added to get
  3118. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3119. array size at least. It's necessary to write '\x00'==0 to get something
  3120. that's true only with -std. */
  3121. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3122. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3123. inside strings and character constants. */
  3124. #define FOO(x) 'x'
  3125. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3126. int test (int i, double x);
  3127. struct s1 {int (*f) (int a);};
  3128. struct s2 {int (*f) (double a);};
  3129. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3130. int argc;
  3131. char **argv;
  3132. int
  3133. main ()
  3134. {
  3135. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3136. ;
  3137. return 0;
  3138. }
  3139. _ACEOF
  3140. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3141. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3142. do
  3143. CC="$ac_save_CC $ac_arg"
  3144. if ac_fn_c_try_compile "$LINENO"; then :
  3145. ac_cv_prog_cc_c89=$ac_arg
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext
  3148. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3149. done
  3150. rm -f conftest.$ac_ext
  3151. CC=$ac_save_CC
  3152. fi
  3153. # AC_CACHE_VAL
  3154. case "x$ac_cv_prog_cc_c89" in
  3155. x)
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3157. $as_echo "none needed" >&6; } ;;
  3158. xno)
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3160. $as_echo "unsupported" >&6; } ;;
  3161. *)
  3162. CC="$CC $ac_cv_prog_cc_c89"
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3164. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3165. esac
  3166. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3167. fi
  3168. ac_ext=c
  3169. ac_cpp='$CPP $CPPFLAGS'
  3170. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3171. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3172. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3173. depcc="$CC" am_compiler_list=
  3174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3175. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3176. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3177. $as_echo_n "(cached) " >&6
  3178. else
  3179. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3180. # We make a subdir and do the tests there. Otherwise we can end up
  3181. # making bogus files that we don't know about and never remove. For
  3182. # instance it was reported that on HP-UX the gcc test will end up
  3183. # making a dummy file named 'D' -- because '-MD' means "put the output
  3184. # in D".
  3185. rm -rf conftest.dir
  3186. mkdir conftest.dir
  3187. # Copy depcomp to subdir because otherwise we won't find it if we're
  3188. # using a relative directory.
  3189. cp "$am_depcomp" conftest.dir
  3190. cd conftest.dir
  3191. # We will build objects and dependencies in a subdirectory because
  3192. # it helps to detect inapplicable dependency modes. For instance
  3193. # both Tru64's cc and ICC support -MD to output dependencies as a
  3194. # side effect of compilation, but ICC will put the dependencies in
  3195. # the current directory while Tru64 will put them in the object
  3196. # directory.
  3197. mkdir sub
  3198. am_cv_CC_dependencies_compiler_type=none
  3199. if test "$am_compiler_list" = ""; then
  3200. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3201. fi
  3202. am__universal=false
  3203. case " $depcc " in #(
  3204. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3205. esac
  3206. for depmode in $am_compiler_list; do
  3207. # Setup a source with many dependencies, because some compilers
  3208. # like to wrap large dependency lists on column 80 (with \), and
  3209. # we should not choose a depcomp mode which is confused by this.
  3210. #
  3211. # We need to recreate these files for each test, as the compiler may
  3212. # overwrite some of them when testing with obscure command lines.
  3213. # This happens at least with the AIX C compiler.
  3214. : > sub/conftest.c
  3215. for i in 1 2 3 4 5 6; do
  3216. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3217. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3218. # Solaris 10 /bin/sh.
  3219. echo '/* dummy */' > sub/conftst$i.h
  3220. done
  3221. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3222. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3223. # mode. It turns out that the SunPro C++ compiler does not properly
  3224. # handle '-M -o', and we need to detect this. Also, some Intel
  3225. # versions had trouble with output in subdirs.
  3226. am__obj=sub/conftest.${OBJEXT-o}
  3227. am__minus_obj="-o $am__obj"
  3228. case $depmode in
  3229. gcc)
  3230. # This depmode causes a compiler race in universal mode.
  3231. test "$am__universal" = false || continue
  3232. ;;
  3233. nosideeffect)
  3234. # After this tag, mechanisms are not by side-effect, so they'll
  3235. # only be used when explicitly requested.
  3236. if test "x$enable_dependency_tracking" = xyes; then
  3237. continue
  3238. else
  3239. break
  3240. fi
  3241. ;;
  3242. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3243. # This compiler won't grok '-c -o', but also, the minuso test has
  3244. # not run yet. These depmodes are late enough in the game, and
  3245. # so weak that their functioning should not be impacted.
  3246. am__obj=conftest.${OBJEXT-o}
  3247. am__minus_obj=
  3248. ;;
  3249. none) break ;;
  3250. esac
  3251. if depmode=$depmode \
  3252. source=sub/conftest.c object=$am__obj \
  3253. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3254. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3255. >/dev/null 2>conftest.err &&
  3256. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3257. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3258. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3259. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3260. # icc doesn't choke on unknown options, it will just issue warnings
  3261. # or remarks (even with -Werror). So we grep stderr for any message
  3262. # that says an option was ignored or not supported.
  3263. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3264. # icc: Command line warning: ignoring option '-M'; no argument required
  3265. # The diagnosis changed in icc 8.0:
  3266. # icc: Command line remark: option '-MP' not supported
  3267. if (grep 'ignoring option' conftest.err ||
  3268. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3269. am_cv_CC_dependencies_compiler_type=$depmode
  3270. break
  3271. fi
  3272. fi
  3273. done
  3274. cd ..
  3275. rm -rf conftest.dir
  3276. else
  3277. am_cv_CC_dependencies_compiler_type=none
  3278. fi
  3279. fi
  3280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3281. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3282. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3283. if
  3284. test "x$enable_dependency_tracking" != xno \
  3285. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3286. am__fastdepCC_TRUE=
  3287. am__fastdepCC_FALSE='#'
  3288. else
  3289. am__fastdepCC_TRUE='#'
  3290. am__fastdepCC_FALSE=
  3291. fi
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3293. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3294. if ${ac_cv_prog_cc_c99+:} false; then :
  3295. $as_echo_n "(cached) " >&6
  3296. else
  3297. ac_cv_prog_cc_c99=no
  3298. ac_save_CC=$CC
  3299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3300. /* end confdefs.h. */
  3301. #include <stdarg.h>
  3302. #include <stdbool.h>
  3303. #include <stdlib.h>
  3304. #include <wchar.h>
  3305. #include <stdio.h>
  3306. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3307. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3308. #define showlist(...) puts (#__VA_ARGS__)
  3309. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3310. static void
  3311. test_varargs_macros (void)
  3312. {
  3313. int x = 1234;
  3314. int y = 5678;
  3315. debug ("Flag");
  3316. debug ("X = %d\n", x);
  3317. showlist (The first, second, and third items.);
  3318. report (x>y, "x is %d but y is %d", x, y);
  3319. }
  3320. // Check long long types.
  3321. #define BIG64 18446744073709551615ull
  3322. #define BIG32 4294967295ul
  3323. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3324. #if !BIG_OK
  3325. your preprocessor is broken;
  3326. #endif
  3327. #if BIG_OK
  3328. #else
  3329. your preprocessor is broken;
  3330. #endif
  3331. static long long int bignum = -9223372036854775807LL;
  3332. static unsigned long long int ubignum = BIG64;
  3333. struct incomplete_array
  3334. {
  3335. int datasize;
  3336. double data[];
  3337. };
  3338. struct named_init {
  3339. int number;
  3340. const wchar_t *name;
  3341. double average;
  3342. };
  3343. typedef const char *ccp;
  3344. static inline int
  3345. test_restrict (ccp restrict text)
  3346. {
  3347. // See if C++-style comments work.
  3348. // Iterate through items via the restricted pointer.
  3349. // Also check for declarations in for loops.
  3350. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3351. continue;
  3352. return 0;
  3353. }
  3354. // Check varargs and va_copy.
  3355. static void
  3356. test_varargs (const char *format, ...)
  3357. {
  3358. va_list args;
  3359. va_start (args, format);
  3360. va_list args_copy;
  3361. va_copy (args_copy, args);
  3362. const char *str;
  3363. int number;
  3364. float fnumber;
  3365. while (*format)
  3366. {
  3367. switch (*format++)
  3368. {
  3369. case 's': // string
  3370. str = va_arg (args_copy, const char *);
  3371. break;
  3372. case 'd': // int
  3373. number = va_arg (args_copy, int);
  3374. break;
  3375. case 'f': // float
  3376. fnumber = va_arg (args_copy, double);
  3377. break;
  3378. default:
  3379. break;
  3380. }
  3381. }
  3382. va_end (args_copy);
  3383. va_end (args);
  3384. }
  3385. int
  3386. main ()
  3387. {
  3388. // Check bool.
  3389. _Bool success = false;
  3390. // Check restrict.
  3391. if (test_restrict ("String literal") == 0)
  3392. success = true;
  3393. char *restrict newvar = "Another string";
  3394. // Check varargs.
  3395. test_varargs ("s, d' f .", "string", 65, 34.234);
  3396. test_varargs_macros ();
  3397. // Check flexible array members.
  3398. struct incomplete_array *ia =
  3399. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3400. ia->datasize = 10;
  3401. for (int i = 0; i < ia->datasize; ++i)
  3402. ia->data[i] = i * 1.234;
  3403. // Check named initializers.
  3404. struct named_init ni = {
  3405. .number = 34,
  3406. .name = L"Test wide string",
  3407. .average = 543.34343,
  3408. };
  3409. ni.number = 58;
  3410. int dynamic_array[ni.number];
  3411. dynamic_array[ni.number - 1] = 543;
  3412. // work around unused variable warnings
  3413. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3414. || dynamic_array[ni.number - 1] != 543);
  3415. ;
  3416. return 0;
  3417. }
  3418. _ACEOF
  3419. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3420. do
  3421. CC="$ac_save_CC $ac_arg"
  3422. if ac_fn_c_try_compile "$LINENO"; then :
  3423. ac_cv_prog_cc_c99=$ac_arg
  3424. fi
  3425. rm -f core conftest.err conftest.$ac_objext
  3426. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3427. done
  3428. rm -f conftest.$ac_ext
  3429. CC=$ac_save_CC
  3430. fi
  3431. # AC_CACHE_VAL
  3432. case "x$ac_cv_prog_cc_c99" in
  3433. x)
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3435. $as_echo "none needed" >&6; } ;;
  3436. xno)
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3438. $as_echo "unsupported" >&6; } ;;
  3439. *)
  3440. CC="$CC $ac_cv_prog_cc_c99"
  3441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3442. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3443. esac
  3444. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3445. fi
  3446. ac_ext=c
  3447. ac_cpp='$CPP $CPPFLAGS'
  3448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3452. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3453. # On Suns, sometimes $CPP names a directory.
  3454. if test -n "$CPP" && test -d "$CPP"; then
  3455. CPP=
  3456. fi
  3457. if test -z "$CPP"; then
  3458. if ${ac_cv_prog_CPP+:} false; then :
  3459. $as_echo_n "(cached) " >&6
  3460. else
  3461. # Double quotes because CPP needs to be expanded
  3462. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3463. do
  3464. ac_preproc_ok=false
  3465. for ac_c_preproc_warn_flag in '' yes
  3466. do
  3467. # Use a header file that comes with gcc, so configuring glibc
  3468. # with a fresh cross-compiler works.
  3469. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3470. # <limits.h> exists even on freestanding compilers.
  3471. # On the NeXT, cc -E runs the code through the compiler's parser,
  3472. # not just through cpp. "Syntax error" is here to catch this case.
  3473. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3474. /* end confdefs.h. */
  3475. #ifdef __STDC__
  3476. # include <limits.h>
  3477. #else
  3478. # include <assert.h>
  3479. #endif
  3480. Syntax error
  3481. _ACEOF
  3482. if ac_fn_c_try_cpp "$LINENO"; then :
  3483. else
  3484. # Broken: fails on valid input.
  3485. continue
  3486. fi
  3487. rm -f conftest.err conftest.i conftest.$ac_ext
  3488. # OK, works on sane cases. Now check whether nonexistent headers
  3489. # can be detected and how.
  3490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3491. /* end confdefs.h. */
  3492. #include <ac_nonexistent.h>
  3493. _ACEOF
  3494. if ac_fn_c_try_cpp "$LINENO"; then :
  3495. # Broken: success on invalid input.
  3496. continue
  3497. else
  3498. # Passes both tests.
  3499. ac_preproc_ok=:
  3500. break
  3501. fi
  3502. rm -f conftest.err conftest.i conftest.$ac_ext
  3503. done
  3504. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3505. rm -f conftest.i conftest.err conftest.$ac_ext
  3506. if $ac_preproc_ok; then :
  3507. break
  3508. fi
  3509. done
  3510. ac_cv_prog_CPP=$CPP
  3511. fi
  3512. CPP=$ac_cv_prog_CPP
  3513. else
  3514. ac_cv_prog_CPP=$CPP
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3517. $as_echo "$CPP" >&6; }
  3518. ac_preproc_ok=false
  3519. for ac_c_preproc_warn_flag in '' yes
  3520. do
  3521. # Use a header file that comes with gcc, so configuring glibc
  3522. # with a fresh cross-compiler works.
  3523. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3524. # <limits.h> exists even on freestanding compilers.
  3525. # On the NeXT, cc -E runs the code through the compiler's parser,
  3526. # not just through cpp. "Syntax error" is here to catch this case.
  3527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3528. /* end confdefs.h. */
  3529. #ifdef __STDC__
  3530. # include <limits.h>
  3531. #else
  3532. # include <assert.h>
  3533. #endif
  3534. Syntax error
  3535. _ACEOF
  3536. if ac_fn_c_try_cpp "$LINENO"; then :
  3537. else
  3538. # Broken: fails on valid input.
  3539. continue
  3540. fi
  3541. rm -f conftest.err conftest.i conftest.$ac_ext
  3542. # OK, works on sane cases. Now check whether nonexistent headers
  3543. # can be detected and how.
  3544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3545. /* end confdefs.h. */
  3546. #include <ac_nonexistent.h>
  3547. _ACEOF
  3548. if ac_fn_c_try_cpp "$LINENO"; then :
  3549. # Broken: success on invalid input.
  3550. continue
  3551. else
  3552. # Passes both tests.
  3553. ac_preproc_ok=:
  3554. break
  3555. fi
  3556. rm -f conftest.err conftest.i conftest.$ac_ext
  3557. done
  3558. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3559. rm -f conftest.i conftest.err conftest.$ac_ext
  3560. if $ac_preproc_ok; then :
  3561. else
  3562. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3563. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3564. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3565. See \`config.log' for more details" "$LINENO" 5; }
  3566. fi
  3567. ac_ext=c
  3568. ac_cpp='$CPP $CPPFLAGS'
  3569. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3570. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3571. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3573. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3574. if ${ac_cv_path_GREP+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -z "$GREP"; then
  3578. ac_path_GREP_found=false
  3579. # Loop through the user's path and test for each of PROGNAME-LIST
  3580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3582. do
  3583. IFS=$as_save_IFS
  3584. test -z "$as_dir" && as_dir=.
  3585. for ac_prog in grep ggrep; do
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3588. as_fn_executable_p "$ac_path_GREP" || continue
  3589. # Check for GNU ac_path_GREP and select it if it is found.
  3590. # Check for GNU $ac_path_GREP
  3591. case `"$ac_path_GREP" --version 2>&1` in
  3592. *GNU*)
  3593. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3594. *)
  3595. ac_count=0
  3596. $as_echo_n 0123456789 >"conftest.in"
  3597. while :
  3598. do
  3599. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3600. mv "conftest.tmp" "conftest.in"
  3601. cp "conftest.in" "conftest.nl"
  3602. $as_echo 'GREP' >> "conftest.nl"
  3603. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3604. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3605. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3606. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3607. # Best one so far, save it but keep looking for a better one
  3608. ac_cv_path_GREP="$ac_path_GREP"
  3609. ac_path_GREP_max=$ac_count
  3610. fi
  3611. # 10*(2^10) chars as input seems more than enough
  3612. test $ac_count -gt 10 && break
  3613. done
  3614. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3615. esac
  3616. $ac_path_GREP_found && break 3
  3617. done
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. if test -z "$ac_cv_path_GREP"; then
  3622. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3623. fi
  3624. else
  3625. ac_cv_path_GREP=$GREP
  3626. fi
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3629. $as_echo "$ac_cv_path_GREP" >&6; }
  3630. GREP="$ac_cv_path_GREP"
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3632. $as_echo_n "checking for egrep... " >&6; }
  3633. if ${ac_cv_path_EGREP+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3637. then ac_cv_path_EGREP="$GREP -E"
  3638. else
  3639. if test -z "$EGREP"; then
  3640. ac_path_EGREP_found=false
  3641. # Loop through the user's path and test for each of PROGNAME-LIST
  3642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3644. do
  3645. IFS=$as_save_IFS
  3646. test -z "$as_dir" && as_dir=.
  3647. for ac_prog in egrep; do
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3650. as_fn_executable_p "$ac_path_EGREP" || continue
  3651. # Check for GNU ac_path_EGREP and select it if it is found.
  3652. # Check for GNU $ac_path_EGREP
  3653. case `"$ac_path_EGREP" --version 2>&1` in
  3654. *GNU*)
  3655. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3656. *)
  3657. ac_count=0
  3658. $as_echo_n 0123456789 >"conftest.in"
  3659. while :
  3660. do
  3661. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3662. mv "conftest.tmp" "conftest.in"
  3663. cp "conftest.in" "conftest.nl"
  3664. $as_echo 'EGREP' >> "conftest.nl"
  3665. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3666. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3667. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3668. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3669. # Best one so far, save it but keep looking for a better one
  3670. ac_cv_path_EGREP="$ac_path_EGREP"
  3671. ac_path_EGREP_max=$ac_count
  3672. fi
  3673. # 10*(2^10) chars as input seems more than enough
  3674. test $ac_count -gt 10 && break
  3675. done
  3676. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3677. esac
  3678. $ac_path_EGREP_found && break 3
  3679. done
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. if test -z "$ac_cv_path_EGREP"; then
  3684. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3685. fi
  3686. else
  3687. ac_cv_path_EGREP=$EGREP
  3688. fi
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3692. $as_echo "$ac_cv_path_EGREP" >&6; }
  3693. EGREP="$ac_cv_path_EGREP"
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3695. $as_echo_n "checking for ANSI C header files... " >&6; }
  3696. if ${ac_cv_header_stdc+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3700. /* end confdefs.h. */
  3701. #include <stdlib.h>
  3702. #include <stdarg.h>
  3703. #include <string.h>
  3704. #include <float.h>
  3705. int
  3706. main ()
  3707. {
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. if ac_fn_c_try_compile "$LINENO"; then :
  3713. ac_cv_header_stdc=yes
  3714. else
  3715. ac_cv_header_stdc=no
  3716. fi
  3717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3718. if test $ac_cv_header_stdc = yes; then
  3719. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. #include <string.h>
  3723. _ACEOF
  3724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3725. $EGREP "memchr" >/dev/null 2>&1; then :
  3726. else
  3727. ac_cv_header_stdc=no
  3728. fi
  3729. rm -f conftest*
  3730. fi
  3731. if test $ac_cv_header_stdc = yes; then
  3732. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. #include <stdlib.h>
  3736. _ACEOF
  3737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3738. $EGREP "free" >/dev/null 2>&1; then :
  3739. else
  3740. ac_cv_header_stdc=no
  3741. fi
  3742. rm -f conftest*
  3743. fi
  3744. if test $ac_cv_header_stdc = yes; then
  3745. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3746. if test "$cross_compiling" = yes; then :
  3747. :
  3748. else
  3749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3750. /* end confdefs.h. */
  3751. #include <ctype.h>
  3752. #include <stdlib.h>
  3753. #if ((' ' & 0x0FF) == 0x020)
  3754. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3755. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3756. #else
  3757. # define ISLOWER(c) \
  3758. (('a' <= (c) && (c) <= 'i') \
  3759. || ('j' <= (c) && (c) <= 'r') \
  3760. || ('s' <= (c) && (c) <= 'z'))
  3761. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3762. #endif
  3763. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3764. int
  3765. main ()
  3766. {
  3767. int i;
  3768. for (i = 0; i < 256; i++)
  3769. if (XOR (islower (i), ISLOWER (i))
  3770. || toupper (i) != TOUPPER (i))
  3771. return 2;
  3772. return 0;
  3773. }
  3774. _ACEOF
  3775. if ac_fn_c_try_run "$LINENO"; then :
  3776. else
  3777. ac_cv_header_stdc=no
  3778. fi
  3779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3780. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3781. fi
  3782. fi
  3783. fi
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3785. $as_echo "$ac_cv_header_stdc" >&6; }
  3786. if test $ac_cv_header_stdc = yes; then
  3787. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3788. fi
  3789. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3790. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3791. inttypes.h stdint.h unistd.h
  3792. do :
  3793. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3794. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3795. "
  3796. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3797. cat >>confdefs.h <<_ACEOF
  3798. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3799. _ACEOF
  3800. fi
  3801. done
  3802. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3803. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3804. CLANGCC="yes"
  3805. else
  3806. CLANGCC="no"
  3807. fi
  3808. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3809. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3810. INTELCC="yes"
  3811. else
  3812. INTELCC="no"
  3813. fi
  3814. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3815. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3816. SUNCC="yes"
  3817. else
  3818. SUNCC="no"
  3819. fi
  3820. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3821. if test -n "$ac_tool_prefix"; then
  3822. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3823. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3825. $as_echo_n "checking for $ac_word... " >&6; }
  3826. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. case $PKG_CONFIG in
  3830. [\\/]* | ?:[\\/]*)
  3831. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3832. ;;
  3833. *)
  3834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3835. for as_dir in $PATH
  3836. do
  3837. IFS=$as_save_IFS
  3838. test -z "$as_dir" && as_dir=.
  3839. for ac_exec_ext in '' $ac_executable_extensions; do
  3840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3841. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3843. break 2
  3844. fi
  3845. done
  3846. done
  3847. IFS=$as_save_IFS
  3848. ;;
  3849. esac
  3850. fi
  3851. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3852. if test -n "$PKG_CONFIG"; then
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3854. $as_echo "$PKG_CONFIG" >&6; }
  3855. else
  3856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3857. $as_echo "no" >&6; }
  3858. fi
  3859. fi
  3860. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3861. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3862. # Extract the first word of "pkg-config", so it can be a program name with args.
  3863. set dummy pkg-config; ac_word=$2
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3865. $as_echo_n "checking for $ac_word... " >&6; }
  3866. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. case $ac_pt_PKG_CONFIG in
  3870. [\\/]* | ?:[\\/]*)
  3871. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3872. ;;
  3873. *)
  3874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3875. for as_dir in $PATH
  3876. do
  3877. IFS=$as_save_IFS
  3878. test -z "$as_dir" && as_dir=.
  3879. for ac_exec_ext in '' $ac_executable_extensions; do
  3880. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3881. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3882. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3883. break 2
  3884. fi
  3885. done
  3886. done
  3887. IFS=$as_save_IFS
  3888. ;;
  3889. esac
  3890. fi
  3891. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3892. if test -n "$ac_pt_PKG_CONFIG"; then
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3894. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3895. else
  3896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3897. $as_echo "no" >&6; }
  3898. fi
  3899. if test "x$ac_pt_PKG_CONFIG" = x; then
  3900. PKG_CONFIG=""
  3901. else
  3902. case $cross_compiling:$ac_tool_warned in
  3903. yes:)
  3904. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3905. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3906. ac_tool_warned=yes ;;
  3907. esac
  3908. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3909. fi
  3910. else
  3911. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3912. fi
  3913. fi
  3914. if test -n "$PKG_CONFIG"; then
  3915. _pkg_min_version=0.9.0
  3916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3917. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3918. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3920. $as_echo "yes" >&6; }
  3921. else
  3922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3923. $as_echo "no" >&6; }
  3924. PKG_CONFIG=""
  3925. fi
  3926. fi
  3927. # Make sure we can run config.sub.
  3928. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3929. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3931. $as_echo_n "checking build system type... " >&6; }
  3932. if ${ac_cv_build+:} false; then :
  3933. $as_echo_n "(cached) " >&6
  3934. else
  3935. ac_build_alias=$build_alias
  3936. test "x$ac_build_alias" = x &&
  3937. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3938. test "x$ac_build_alias" = x &&
  3939. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3940. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3941. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3942. fi
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3944. $as_echo "$ac_cv_build" >&6; }
  3945. case $ac_cv_build in
  3946. *-*-*) ;;
  3947. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3948. esac
  3949. build=$ac_cv_build
  3950. ac_save_IFS=$IFS; IFS='-'
  3951. set x $ac_cv_build
  3952. shift
  3953. build_cpu=$1
  3954. build_vendor=$2
  3955. shift; shift
  3956. # Remember, the first character of IFS is used to create $*,
  3957. # except with old shells:
  3958. build_os=$*
  3959. IFS=$ac_save_IFS
  3960. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3962. $as_echo_n "checking host system type... " >&6; }
  3963. if ${ac_cv_host+:} false; then :
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. if test "x$host_alias" = x; then
  3967. ac_cv_host=$ac_cv_build
  3968. else
  3969. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3970. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3971. fi
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3974. $as_echo "$ac_cv_host" >&6; }
  3975. case $ac_cv_host in
  3976. *-*-*) ;;
  3977. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3978. esac
  3979. host=$ac_cv_host
  3980. ac_save_IFS=$IFS; IFS='-'
  3981. set x $ac_cv_host
  3982. shift
  3983. host_cpu=$1
  3984. host_vendor=$2
  3985. shift; shift
  3986. # Remember, the first character of IFS is used to create $*,
  3987. # except with old shells:
  3988. host_os=$*
  3989. IFS=$ac_save_IFS
  3990. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3992. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3993. if ${ac_cv_path_SED+:} false; then :
  3994. $as_echo_n "(cached) " >&6
  3995. else
  3996. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3997. for ac_i in 1 2 3 4 5 6 7; do
  3998. ac_script="$ac_script$as_nl$ac_script"
  3999. done
  4000. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4001. { ac_script=; unset ac_script;}
  4002. if test -z "$SED"; then
  4003. ac_path_SED_found=false
  4004. # Loop through the user's path and test for each of PROGNAME-LIST
  4005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4006. for as_dir in $PATH
  4007. do
  4008. IFS=$as_save_IFS
  4009. test -z "$as_dir" && as_dir=.
  4010. for ac_prog in sed gsed; do
  4011. for ac_exec_ext in '' $ac_executable_extensions; do
  4012. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4013. as_fn_executable_p "$ac_path_SED" || continue
  4014. # Check for GNU ac_path_SED and select it if it is found.
  4015. # Check for GNU $ac_path_SED
  4016. case `"$ac_path_SED" --version 2>&1` in
  4017. *GNU*)
  4018. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4019. *)
  4020. ac_count=0
  4021. $as_echo_n 0123456789 >"conftest.in"
  4022. while :
  4023. do
  4024. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4025. mv "conftest.tmp" "conftest.in"
  4026. cp "conftest.in" "conftest.nl"
  4027. $as_echo '' >> "conftest.nl"
  4028. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4029. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4030. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4031. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4032. # Best one so far, save it but keep looking for a better one
  4033. ac_cv_path_SED="$ac_path_SED"
  4034. ac_path_SED_max=$ac_count
  4035. fi
  4036. # 10*(2^10) chars as input seems more than enough
  4037. test $ac_count -gt 10 && break
  4038. done
  4039. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4040. esac
  4041. $ac_path_SED_found && break 3
  4042. done
  4043. done
  4044. done
  4045. IFS=$as_save_IFS
  4046. if test -z "$ac_cv_path_SED"; then
  4047. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4048. fi
  4049. else
  4050. ac_cv_path_SED=$SED
  4051. fi
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4054. $as_echo "$ac_cv_path_SED" >&6; }
  4055. SED="$ac_cv_path_SED"
  4056. rm -f conftest.sed
  4057. # Check whether --enable-selective-werror was given.
  4058. if test "${enable_selective_werror+set}" = set; then :
  4059. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4060. else
  4061. SELECTIVE_WERROR=yes
  4062. fi
  4063. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4064. if test "x$SUNCC" = "xyes"; then
  4065. BASE_CFLAGS="-v"
  4066. else
  4067. BASE_CFLAGS=""
  4068. fi
  4069. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4070. xorg_testset_save_CFLAGS="$CFLAGS"
  4071. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4074. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4075. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4079. /* end confdefs.h. */
  4080. int i;
  4081. _ACEOF
  4082. if ac_fn_c_try_compile "$LINENO"; then :
  4083. xorg_cv_cc_flag_unknown_warning_option=yes
  4084. else
  4085. xorg_cv_cc_flag_unknown_warning_option=no
  4086. fi
  4087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4088. fi
  4089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4090. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4091. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4092. CFLAGS="$xorg_testset_save_CFLAGS"
  4093. fi
  4094. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4095. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4096. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4097. fi
  4098. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4100. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4101. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4102. $as_echo_n "(cached) " >&6
  4103. else
  4104. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4105. /* end confdefs.h. */
  4106. int i;
  4107. _ACEOF
  4108. if ac_fn_c_try_compile "$LINENO"; then :
  4109. xorg_cv_cc_flag_unused_command_line_argument=yes
  4110. else
  4111. xorg_cv_cc_flag_unused_command_line_argument=no
  4112. fi
  4113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4114. fi
  4115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4116. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4117. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4118. CFLAGS="$xorg_testset_save_CFLAGS"
  4119. fi
  4120. found="no"
  4121. if test $found = "no" ; then
  4122. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4123. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4124. fi
  4125. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4126. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4127. fi
  4128. CFLAGS="$CFLAGS -Wall"
  4129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4130. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4131. cacheid=xorg_cv_cc_flag__Wall
  4132. if eval \${$cacheid+:} false; then :
  4133. $as_echo_n "(cached) " >&6
  4134. else
  4135. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4136. /* end confdefs.h. */
  4137. int i;
  4138. int
  4139. main ()
  4140. {
  4141. ;
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. if ac_fn_c_try_link "$LINENO"; then :
  4146. eval $cacheid=yes
  4147. else
  4148. eval $cacheid=no
  4149. fi
  4150. rm -f core conftest.err conftest.$ac_objext \
  4151. conftest$ac_exeext conftest.$ac_ext
  4152. fi
  4153. CFLAGS="$xorg_testset_save_CFLAGS"
  4154. eval supported=\$$cacheid
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4156. $as_echo "$supported" >&6; }
  4157. if test "$supported" = "yes" ; then
  4158. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4159. found="yes"
  4160. fi
  4161. fi
  4162. xorg_testset_save_CFLAGS="$CFLAGS"
  4163. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4166. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4167. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4168. $as_echo_n "(cached) " >&6
  4169. else
  4170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4171. /* end confdefs.h. */
  4172. int i;
  4173. _ACEOF
  4174. if ac_fn_c_try_compile "$LINENO"; then :
  4175. xorg_cv_cc_flag_unknown_warning_option=yes
  4176. else
  4177. xorg_cv_cc_flag_unknown_warning_option=no
  4178. fi
  4179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4182. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4183. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4184. CFLAGS="$xorg_testset_save_CFLAGS"
  4185. fi
  4186. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4187. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4188. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4189. fi
  4190. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4192. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4193. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4194. $as_echo_n "(cached) " >&6
  4195. else
  4196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4197. /* end confdefs.h. */
  4198. int i;
  4199. _ACEOF
  4200. if ac_fn_c_try_compile "$LINENO"; then :
  4201. xorg_cv_cc_flag_unused_command_line_argument=yes
  4202. else
  4203. xorg_cv_cc_flag_unused_command_line_argument=no
  4204. fi
  4205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4206. fi
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4208. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4209. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4210. CFLAGS="$xorg_testset_save_CFLAGS"
  4211. fi
  4212. found="no"
  4213. if test $found = "no" ; then
  4214. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4215. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4216. fi
  4217. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4218. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4219. fi
  4220. CFLAGS="$CFLAGS -Wpointer-arith"
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4222. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4223. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4224. if eval \${$cacheid+:} false; then :
  4225. $as_echo_n "(cached) " >&6
  4226. else
  4227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4228. /* end confdefs.h. */
  4229. int i;
  4230. int
  4231. main ()
  4232. {
  4233. ;
  4234. return 0;
  4235. }
  4236. _ACEOF
  4237. if ac_fn_c_try_link "$LINENO"; then :
  4238. eval $cacheid=yes
  4239. else
  4240. eval $cacheid=no
  4241. fi
  4242. rm -f core conftest.err conftest.$ac_objext \
  4243. conftest$ac_exeext conftest.$ac_ext
  4244. fi
  4245. CFLAGS="$xorg_testset_save_CFLAGS"
  4246. eval supported=\$$cacheid
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4248. $as_echo "$supported" >&6; }
  4249. if test "$supported" = "yes" ; then
  4250. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4251. found="yes"
  4252. fi
  4253. fi
  4254. xorg_testset_save_CFLAGS="$CFLAGS"
  4255. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4258. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4259. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4263. /* end confdefs.h. */
  4264. int i;
  4265. _ACEOF
  4266. if ac_fn_c_try_compile "$LINENO"; then :
  4267. xorg_cv_cc_flag_unknown_warning_option=yes
  4268. else
  4269. xorg_cv_cc_flag_unknown_warning_option=no
  4270. fi
  4271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4272. fi
  4273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4274. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4275. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4276. CFLAGS="$xorg_testset_save_CFLAGS"
  4277. fi
  4278. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4279. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4280. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4281. fi
  4282. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4284. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4285. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4286. $as_echo_n "(cached) " >&6
  4287. else
  4288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4289. /* end confdefs.h. */
  4290. int i;
  4291. _ACEOF
  4292. if ac_fn_c_try_compile "$LINENO"; then :
  4293. xorg_cv_cc_flag_unused_command_line_argument=yes
  4294. else
  4295. xorg_cv_cc_flag_unused_command_line_argument=no
  4296. fi
  4297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4298. fi
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4300. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4301. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4302. CFLAGS="$xorg_testset_save_CFLAGS"
  4303. fi
  4304. found="no"
  4305. if test $found = "no" ; then
  4306. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4307. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4308. fi
  4309. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4310. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4311. fi
  4312. CFLAGS="$CFLAGS -Wmissing-declarations"
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4314. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4315. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4316. if eval \${$cacheid+:} false; then :
  4317. $as_echo_n "(cached) " >&6
  4318. else
  4319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4320. /* end confdefs.h. */
  4321. int i;
  4322. int
  4323. main ()
  4324. {
  4325. ;
  4326. return 0;
  4327. }
  4328. _ACEOF
  4329. if ac_fn_c_try_link "$LINENO"; then :
  4330. eval $cacheid=yes
  4331. else
  4332. eval $cacheid=no
  4333. fi
  4334. rm -f core conftest.err conftest.$ac_objext \
  4335. conftest$ac_exeext conftest.$ac_ext
  4336. fi
  4337. CFLAGS="$xorg_testset_save_CFLAGS"
  4338. eval supported=\$$cacheid
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4340. $as_echo "$supported" >&6; }
  4341. if test "$supported" = "yes" ; then
  4342. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4343. found="yes"
  4344. fi
  4345. fi
  4346. xorg_testset_save_CFLAGS="$CFLAGS"
  4347. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4350. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4351. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4355. /* end confdefs.h. */
  4356. int i;
  4357. _ACEOF
  4358. if ac_fn_c_try_compile "$LINENO"; then :
  4359. xorg_cv_cc_flag_unknown_warning_option=yes
  4360. else
  4361. xorg_cv_cc_flag_unknown_warning_option=no
  4362. fi
  4363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4364. fi
  4365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4366. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4367. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4368. CFLAGS="$xorg_testset_save_CFLAGS"
  4369. fi
  4370. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4371. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4372. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4373. fi
  4374. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4376. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4377. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4381. /* end confdefs.h. */
  4382. int i;
  4383. _ACEOF
  4384. if ac_fn_c_try_compile "$LINENO"; then :
  4385. xorg_cv_cc_flag_unused_command_line_argument=yes
  4386. else
  4387. xorg_cv_cc_flag_unused_command_line_argument=no
  4388. fi
  4389. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4390. fi
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4392. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4393. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4394. CFLAGS="$xorg_testset_save_CFLAGS"
  4395. fi
  4396. found="no"
  4397. if test $found = "no" ; then
  4398. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4399. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4400. fi
  4401. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4402. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4403. fi
  4404. CFLAGS="$CFLAGS -Wformat=2"
  4405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4406. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4407. cacheid=xorg_cv_cc_flag__Wformat_2
  4408. if eval \${$cacheid+:} false; then :
  4409. $as_echo_n "(cached) " >&6
  4410. else
  4411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4412. /* end confdefs.h. */
  4413. int i;
  4414. int
  4415. main ()
  4416. {
  4417. ;
  4418. return 0;
  4419. }
  4420. _ACEOF
  4421. if ac_fn_c_try_link "$LINENO"; then :
  4422. eval $cacheid=yes
  4423. else
  4424. eval $cacheid=no
  4425. fi
  4426. rm -f core conftest.err conftest.$ac_objext \
  4427. conftest$ac_exeext conftest.$ac_ext
  4428. fi
  4429. CFLAGS="$xorg_testset_save_CFLAGS"
  4430. eval supported=\$$cacheid
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4432. $as_echo "$supported" >&6; }
  4433. if test "$supported" = "yes" ; then
  4434. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4435. found="yes"
  4436. fi
  4437. fi
  4438. if test $found = "no" ; then
  4439. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4440. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4441. fi
  4442. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4443. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4444. fi
  4445. CFLAGS="$CFLAGS -Wformat"
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4447. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4448. cacheid=xorg_cv_cc_flag__Wformat
  4449. if eval \${$cacheid+:} false; then :
  4450. $as_echo_n "(cached) " >&6
  4451. else
  4452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4453. /* end confdefs.h. */
  4454. int i;
  4455. int
  4456. main ()
  4457. {
  4458. ;
  4459. return 0;
  4460. }
  4461. _ACEOF
  4462. if ac_fn_c_try_link "$LINENO"; then :
  4463. eval $cacheid=yes
  4464. else
  4465. eval $cacheid=no
  4466. fi
  4467. rm -f core conftest.err conftest.$ac_objext \
  4468. conftest$ac_exeext conftest.$ac_ext
  4469. fi
  4470. CFLAGS="$xorg_testset_save_CFLAGS"
  4471. eval supported=\$$cacheid
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4473. $as_echo "$supported" >&6; }
  4474. if test "$supported" = "yes" ; then
  4475. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4476. found="yes"
  4477. fi
  4478. fi
  4479. xorg_testset_save_CFLAGS="$CFLAGS"
  4480. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4483. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4484. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4485. $as_echo_n "(cached) " >&6
  4486. else
  4487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4488. /* end confdefs.h. */
  4489. int i;
  4490. _ACEOF
  4491. if ac_fn_c_try_compile "$LINENO"; then :
  4492. xorg_cv_cc_flag_unknown_warning_option=yes
  4493. else
  4494. xorg_cv_cc_flag_unknown_warning_option=no
  4495. fi
  4496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4497. fi
  4498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4499. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4500. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4501. CFLAGS="$xorg_testset_save_CFLAGS"
  4502. fi
  4503. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4504. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4505. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4506. fi
  4507. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4509. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4510. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4514. /* end confdefs.h. */
  4515. int i;
  4516. _ACEOF
  4517. if ac_fn_c_try_compile "$LINENO"; then :
  4518. xorg_cv_cc_flag_unused_command_line_argument=yes
  4519. else
  4520. xorg_cv_cc_flag_unused_command_line_argument=no
  4521. fi
  4522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4523. fi
  4524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4525. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4526. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4527. CFLAGS="$xorg_testset_save_CFLAGS"
  4528. fi
  4529. found="no"
  4530. if test $found = "no" ; then
  4531. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4532. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4533. fi
  4534. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4535. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4536. fi
  4537. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4539. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4540. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4541. if eval \${$cacheid+:} false; then :
  4542. $as_echo_n "(cached) " >&6
  4543. else
  4544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4545. /* end confdefs.h. */
  4546. int i;
  4547. int
  4548. main ()
  4549. {
  4550. ;
  4551. return 0;
  4552. }
  4553. _ACEOF
  4554. if ac_fn_c_try_link "$LINENO"; then :
  4555. eval $cacheid=yes
  4556. else
  4557. eval $cacheid=no
  4558. fi
  4559. rm -f core conftest.err conftest.$ac_objext \
  4560. conftest$ac_exeext conftest.$ac_ext
  4561. fi
  4562. CFLAGS="$xorg_testset_save_CFLAGS"
  4563. eval supported=\$$cacheid
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4565. $as_echo "$supported" >&6; }
  4566. if test "$supported" = "yes" ; then
  4567. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4568. found="yes"
  4569. fi
  4570. fi
  4571. xorg_testset_save_CFLAGS="$CFLAGS"
  4572. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4573. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4575. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4576. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4577. $as_echo_n "(cached) " >&6
  4578. else
  4579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end confdefs.h. */
  4581. int i;
  4582. _ACEOF
  4583. if ac_fn_c_try_compile "$LINENO"; then :
  4584. xorg_cv_cc_flag_unknown_warning_option=yes
  4585. else
  4586. xorg_cv_cc_flag_unknown_warning_option=no
  4587. fi
  4588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4589. fi
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4591. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4592. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4593. CFLAGS="$xorg_testset_save_CFLAGS"
  4594. fi
  4595. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4596. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4598. fi
  4599. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4601. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4602. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4603. $as_echo_n "(cached) " >&6
  4604. else
  4605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4606. /* end confdefs.h. */
  4607. int i;
  4608. _ACEOF
  4609. if ac_fn_c_try_compile "$LINENO"; then :
  4610. xorg_cv_cc_flag_unused_command_line_argument=yes
  4611. else
  4612. xorg_cv_cc_flag_unused_command_line_argument=no
  4613. fi
  4614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4615. fi
  4616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4617. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4618. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4619. CFLAGS="$xorg_testset_save_CFLAGS"
  4620. fi
  4621. found="no"
  4622. if test $found = "no" ; then
  4623. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4624. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4625. fi
  4626. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4627. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4628. fi
  4629. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4631. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4632. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4633. if eval \${$cacheid+:} false; then :
  4634. $as_echo_n "(cached) " >&6
  4635. else
  4636. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4637. /* end confdefs.h. */
  4638. int i;
  4639. int
  4640. main ()
  4641. {
  4642. ;
  4643. return 0;
  4644. }
  4645. _ACEOF
  4646. if ac_fn_c_try_link "$LINENO"; then :
  4647. eval $cacheid=yes
  4648. else
  4649. eval $cacheid=no
  4650. fi
  4651. rm -f core conftest.err conftest.$ac_objext \
  4652. conftest$ac_exeext conftest.$ac_ext
  4653. fi
  4654. CFLAGS="$xorg_testset_save_CFLAGS"
  4655. eval supported=\$$cacheid
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4657. $as_echo "$supported" >&6; }
  4658. if test "$supported" = "yes" ; then
  4659. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4660. found="yes"
  4661. fi
  4662. fi
  4663. xorg_testset_save_CFLAGS="$CFLAGS"
  4664. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4665. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4667. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4668. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4669. $as_echo_n "(cached) " >&6
  4670. else
  4671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4672. /* end confdefs.h. */
  4673. int i;
  4674. _ACEOF
  4675. if ac_fn_c_try_compile "$LINENO"; then :
  4676. xorg_cv_cc_flag_unknown_warning_option=yes
  4677. else
  4678. xorg_cv_cc_flag_unknown_warning_option=no
  4679. fi
  4680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4681. fi
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4683. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4684. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4685. CFLAGS="$xorg_testset_save_CFLAGS"
  4686. fi
  4687. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4688. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4689. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4690. fi
  4691. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4693. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4694. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4695. $as_echo_n "(cached) " >&6
  4696. else
  4697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4698. /* end confdefs.h. */
  4699. int i;
  4700. _ACEOF
  4701. if ac_fn_c_try_compile "$LINENO"; then :
  4702. xorg_cv_cc_flag_unused_command_line_argument=yes
  4703. else
  4704. xorg_cv_cc_flag_unused_command_line_argument=no
  4705. fi
  4706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4707. fi
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4709. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4710. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4711. CFLAGS="$xorg_testset_save_CFLAGS"
  4712. fi
  4713. found="no"
  4714. if test $found = "no" ; then
  4715. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4717. fi
  4718. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4719. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4720. fi
  4721. CFLAGS="$CFLAGS -Wnested-externs"
  4722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4723. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4724. cacheid=xorg_cv_cc_flag__Wnested_externs
  4725. if eval \${$cacheid+:} false; then :
  4726. $as_echo_n "(cached) " >&6
  4727. else
  4728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4729. /* end confdefs.h. */
  4730. int i;
  4731. int
  4732. main ()
  4733. {
  4734. ;
  4735. return 0;
  4736. }
  4737. _ACEOF
  4738. if ac_fn_c_try_link "$LINENO"; then :
  4739. eval $cacheid=yes
  4740. else
  4741. eval $cacheid=no
  4742. fi
  4743. rm -f core conftest.err conftest.$ac_objext \
  4744. conftest$ac_exeext conftest.$ac_ext
  4745. fi
  4746. CFLAGS="$xorg_testset_save_CFLAGS"
  4747. eval supported=\$$cacheid
  4748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4749. $as_echo "$supported" >&6; }
  4750. if test "$supported" = "yes" ; then
  4751. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4752. found="yes"
  4753. fi
  4754. fi
  4755. xorg_testset_save_CFLAGS="$CFLAGS"
  4756. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4757. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4759. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4760. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4764. /* end confdefs.h. */
  4765. int i;
  4766. _ACEOF
  4767. if ac_fn_c_try_compile "$LINENO"; then :
  4768. xorg_cv_cc_flag_unknown_warning_option=yes
  4769. else
  4770. xorg_cv_cc_flag_unknown_warning_option=no
  4771. fi
  4772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4775. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4776. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4777. CFLAGS="$xorg_testset_save_CFLAGS"
  4778. fi
  4779. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4780. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4781. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4782. fi
  4783. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4785. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4786. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4787. $as_echo_n "(cached) " >&6
  4788. else
  4789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4790. /* end confdefs.h. */
  4791. int i;
  4792. _ACEOF
  4793. if ac_fn_c_try_compile "$LINENO"; then :
  4794. xorg_cv_cc_flag_unused_command_line_argument=yes
  4795. else
  4796. xorg_cv_cc_flag_unused_command_line_argument=no
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4801. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4802. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4803. CFLAGS="$xorg_testset_save_CFLAGS"
  4804. fi
  4805. found="no"
  4806. if test $found = "no" ; then
  4807. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4808. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4809. fi
  4810. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4811. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4812. fi
  4813. CFLAGS="$CFLAGS -Wbad-function-cast"
  4814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4815. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4816. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4817. if eval \${$cacheid+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4821. /* end confdefs.h. */
  4822. int i;
  4823. int
  4824. main ()
  4825. {
  4826. ;
  4827. return 0;
  4828. }
  4829. _ACEOF
  4830. if ac_fn_c_try_link "$LINENO"; then :
  4831. eval $cacheid=yes
  4832. else
  4833. eval $cacheid=no
  4834. fi
  4835. rm -f core conftest.err conftest.$ac_objext \
  4836. conftest$ac_exeext conftest.$ac_ext
  4837. fi
  4838. CFLAGS="$xorg_testset_save_CFLAGS"
  4839. eval supported=\$$cacheid
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4841. $as_echo "$supported" >&6; }
  4842. if test "$supported" = "yes" ; then
  4843. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4844. found="yes"
  4845. fi
  4846. fi
  4847. xorg_testset_save_CFLAGS="$CFLAGS"
  4848. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4849. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4851. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4852. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4853. $as_echo_n "(cached) " >&6
  4854. else
  4855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4856. /* end confdefs.h. */
  4857. int i;
  4858. _ACEOF
  4859. if ac_fn_c_try_compile "$LINENO"; then :
  4860. xorg_cv_cc_flag_unknown_warning_option=yes
  4861. else
  4862. xorg_cv_cc_flag_unknown_warning_option=no
  4863. fi
  4864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4867. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4868. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4869. CFLAGS="$xorg_testset_save_CFLAGS"
  4870. fi
  4871. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4872. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4873. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4874. fi
  4875. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4877. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4878. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4879. $as_echo_n "(cached) " >&6
  4880. else
  4881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4882. /* end confdefs.h. */
  4883. int i;
  4884. _ACEOF
  4885. if ac_fn_c_try_compile "$LINENO"; then :
  4886. xorg_cv_cc_flag_unused_command_line_argument=yes
  4887. else
  4888. xorg_cv_cc_flag_unused_command_line_argument=no
  4889. fi
  4890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4891. fi
  4892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4893. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4894. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4895. CFLAGS="$xorg_testset_save_CFLAGS"
  4896. fi
  4897. found="no"
  4898. if test $found = "no" ; then
  4899. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4900. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4901. fi
  4902. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4903. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4904. fi
  4905. CFLAGS="$CFLAGS -Wold-style-definition"
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4907. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4908. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4909. if eval \${$cacheid+:} false; then :
  4910. $as_echo_n "(cached) " >&6
  4911. else
  4912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4913. /* end confdefs.h. */
  4914. int i;
  4915. int
  4916. main ()
  4917. {
  4918. ;
  4919. return 0;
  4920. }
  4921. _ACEOF
  4922. if ac_fn_c_try_link "$LINENO"; then :
  4923. eval $cacheid=yes
  4924. else
  4925. eval $cacheid=no
  4926. fi
  4927. rm -f core conftest.err conftest.$ac_objext \
  4928. conftest$ac_exeext conftest.$ac_ext
  4929. fi
  4930. CFLAGS="$xorg_testset_save_CFLAGS"
  4931. eval supported=\$$cacheid
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4933. $as_echo "$supported" >&6; }
  4934. if test "$supported" = "yes" ; then
  4935. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4936. found="yes"
  4937. fi
  4938. fi
  4939. xorg_testset_save_CFLAGS="$CFLAGS"
  4940. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4941. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4943. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4944. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4948. /* end confdefs.h. */
  4949. int i;
  4950. _ACEOF
  4951. if ac_fn_c_try_compile "$LINENO"; then :
  4952. xorg_cv_cc_flag_unknown_warning_option=yes
  4953. else
  4954. xorg_cv_cc_flag_unknown_warning_option=no
  4955. fi
  4956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4957. fi
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4959. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4960. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4961. CFLAGS="$xorg_testset_save_CFLAGS"
  4962. fi
  4963. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4964. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4965. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4966. fi
  4967. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4969. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4970. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4971. $as_echo_n "(cached) " >&6
  4972. else
  4973. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4974. /* end confdefs.h. */
  4975. int i;
  4976. _ACEOF
  4977. if ac_fn_c_try_compile "$LINENO"; then :
  4978. xorg_cv_cc_flag_unused_command_line_argument=yes
  4979. else
  4980. xorg_cv_cc_flag_unused_command_line_argument=no
  4981. fi
  4982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4983. fi
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4985. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4986. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4987. CFLAGS="$xorg_testset_save_CFLAGS"
  4988. fi
  4989. found="no"
  4990. if test $found = "no" ; then
  4991. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4992. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4993. fi
  4994. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4995. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4996. fi
  4997. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  4999. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5000. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5001. if eval \${$cacheid+:} false; then :
  5002. $as_echo_n "(cached) " >&6
  5003. else
  5004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5005. /* end confdefs.h. */
  5006. int i;
  5007. int
  5008. main ()
  5009. {
  5010. ;
  5011. return 0;
  5012. }
  5013. _ACEOF
  5014. if ac_fn_c_try_link "$LINENO"; then :
  5015. eval $cacheid=yes
  5016. else
  5017. eval $cacheid=no
  5018. fi
  5019. rm -f core conftest.err conftest.$ac_objext \
  5020. conftest$ac_exeext conftest.$ac_ext
  5021. fi
  5022. CFLAGS="$xorg_testset_save_CFLAGS"
  5023. eval supported=\$$cacheid
  5024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5025. $as_echo "$supported" >&6; }
  5026. if test "$supported" = "yes" ; then
  5027. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5028. found="yes"
  5029. fi
  5030. fi
  5031. # This chunk adds additional warnings that could catch undesired effects.
  5032. xorg_testset_save_CFLAGS="$CFLAGS"
  5033. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5034. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5036. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5037. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5038. $as_echo_n "(cached) " >&6
  5039. else
  5040. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5041. /* end confdefs.h. */
  5042. int i;
  5043. _ACEOF
  5044. if ac_fn_c_try_compile "$LINENO"; then :
  5045. xorg_cv_cc_flag_unknown_warning_option=yes
  5046. else
  5047. xorg_cv_cc_flag_unknown_warning_option=no
  5048. fi
  5049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5050. fi
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5052. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5053. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5054. CFLAGS="$xorg_testset_save_CFLAGS"
  5055. fi
  5056. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5057. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5058. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5059. fi
  5060. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5062. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5063. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5064. $as_echo_n "(cached) " >&6
  5065. else
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int i;
  5069. _ACEOF
  5070. if ac_fn_c_try_compile "$LINENO"; then :
  5071. xorg_cv_cc_flag_unused_command_line_argument=yes
  5072. else
  5073. xorg_cv_cc_flag_unused_command_line_argument=no
  5074. fi
  5075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5076. fi
  5077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5078. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5079. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5080. CFLAGS="$xorg_testset_save_CFLAGS"
  5081. fi
  5082. found="no"
  5083. if test $found = "no" ; then
  5084. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5085. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5086. fi
  5087. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5088. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5089. fi
  5090. CFLAGS="$CFLAGS -Wunused"
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5092. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5093. cacheid=xorg_cv_cc_flag__Wunused
  5094. if eval \${$cacheid+:} false; then :
  5095. $as_echo_n "(cached) " >&6
  5096. else
  5097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5098. /* end confdefs.h. */
  5099. int i;
  5100. int
  5101. main ()
  5102. {
  5103. ;
  5104. return 0;
  5105. }
  5106. _ACEOF
  5107. if ac_fn_c_try_link "$LINENO"; then :
  5108. eval $cacheid=yes
  5109. else
  5110. eval $cacheid=no
  5111. fi
  5112. rm -f core conftest.err conftest.$ac_objext \
  5113. conftest$ac_exeext conftest.$ac_ext
  5114. fi
  5115. CFLAGS="$xorg_testset_save_CFLAGS"
  5116. eval supported=\$$cacheid
  5117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5118. $as_echo "$supported" >&6; }
  5119. if test "$supported" = "yes" ; then
  5120. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5121. found="yes"
  5122. fi
  5123. fi
  5124. xorg_testset_save_CFLAGS="$CFLAGS"
  5125. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5126. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5128. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5129. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5130. $as_echo_n "(cached) " >&6
  5131. else
  5132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5133. /* end confdefs.h. */
  5134. int i;
  5135. _ACEOF
  5136. if ac_fn_c_try_compile "$LINENO"; then :
  5137. xorg_cv_cc_flag_unknown_warning_option=yes
  5138. else
  5139. xorg_cv_cc_flag_unknown_warning_option=no
  5140. fi
  5141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5142. fi
  5143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5144. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5145. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5146. CFLAGS="$xorg_testset_save_CFLAGS"
  5147. fi
  5148. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5149. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5150. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5151. fi
  5152. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5154. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5155. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5156. $as_echo_n "(cached) " >&6
  5157. else
  5158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5159. /* end confdefs.h. */
  5160. int i;
  5161. _ACEOF
  5162. if ac_fn_c_try_compile "$LINENO"; then :
  5163. xorg_cv_cc_flag_unused_command_line_argument=yes
  5164. else
  5165. xorg_cv_cc_flag_unused_command_line_argument=no
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5168. fi
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5170. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5171. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5172. CFLAGS="$xorg_testset_save_CFLAGS"
  5173. fi
  5174. found="no"
  5175. if test $found = "no" ; then
  5176. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5177. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5178. fi
  5179. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5180. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5181. fi
  5182. CFLAGS="$CFLAGS -Wuninitialized"
  5183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5184. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5185. cacheid=xorg_cv_cc_flag__Wuninitialized
  5186. if eval \${$cacheid+:} false; then :
  5187. $as_echo_n "(cached) " >&6
  5188. else
  5189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5190. /* end confdefs.h. */
  5191. int i;
  5192. int
  5193. main ()
  5194. {
  5195. ;
  5196. return 0;
  5197. }
  5198. _ACEOF
  5199. if ac_fn_c_try_link "$LINENO"; then :
  5200. eval $cacheid=yes
  5201. else
  5202. eval $cacheid=no
  5203. fi
  5204. rm -f core conftest.err conftest.$ac_objext \
  5205. conftest$ac_exeext conftest.$ac_ext
  5206. fi
  5207. CFLAGS="$xorg_testset_save_CFLAGS"
  5208. eval supported=\$$cacheid
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5210. $as_echo "$supported" >&6; }
  5211. if test "$supported" = "yes" ; then
  5212. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5213. found="yes"
  5214. fi
  5215. fi
  5216. xorg_testset_save_CFLAGS="$CFLAGS"
  5217. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5218. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5220. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5221. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5222. $as_echo_n "(cached) " >&6
  5223. else
  5224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5225. /* end confdefs.h. */
  5226. int i;
  5227. _ACEOF
  5228. if ac_fn_c_try_compile "$LINENO"; then :
  5229. xorg_cv_cc_flag_unknown_warning_option=yes
  5230. else
  5231. xorg_cv_cc_flag_unknown_warning_option=no
  5232. fi
  5233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5234. fi
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5236. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5237. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5238. CFLAGS="$xorg_testset_save_CFLAGS"
  5239. fi
  5240. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5241. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5242. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5243. fi
  5244. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5246. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5247. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5248. $as_echo_n "(cached) " >&6
  5249. else
  5250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5251. /* end confdefs.h. */
  5252. int i;
  5253. _ACEOF
  5254. if ac_fn_c_try_compile "$LINENO"; then :
  5255. xorg_cv_cc_flag_unused_command_line_argument=yes
  5256. else
  5257. xorg_cv_cc_flag_unused_command_line_argument=no
  5258. fi
  5259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5260. fi
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5262. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5263. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5264. CFLAGS="$xorg_testset_save_CFLAGS"
  5265. fi
  5266. found="no"
  5267. if test $found = "no" ; then
  5268. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5269. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5270. fi
  5271. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5272. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5273. fi
  5274. CFLAGS="$CFLAGS -Wshadow"
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5276. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5277. cacheid=xorg_cv_cc_flag__Wshadow
  5278. if eval \${$cacheid+:} false; then :
  5279. $as_echo_n "(cached) " >&6
  5280. else
  5281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5282. /* end confdefs.h. */
  5283. int i;
  5284. int
  5285. main ()
  5286. {
  5287. ;
  5288. return 0;
  5289. }
  5290. _ACEOF
  5291. if ac_fn_c_try_link "$LINENO"; then :
  5292. eval $cacheid=yes
  5293. else
  5294. eval $cacheid=no
  5295. fi
  5296. rm -f core conftest.err conftest.$ac_objext \
  5297. conftest$ac_exeext conftest.$ac_ext
  5298. fi
  5299. CFLAGS="$xorg_testset_save_CFLAGS"
  5300. eval supported=\$$cacheid
  5301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5302. $as_echo "$supported" >&6; }
  5303. if test "$supported" = "yes" ; then
  5304. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5305. found="yes"
  5306. fi
  5307. fi
  5308. xorg_testset_save_CFLAGS="$CFLAGS"
  5309. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5310. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5312. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5313. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5314. $as_echo_n "(cached) " >&6
  5315. else
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. int i;
  5319. _ACEOF
  5320. if ac_fn_c_try_compile "$LINENO"; then :
  5321. xorg_cv_cc_flag_unknown_warning_option=yes
  5322. else
  5323. xorg_cv_cc_flag_unknown_warning_option=no
  5324. fi
  5325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5326. fi
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5328. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5329. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5330. CFLAGS="$xorg_testset_save_CFLAGS"
  5331. fi
  5332. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5333. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5334. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5335. fi
  5336. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5338. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5339. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5340. $as_echo_n "(cached) " >&6
  5341. else
  5342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5343. /* end confdefs.h. */
  5344. int i;
  5345. _ACEOF
  5346. if ac_fn_c_try_compile "$LINENO"; then :
  5347. xorg_cv_cc_flag_unused_command_line_argument=yes
  5348. else
  5349. xorg_cv_cc_flag_unused_command_line_argument=no
  5350. fi
  5351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5352. fi
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5354. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5355. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5356. CFLAGS="$xorg_testset_save_CFLAGS"
  5357. fi
  5358. found="no"
  5359. if test $found = "no" ; then
  5360. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5361. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5362. fi
  5363. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5364. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5365. fi
  5366. CFLAGS="$CFLAGS -Wcast-qual"
  5367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
  5368. $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
  5369. cacheid=xorg_cv_cc_flag__Wcast_qual
  5370. if eval \${$cacheid+:} false; then :
  5371. $as_echo_n "(cached) " >&6
  5372. else
  5373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5374. /* end confdefs.h. */
  5375. int i;
  5376. int
  5377. main ()
  5378. {
  5379. ;
  5380. return 0;
  5381. }
  5382. _ACEOF
  5383. if ac_fn_c_try_link "$LINENO"; then :
  5384. eval $cacheid=yes
  5385. else
  5386. eval $cacheid=no
  5387. fi
  5388. rm -f core conftest.err conftest.$ac_objext \
  5389. conftest$ac_exeext conftest.$ac_ext
  5390. fi
  5391. CFLAGS="$xorg_testset_save_CFLAGS"
  5392. eval supported=\$$cacheid
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5394. $as_echo "$supported" >&6; }
  5395. if test "$supported" = "yes" ; then
  5396. BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
  5397. found="yes"
  5398. fi
  5399. fi
  5400. xorg_testset_save_CFLAGS="$CFLAGS"
  5401. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5402. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5404. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5405. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5406. $as_echo_n "(cached) " >&6
  5407. else
  5408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5409. /* end confdefs.h. */
  5410. int i;
  5411. _ACEOF
  5412. if ac_fn_c_try_compile "$LINENO"; then :
  5413. xorg_cv_cc_flag_unknown_warning_option=yes
  5414. else
  5415. xorg_cv_cc_flag_unknown_warning_option=no
  5416. fi
  5417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5418. fi
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5420. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5421. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5422. CFLAGS="$xorg_testset_save_CFLAGS"
  5423. fi
  5424. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5425. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5426. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5427. fi
  5428. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5430. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5431. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5432. $as_echo_n "(cached) " >&6
  5433. else
  5434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5435. /* end confdefs.h. */
  5436. int i;
  5437. _ACEOF
  5438. if ac_fn_c_try_compile "$LINENO"; then :
  5439. xorg_cv_cc_flag_unused_command_line_argument=yes
  5440. else
  5441. xorg_cv_cc_flag_unused_command_line_argument=no
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5444. fi
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5446. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5447. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5448. CFLAGS="$xorg_testset_save_CFLAGS"
  5449. fi
  5450. found="no"
  5451. if test $found = "no" ; then
  5452. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5453. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5454. fi
  5455. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5456. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5457. fi
  5458. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5460. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5461. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5462. if eval \${$cacheid+:} false; then :
  5463. $as_echo_n "(cached) " >&6
  5464. else
  5465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5466. /* end confdefs.h. */
  5467. int i;
  5468. int
  5469. main ()
  5470. {
  5471. ;
  5472. return 0;
  5473. }
  5474. _ACEOF
  5475. if ac_fn_c_try_link "$LINENO"; then :
  5476. eval $cacheid=yes
  5477. else
  5478. eval $cacheid=no
  5479. fi
  5480. rm -f core conftest.err conftest.$ac_objext \
  5481. conftest$ac_exeext conftest.$ac_ext
  5482. fi
  5483. CFLAGS="$xorg_testset_save_CFLAGS"
  5484. eval supported=\$$cacheid
  5485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5486. $as_echo "$supported" >&6; }
  5487. if test "$supported" = "yes" ; then
  5488. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5489. found="yes"
  5490. fi
  5491. fi
  5492. xorg_testset_save_CFLAGS="$CFLAGS"
  5493. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5494. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5496. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5497. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5501. /* end confdefs.h. */
  5502. int i;
  5503. _ACEOF
  5504. if ac_fn_c_try_compile "$LINENO"; then :
  5505. xorg_cv_cc_flag_unknown_warning_option=yes
  5506. else
  5507. xorg_cv_cc_flag_unknown_warning_option=no
  5508. fi
  5509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5510. fi
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5512. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5513. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5514. CFLAGS="$xorg_testset_save_CFLAGS"
  5515. fi
  5516. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5517. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5518. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5519. fi
  5520. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5522. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5523. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5524. $as_echo_n "(cached) " >&6
  5525. else
  5526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5527. /* end confdefs.h. */
  5528. int i;
  5529. _ACEOF
  5530. if ac_fn_c_try_compile "$LINENO"; then :
  5531. xorg_cv_cc_flag_unused_command_line_argument=yes
  5532. else
  5533. xorg_cv_cc_flag_unused_command_line_argument=no
  5534. fi
  5535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5536. fi
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5538. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5539. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5540. CFLAGS="$xorg_testset_save_CFLAGS"
  5541. fi
  5542. found="no"
  5543. if test $found = "no" ; then
  5544. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5545. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5546. fi
  5547. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5548. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5549. fi
  5550. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5552. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5553. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5554. if eval \${$cacheid+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5558. /* end confdefs.h. */
  5559. int i;
  5560. int
  5561. main ()
  5562. {
  5563. ;
  5564. return 0;
  5565. }
  5566. _ACEOF
  5567. if ac_fn_c_try_link "$LINENO"; then :
  5568. eval $cacheid=yes
  5569. else
  5570. eval $cacheid=no
  5571. fi
  5572. rm -f core conftest.err conftest.$ac_objext \
  5573. conftest$ac_exeext conftest.$ac_ext
  5574. fi
  5575. CFLAGS="$xorg_testset_save_CFLAGS"
  5576. eval supported=\$$cacheid
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5578. $as_echo "$supported" >&6; }
  5579. if test "$supported" = "yes" ; then
  5580. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5581. found="yes"
  5582. fi
  5583. fi
  5584. # These are currently disabled because they are noisy. They will be enabled
  5585. # in the future once the codebase is sufficiently modernized to silence
  5586. # them. For now, I don't want them to drown out the other warnings.
  5587. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
  5588. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5589. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5590. # Turn some warnings into errors, so we don't accidently get successful builds
  5591. # when there are problems that should be fixed.
  5592. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5593. xorg_testset_save_CFLAGS="$CFLAGS"
  5594. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5595. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5597. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5598. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5599. $as_echo_n "(cached) " >&6
  5600. else
  5601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5602. /* end confdefs.h. */
  5603. int i;
  5604. _ACEOF
  5605. if ac_fn_c_try_compile "$LINENO"; then :
  5606. xorg_cv_cc_flag_unknown_warning_option=yes
  5607. else
  5608. xorg_cv_cc_flag_unknown_warning_option=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5611. fi
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5613. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5614. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5615. CFLAGS="$xorg_testset_save_CFLAGS"
  5616. fi
  5617. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5618. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5619. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5620. fi
  5621. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5623. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5624. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5625. $as_echo_n "(cached) " >&6
  5626. else
  5627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5628. /* end confdefs.h. */
  5629. int i;
  5630. _ACEOF
  5631. if ac_fn_c_try_compile "$LINENO"; then :
  5632. xorg_cv_cc_flag_unused_command_line_argument=yes
  5633. else
  5634. xorg_cv_cc_flag_unused_command_line_argument=no
  5635. fi
  5636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5637. fi
  5638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5639. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5640. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5641. CFLAGS="$xorg_testset_save_CFLAGS"
  5642. fi
  5643. found="no"
  5644. if test $found = "no" ; then
  5645. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5646. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5647. fi
  5648. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5649. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5650. fi
  5651. CFLAGS="$CFLAGS -Werror=implicit"
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5653. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5654. cacheid=xorg_cv_cc_flag__Werror_implicit
  5655. if eval \${$cacheid+:} false; then :
  5656. $as_echo_n "(cached) " >&6
  5657. else
  5658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5659. /* end confdefs.h. */
  5660. int i;
  5661. int
  5662. main ()
  5663. {
  5664. ;
  5665. return 0;
  5666. }
  5667. _ACEOF
  5668. if ac_fn_c_try_link "$LINENO"; then :
  5669. eval $cacheid=yes
  5670. else
  5671. eval $cacheid=no
  5672. fi
  5673. rm -f core conftest.err conftest.$ac_objext \
  5674. conftest$ac_exeext conftest.$ac_ext
  5675. fi
  5676. CFLAGS="$xorg_testset_save_CFLAGS"
  5677. eval supported=\$$cacheid
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5679. $as_echo "$supported" >&6; }
  5680. if test "$supported" = "yes" ; then
  5681. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5682. found="yes"
  5683. fi
  5684. fi
  5685. if test $found = "no" ; then
  5686. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5687. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5688. fi
  5689. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5690. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5691. fi
  5692. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5694. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5695. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5696. if eval \${$cacheid+:} false; then :
  5697. $as_echo_n "(cached) " >&6
  5698. else
  5699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5700. /* end confdefs.h. */
  5701. int i;
  5702. int
  5703. main ()
  5704. {
  5705. ;
  5706. return 0;
  5707. }
  5708. _ACEOF
  5709. if ac_fn_c_try_link "$LINENO"; then :
  5710. eval $cacheid=yes
  5711. else
  5712. eval $cacheid=no
  5713. fi
  5714. rm -f core conftest.err conftest.$ac_objext \
  5715. conftest$ac_exeext conftest.$ac_ext
  5716. fi
  5717. CFLAGS="$xorg_testset_save_CFLAGS"
  5718. eval supported=\$$cacheid
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5720. $as_echo "$supported" >&6; }
  5721. if test "$supported" = "yes" ; then
  5722. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5723. found="yes"
  5724. fi
  5725. fi
  5726. xorg_testset_save_CFLAGS="$CFLAGS"
  5727. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5728. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5730. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5731. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5732. $as_echo_n "(cached) " >&6
  5733. else
  5734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5735. /* end confdefs.h. */
  5736. int i;
  5737. _ACEOF
  5738. if ac_fn_c_try_compile "$LINENO"; then :
  5739. xorg_cv_cc_flag_unknown_warning_option=yes
  5740. else
  5741. xorg_cv_cc_flag_unknown_warning_option=no
  5742. fi
  5743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5744. fi
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5746. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5747. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5748. CFLAGS="$xorg_testset_save_CFLAGS"
  5749. fi
  5750. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5751. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5752. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5753. fi
  5754. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5756. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5757. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5758. $as_echo_n "(cached) " >&6
  5759. else
  5760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5761. /* end confdefs.h. */
  5762. int i;
  5763. _ACEOF
  5764. if ac_fn_c_try_compile "$LINENO"; then :
  5765. xorg_cv_cc_flag_unused_command_line_argument=yes
  5766. else
  5767. xorg_cv_cc_flag_unused_command_line_argument=no
  5768. fi
  5769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5770. fi
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5772. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5773. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5774. CFLAGS="$xorg_testset_save_CFLAGS"
  5775. fi
  5776. found="no"
  5777. if test $found = "no" ; then
  5778. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5779. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5780. fi
  5781. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5782. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5783. fi
  5784. CFLAGS="$CFLAGS -Werror=nonnull"
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5786. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5787. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5788. if eval \${$cacheid+:} false; then :
  5789. $as_echo_n "(cached) " >&6
  5790. else
  5791. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5792. /* end confdefs.h. */
  5793. int i;
  5794. int
  5795. main ()
  5796. {
  5797. ;
  5798. return 0;
  5799. }
  5800. _ACEOF
  5801. if ac_fn_c_try_link "$LINENO"; then :
  5802. eval $cacheid=yes
  5803. else
  5804. eval $cacheid=no
  5805. fi
  5806. rm -f core conftest.err conftest.$ac_objext \
  5807. conftest$ac_exeext conftest.$ac_ext
  5808. fi
  5809. CFLAGS="$xorg_testset_save_CFLAGS"
  5810. eval supported=\$$cacheid
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5812. $as_echo "$supported" >&6; }
  5813. if test "$supported" = "yes" ; then
  5814. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5815. found="yes"
  5816. fi
  5817. fi
  5818. xorg_testset_save_CFLAGS="$CFLAGS"
  5819. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5820. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5822. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5823. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5827. /* end confdefs.h. */
  5828. int i;
  5829. _ACEOF
  5830. if ac_fn_c_try_compile "$LINENO"; then :
  5831. xorg_cv_cc_flag_unknown_warning_option=yes
  5832. else
  5833. xorg_cv_cc_flag_unknown_warning_option=no
  5834. fi
  5835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5836. fi
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5838. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5839. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5840. CFLAGS="$xorg_testset_save_CFLAGS"
  5841. fi
  5842. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5843. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5844. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5845. fi
  5846. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5848. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5849. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5853. /* end confdefs.h. */
  5854. int i;
  5855. _ACEOF
  5856. if ac_fn_c_try_compile "$LINENO"; then :
  5857. xorg_cv_cc_flag_unused_command_line_argument=yes
  5858. else
  5859. xorg_cv_cc_flag_unused_command_line_argument=no
  5860. fi
  5861. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5862. fi
  5863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5864. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5865. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5866. CFLAGS="$xorg_testset_save_CFLAGS"
  5867. fi
  5868. found="no"
  5869. if test $found = "no" ; then
  5870. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5871. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5872. fi
  5873. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5874. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5875. fi
  5876. CFLAGS="$CFLAGS -Werror=init-self"
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5878. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5879. cacheid=xorg_cv_cc_flag__Werror_init_self
  5880. if eval \${$cacheid+:} false; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5884. /* end confdefs.h. */
  5885. int i;
  5886. int
  5887. main ()
  5888. {
  5889. ;
  5890. return 0;
  5891. }
  5892. _ACEOF
  5893. if ac_fn_c_try_link "$LINENO"; then :
  5894. eval $cacheid=yes
  5895. else
  5896. eval $cacheid=no
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext \
  5899. conftest$ac_exeext conftest.$ac_ext
  5900. fi
  5901. CFLAGS="$xorg_testset_save_CFLAGS"
  5902. eval supported=\$$cacheid
  5903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5904. $as_echo "$supported" >&6; }
  5905. if test "$supported" = "yes" ; then
  5906. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5907. found="yes"
  5908. fi
  5909. fi
  5910. xorg_testset_save_CFLAGS="$CFLAGS"
  5911. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5912. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5914. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5915. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5916. $as_echo_n "(cached) " >&6
  5917. else
  5918. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5919. /* end confdefs.h. */
  5920. int i;
  5921. _ACEOF
  5922. if ac_fn_c_try_compile "$LINENO"; then :
  5923. xorg_cv_cc_flag_unknown_warning_option=yes
  5924. else
  5925. xorg_cv_cc_flag_unknown_warning_option=no
  5926. fi
  5927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5928. fi
  5929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5930. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5931. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5932. CFLAGS="$xorg_testset_save_CFLAGS"
  5933. fi
  5934. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5935. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5936. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5937. fi
  5938. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5940. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5941. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5945. /* end confdefs.h. */
  5946. int i;
  5947. _ACEOF
  5948. if ac_fn_c_try_compile "$LINENO"; then :
  5949. xorg_cv_cc_flag_unused_command_line_argument=yes
  5950. else
  5951. xorg_cv_cc_flag_unused_command_line_argument=no
  5952. fi
  5953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5954. fi
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5956. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5957. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5958. CFLAGS="$xorg_testset_save_CFLAGS"
  5959. fi
  5960. found="no"
  5961. if test $found = "no" ; then
  5962. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5963. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5964. fi
  5965. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5966. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5967. fi
  5968. CFLAGS="$CFLAGS -Werror=main"
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  5970. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  5971. cacheid=xorg_cv_cc_flag__Werror_main
  5972. if eval \${$cacheid+:} false; then :
  5973. $as_echo_n "(cached) " >&6
  5974. else
  5975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5976. /* end confdefs.h. */
  5977. int i;
  5978. int
  5979. main ()
  5980. {
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. if ac_fn_c_try_link "$LINENO"; then :
  5986. eval $cacheid=yes
  5987. else
  5988. eval $cacheid=no
  5989. fi
  5990. rm -f core conftest.err conftest.$ac_objext \
  5991. conftest$ac_exeext conftest.$ac_ext
  5992. fi
  5993. CFLAGS="$xorg_testset_save_CFLAGS"
  5994. eval supported=\$$cacheid
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5996. $as_echo "$supported" >&6; }
  5997. if test "$supported" = "yes" ; then
  5998. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  5999. found="yes"
  6000. fi
  6001. fi
  6002. xorg_testset_save_CFLAGS="$CFLAGS"
  6003. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6004. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6006. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6007. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6011. /* end confdefs.h. */
  6012. int i;
  6013. _ACEOF
  6014. if ac_fn_c_try_compile "$LINENO"; then :
  6015. xorg_cv_cc_flag_unknown_warning_option=yes
  6016. else
  6017. xorg_cv_cc_flag_unknown_warning_option=no
  6018. fi
  6019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6020. fi
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6022. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6023. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6024. CFLAGS="$xorg_testset_save_CFLAGS"
  6025. fi
  6026. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6027. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6029. fi
  6030. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6032. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6033. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6037. /* end confdefs.h. */
  6038. int i;
  6039. _ACEOF
  6040. if ac_fn_c_try_compile "$LINENO"; then :
  6041. xorg_cv_cc_flag_unused_command_line_argument=yes
  6042. else
  6043. xorg_cv_cc_flag_unused_command_line_argument=no
  6044. fi
  6045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6046. fi
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6048. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6049. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6050. CFLAGS="$xorg_testset_save_CFLAGS"
  6051. fi
  6052. found="no"
  6053. if test $found = "no" ; then
  6054. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6055. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6056. fi
  6057. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6058. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6059. fi
  6060. CFLAGS="$CFLAGS -Werror=missing-braces"
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6062. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6063. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6064. if eval \${$cacheid+:} false; then :
  6065. $as_echo_n "(cached) " >&6
  6066. else
  6067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6068. /* end confdefs.h. */
  6069. int i;
  6070. int
  6071. main ()
  6072. {
  6073. ;
  6074. return 0;
  6075. }
  6076. _ACEOF
  6077. if ac_fn_c_try_link "$LINENO"; then :
  6078. eval $cacheid=yes
  6079. else
  6080. eval $cacheid=no
  6081. fi
  6082. rm -f core conftest.err conftest.$ac_objext \
  6083. conftest$ac_exeext conftest.$ac_ext
  6084. fi
  6085. CFLAGS="$xorg_testset_save_CFLAGS"
  6086. eval supported=\$$cacheid
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6088. $as_echo "$supported" >&6; }
  6089. if test "$supported" = "yes" ; then
  6090. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6091. found="yes"
  6092. fi
  6093. fi
  6094. xorg_testset_save_CFLAGS="$CFLAGS"
  6095. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6096. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6098. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6099. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6100. $as_echo_n "(cached) " >&6
  6101. else
  6102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6103. /* end confdefs.h. */
  6104. int i;
  6105. _ACEOF
  6106. if ac_fn_c_try_compile "$LINENO"; then :
  6107. xorg_cv_cc_flag_unknown_warning_option=yes
  6108. else
  6109. xorg_cv_cc_flag_unknown_warning_option=no
  6110. fi
  6111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6112. fi
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6114. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6115. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6116. CFLAGS="$xorg_testset_save_CFLAGS"
  6117. fi
  6118. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6119. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6120. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6121. fi
  6122. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6124. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6125. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6126. $as_echo_n "(cached) " >&6
  6127. else
  6128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6129. /* end confdefs.h. */
  6130. int i;
  6131. _ACEOF
  6132. if ac_fn_c_try_compile "$LINENO"; then :
  6133. xorg_cv_cc_flag_unused_command_line_argument=yes
  6134. else
  6135. xorg_cv_cc_flag_unused_command_line_argument=no
  6136. fi
  6137. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6138. fi
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6140. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6141. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6142. CFLAGS="$xorg_testset_save_CFLAGS"
  6143. fi
  6144. found="no"
  6145. if test $found = "no" ; then
  6146. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6147. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6148. fi
  6149. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6150. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6151. fi
  6152. CFLAGS="$CFLAGS -Werror=sequence-point"
  6153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6154. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6155. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6156. if eval \${$cacheid+:} false; then :
  6157. $as_echo_n "(cached) " >&6
  6158. else
  6159. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6160. /* end confdefs.h. */
  6161. int i;
  6162. int
  6163. main ()
  6164. {
  6165. ;
  6166. return 0;
  6167. }
  6168. _ACEOF
  6169. if ac_fn_c_try_link "$LINENO"; then :
  6170. eval $cacheid=yes
  6171. else
  6172. eval $cacheid=no
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext \
  6175. conftest$ac_exeext conftest.$ac_ext
  6176. fi
  6177. CFLAGS="$xorg_testset_save_CFLAGS"
  6178. eval supported=\$$cacheid
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6180. $as_echo "$supported" >&6; }
  6181. if test "$supported" = "yes" ; then
  6182. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6183. found="yes"
  6184. fi
  6185. fi
  6186. xorg_testset_save_CFLAGS="$CFLAGS"
  6187. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6188. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6190. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6191. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6192. $as_echo_n "(cached) " >&6
  6193. else
  6194. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6195. /* end confdefs.h. */
  6196. int i;
  6197. _ACEOF
  6198. if ac_fn_c_try_compile "$LINENO"; then :
  6199. xorg_cv_cc_flag_unknown_warning_option=yes
  6200. else
  6201. xorg_cv_cc_flag_unknown_warning_option=no
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. fi
  6205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6206. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6207. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6208. CFLAGS="$xorg_testset_save_CFLAGS"
  6209. fi
  6210. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6211. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6212. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6213. fi
  6214. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6216. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6217. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6221. /* end confdefs.h. */
  6222. int i;
  6223. _ACEOF
  6224. if ac_fn_c_try_compile "$LINENO"; then :
  6225. xorg_cv_cc_flag_unused_command_line_argument=yes
  6226. else
  6227. xorg_cv_cc_flag_unused_command_line_argument=no
  6228. fi
  6229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6230. fi
  6231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6232. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6233. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6234. CFLAGS="$xorg_testset_save_CFLAGS"
  6235. fi
  6236. found="no"
  6237. if test $found = "no" ; then
  6238. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6239. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6240. fi
  6241. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6242. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6243. fi
  6244. CFLAGS="$CFLAGS -Werror=return-type"
  6245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6246. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6247. cacheid=xorg_cv_cc_flag__Werror_return_type
  6248. if eval \${$cacheid+:} false; then :
  6249. $as_echo_n "(cached) " >&6
  6250. else
  6251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6252. /* end confdefs.h. */
  6253. int i;
  6254. int
  6255. main ()
  6256. {
  6257. ;
  6258. return 0;
  6259. }
  6260. _ACEOF
  6261. if ac_fn_c_try_link "$LINENO"; then :
  6262. eval $cacheid=yes
  6263. else
  6264. eval $cacheid=no
  6265. fi
  6266. rm -f core conftest.err conftest.$ac_objext \
  6267. conftest$ac_exeext conftest.$ac_ext
  6268. fi
  6269. CFLAGS="$xorg_testset_save_CFLAGS"
  6270. eval supported=\$$cacheid
  6271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6272. $as_echo "$supported" >&6; }
  6273. if test "$supported" = "yes" ; then
  6274. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6275. found="yes"
  6276. fi
  6277. fi
  6278. if test $found = "no" ; then
  6279. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6280. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6281. fi
  6282. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6283. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6284. fi
  6285. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6287. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6288. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6289. if eval \${$cacheid+:} false; then :
  6290. $as_echo_n "(cached) " >&6
  6291. else
  6292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6293. /* end confdefs.h. */
  6294. int i;
  6295. int
  6296. main ()
  6297. {
  6298. ;
  6299. return 0;
  6300. }
  6301. _ACEOF
  6302. if ac_fn_c_try_link "$LINENO"; then :
  6303. eval $cacheid=yes
  6304. else
  6305. eval $cacheid=no
  6306. fi
  6307. rm -f core conftest.err conftest.$ac_objext \
  6308. conftest$ac_exeext conftest.$ac_ext
  6309. fi
  6310. CFLAGS="$xorg_testset_save_CFLAGS"
  6311. eval supported=\$$cacheid
  6312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6313. $as_echo "$supported" >&6; }
  6314. if test "$supported" = "yes" ; then
  6315. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6316. found="yes"
  6317. fi
  6318. fi
  6319. xorg_testset_save_CFLAGS="$CFLAGS"
  6320. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6321. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6323. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6324. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6325. $as_echo_n "(cached) " >&6
  6326. else
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. int i;
  6330. _ACEOF
  6331. if ac_fn_c_try_compile "$LINENO"; then :
  6332. xorg_cv_cc_flag_unknown_warning_option=yes
  6333. else
  6334. xorg_cv_cc_flag_unknown_warning_option=no
  6335. fi
  6336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6337. fi
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6339. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6340. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6341. CFLAGS="$xorg_testset_save_CFLAGS"
  6342. fi
  6343. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6344. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6345. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6346. fi
  6347. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6349. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6350. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6351. $as_echo_n "(cached) " >&6
  6352. else
  6353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6354. /* end confdefs.h. */
  6355. int i;
  6356. _ACEOF
  6357. if ac_fn_c_try_compile "$LINENO"; then :
  6358. xorg_cv_cc_flag_unused_command_line_argument=yes
  6359. else
  6360. xorg_cv_cc_flag_unused_command_line_argument=no
  6361. fi
  6362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6363. fi
  6364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6365. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6366. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6367. CFLAGS="$xorg_testset_save_CFLAGS"
  6368. fi
  6369. found="no"
  6370. if test $found = "no" ; then
  6371. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6372. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6373. fi
  6374. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6375. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6376. fi
  6377. CFLAGS="$CFLAGS -Werror=trigraphs"
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6379. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6380. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6381. if eval \${$cacheid+:} false; then :
  6382. $as_echo_n "(cached) " >&6
  6383. else
  6384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6385. /* end confdefs.h. */
  6386. int i;
  6387. int
  6388. main ()
  6389. {
  6390. ;
  6391. return 0;
  6392. }
  6393. _ACEOF
  6394. if ac_fn_c_try_link "$LINENO"; then :
  6395. eval $cacheid=yes
  6396. else
  6397. eval $cacheid=no
  6398. fi
  6399. rm -f core conftest.err conftest.$ac_objext \
  6400. conftest$ac_exeext conftest.$ac_ext
  6401. fi
  6402. CFLAGS="$xorg_testset_save_CFLAGS"
  6403. eval supported=\$$cacheid
  6404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6405. $as_echo "$supported" >&6; }
  6406. if test "$supported" = "yes" ; then
  6407. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6408. found="yes"
  6409. fi
  6410. fi
  6411. xorg_testset_save_CFLAGS="$CFLAGS"
  6412. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6413. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6415. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6416. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6420. /* end confdefs.h. */
  6421. int i;
  6422. _ACEOF
  6423. if ac_fn_c_try_compile "$LINENO"; then :
  6424. xorg_cv_cc_flag_unknown_warning_option=yes
  6425. else
  6426. xorg_cv_cc_flag_unknown_warning_option=no
  6427. fi
  6428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6431. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6432. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6433. CFLAGS="$xorg_testset_save_CFLAGS"
  6434. fi
  6435. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6436. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6437. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6438. fi
  6439. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6441. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6442. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6443. $as_echo_n "(cached) " >&6
  6444. else
  6445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6446. /* end confdefs.h. */
  6447. int i;
  6448. _ACEOF
  6449. if ac_fn_c_try_compile "$LINENO"; then :
  6450. xorg_cv_cc_flag_unused_command_line_argument=yes
  6451. else
  6452. xorg_cv_cc_flag_unused_command_line_argument=no
  6453. fi
  6454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6455. fi
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6457. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6458. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6459. CFLAGS="$xorg_testset_save_CFLAGS"
  6460. fi
  6461. found="no"
  6462. if test $found = "no" ; then
  6463. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6464. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6465. fi
  6466. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6467. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6468. fi
  6469. CFLAGS="$CFLAGS -Werror=array-bounds"
  6470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6471. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6472. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6473. if eval \${$cacheid+:} false; then :
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6477. /* end confdefs.h. */
  6478. int i;
  6479. int
  6480. main ()
  6481. {
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_c_try_link "$LINENO"; then :
  6487. eval $cacheid=yes
  6488. else
  6489. eval $cacheid=no
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext \
  6492. conftest$ac_exeext conftest.$ac_ext
  6493. fi
  6494. CFLAGS="$xorg_testset_save_CFLAGS"
  6495. eval supported=\$$cacheid
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6497. $as_echo "$supported" >&6; }
  6498. if test "$supported" = "yes" ; then
  6499. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6500. found="yes"
  6501. fi
  6502. fi
  6503. xorg_testset_save_CFLAGS="$CFLAGS"
  6504. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6505. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6507. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6508. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512. /* end confdefs.h. */
  6513. int i;
  6514. _ACEOF
  6515. if ac_fn_c_try_compile "$LINENO"; then :
  6516. xorg_cv_cc_flag_unknown_warning_option=yes
  6517. else
  6518. xorg_cv_cc_flag_unknown_warning_option=no
  6519. fi
  6520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6521. fi
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6523. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6524. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6525. CFLAGS="$xorg_testset_save_CFLAGS"
  6526. fi
  6527. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6528. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6529. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6530. fi
  6531. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6533. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6534. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6538. /* end confdefs.h. */
  6539. int i;
  6540. _ACEOF
  6541. if ac_fn_c_try_compile "$LINENO"; then :
  6542. xorg_cv_cc_flag_unused_command_line_argument=yes
  6543. else
  6544. xorg_cv_cc_flag_unused_command_line_argument=no
  6545. fi
  6546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6547. fi
  6548. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6549. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6550. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6551. CFLAGS="$xorg_testset_save_CFLAGS"
  6552. fi
  6553. found="no"
  6554. if test $found = "no" ; then
  6555. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6556. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6557. fi
  6558. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6559. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6560. fi
  6561. CFLAGS="$CFLAGS -Werror=write-strings"
  6562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6563. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6564. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6565. if eval \${$cacheid+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6569. /* end confdefs.h. */
  6570. int i;
  6571. int
  6572. main ()
  6573. {
  6574. ;
  6575. return 0;
  6576. }
  6577. _ACEOF
  6578. if ac_fn_c_try_link "$LINENO"; then :
  6579. eval $cacheid=yes
  6580. else
  6581. eval $cacheid=no
  6582. fi
  6583. rm -f core conftest.err conftest.$ac_objext \
  6584. conftest$ac_exeext conftest.$ac_ext
  6585. fi
  6586. CFLAGS="$xorg_testset_save_CFLAGS"
  6587. eval supported=\$$cacheid
  6588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6589. $as_echo "$supported" >&6; }
  6590. if test "$supported" = "yes" ; then
  6591. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6592. found="yes"
  6593. fi
  6594. fi
  6595. xorg_testset_save_CFLAGS="$CFLAGS"
  6596. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6599. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6600. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6601. $as_echo_n "(cached) " >&6
  6602. else
  6603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6604. /* end confdefs.h. */
  6605. int i;
  6606. _ACEOF
  6607. if ac_fn_c_try_compile "$LINENO"; then :
  6608. xorg_cv_cc_flag_unknown_warning_option=yes
  6609. else
  6610. xorg_cv_cc_flag_unknown_warning_option=no
  6611. fi
  6612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6613. fi
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6615. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6616. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6617. CFLAGS="$xorg_testset_save_CFLAGS"
  6618. fi
  6619. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6620. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6621. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6622. fi
  6623. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6625. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6626. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6627. $as_echo_n "(cached) " >&6
  6628. else
  6629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6630. /* end confdefs.h. */
  6631. int i;
  6632. _ACEOF
  6633. if ac_fn_c_try_compile "$LINENO"; then :
  6634. xorg_cv_cc_flag_unused_command_line_argument=yes
  6635. else
  6636. xorg_cv_cc_flag_unused_command_line_argument=no
  6637. fi
  6638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6639. fi
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6641. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6642. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6643. CFLAGS="$xorg_testset_save_CFLAGS"
  6644. fi
  6645. found="no"
  6646. if test $found = "no" ; then
  6647. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6648. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6649. fi
  6650. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6651. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6652. fi
  6653. CFLAGS="$CFLAGS -Werror=address"
  6654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6655. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6656. cacheid=xorg_cv_cc_flag__Werror_address
  6657. if eval \${$cacheid+:} false; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6661. /* end confdefs.h. */
  6662. int i;
  6663. int
  6664. main ()
  6665. {
  6666. ;
  6667. return 0;
  6668. }
  6669. _ACEOF
  6670. if ac_fn_c_try_link "$LINENO"; then :
  6671. eval $cacheid=yes
  6672. else
  6673. eval $cacheid=no
  6674. fi
  6675. rm -f core conftest.err conftest.$ac_objext \
  6676. conftest$ac_exeext conftest.$ac_ext
  6677. fi
  6678. CFLAGS="$xorg_testset_save_CFLAGS"
  6679. eval supported=\$$cacheid
  6680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6681. $as_echo "$supported" >&6; }
  6682. if test "$supported" = "yes" ; then
  6683. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6684. found="yes"
  6685. fi
  6686. fi
  6687. xorg_testset_save_CFLAGS="$CFLAGS"
  6688. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6689. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6691. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6692. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6693. $as_echo_n "(cached) " >&6
  6694. else
  6695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6696. /* end confdefs.h. */
  6697. int i;
  6698. _ACEOF
  6699. if ac_fn_c_try_compile "$LINENO"; then :
  6700. xorg_cv_cc_flag_unknown_warning_option=yes
  6701. else
  6702. xorg_cv_cc_flag_unknown_warning_option=no
  6703. fi
  6704. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6705. fi
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6707. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6708. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6709. CFLAGS="$xorg_testset_save_CFLAGS"
  6710. fi
  6711. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6712. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6713. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6714. fi
  6715. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6717. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6718. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6719. $as_echo_n "(cached) " >&6
  6720. else
  6721. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6722. /* end confdefs.h. */
  6723. int i;
  6724. _ACEOF
  6725. if ac_fn_c_try_compile "$LINENO"; then :
  6726. xorg_cv_cc_flag_unused_command_line_argument=yes
  6727. else
  6728. xorg_cv_cc_flag_unused_command_line_argument=no
  6729. fi
  6730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6731. fi
  6732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6733. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6734. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6735. CFLAGS="$xorg_testset_save_CFLAGS"
  6736. fi
  6737. found="no"
  6738. if test $found = "no" ; then
  6739. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6740. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6741. fi
  6742. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6743. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6744. fi
  6745. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6747. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6748. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6749. if eval \${$cacheid+:} false; then :
  6750. $as_echo_n "(cached) " >&6
  6751. else
  6752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6753. /* end confdefs.h. */
  6754. int i;
  6755. int
  6756. main ()
  6757. {
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. if ac_fn_c_try_link "$LINENO"; then :
  6763. eval $cacheid=yes
  6764. else
  6765. eval $cacheid=no
  6766. fi
  6767. rm -f core conftest.err conftest.$ac_objext \
  6768. conftest$ac_exeext conftest.$ac_ext
  6769. fi
  6770. CFLAGS="$xorg_testset_save_CFLAGS"
  6771. eval supported=\$$cacheid
  6772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6773. $as_echo "$supported" >&6; }
  6774. if test "$supported" = "yes" ; then
  6775. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6776. found="yes"
  6777. fi
  6778. fi
  6779. if test $found = "no" ; then
  6780. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6781. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6782. fi
  6783. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6784. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6785. fi
  6786. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6788. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6789. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6790. if eval \${$cacheid+:} false; then :
  6791. $as_echo_n "(cached) " >&6
  6792. else
  6793. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6794. /* end confdefs.h. */
  6795. int i;
  6796. int
  6797. main ()
  6798. {
  6799. ;
  6800. return 0;
  6801. }
  6802. _ACEOF
  6803. if ac_fn_c_try_link "$LINENO"; then :
  6804. eval $cacheid=yes
  6805. else
  6806. eval $cacheid=no
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext \
  6809. conftest$ac_exeext conftest.$ac_ext
  6810. fi
  6811. CFLAGS="$xorg_testset_save_CFLAGS"
  6812. eval supported=\$$cacheid
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6814. $as_echo "$supported" >&6; }
  6815. if test "$supported" = "yes" ; then
  6816. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6817. found="yes"
  6818. fi
  6819. fi
  6820. xorg_testset_save_CFLAGS="$CFLAGS"
  6821. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6822. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6824. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6825. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6826. $as_echo_n "(cached) " >&6
  6827. else
  6828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6829. /* end confdefs.h. */
  6830. int i;
  6831. _ACEOF
  6832. if ac_fn_c_try_compile "$LINENO"; then :
  6833. xorg_cv_cc_flag_unknown_warning_option=yes
  6834. else
  6835. xorg_cv_cc_flag_unknown_warning_option=no
  6836. fi
  6837. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6838. fi
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6840. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6841. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6842. CFLAGS="$xorg_testset_save_CFLAGS"
  6843. fi
  6844. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6845. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6846. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6847. fi
  6848. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6850. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6851. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6852. $as_echo_n "(cached) " >&6
  6853. else
  6854. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6855. /* end confdefs.h. */
  6856. int i;
  6857. _ACEOF
  6858. if ac_fn_c_try_compile "$LINENO"; then :
  6859. xorg_cv_cc_flag_unused_command_line_argument=yes
  6860. else
  6861. xorg_cv_cc_flag_unused_command_line_argument=no
  6862. fi
  6863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6864. fi
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6866. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6867. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6868. CFLAGS="$xorg_testset_save_CFLAGS"
  6869. fi
  6870. found="no"
  6871. if test $found = "no" ; then
  6872. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6873. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6874. fi
  6875. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6876. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6877. fi
  6878. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6880. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6881. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6882. if eval \${$cacheid+:} false; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6886. /* end confdefs.h. */
  6887. int i;
  6888. int
  6889. main ()
  6890. {
  6891. ;
  6892. return 0;
  6893. }
  6894. _ACEOF
  6895. if ac_fn_c_try_link "$LINENO"; then :
  6896. eval $cacheid=yes
  6897. else
  6898. eval $cacheid=no
  6899. fi
  6900. rm -f core conftest.err conftest.$ac_objext \
  6901. conftest$ac_exeext conftest.$ac_ext
  6902. fi
  6903. CFLAGS="$xorg_testset_save_CFLAGS"
  6904. eval supported=\$$cacheid
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6906. $as_echo "$supported" >&6; }
  6907. if test "$supported" = "yes" ; then
  6908. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6909. found="yes"
  6910. fi
  6911. fi
  6912. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6913. else
  6914. { $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
  6915. $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;}
  6916. xorg_testset_save_CFLAGS="$CFLAGS"
  6917. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6918. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6920. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6921. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6922. $as_echo_n "(cached) " >&6
  6923. else
  6924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6925. /* end confdefs.h. */
  6926. int i;
  6927. _ACEOF
  6928. if ac_fn_c_try_compile "$LINENO"; then :
  6929. xorg_cv_cc_flag_unknown_warning_option=yes
  6930. else
  6931. xorg_cv_cc_flag_unknown_warning_option=no
  6932. fi
  6933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6934. fi
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6936. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6937. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6938. CFLAGS="$xorg_testset_save_CFLAGS"
  6939. fi
  6940. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6941. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6942. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6943. fi
  6944. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6946. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6947. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6948. $as_echo_n "(cached) " >&6
  6949. else
  6950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6951. /* end confdefs.h. */
  6952. int i;
  6953. _ACEOF
  6954. if ac_fn_c_try_compile "$LINENO"; then :
  6955. xorg_cv_cc_flag_unused_command_line_argument=yes
  6956. else
  6957. xorg_cv_cc_flag_unused_command_line_argument=no
  6958. fi
  6959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6960. fi
  6961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6962. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6963. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6964. CFLAGS="$xorg_testset_save_CFLAGS"
  6965. fi
  6966. found="no"
  6967. if test $found = "no" ; then
  6968. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6969. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6970. fi
  6971. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6972. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6973. fi
  6974. CFLAGS="$CFLAGS -Wimplicit"
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  6976. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  6977. cacheid=xorg_cv_cc_flag__Wimplicit
  6978. if eval \${$cacheid+:} false; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6982. /* end confdefs.h. */
  6983. int i;
  6984. int
  6985. main ()
  6986. {
  6987. ;
  6988. return 0;
  6989. }
  6990. _ACEOF
  6991. if ac_fn_c_try_link "$LINENO"; then :
  6992. eval $cacheid=yes
  6993. else
  6994. eval $cacheid=no
  6995. fi
  6996. rm -f core conftest.err conftest.$ac_objext \
  6997. conftest$ac_exeext conftest.$ac_ext
  6998. fi
  6999. CFLAGS="$xorg_testset_save_CFLAGS"
  7000. eval supported=\$$cacheid
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7002. $as_echo "$supported" >&6; }
  7003. if test "$supported" = "yes" ; then
  7004. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7005. found="yes"
  7006. fi
  7007. fi
  7008. xorg_testset_save_CFLAGS="$CFLAGS"
  7009. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7010. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7012. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7013. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7014. $as_echo_n "(cached) " >&6
  7015. else
  7016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7017. /* end confdefs.h. */
  7018. int i;
  7019. _ACEOF
  7020. if ac_fn_c_try_compile "$LINENO"; then :
  7021. xorg_cv_cc_flag_unknown_warning_option=yes
  7022. else
  7023. xorg_cv_cc_flag_unknown_warning_option=no
  7024. fi
  7025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7026. fi
  7027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7028. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7029. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7030. CFLAGS="$xorg_testset_save_CFLAGS"
  7031. fi
  7032. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7033. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7034. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7035. fi
  7036. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7038. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7039. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7040. $as_echo_n "(cached) " >&6
  7041. else
  7042. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7043. /* end confdefs.h. */
  7044. int i;
  7045. _ACEOF
  7046. if ac_fn_c_try_compile "$LINENO"; then :
  7047. xorg_cv_cc_flag_unused_command_line_argument=yes
  7048. else
  7049. xorg_cv_cc_flag_unused_command_line_argument=no
  7050. fi
  7051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7052. fi
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7054. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7055. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7056. CFLAGS="$xorg_testset_save_CFLAGS"
  7057. fi
  7058. found="no"
  7059. if test $found = "no" ; then
  7060. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7061. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7062. fi
  7063. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7064. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7065. fi
  7066. CFLAGS="$CFLAGS -Wnonnull"
  7067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7068. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7069. cacheid=xorg_cv_cc_flag__Wnonnull
  7070. if eval \${$cacheid+:} false; then :
  7071. $as_echo_n "(cached) " >&6
  7072. else
  7073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7074. /* end confdefs.h. */
  7075. int i;
  7076. int
  7077. main ()
  7078. {
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. if ac_fn_c_try_link "$LINENO"; then :
  7084. eval $cacheid=yes
  7085. else
  7086. eval $cacheid=no
  7087. fi
  7088. rm -f core conftest.err conftest.$ac_objext \
  7089. conftest$ac_exeext conftest.$ac_ext
  7090. fi
  7091. CFLAGS="$xorg_testset_save_CFLAGS"
  7092. eval supported=\$$cacheid
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7094. $as_echo "$supported" >&6; }
  7095. if test "$supported" = "yes" ; then
  7096. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7097. found="yes"
  7098. fi
  7099. fi
  7100. xorg_testset_save_CFLAGS="$CFLAGS"
  7101. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7102. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7104. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7105. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7106. $as_echo_n "(cached) " >&6
  7107. else
  7108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7109. /* end confdefs.h. */
  7110. int i;
  7111. _ACEOF
  7112. if ac_fn_c_try_compile "$LINENO"; then :
  7113. xorg_cv_cc_flag_unknown_warning_option=yes
  7114. else
  7115. xorg_cv_cc_flag_unknown_warning_option=no
  7116. fi
  7117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7118. fi
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7120. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7121. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7122. CFLAGS="$xorg_testset_save_CFLAGS"
  7123. fi
  7124. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7125. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7126. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7127. fi
  7128. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7130. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7131. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7135. /* end confdefs.h. */
  7136. int i;
  7137. _ACEOF
  7138. if ac_fn_c_try_compile "$LINENO"; then :
  7139. xorg_cv_cc_flag_unused_command_line_argument=yes
  7140. else
  7141. xorg_cv_cc_flag_unused_command_line_argument=no
  7142. fi
  7143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7144. fi
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7146. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7147. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7148. CFLAGS="$xorg_testset_save_CFLAGS"
  7149. fi
  7150. found="no"
  7151. if test $found = "no" ; then
  7152. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7153. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7154. fi
  7155. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7156. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7157. fi
  7158. CFLAGS="$CFLAGS -Winit-self"
  7159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7160. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7161. cacheid=xorg_cv_cc_flag__Winit_self
  7162. if eval \${$cacheid+:} false; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7166. /* end confdefs.h. */
  7167. int i;
  7168. int
  7169. main ()
  7170. {
  7171. ;
  7172. return 0;
  7173. }
  7174. _ACEOF
  7175. if ac_fn_c_try_link "$LINENO"; then :
  7176. eval $cacheid=yes
  7177. else
  7178. eval $cacheid=no
  7179. fi
  7180. rm -f core conftest.err conftest.$ac_objext \
  7181. conftest$ac_exeext conftest.$ac_ext
  7182. fi
  7183. CFLAGS="$xorg_testset_save_CFLAGS"
  7184. eval supported=\$$cacheid
  7185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7186. $as_echo "$supported" >&6; }
  7187. if test "$supported" = "yes" ; then
  7188. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7189. found="yes"
  7190. fi
  7191. fi
  7192. xorg_testset_save_CFLAGS="$CFLAGS"
  7193. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7194. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7196. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7197. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7201. /* end confdefs.h. */
  7202. int i;
  7203. _ACEOF
  7204. if ac_fn_c_try_compile "$LINENO"; then :
  7205. xorg_cv_cc_flag_unknown_warning_option=yes
  7206. else
  7207. xorg_cv_cc_flag_unknown_warning_option=no
  7208. fi
  7209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7210. fi
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7212. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7213. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7214. CFLAGS="$xorg_testset_save_CFLAGS"
  7215. fi
  7216. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7217. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7218. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7219. fi
  7220. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7222. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7223. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7224. $as_echo_n "(cached) " >&6
  7225. else
  7226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7227. /* end confdefs.h. */
  7228. int i;
  7229. _ACEOF
  7230. if ac_fn_c_try_compile "$LINENO"; then :
  7231. xorg_cv_cc_flag_unused_command_line_argument=yes
  7232. else
  7233. xorg_cv_cc_flag_unused_command_line_argument=no
  7234. fi
  7235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7236. fi
  7237. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7238. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7239. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7240. CFLAGS="$xorg_testset_save_CFLAGS"
  7241. fi
  7242. found="no"
  7243. if test $found = "no" ; then
  7244. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7245. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7246. fi
  7247. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7248. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7249. fi
  7250. CFLAGS="$CFLAGS -Wmain"
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7252. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7253. cacheid=xorg_cv_cc_flag__Wmain
  7254. if eval \${$cacheid+:} false; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7258. /* end confdefs.h. */
  7259. int i;
  7260. int
  7261. main ()
  7262. {
  7263. ;
  7264. return 0;
  7265. }
  7266. _ACEOF
  7267. if ac_fn_c_try_link "$LINENO"; then :
  7268. eval $cacheid=yes
  7269. else
  7270. eval $cacheid=no
  7271. fi
  7272. rm -f core conftest.err conftest.$ac_objext \
  7273. conftest$ac_exeext conftest.$ac_ext
  7274. fi
  7275. CFLAGS="$xorg_testset_save_CFLAGS"
  7276. eval supported=\$$cacheid
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7278. $as_echo "$supported" >&6; }
  7279. if test "$supported" = "yes" ; then
  7280. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7281. found="yes"
  7282. fi
  7283. fi
  7284. xorg_testset_save_CFLAGS="$CFLAGS"
  7285. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7286. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7288. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7289. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7290. $as_echo_n "(cached) " >&6
  7291. else
  7292. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7293. /* end confdefs.h. */
  7294. int i;
  7295. _ACEOF
  7296. if ac_fn_c_try_compile "$LINENO"; then :
  7297. xorg_cv_cc_flag_unknown_warning_option=yes
  7298. else
  7299. xorg_cv_cc_flag_unknown_warning_option=no
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7302. fi
  7303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7304. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7305. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7306. CFLAGS="$xorg_testset_save_CFLAGS"
  7307. fi
  7308. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7309. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7310. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7311. fi
  7312. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7314. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7315. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7316. $as_echo_n "(cached) " >&6
  7317. else
  7318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7319. /* end confdefs.h. */
  7320. int i;
  7321. _ACEOF
  7322. if ac_fn_c_try_compile "$LINENO"; then :
  7323. xorg_cv_cc_flag_unused_command_line_argument=yes
  7324. else
  7325. xorg_cv_cc_flag_unused_command_line_argument=no
  7326. fi
  7327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7330. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7331. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7332. CFLAGS="$xorg_testset_save_CFLAGS"
  7333. fi
  7334. found="no"
  7335. if test $found = "no" ; then
  7336. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7337. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7338. fi
  7339. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7340. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7341. fi
  7342. CFLAGS="$CFLAGS -Wmissing-braces"
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7344. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7345. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7346. if eval \${$cacheid+:} false; then :
  7347. $as_echo_n "(cached) " >&6
  7348. else
  7349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7350. /* end confdefs.h. */
  7351. int i;
  7352. int
  7353. main ()
  7354. {
  7355. ;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. if ac_fn_c_try_link "$LINENO"; then :
  7360. eval $cacheid=yes
  7361. else
  7362. eval $cacheid=no
  7363. fi
  7364. rm -f core conftest.err conftest.$ac_objext \
  7365. conftest$ac_exeext conftest.$ac_ext
  7366. fi
  7367. CFLAGS="$xorg_testset_save_CFLAGS"
  7368. eval supported=\$$cacheid
  7369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7370. $as_echo "$supported" >&6; }
  7371. if test "$supported" = "yes" ; then
  7372. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7373. found="yes"
  7374. fi
  7375. fi
  7376. xorg_testset_save_CFLAGS="$CFLAGS"
  7377. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7378. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7380. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7381. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7382. $as_echo_n "(cached) " >&6
  7383. else
  7384. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7385. /* end confdefs.h. */
  7386. int i;
  7387. _ACEOF
  7388. if ac_fn_c_try_compile "$LINENO"; then :
  7389. xorg_cv_cc_flag_unknown_warning_option=yes
  7390. else
  7391. xorg_cv_cc_flag_unknown_warning_option=no
  7392. fi
  7393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7394. fi
  7395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7396. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7397. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7398. CFLAGS="$xorg_testset_save_CFLAGS"
  7399. fi
  7400. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7401. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7402. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7403. fi
  7404. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7406. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7407. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7408. $as_echo_n "(cached) " >&6
  7409. else
  7410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7411. /* end confdefs.h. */
  7412. int i;
  7413. _ACEOF
  7414. if ac_fn_c_try_compile "$LINENO"; then :
  7415. xorg_cv_cc_flag_unused_command_line_argument=yes
  7416. else
  7417. xorg_cv_cc_flag_unused_command_line_argument=no
  7418. fi
  7419. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7422. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7423. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7424. CFLAGS="$xorg_testset_save_CFLAGS"
  7425. fi
  7426. found="no"
  7427. if test $found = "no" ; then
  7428. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7429. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7430. fi
  7431. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7432. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7433. fi
  7434. CFLAGS="$CFLAGS -Wsequence-point"
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7436. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7437. cacheid=xorg_cv_cc_flag__Wsequence_point
  7438. if eval \${$cacheid+:} false; then :
  7439. $as_echo_n "(cached) " >&6
  7440. else
  7441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7442. /* end confdefs.h. */
  7443. int i;
  7444. int
  7445. main ()
  7446. {
  7447. ;
  7448. return 0;
  7449. }
  7450. _ACEOF
  7451. if ac_fn_c_try_link "$LINENO"; then :
  7452. eval $cacheid=yes
  7453. else
  7454. eval $cacheid=no
  7455. fi
  7456. rm -f core conftest.err conftest.$ac_objext \
  7457. conftest$ac_exeext conftest.$ac_ext
  7458. fi
  7459. CFLAGS="$xorg_testset_save_CFLAGS"
  7460. eval supported=\$$cacheid
  7461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7462. $as_echo "$supported" >&6; }
  7463. if test "$supported" = "yes" ; then
  7464. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7465. found="yes"
  7466. fi
  7467. fi
  7468. xorg_testset_save_CFLAGS="$CFLAGS"
  7469. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7470. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7472. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7473. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7474. $as_echo_n "(cached) " >&6
  7475. else
  7476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7477. /* end confdefs.h. */
  7478. int i;
  7479. _ACEOF
  7480. if ac_fn_c_try_compile "$LINENO"; then :
  7481. xorg_cv_cc_flag_unknown_warning_option=yes
  7482. else
  7483. xorg_cv_cc_flag_unknown_warning_option=no
  7484. fi
  7485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7486. fi
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7488. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7489. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7490. CFLAGS="$xorg_testset_save_CFLAGS"
  7491. fi
  7492. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7493. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7494. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7495. fi
  7496. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7498. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7499. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7500. $as_echo_n "(cached) " >&6
  7501. else
  7502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7503. /* end confdefs.h. */
  7504. int i;
  7505. _ACEOF
  7506. if ac_fn_c_try_compile "$LINENO"; then :
  7507. xorg_cv_cc_flag_unused_command_line_argument=yes
  7508. else
  7509. xorg_cv_cc_flag_unused_command_line_argument=no
  7510. fi
  7511. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7512. fi
  7513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7514. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7515. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7516. CFLAGS="$xorg_testset_save_CFLAGS"
  7517. fi
  7518. found="no"
  7519. if test $found = "no" ; then
  7520. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7521. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7522. fi
  7523. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7524. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7525. fi
  7526. CFLAGS="$CFLAGS -Wreturn-type"
  7527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7528. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7529. cacheid=xorg_cv_cc_flag__Wreturn_type
  7530. if eval \${$cacheid+:} false; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7534. /* end confdefs.h. */
  7535. int i;
  7536. int
  7537. main ()
  7538. {
  7539. ;
  7540. return 0;
  7541. }
  7542. _ACEOF
  7543. if ac_fn_c_try_link "$LINENO"; then :
  7544. eval $cacheid=yes
  7545. else
  7546. eval $cacheid=no
  7547. fi
  7548. rm -f core conftest.err conftest.$ac_objext \
  7549. conftest$ac_exeext conftest.$ac_ext
  7550. fi
  7551. CFLAGS="$xorg_testset_save_CFLAGS"
  7552. eval supported=\$$cacheid
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7554. $as_echo "$supported" >&6; }
  7555. if test "$supported" = "yes" ; then
  7556. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7557. found="yes"
  7558. fi
  7559. fi
  7560. xorg_testset_save_CFLAGS="$CFLAGS"
  7561. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7562. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7564. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7565. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7566. $as_echo_n "(cached) " >&6
  7567. else
  7568. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7569. /* end confdefs.h. */
  7570. int i;
  7571. _ACEOF
  7572. if ac_fn_c_try_compile "$LINENO"; then :
  7573. xorg_cv_cc_flag_unknown_warning_option=yes
  7574. else
  7575. xorg_cv_cc_flag_unknown_warning_option=no
  7576. fi
  7577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7578. fi
  7579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7580. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7581. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7582. CFLAGS="$xorg_testset_save_CFLAGS"
  7583. fi
  7584. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7585. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7586. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7587. fi
  7588. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7590. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7591. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7592. $as_echo_n "(cached) " >&6
  7593. else
  7594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7595. /* end confdefs.h. */
  7596. int i;
  7597. _ACEOF
  7598. if ac_fn_c_try_compile "$LINENO"; then :
  7599. xorg_cv_cc_flag_unused_command_line_argument=yes
  7600. else
  7601. xorg_cv_cc_flag_unused_command_line_argument=no
  7602. fi
  7603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7604. fi
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7606. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7607. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7608. CFLAGS="$xorg_testset_save_CFLAGS"
  7609. fi
  7610. found="no"
  7611. if test $found = "no" ; then
  7612. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7613. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7614. fi
  7615. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7616. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7617. fi
  7618. CFLAGS="$CFLAGS -Wtrigraphs"
  7619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7620. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7621. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7622. if eval \${$cacheid+:} false; then :
  7623. $as_echo_n "(cached) " >&6
  7624. else
  7625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7626. /* end confdefs.h. */
  7627. int i;
  7628. int
  7629. main ()
  7630. {
  7631. ;
  7632. return 0;
  7633. }
  7634. _ACEOF
  7635. if ac_fn_c_try_link "$LINENO"; then :
  7636. eval $cacheid=yes
  7637. else
  7638. eval $cacheid=no
  7639. fi
  7640. rm -f core conftest.err conftest.$ac_objext \
  7641. conftest$ac_exeext conftest.$ac_ext
  7642. fi
  7643. CFLAGS="$xorg_testset_save_CFLAGS"
  7644. eval supported=\$$cacheid
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7646. $as_echo "$supported" >&6; }
  7647. if test "$supported" = "yes" ; then
  7648. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7649. found="yes"
  7650. fi
  7651. fi
  7652. xorg_testset_save_CFLAGS="$CFLAGS"
  7653. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7654. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7656. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7657. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7658. $as_echo_n "(cached) " >&6
  7659. else
  7660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7661. /* end confdefs.h. */
  7662. int i;
  7663. _ACEOF
  7664. if ac_fn_c_try_compile "$LINENO"; then :
  7665. xorg_cv_cc_flag_unknown_warning_option=yes
  7666. else
  7667. xorg_cv_cc_flag_unknown_warning_option=no
  7668. fi
  7669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7670. fi
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7672. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7673. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7674. CFLAGS="$xorg_testset_save_CFLAGS"
  7675. fi
  7676. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7677. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7678. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7679. fi
  7680. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7682. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7683. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7684. $as_echo_n "(cached) " >&6
  7685. else
  7686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7687. /* end confdefs.h. */
  7688. int i;
  7689. _ACEOF
  7690. if ac_fn_c_try_compile "$LINENO"; then :
  7691. xorg_cv_cc_flag_unused_command_line_argument=yes
  7692. else
  7693. xorg_cv_cc_flag_unused_command_line_argument=no
  7694. fi
  7695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7696. fi
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7698. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7699. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7700. CFLAGS="$xorg_testset_save_CFLAGS"
  7701. fi
  7702. found="no"
  7703. if test $found = "no" ; then
  7704. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7705. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7706. fi
  7707. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7708. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7709. fi
  7710. CFLAGS="$CFLAGS -Warray-bounds"
  7711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7712. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7713. cacheid=xorg_cv_cc_flag__Warray_bounds
  7714. if eval \${$cacheid+:} false; then :
  7715. $as_echo_n "(cached) " >&6
  7716. else
  7717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7718. /* end confdefs.h. */
  7719. int i;
  7720. int
  7721. main ()
  7722. {
  7723. ;
  7724. return 0;
  7725. }
  7726. _ACEOF
  7727. if ac_fn_c_try_link "$LINENO"; then :
  7728. eval $cacheid=yes
  7729. else
  7730. eval $cacheid=no
  7731. fi
  7732. rm -f core conftest.err conftest.$ac_objext \
  7733. conftest$ac_exeext conftest.$ac_ext
  7734. fi
  7735. CFLAGS="$xorg_testset_save_CFLAGS"
  7736. eval supported=\$$cacheid
  7737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7738. $as_echo "$supported" >&6; }
  7739. if test "$supported" = "yes" ; then
  7740. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7741. found="yes"
  7742. fi
  7743. fi
  7744. xorg_testset_save_CFLAGS="$CFLAGS"
  7745. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7746. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7748. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7749. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7750. $as_echo_n "(cached) " >&6
  7751. else
  7752. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7753. /* end confdefs.h. */
  7754. int i;
  7755. _ACEOF
  7756. if ac_fn_c_try_compile "$LINENO"; then :
  7757. xorg_cv_cc_flag_unknown_warning_option=yes
  7758. else
  7759. xorg_cv_cc_flag_unknown_warning_option=no
  7760. fi
  7761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7762. fi
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7764. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7765. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7766. CFLAGS="$xorg_testset_save_CFLAGS"
  7767. fi
  7768. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7769. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7770. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7771. fi
  7772. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7774. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7775. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7776. $as_echo_n "(cached) " >&6
  7777. else
  7778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7779. /* end confdefs.h. */
  7780. int i;
  7781. _ACEOF
  7782. if ac_fn_c_try_compile "$LINENO"; then :
  7783. xorg_cv_cc_flag_unused_command_line_argument=yes
  7784. else
  7785. xorg_cv_cc_flag_unused_command_line_argument=no
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7788. fi
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7790. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7791. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7792. CFLAGS="$xorg_testset_save_CFLAGS"
  7793. fi
  7794. found="no"
  7795. if test $found = "no" ; then
  7796. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7797. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7798. fi
  7799. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7800. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7801. fi
  7802. CFLAGS="$CFLAGS -Wwrite-strings"
  7803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7804. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7805. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7806. if eval \${$cacheid+:} false; then :
  7807. $as_echo_n "(cached) " >&6
  7808. else
  7809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7810. /* end confdefs.h. */
  7811. int i;
  7812. int
  7813. main ()
  7814. {
  7815. ;
  7816. return 0;
  7817. }
  7818. _ACEOF
  7819. if ac_fn_c_try_link "$LINENO"; then :
  7820. eval $cacheid=yes
  7821. else
  7822. eval $cacheid=no
  7823. fi
  7824. rm -f core conftest.err conftest.$ac_objext \
  7825. conftest$ac_exeext conftest.$ac_ext
  7826. fi
  7827. CFLAGS="$xorg_testset_save_CFLAGS"
  7828. eval supported=\$$cacheid
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7830. $as_echo "$supported" >&6; }
  7831. if test "$supported" = "yes" ; then
  7832. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7833. found="yes"
  7834. fi
  7835. fi
  7836. xorg_testset_save_CFLAGS="$CFLAGS"
  7837. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7838. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7840. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7841. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7842. $as_echo_n "(cached) " >&6
  7843. else
  7844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7845. /* end confdefs.h. */
  7846. int i;
  7847. _ACEOF
  7848. if ac_fn_c_try_compile "$LINENO"; then :
  7849. xorg_cv_cc_flag_unknown_warning_option=yes
  7850. else
  7851. xorg_cv_cc_flag_unknown_warning_option=no
  7852. fi
  7853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7854. fi
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7856. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7857. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7858. CFLAGS="$xorg_testset_save_CFLAGS"
  7859. fi
  7860. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7861. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7862. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7863. fi
  7864. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7866. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7867. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7868. $as_echo_n "(cached) " >&6
  7869. else
  7870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7871. /* end confdefs.h. */
  7872. int i;
  7873. _ACEOF
  7874. if ac_fn_c_try_compile "$LINENO"; then :
  7875. xorg_cv_cc_flag_unused_command_line_argument=yes
  7876. else
  7877. xorg_cv_cc_flag_unused_command_line_argument=no
  7878. fi
  7879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7880. fi
  7881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7882. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7883. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7884. CFLAGS="$xorg_testset_save_CFLAGS"
  7885. fi
  7886. found="no"
  7887. if test $found = "no" ; then
  7888. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7889. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7890. fi
  7891. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7892. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7893. fi
  7894. CFLAGS="$CFLAGS -Waddress"
  7895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7896. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7897. cacheid=xorg_cv_cc_flag__Waddress
  7898. if eval \${$cacheid+:} false; then :
  7899. $as_echo_n "(cached) " >&6
  7900. else
  7901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7902. /* end confdefs.h. */
  7903. int i;
  7904. int
  7905. main ()
  7906. {
  7907. ;
  7908. return 0;
  7909. }
  7910. _ACEOF
  7911. if ac_fn_c_try_link "$LINENO"; then :
  7912. eval $cacheid=yes
  7913. else
  7914. eval $cacheid=no
  7915. fi
  7916. rm -f core conftest.err conftest.$ac_objext \
  7917. conftest$ac_exeext conftest.$ac_ext
  7918. fi
  7919. CFLAGS="$xorg_testset_save_CFLAGS"
  7920. eval supported=\$$cacheid
  7921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7922. $as_echo "$supported" >&6; }
  7923. if test "$supported" = "yes" ; then
  7924. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7925. found="yes"
  7926. fi
  7927. fi
  7928. xorg_testset_save_CFLAGS="$CFLAGS"
  7929. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7930. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7932. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7933. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7934. $as_echo_n "(cached) " >&6
  7935. else
  7936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7937. /* end confdefs.h. */
  7938. int i;
  7939. _ACEOF
  7940. if ac_fn_c_try_compile "$LINENO"; then :
  7941. xorg_cv_cc_flag_unknown_warning_option=yes
  7942. else
  7943. xorg_cv_cc_flag_unknown_warning_option=no
  7944. fi
  7945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7946. fi
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7948. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7949. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7950. CFLAGS="$xorg_testset_save_CFLAGS"
  7951. fi
  7952. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7953. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7954. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7955. fi
  7956. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7958. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7959. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7960. $as_echo_n "(cached) " >&6
  7961. else
  7962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7963. /* end confdefs.h. */
  7964. int i;
  7965. _ACEOF
  7966. if ac_fn_c_try_compile "$LINENO"; then :
  7967. xorg_cv_cc_flag_unused_command_line_argument=yes
  7968. else
  7969. xorg_cv_cc_flag_unused_command_line_argument=no
  7970. fi
  7971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7972. fi
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7974. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7975. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7976. CFLAGS="$xorg_testset_save_CFLAGS"
  7977. fi
  7978. found="no"
  7979. if test $found = "no" ; then
  7980. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7982. fi
  7983. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7985. fi
  7986. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  7987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  7988. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  7989. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  7990. if eval \${$cacheid+:} false; then :
  7991. $as_echo_n "(cached) " >&6
  7992. else
  7993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7994. /* end confdefs.h. */
  7995. int i;
  7996. int
  7997. main ()
  7998. {
  7999. ;
  8000. return 0;
  8001. }
  8002. _ACEOF
  8003. if ac_fn_c_try_link "$LINENO"; then :
  8004. eval $cacheid=yes
  8005. else
  8006. eval $cacheid=no
  8007. fi
  8008. rm -f core conftest.err conftest.$ac_objext \
  8009. conftest$ac_exeext conftest.$ac_ext
  8010. fi
  8011. CFLAGS="$xorg_testset_save_CFLAGS"
  8012. eval supported=\$$cacheid
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8014. $as_echo "$supported" >&6; }
  8015. if test "$supported" = "yes" ; then
  8016. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8017. found="yes"
  8018. fi
  8019. fi
  8020. xorg_testset_save_CFLAGS="$CFLAGS"
  8021. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8022. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8024. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8025. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8026. $as_echo_n "(cached) " >&6
  8027. else
  8028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8029. /* end confdefs.h. */
  8030. int i;
  8031. _ACEOF
  8032. if ac_fn_c_try_compile "$LINENO"; then :
  8033. xorg_cv_cc_flag_unknown_warning_option=yes
  8034. else
  8035. xorg_cv_cc_flag_unknown_warning_option=no
  8036. fi
  8037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8038. fi
  8039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8040. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8041. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8042. CFLAGS="$xorg_testset_save_CFLAGS"
  8043. fi
  8044. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8045. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8047. fi
  8048. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8050. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8051. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8052. $as_echo_n "(cached) " >&6
  8053. else
  8054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8055. /* end confdefs.h. */
  8056. int i;
  8057. _ACEOF
  8058. if ac_fn_c_try_compile "$LINENO"; then :
  8059. xorg_cv_cc_flag_unused_command_line_argument=yes
  8060. else
  8061. xorg_cv_cc_flag_unused_command_line_argument=no
  8062. fi
  8063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8064. fi
  8065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8066. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8067. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8068. CFLAGS="$xorg_testset_save_CFLAGS"
  8069. fi
  8070. found="no"
  8071. if test $found = "no" ; then
  8072. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8073. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8074. fi
  8075. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8076. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8077. fi
  8078. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8080. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8081. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8082. if eval \${$cacheid+:} false; then :
  8083. $as_echo_n "(cached) " >&6
  8084. else
  8085. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8086. /* end confdefs.h. */
  8087. int i;
  8088. int
  8089. main ()
  8090. {
  8091. ;
  8092. return 0;
  8093. }
  8094. _ACEOF
  8095. if ac_fn_c_try_link "$LINENO"; then :
  8096. eval $cacheid=yes
  8097. else
  8098. eval $cacheid=no
  8099. fi
  8100. rm -f core conftest.err conftest.$ac_objext \
  8101. conftest$ac_exeext conftest.$ac_ext
  8102. fi
  8103. CFLAGS="$xorg_testset_save_CFLAGS"
  8104. eval supported=\$$cacheid
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8106. $as_echo "$supported" >&6; }
  8107. if test "$supported" = "yes" ; then
  8108. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8109. found="yes"
  8110. fi
  8111. fi
  8112. fi
  8113. CWARNFLAGS="$BASE_CFLAGS"
  8114. if test "x$GCC" = xyes ; then
  8115. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8116. fi
  8117. # Check whether --enable-strict-compilation was given.
  8118. if test "${enable_strict_compilation+set}" = set; then :
  8119. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8120. else
  8121. STRICT_COMPILE=no
  8122. fi
  8123. STRICT_CFLAGS=""
  8124. xorg_testset_save_CFLAGS="$CFLAGS"
  8125. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8126. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8128. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8129. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8130. $as_echo_n "(cached) " >&6
  8131. else
  8132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8133. /* end confdefs.h. */
  8134. int i;
  8135. _ACEOF
  8136. if ac_fn_c_try_compile "$LINENO"; then :
  8137. xorg_cv_cc_flag_unknown_warning_option=yes
  8138. else
  8139. xorg_cv_cc_flag_unknown_warning_option=no
  8140. fi
  8141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8142. fi
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8144. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8145. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8146. CFLAGS="$xorg_testset_save_CFLAGS"
  8147. fi
  8148. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8149. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8150. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8151. fi
  8152. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8154. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8155. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8156. $as_echo_n "(cached) " >&6
  8157. else
  8158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8159. /* end confdefs.h. */
  8160. int i;
  8161. _ACEOF
  8162. if ac_fn_c_try_compile "$LINENO"; then :
  8163. xorg_cv_cc_flag_unused_command_line_argument=yes
  8164. else
  8165. xorg_cv_cc_flag_unused_command_line_argument=no
  8166. fi
  8167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8168. fi
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8170. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8171. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8172. CFLAGS="$xorg_testset_save_CFLAGS"
  8173. fi
  8174. found="no"
  8175. if test $found = "no" ; then
  8176. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8177. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8178. fi
  8179. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8180. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8181. fi
  8182. CFLAGS="$CFLAGS -pedantic"
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8184. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8185. cacheid=xorg_cv_cc_flag__pedantic
  8186. if eval \${$cacheid+:} false; then :
  8187. $as_echo_n "(cached) " >&6
  8188. else
  8189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8190. /* end confdefs.h. */
  8191. int i;
  8192. int
  8193. main ()
  8194. {
  8195. ;
  8196. return 0;
  8197. }
  8198. _ACEOF
  8199. if ac_fn_c_try_link "$LINENO"; then :
  8200. eval $cacheid=yes
  8201. else
  8202. eval $cacheid=no
  8203. fi
  8204. rm -f core conftest.err conftest.$ac_objext \
  8205. conftest$ac_exeext conftest.$ac_ext
  8206. fi
  8207. CFLAGS="$xorg_testset_save_CFLAGS"
  8208. eval supported=\$$cacheid
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8210. $as_echo "$supported" >&6; }
  8211. if test "$supported" = "yes" ; then
  8212. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8213. found="yes"
  8214. fi
  8215. fi
  8216. xorg_testset_save_CFLAGS="$CFLAGS"
  8217. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8218. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8220. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8221. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8222. $as_echo_n "(cached) " >&6
  8223. else
  8224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8225. /* end confdefs.h. */
  8226. int i;
  8227. _ACEOF
  8228. if ac_fn_c_try_compile "$LINENO"; then :
  8229. xorg_cv_cc_flag_unknown_warning_option=yes
  8230. else
  8231. xorg_cv_cc_flag_unknown_warning_option=no
  8232. fi
  8233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8234. fi
  8235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8236. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8237. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8238. CFLAGS="$xorg_testset_save_CFLAGS"
  8239. fi
  8240. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8241. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8242. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8243. fi
  8244. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8246. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8247. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8248. $as_echo_n "(cached) " >&6
  8249. else
  8250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8251. /* end confdefs.h. */
  8252. int i;
  8253. _ACEOF
  8254. if ac_fn_c_try_compile "$LINENO"; then :
  8255. xorg_cv_cc_flag_unused_command_line_argument=yes
  8256. else
  8257. xorg_cv_cc_flag_unused_command_line_argument=no
  8258. fi
  8259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8260. fi
  8261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8262. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8263. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8264. CFLAGS="$xorg_testset_save_CFLAGS"
  8265. fi
  8266. found="no"
  8267. if test $found = "no" ; then
  8268. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8269. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8270. fi
  8271. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8272. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8273. fi
  8274. CFLAGS="$CFLAGS -Werror"
  8275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8276. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8277. cacheid=xorg_cv_cc_flag__Werror
  8278. if eval \${$cacheid+:} false; then :
  8279. $as_echo_n "(cached) " >&6
  8280. else
  8281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8282. /* end confdefs.h. */
  8283. int i;
  8284. int
  8285. main ()
  8286. {
  8287. ;
  8288. return 0;
  8289. }
  8290. _ACEOF
  8291. if ac_fn_c_try_link "$LINENO"; then :
  8292. eval $cacheid=yes
  8293. else
  8294. eval $cacheid=no
  8295. fi
  8296. rm -f core conftest.err conftest.$ac_objext \
  8297. conftest$ac_exeext conftest.$ac_ext
  8298. fi
  8299. CFLAGS="$xorg_testset_save_CFLAGS"
  8300. eval supported=\$$cacheid
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8302. $as_echo "$supported" >&6; }
  8303. if test "$supported" = "yes" ; then
  8304. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8305. found="yes"
  8306. fi
  8307. fi
  8308. if test $found = "no" ; then
  8309. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8310. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8311. fi
  8312. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8313. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8314. fi
  8315. CFLAGS="$CFLAGS -errwarn"
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8317. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8318. cacheid=xorg_cv_cc_flag__errwarn
  8319. if eval \${$cacheid+:} false; then :
  8320. $as_echo_n "(cached) " >&6
  8321. else
  8322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8323. /* end confdefs.h. */
  8324. int i;
  8325. int
  8326. main ()
  8327. {
  8328. ;
  8329. return 0;
  8330. }
  8331. _ACEOF
  8332. if ac_fn_c_try_link "$LINENO"; then :
  8333. eval $cacheid=yes
  8334. else
  8335. eval $cacheid=no
  8336. fi
  8337. rm -f core conftest.err conftest.$ac_objext \
  8338. conftest$ac_exeext conftest.$ac_ext
  8339. fi
  8340. CFLAGS="$xorg_testset_save_CFLAGS"
  8341. eval supported=\$$cacheid
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8343. $as_echo "$supported" >&6; }
  8344. if test "$supported" = "yes" ; then
  8345. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8346. found="yes"
  8347. fi
  8348. fi
  8349. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8350. # activate it with -Werror, so we add it here explicitly.
  8351. xorg_testset_save_CFLAGS="$CFLAGS"
  8352. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8353. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8355. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8356. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8357. $as_echo_n "(cached) " >&6
  8358. else
  8359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8360. /* end confdefs.h. */
  8361. int i;
  8362. _ACEOF
  8363. if ac_fn_c_try_compile "$LINENO"; then :
  8364. xorg_cv_cc_flag_unknown_warning_option=yes
  8365. else
  8366. xorg_cv_cc_flag_unknown_warning_option=no
  8367. fi
  8368. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8369. fi
  8370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8371. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8372. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8373. CFLAGS="$xorg_testset_save_CFLAGS"
  8374. fi
  8375. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8376. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8377. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8378. fi
  8379. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8381. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8382. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8383. $as_echo_n "(cached) " >&6
  8384. else
  8385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8386. /* end confdefs.h. */
  8387. int i;
  8388. _ACEOF
  8389. if ac_fn_c_try_compile "$LINENO"; then :
  8390. xorg_cv_cc_flag_unused_command_line_argument=yes
  8391. else
  8392. xorg_cv_cc_flag_unused_command_line_argument=no
  8393. fi
  8394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8395. fi
  8396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8397. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8398. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8399. CFLAGS="$xorg_testset_save_CFLAGS"
  8400. fi
  8401. found="no"
  8402. if test $found = "no" ; then
  8403. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8404. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8405. fi
  8406. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8407. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8408. fi
  8409. CFLAGS="$CFLAGS -Werror=attributes"
  8410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8411. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8412. cacheid=xorg_cv_cc_flag__Werror_attributes
  8413. if eval \${$cacheid+:} false; then :
  8414. $as_echo_n "(cached) " >&6
  8415. else
  8416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8417. /* end confdefs.h. */
  8418. int i;
  8419. int
  8420. main ()
  8421. {
  8422. ;
  8423. return 0;
  8424. }
  8425. _ACEOF
  8426. if ac_fn_c_try_link "$LINENO"; then :
  8427. eval $cacheid=yes
  8428. else
  8429. eval $cacheid=no
  8430. fi
  8431. rm -f core conftest.err conftest.$ac_objext \
  8432. conftest$ac_exeext conftest.$ac_ext
  8433. fi
  8434. CFLAGS="$xorg_testset_save_CFLAGS"
  8435. eval supported=\$$cacheid
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8437. $as_echo "$supported" >&6; }
  8438. if test "$supported" = "yes" ; then
  8439. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8440. found="yes"
  8441. fi
  8442. fi
  8443. if test "x$STRICT_COMPILE" = "xyes"; then
  8444. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8445. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8446. fi
  8447. cat >>confdefs.h <<_ACEOF
  8448. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8449. _ACEOF
  8450. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8451. if test "x$PVM" = "x"; then
  8452. PVM="0"
  8453. fi
  8454. cat >>confdefs.h <<_ACEOF
  8455. #define PACKAGE_VERSION_MINOR $PVM
  8456. _ACEOF
  8457. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8458. if test "x$PVP" = "x"; then
  8459. PVP="0"
  8460. fi
  8461. cat >>confdefs.h <<_ACEOF
  8462. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8463. _ACEOF
  8464. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8465. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8466. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8467. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8468. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8469. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8470. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8471. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8472. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8473. if test x$APP_MAN_SUFFIX = x ; then
  8474. APP_MAN_SUFFIX=1
  8475. fi
  8476. if test x$APP_MAN_DIR = x ; then
  8477. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8478. fi
  8479. if test x$LIB_MAN_SUFFIX = x ; then
  8480. LIB_MAN_SUFFIX=3
  8481. fi
  8482. if test x$LIB_MAN_DIR = x ; then
  8483. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8484. fi
  8485. if test x$FILE_MAN_SUFFIX = x ; then
  8486. case $host_os in
  8487. solaris*) FILE_MAN_SUFFIX=4 ;;
  8488. *) FILE_MAN_SUFFIX=5 ;;
  8489. esac
  8490. fi
  8491. if test x$FILE_MAN_DIR = x ; then
  8492. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8493. fi
  8494. if test x$MISC_MAN_SUFFIX = x ; then
  8495. case $host_os in
  8496. solaris*) MISC_MAN_SUFFIX=5 ;;
  8497. *) MISC_MAN_SUFFIX=7 ;;
  8498. esac
  8499. fi
  8500. if test x$MISC_MAN_DIR = x ; then
  8501. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8502. fi
  8503. if test x$DRIVER_MAN_SUFFIX = x ; then
  8504. case $host_os in
  8505. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8506. *) DRIVER_MAN_SUFFIX=4 ;;
  8507. esac
  8508. fi
  8509. if test x$DRIVER_MAN_DIR = x ; then
  8510. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8511. fi
  8512. if test x$ADMIN_MAN_SUFFIX = x ; then
  8513. case $host_os in
  8514. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8515. *) ADMIN_MAN_SUFFIX=8 ;;
  8516. esac
  8517. fi
  8518. if test x$ADMIN_MAN_DIR = x ; then
  8519. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8520. fi
  8521. XORG_MAN_PAGE="X Version 11"
  8522. MAN_SUBSTS="\
  8523. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8524. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8525. -e 's|__xservername__|Xorg|g' \
  8526. -e 's|__xconfigfile__|xorg.conf|g' \
  8527. -e 's|__projectroot__|\$(prefix)|g' \
  8528. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8529. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8530. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8531. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8532. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8533. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8534. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8535. # Check whether --enable-silent-rules was given.
  8536. if test "${enable_silent_rules+set}" = set; then :
  8537. enableval=$enable_silent_rules;
  8538. fi
  8539. case $enable_silent_rules in # (((
  8540. yes) AM_DEFAULT_VERBOSITY=0;;
  8541. no) AM_DEFAULT_VERBOSITY=1;;
  8542. *) AM_DEFAULT_VERBOSITY=0;;
  8543. esac
  8544. am_make=${MAKE-make}
  8545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8546. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8547. if ${am_cv_make_support_nested_variables+:} false; then :
  8548. $as_echo_n "(cached) " >&6
  8549. else
  8550. if $as_echo 'TRUE=$(BAR$(V))
  8551. BAR0=false
  8552. BAR1=true
  8553. V=1
  8554. am__doit:
  8555. @$(TRUE)
  8556. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8557. am_cv_make_support_nested_variables=yes
  8558. else
  8559. am_cv_make_support_nested_variables=no
  8560. fi
  8561. fi
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8563. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8564. if test $am_cv_make_support_nested_variables = yes; then
  8565. AM_V='$(V)'
  8566. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8567. else
  8568. AM_V=$AM_DEFAULT_VERBOSITY
  8569. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8570. fi
  8571. AM_BACKSLASH='\'
  8572. # Checks for pkg-config packages
  8573. pkg_failed=no
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKILL" >&5
  8575. $as_echo_n "checking for XKILL... " >&6; }
  8576. if test -n "$XKILL_CFLAGS"; then
  8577. pkg_cv_XKILL_CFLAGS="$XKILL_CFLAGS"
  8578. elif test -n "$PKG_CONFIG"; then
  8579. if test -n "$PKG_CONFIG" && \
  8580. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.22\""; } >&5
  8581. ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.22") 2>&5
  8582. ac_status=$?
  8583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8584. test $ac_status = 0; }; then
  8585. pkg_cv_XKILL_CFLAGS=`$PKG_CONFIG --cflags "x11 xmuu xproto >= 7.0.22" 2>/dev/null`
  8586. test "x$?" != "x0" && pkg_failed=yes
  8587. else
  8588. pkg_failed=yes
  8589. fi
  8590. else
  8591. pkg_failed=untried
  8592. fi
  8593. if test -n "$XKILL_LIBS"; then
  8594. pkg_cv_XKILL_LIBS="$XKILL_LIBS"
  8595. elif test -n "$PKG_CONFIG"; then
  8596. if test -n "$PKG_CONFIG" && \
  8597. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xmuu xproto >= 7.0.22\""; } >&5
  8598. ($PKG_CONFIG --exists --print-errors "x11 xmuu xproto >= 7.0.22") 2>&5
  8599. ac_status=$?
  8600. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8601. test $ac_status = 0; }; then
  8602. pkg_cv_XKILL_LIBS=`$PKG_CONFIG --libs "x11 xmuu xproto >= 7.0.22" 2>/dev/null`
  8603. test "x$?" != "x0" && pkg_failed=yes
  8604. else
  8605. pkg_failed=yes
  8606. fi
  8607. else
  8608. pkg_failed=untried
  8609. fi
  8610. if test $pkg_failed = yes; then
  8611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8612. $as_echo "no" >&6; }
  8613. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8614. _pkg_short_errors_supported=yes
  8615. else
  8616. _pkg_short_errors_supported=no
  8617. fi
  8618. if test $_pkg_short_errors_supported = yes; then
  8619. XKILL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.22" 2>&1`
  8620. else
  8621. XKILL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xmuu xproto >= 7.0.22" 2>&1`
  8622. fi
  8623. # Put the nasty error message in config.log where it belongs
  8624. echo "$XKILL_PKG_ERRORS" >&5
  8625. as_fn_error $? "Package requirements (x11 xmuu xproto >= 7.0.22) were not met:
  8626. $XKILL_PKG_ERRORS
  8627. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8628. installed software in a non-standard prefix.
  8629. Alternatively, you may set the environment variables XKILL_CFLAGS
  8630. and XKILL_LIBS to avoid the need to call pkg-config.
  8631. See the pkg-config man page for more details." "$LINENO" 5
  8632. elif test $pkg_failed = untried; then
  8633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8634. $as_echo "no" >&6; }
  8635. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8636. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8637. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8638. is in your PATH or set the PKG_CONFIG environment variable to the full
  8639. path to pkg-config.
  8640. Alternatively, you may set the environment variables XKILL_CFLAGS
  8641. and XKILL_LIBS to avoid the need to call pkg-config.
  8642. See the pkg-config man page for more details.
  8643. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8644. See \`config.log' for more details" "$LINENO" 5; }
  8645. else
  8646. XKILL_CFLAGS=$pkg_cv_XKILL_CFLAGS
  8647. XKILL_LIBS=$pkg_cv_XKILL_LIBS
  8648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8649. $as_echo "yes" >&6; }
  8650. fi
  8651. ac_config_files="$ac_config_files Makefile man/Makefile"
  8652. cat >confcache <<\_ACEOF
  8653. # This file is a shell script that caches the results of configure
  8654. # tests run on this system so they can be shared between configure
  8655. # scripts and configure runs, see configure's option --config-cache.
  8656. # It is not useful on other systems. If it contains results you don't
  8657. # want to keep, you may remove or edit it.
  8658. #
  8659. # config.status only pays attention to the cache file if you give it
  8660. # the --recheck option to rerun configure.
  8661. #
  8662. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8663. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8664. # following values.
  8665. _ACEOF
  8666. # The following way of writing the cache mishandles newlines in values,
  8667. # but we know of no workaround that is simple, portable, and efficient.
  8668. # So, we kill variables containing newlines.
  8669. # Ultrix sh set writes to stderr and can't be redirected directly,
  8670. # and sets the high bit in the cache file unless we assign to the vars.
  8671. (
  8672. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8673. eval ac_val=\$$ac_var
  8674. case $ac_val in #(
  8675. *${as_nl}*)
  8676. case $ac_var in #(
  8677. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8678. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8679. esac
  8680. case $ac_var in #(
  8681. _ | IFS | as_nl) ;; #(
  8682. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8683. *) { eval $ac_var=; unset $ac_var;} ;;
  8684. esac ;;
  8685. esac
  8686. done
  8687. (set) 2>&1 |
  8688. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8689. *${as_nl}ac_space=\ *)
  8690. # `set' does not quote correctly, so add quotes: double-quote
  8691. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8692. sed -n \
  8693. "s/'/'\\\\''/g;
  8694. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8695. ;; #(
  8696. *)
  8697. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8698. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8699. ;;
  8700. esac |
  8701. sort
  8702. ) |
  8703. sed '
  8704. /^ac_cv_env_/b end
  8705. t clear
  8706. :clear
  8707. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8708. t end
  8709. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8710. :end' >>confcache
  8711. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8712. if test -w "$cache_file"; then
  8713. if test "x$cache_file" != "x/dev/null"; then
  8714. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8715. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8716. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8717. cat confcache >"$cache_file"
  8718. else
  8719. case $cache_file in #(
  8720. */* | ?:*)
  8721. mv -f confcache "$cache_file"$$ &&
  8722. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8723. *)
  8724. mv -f confcache "$cache_file" ;;
  8725. esac
  8726. fi
  8727. fi
  8728. else
  8729. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8730. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8731. fi
  8732. fi
  8733. rm -f confcache
  8734. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8735. # Let make expand exec_prefix.
  8736. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8737. DEFS=-DHAVE_CONFIG_H
  8738. ac_libobjs=
  8739. ac_ltlibobjs=
  8740. U=
  8741. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8742. # 1. Remove the extension, and $U if already installed.
  8743. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8744. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8745. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8746. # will be set to the directory where LIBOBJS objects are built.
  8747. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8748. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8749. done
  8750. LIBOBJS=$ac_libobjs
  8751. LTLIBOBJS=$ac_ltlibobjs
  8752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8753. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8754. if test -n "$am_sleep_pid"; then
  8755. # Hide warnings about reused PIDs.
  8756. wait $am_sleep_pid 2>/dev/null
  8757. fi
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8759. $as_echo "done" >&6; }
  8760. if test -n "$EXEEXT"; then
  8761. am__EXEEXT_TRUE=
  8762. am__EXEEXT_FALSE='#'
  8763. else
  8764. am__EXEEXT_TRUE='#'
  8765. am__EXEEXT_FALSE=
  8766. fi
  8767. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  8768. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  8769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8770. fi
  8771. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8772. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8773. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8774. fi
  8775. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8776. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8777. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8778. fi
  8779. : "${CONFIG_STATUS=./config.status}"
  8780. ac_write_fail=0
  8781. ac_clean_files_save=$ac_clean_files
  8782. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8783. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8784. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8785. as_write_fail=0
  8786. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8787. #! $SHELL
  8788. # Generated by $as_me.
  8789. # Run this file to recreate the current configuration.
  8790. # Compiler output produced by configure, useful for debugging
  8791. # configure, is in config.log if it exists.
  8792. debug=false
  8793. ac_cs_recheck=false
  8794. ac_cs_silent=false
  8795. SHELL=\${CONFIG_SHELL-$SHELL}
  8796. export SHELL
  8797. _ASEOF
  8798. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8799. ## -------------------- ##
  8800. ## M4sh Initialization. ##
  8801. ## -------------------- ##
  8802. # Be more Bourne compatible
  8803. DUALCASE=1; export DUALCASE # for MKS sh
  8804. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8805. emulate sh
  8806. NULLCMD=:
  8807. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8808. # is contrary to our usage. Disable this feature.
  8809. alias -g '${1+"$@"}'='"$@"'
  8810. setopt NO_GLOB_SUBST
  8811. else
  8812. case `(set -o) 2>/dev/null` in #(
  8813. *posix*) :
  8814. set -o posix ;; #(
  8815. *) :
  8816. ;;
  8817. esac
  8818. fi
  8819. as_nl='
  8820. '
  8821. export as_nl
  8822. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8823. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8824. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8825. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8826. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8827. # but without wasting forks for bash or zsh.
  8828. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8829. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8830. as_echo='print -r --'
  8831. as_echo_n='print -rn --'
  8832. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8833. as_echo='printf %s\n'
  8834. as_echo_n='printf %s'
  8835. else
  8836. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8837. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8838. as_echo_n='/usr/ucb/echo -n'
  8839. else
  8840. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8841. as_echo_n_body='eval
  8842. arg=$1;
  8843. case $arg in #(
  8844. *"$as_nl"*)
  8845. expr "X$arg" : "X\\(.*\\)$as_nl";
  8846. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8847. esac;
  8848. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8849. '
  8850. export as_echo_n_body
  8851. as_echo_n='sh -c $as_echo_n_body as_echo'
  8852. fi
  8853. export as_echo_body
  8854. as_echo='sh -c $as_echo_body as_echo'
  8855. fi
  8856. # The user is always right.
  8857. if test "${PATH_SEPARATOR+set}" != set; then
  8858. PATH_SEPARATOR=:
  8859. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8860. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8861. PATH_SEPARATOR=';'
  8862. }
  8863. fi
  8864. # IFS
  8865. # We need space, tab and new line, in precisely that order. Quoting is
  8866. # there to prevent editors from complaining about space-tab.
  8867. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8868. # splitting by setting IFS to empty value.)
  8869. IFS=" "" $as_nl"
  8870. # Find who we are. Look in the path if we contain no directory separator.
  8871. as_myself=
  8872. case $0 in #((
  8873. *[\\/]* ) as_myself=$0 ;;
  8874. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8875. for as_dir in $PATH
  8876. do
  8877. IFS=$as_save_IFS
  8878. test -z "$as_dir" && as_dir=.
  8879. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8880. done
  8881. IFS=$as_save_IFS
  8882. ;;
  8883. esac
  8884. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8885. # in which case we are not to be found in the path.
  8886. if test "x$as_myself" = x; then
  8887. as_myself=$0
  8888. fi
  8889. if test ! -f "$as_myself"; then
  8890. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8891. exit 1
  8892. fi
  8893. # Unset variables that we do not need and which cause bugs (e.g. in
  8894. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8895. # suppresses any "Segmentation fault" message there. '((' could
  8896. # trigger a bug in pdksh 5.2.14.
  8897. for as_var in BASH_ENV ENV MAIL MAILPATH
  8898. do eval test x\${$as_var+set} = xset \
  8899. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8900. done
  8901. PS1='$ '
  8902. PS2='> '
  8903. PS4='+ '
  8904. # NLS nuisances.
  8905. LC_ALL=C
  8906. export LC_ALL
  8907. LANGUAGE=C
  8908. export LANGUAGE
  8909. # CDPATH.
  8910. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8911. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8912. # ----------------------------------------
  8913. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8914. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8915. # script with STATUS, using 1 if that was 0.
  8916. as_fn_error ()
  8917. {
  8918. as_status=$1; test $as_status -eq 0 && as_status=1
  8919. if test "$4"; then
  8920. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8921. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8922. fi
  8923. $as_echo "$as_me: error: $2" >&2
  8924. as_fn_exit $as_status
  8925. } # as_fn_error
  8926. # as_fn_set_status STATUS
  8927. # -----------------------
  8928. # Set $? to STATUS, without forking.
  8929. as_fn_set_status ()
  8930. {
  8931. return $1
  8932. } # as_fn_set_status
  8933. # as_fn_exit STATUS
  8934. # -----------------
  8935. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8936. as_fn_exit ()
  8937. {
  8938. set +e
  8939. as_fn_set_status $1
  8940. exit $1
  8941. } # as_fn_exit
  8942. # as_fn_unset VAR
  8943. # ---------------
  8944. # Portably unset VAR.
  8945. as_fn_unset ()
  8946. {
  8947. { eval $1=; unset $1;}
  8948. }
  8949. as_unset=as_fn_unset
  8950. # as_fn_append VAR VALUE
  8951. # ----------------------
  8952. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8953. # advantage of any shell optimizations that allow amortized linear growth over
  8954. # repeated appends, instead of the typical quadratic growth present in naive
  8955. # implementations.
  8956. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8957. eval 'as_fn_append ()
  8958. {
  8959. eval $1+=\$2
  8960. }'
  8961. else
  8962. as_fn_append ()
  8963. {
  8964. eval $1=\$$1\$2
  8965. }
  8966. fi # as_fn_append
  8967. # as_fn_arith ARG...
  8968. # ------------------
  8969. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8970. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8971. # must be portable across $(()) and expr.
  8972. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8973. eval 'as_fn_arith ()
  8974. {
  8975. as_val=$(( $* ))
  8976. }'
  8977. else
  8978. as_fn_arith ()
  8979. {
  8980. as_val=`expr "$@" || test $? -eq 1`
  8981. }
  8982. fi # as_fn_arith
  8983. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8984. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8985. as_expr=expr
  8986. else
  8987. as_expr=false
  8988. fi
  8989. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8990. as_basename=basename
  8991. else
  8992. as_basename=false
  8993. fi
  8994. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8995. as_dirname=dirname
  8996. else
  8997. as_dirname=false
  8998. fi
  8999. as_me=`$as_basename -- "$0" ||
  9000. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9001. X"$0" : 'X\(//\)$' \| \
  9002. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9003. $as_echo X/"$0" |
  9004. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9005. s//\1/
  9006. q
  9007. }
  9008. /^X\/\(\/\/\)$/{
  9009. s//\1/
  9010. q
  9011. }
  9012. /^X\/\(\/\).*/{
  9013. s//\1/
  9014. q
  9015. }
  9016. s/.*/./; q'`
  9017. # Avoid depending upon Character Ranges.
  9018. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9019. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9020. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9021. as_cr_digits='0123456789'
  9022. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9023. ECHO_C= ECHO_N= ECHO_T=
  9024. case `echo -n x` in #(((((
  9025. -n*)
  9026. case `echo 'xy\c'` in
  9027. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9028. xy) ECHO_C='\c';;
  9029. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9030. ECHO_T=' ';;
  9031. esac;;
  9032. *)
  9033. ECHO_N='-n';;
  9034. esac
  9035. rm -f conf$$ conf$$.exe conf$$.file
  9036. if test -d conf$$.dir; then
  9037. rm -f conf$$.dir/conf$$.file
  9038. else
  9039. rm -f conf$$.dir
  9040. mkdir conf$$.dir 2>/dev/null
  9041. fi
  9042. if (echo >conf$$.file) 2>/dev/null; then
  9043. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9044. as_ln_s='ln -s'
  9045. # ... but there are two gotchas:
  9046. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9047. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9048. # In both cases, we have to default to `cp -pR'.
  9049. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9050. as_ln_s='cp -pR'
  9051. elif ln conf$$.file conf$$ 2>/dev/null; then
  9052. as_ln_s=ln
  9053. else
  9054. as_ln_s='cp -pR'
  9055. fi
  9056. else
  9057. as_ln_s='cp -pR'
  9058. fi
  9059. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9060. rmdir conf$$.dir 2>/dev/null
  9061. # as_fn_mkdir_p
  9062. # -------------
  9063. # Create "$as_dir" as a directory, including parents if necessary.
  9064. as_fn_mkdir_p ()
  9065. {
  9066. case $as_dir in #(
  9067. -*) as_dir=./$as_dir;;
  9068. esac
  9069. test -d "$as_dir" || eval $as_mkdir_p || {
  9070. as_dirs=
  9071. while :; do
  9072. case $as_dir in #(
  9073. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9074. *) as_qdir=$as_dir;;
  9075. esac
  9076. as_dirs="'$as_qdir' $as_dirs"
  9077. as_dir=`$as_dirname -- "$as_dir" ||
  9078. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9079. X"$as_dir" : 'X\(//\)[^/]' \| \
  9080. X"$as_dir" : 'X\(//\)$' \| \
  9081. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9082. $as_echo X"$as_dir" |
  9083. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9084. s//\1/
  9085. q
  9086. }
  9087. /^X\(\/\/\)[^/].*/{
  9088. s//\1/
  9089. q
  9090. }
  9091. /^X\(\/\/\)$/{
  9092. s//\1/
  9093. q
  9094. }
  9095. /^X\(\/\).*/{
  9096. s//\1/
  9097. q
  9098. }
  9099. s/.*/./; q'`
  9100. test -d "$as_dir" && break
  9101. done
  9102. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9103. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9104. } # as_fn_mkdir_p
  9105. if mkdir -p . 2>/dev/null; then
  9106. as_mkdir_p='mkdir -p "$as_dir"'
  9107. else
  9108. test -d ./-p && rmdir ./-p
  9109. as_mkdir_p=false
  9110. fi
  9111. # as_fn_executable_p FILE
  9112. # -----------------------
  9113. # Test if FILE is an executable regular file.
  9114. as_fn_executable_p ()
  9115. {
  9116. test -f "$1" && test -x "$1"
  9117. } # as_fn_executable_p
  9118. as_test_x='test -x'
  9119. as_executable_p=as_fn_executable_p
  9120. # Sed expression to map a string onto a valid CPP name.
  9121. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9122. # Sed expression to map a string onto a valid variable name.
  9123. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9124. exec 6>&1
  9125. ## ----------------------------------- ##
  9126. ## Main body of $CONFIG_STATUS script. ##
  9127. ## ----------------------------------- ##
  9128. _ASEOF
  9129. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9130. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9131. # Save the log message, to keep $0 and so on meaningful, and to
  9132. # report actual input values of CONFIG_FILES etc. instead of their
  9133. # values after options handling.
  9134. ac_log="
  9135. This file was extended by xkill $as_me 1.0.4, which was
  9136. generated by GNU Autoconf 2.69. Invocation command line was
  9137. CONFIG_FILES = $CONFIG_FILES
  9138. CONFIG_HEADERS = $CONFIG_HEADERS
  9139. CONFIG_LINKS = $CONFIG_LINKS
  9140. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9141. $ $0 $@
  9142. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9143. "
  9144. _ACEOF
  9145. case $ac_config_files in *"
  9146. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9147. esac
  9148. case $ac_config_headers in *"
  9149. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9150. esac
  9151. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9152. # Files that config.status was made for.
  9153. config_files="$ac_config_files"
  9154. config_headers="$ac_config_headers"
  9155. config_commands="$ac_config_commands"
  9156. _ACEOF
  9157. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9158. ac_cs_usage="\
  9159. \`$as_me' instantiates files and other configuration actions
  9160. from templates according to the current configuration. Unless the files
  9161. and actions are specified as TAGs, all are instantiated by default.
  9162. Usage: $0 [OPTION]... [TAG]...
  9163. -h, --help print this help, then exit
  9164. -V, --version print version number and configuration settings, then exit
  9165. --config print configuration, then exit
  9166. -q, --quiet, --silent
  9167. do not print progress messages
  9168. -d, --debug don't remove temporary files
  9169. --recheck update $as_me by reconfiguring in the same conditions
  9170. --file=FILE[:TEMPLATE]
  9171. instantiate the configuration file FILE
  9172. --header=FILE[:TEMPLATE]
  9173. instantiate the configuration header FILE
  9174. Configuration files:
  9175. $config_files
  9176. Configuration headers:
  9177. $config_headers
  9178. Configuration commands:
  9179. $config_commands
  9180. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9181. _ACEOF
  9182. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9183. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9184. ac_cs_version="\\
  9185. xkill config.status 1.0.4
  9186. configured by $0, generated by GNU Autoconf 2.69,
  9187. with options \\"\$ac_cs_config\\"
  9188. Copyright (C) 2012 Free Software Foundation, Inc.
  9189. This config.status script is free software; the Free Software Foundation
  9190. gives unlimited permission to copy, distribute and modify it."
  9191. ac_pwd='$ac_pwd'
  9192. srcdir='$srcdir'
  9193. INSTALL='$INSTALL'
  9194. MKDIR_P='$MKDIR_P'
  9195. AWK='$AWK'
  9196. test -n "\$AWK" || AWK=awk
  9197. _ACEOF
  9198. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9199. # The default lists apply if the user does not specify any file.
  9200. ac_need_defaults=:
  9201. while test $# != 0
  9202. do
  9203. case $1 in
  9204. --*=?*)
  9205. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9206. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9207. ac_shift=:
  9208. ;;
  9209. --*=)
  9210. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9211. ac_optarg=
  9212. ac_shift=:
  9213. ;;
  9214. *)
  9215. ac_option=$1
  9216. ac_optarg=$2
  9217. ac_shift=shift
  9218. ;;
  9219. esac
  9220. case $ac_option in
  9221. # Handling of the options.
  9222. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9223. ac_cs_recheck=: ;;
  9224. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9225. $as_echo "$ac_cs_version"; exit ;;
  9226. --config | --confi | --conf | --con | --co | --c )
  9227. $as_echo "$ac_cs_config"; exit ;;
  9228. --debug | --debu | --deb | --de | --d | -d )
  9229. debug=: ;;
  9230. --file | --fil | --fi | --f )
  9231. $ac_shift
  9232. case $ac_optarg in
  9233. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9234. '') as_fn_error $? "missing file argument" ;;
  9235. esac
  9236. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9237. ac_need_defaults=false;;
  9238. --header | --heade | --head | --hea )
  9239. $ac_shift
  9240. case $ac_optarg in
  9241. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9242. esac
  9243. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9244. ac_need_defaults=false;;
  9245. --he | --h)
  9246. # Conflict between --help and --header
  9247. as_fn_error $? "ambiguous option: \`$1'
  9248. Try \`$0 --help' for more information.";;
  9249. --help | --hel | -h )
  9250. $as_echo "$ac_cs_usage"; exit ;;
  9251. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9252. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9253. ac_cs_silent=: ;;
  9254. # This is an error.
  9255. -*) as_fn_error $? "unrecognized option: \`$1'
  9256. Try \`$0 --help' for more information." ;;
  9257. *) as_fn_append ac_config_targets " $1"
  9258. ac_need_defaults=false ;;
  9259. esac
  9260. shift
  9261. done
  9262. ac_configure_extra_args=
  9263. if $ac_cs_silent; then
  9264. exec 6>/dev/null
  9265. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9266. fi
  9267. _ACEOF
  9268. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9269. if \$ac_cs_recheck; then
  9270. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9271. shift
  9272. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9273. CONFIG_SHELL='$SHELL'
  9274. export CONFIG_SHELL
  9275. exec "\$@"
  9276. fi
  9277. _ACEOF
  9278. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9279. exec 5>>config.log
  9280. {
  9281. echo
  9282. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9283. ## Running $as_me. ##
  9284. _ASBOX
  9285. $as_echo "$ac_log"
  9286. } >&5
  9287. _ACEOF
  9288. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9289. #
  9290. # INIT-COMMANDS
  9291. #
  9292. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9293. _ACEOF
  9294. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9295. # Handling of arguments.
  9296. for ac_config_target in $ac_config_targets
  9297. do
  9298. case $ac_config_target in
  9299. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9300. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9301. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9302. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9303. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9304. esac
  9305. done
  9306. # If the user did not use the arguments to specify the items to instantiate,
  9307. # then the envvar interface is used. Set only those that are not.
  9308. # We use the long form for the default assignment because of an extremely
  9309. # bizarre bug on SunOS 4.1.3.
  9310. if $ac_need_defaults; then
  9311. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9312. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9313. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9314. fi
  9315. # Have a temporary directory for convenience. Make it in the build tree
  9316. # simply because there is no reason against having it here, and in addition,
  9317. # creating and moving files from /tmp can sometimes cause problems.
  9318. # Hook for its removal unless debugging.
  9319. # Note that there is a small window in which the directory will not be cleaned:
  9320. # after its creation but before its name has been assigned to `$tmp'.
  9321. $debug ||
  9322. {
  9323. tmp= ac_tmp=
  9324. trap 'exit_status=$?
  9325. : "${ac_tmp:=$tmp}"
  9326. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9327. ' 0
  9328. trap 'as_fn_exit 1' 1 2 13 15
  9329. }
  9330. # Create a (secure) tmp directory for tmp files.
  9331. {
  9332. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9333. test -d "$tmp"
  9334. } ||
  9335. {
  9336. tmp=./conf$$-$RANDOM
  9337. (umask 077 && mkdir "$tmp")
  9338. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9339. ac_tmp=$tmp
  9340. # Set up the scripts for CONFIG_FILES section.
  9341. # No need to generate them if there are no CONFIG_FILES.
  9342. # This happens for instance with `./config.status config.h'.
  9343. if test -n "$CONFIG_FILES"; then
  9344. ac_cr=`echo X | tr X '\015'`
  9345. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9346. # But we know of no other shell where ac_cr would be empty at this
  9347. # point, so we can use a bashism as a fallback.
  9348. if test "x$ac_cr" = x; then
  9349. eval ac_cr=\$\'\\r\'
  9350. fi
  9351. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9352. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9353. ac_cs_awk_cr='\\r'
  9354. else
  9355. ac_cs_awk_cr=$ac_cr
  9356. fi
  9357. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9358. _ACEOF
  9359. {
  9360. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9361. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9362. echo "_ACEOF"
  9363. } >conf$$subs.sh ||
  9364. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9365. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9366. ac_delim='%!_!# '
  9367. for ac_last_try in false false false false false :; do
  9368. . ./conf$$subs.sh ||
  9369. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9370. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9371. if test $ac_delim_n = $ac_delim_num; then
  9372. break
  9373. elif $ac_last_try; then
  9374. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9375. else
  9376. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9377. fi
  9378. done
  9379. rm -f conf$$subs.sh
  9380. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9381. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9382. _ACEOF
  9383. sed -n '
  9384. h
  9385. s/^/S["/; s/!.*/"]=/
  9386. p
  9387. g
  9388. s/^[^!]*!//
  9389. :repl
  9390. t repl
  9391. s/'"$ac_delim"'$//
  9392. t delim
  9393. :nl
  9394. h
  9395. s/\(.\{148\}\)..*/\1/
  9396. t more1
  9397. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9398. p
  9399. n
  9400. b repl
  9401. :more1
  9402. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9403. p
  9404. g
  9405. s/.\{148\}//
  9406. t nl
  9407. :delim
  9408. h
  9409. s/\(.\{148\}\)..*/\1/
  9410. t more2
  9411. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9412. p
  9413. b
  9414. :more2
  9415. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9416. p
  9417. g
  9418. s/.\{148\}//
  9419. t delim
  9420. ' <conf$$subs.awk | sed '
  9421. /^[^""]/{
  9422. N
  9423. s/\n//
  9424. }
  9425. ' >>$CONFIG_STATUS || ac_write_fail=1
  9426. rm -f conf$$subs.awk
  9427. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9428. _ACAWK
  9429. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9430. for (key in S) S_is_set[key] = 1
  9431. FS = ""
  9432. }
  9433. {
  9434. line = $ 0
  9435. nfields = split(line, field, "@")
  9436. substed = 0
  9437. len = length(field[1])
  9438. for (i = 2; i < nfields; i++) {
  9439. key = field[i]
  9440. keylen = length(key)
  9441. if (S_is_set[key]) {
  9442. value = S[key]
  9443. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9444. len += length(value) + length(field[++i])
  9445. substed = 1
  9446. } else
  9447. len += 1 + keylen
  9448. }
  9449. print line
  9450. }
  9451. _ACAWK
  9452. _ACEOF
  9453. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9454. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9455. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9456. else
  9457. cat
  9458. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9459. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9460. _ACEOF
  9461. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9462. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9463. # trailing colons and then remove the whole line if VPATH becomes empty
  9464. # (actually we leave an empty line to preserve line numbers).
  9465. if test "x$srcdir" = x.; then
  9466. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9467. h
  9468. s///
  9469. s/^/:/
  9470. s/[ ]*$/:/
  9471. s/:\$(srcdir):/:/g
  9472. s/:\${srcdir}:/:/g
  9473. s/:@srcdir@:/:/g
  9474. s/^:*//
  9475. s/:*$//
  9476. x
  9477. s/\(=[ ]*\).*/\1/
  9478. G
  9479. s/\n//
  9480. s/^[^=]*=[ ]*$//
  9481. }'
  9482. fi
  9483. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9484. fi # test -n "$CONFIG_FILES"
  9485. # Set up the scripts for CONFIG_HEADERS section.
  9486. # No need to generate them if there are no CONFIG_HEADERS.
  9487. # This happens for instance with `./config.status Makefile'.
  9488. if test -n "$CONFIG_HEADERS"; then
  9489. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9490. BEGIN {
  9491. _ACEOF
  9492. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9493. # here-document in config.status, that substitutes the proper values into
  9494. # config.h.in to produce config.h.
  9495. # Create a delimiter string that does not exist in confdefs.h, to ease
  9496. # handling of long lines.
  9497. ac_delim='%!_!# '
  9498. for ac_last_try in false false :; do
  9499. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9500. if test -z "$ac_tt"; then
  9501. break
  9502. elif $ac_last_try; then
  9503. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9504. else
  9505. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9506. fi
  9507. done
  9508. # For the awk script, D is an array of macro values keyed by name,
  9509. # likewise P contains macro parameters if any. Preserve backslash
  9510. # newline sequences.
  9511. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9512. sed -n '
  9513. s/.\{148\}/&'"$ac_delim"'/g
  9514. t rset
  9515. :rset
  9516. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9517. t def
  9518. d
  9519. :def
  9520. s/\\$//
  9521. t bsnl
  9522. s/["\\]/\\&/g
  9523. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9524. D["\1"]=" \3"/p
  9525. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9526. d
  9527. :bsnl
  9528. s/["\\]/\\&/g
  9529. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9530. D["\1"]=" \3\\\\\\n"\\/p
  9531. t cont
  9532. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9533. t cont
  9534. d
  9535. :cont
  9536. n
  9537. s/.\{148\}/&'"$ac_delim"'/g
  9538. t clear
  9539. :clear
  9540. s/\\$//
  9541. t bsnlc
  9542. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9543. d
  9544. :bsnlc
  9545. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9546. b cont
  9547. ' <confdefs.h | sed '
  9548. s/'"$ac_delim"'/"\\\
  9549. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9550. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9551. for (key in D) D_is_set[key] = 1
  9552. FS = ""
  9553. }
  9554. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9555. line = \$ 0
  9556. split(line, arg, " ")
  9557. if (arg[1] == "#") {
  9558. defundef = arg[2]
  9559. mac1 = arg[3]
  9560. } else {
  9561. defundef = substr(arg[1], 2)
  9562. mac1 = arg[2]
  9563. }
  9564. split(mac1, mac2, "(") #)
  9565. macro = mac2[1]
  9566. prefix = substr(line, 1, index(line, defundef) - 1)
  9567. if (D_is_set[macro]) {
  9568. # Preserve the white space surrounding the "#".
  9569. print prefix "define", macro P[macro] D[macro]
  9570. next
  9571. } else {
  9572. # Replace #undef with comments. This is necessary, for example,
  9573. # in the case of _POSIX_SOURCE, which is predefined and required
  9574. # on some systems where configure will not decide to define it.
  9575. if (defundef == "undef") {
  9576. print "/*", prefix defundef, macro, "*/"
  9577. next
  9578. }
  9579. }
  9580. }
  9581. { print }
  9582. _ACAWK
  9583. _ACEOF
  9584. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9585. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9586. fi # test -n "$CONFIG_HEADERS"
  9587. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9588. shift
  9589. for ac_tag
  9590. do
  9591. case $ac_tag in
  9592. :[FHLC]) ac_mode=$ac_tag; continue;;
  9593. esac
  9594. case $ac_mode$ac_tag in
  9595. :[FHL]*:*);;
  9596. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9597. :[FH]-) ac_tag=-:-;;
  9598. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9599. esac
  9600. ac_save_IFS=$IFS
  9601. IFS=:
  9602. set x $ac_tag
  9603. IFS=$ac_save_IFS
  9604. shift
  9605. ac_file=$1
  9606. shift
  9607. case $ac_mode in
  9608. :L) ac_source=$1;;
  9609. :[FH])
  9610. ac_file_inputs=
  9611. for ac_f
  9612. do
  9613. case $ac_f in
  9614. -) ac_f="$ac_tmp/stdin";;
  9615. *) # Look for the file first in the build tree, then in the source tree
  9616. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9617. # because $ac_f cannot contain `:'.
  9618. test -f "$ac_f" ||
  9619. case $ac_f in
  9620. [\\/$]*) false;;
  9621. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9622. esac ||
  9623. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9624. esac
  9625. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9626. as_fn_append ac_file_inputs " '$ac_f'"
  9627. done
  9628. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9629. # use $as_me), people would be surprised to read:
  9630. # /* config.h. Generated by config.status. */
  9631. configure_input='Generated from '`
  9632. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9633. `' by configure.'
  9634. if test x"$ac_file" != x-; then
  9635. configure_input="$ac_file. $configure_input"
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9637. $as_echo "$as_me: creating $ac_file" >&6;}
  9638. fi
  9639. # Neutralize special characters interpreted by sed in replacement strings.
  9640. case $configure_input in #(
  9641. *\&* | *\|* | *\\* )
  9642. ac_sed_conf_input=`$as_echo "$configure_input" |
  9643. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9644. *) ac_sed_conf_input=$configure_input;;
  9645. esac
  9646. case $ac_tag in
  9647. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9648. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9649. esac
  9650. ;;
  9651. esac
  9652. ac_dir=`$as_dirname -- "$ac_file" ||
  9653. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9654. X"$ac_file" : 'X\(//\)[^/]' \| \
  9655. X"$ac_file" : 'X\(//\)$' \| \
  9656. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9657. $as_echo X"$ac_file" |
  9658. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9659. s//\1/
  9660. q
  9661. }
  9662. /^X\(\/\/\)[^/].*/{
  9663. s//\1/
  9664. q
  9665. }
  9666. /^X\(\/\/\)$/{
  9667. s//\1/
  9668. q
  9669. }
  9670. /^X\(\/\).*/{
  9671. s//\1/
  9672. q
  9673. }
  9674. s/.*/./; q'`
  9675. as_dir="$ac_dir"; as_fn_mkdir_p
  9676. ac_builddir=.
  9677. case "$ac_dir" in
  9678. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9679. *)
  9680. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9681. # A ".." for each directory in $ac_dir_suffix.
  9682. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9683. case $ac_top_builddir_sub in
  9684. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9685. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9686. esac ;;
  9687. esac
  9688. ac_abs_top_builddir=$ac_pwd
  9689. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9690. # for backward compatibility:
  9691. ac_top_builddir=$ac_top_build_prefix
  9692. case $srcdir in
  9693. .) # We are building in place.
  9694. ac_srcdir=.
  9695. ac_top_srcdir=$ac_top_builddir_sub
  9696. ac_abs_top_srcdir=$ac_pwd ;;
  9697. [\\/]* | ?:[\\/]* ) # Absolute name.
  9698. ac_srcdir=$srcdir$ac_dir_suffix;
  9699. ac_top_srcdir=$srcdir
  9700. ac_abs_top_srcdir=$srcdir ;;
  9701. *) # Relative name.
  9702. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9703. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9704. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9705. esac
  9706. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9707. case $ac_mode in
  9708. :F)
  9709. #
  9710. # CONFIG_FILE
  9711. #
  9712. case $INSTALL in
  9713. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9714. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9715. esac
  9716. ac_MKDIR_P=$MKDIR_P
  9717. case $MKDIR_P in
  9718. [\\/$]* | ?:[\\/]* ) ;;
  9719. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9720. esac
  9721. _ACEOF
  9722. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9723. # If the template does not know about datarootdir, expand it.
  9724. # FIXME: This hack should be removed a few years after 2.60.
  9725. ac_datarootdir_hack=; ac_datarootdir_seen=
  9726. ac_sed_dataroot='
  9727. /datarootdir/ {
  9728. p
  9729. q
  9730. }
  9731. /@datadir@/p
  9732. /@docdir@/p
  9733. /@infodir@/p
  9734. /@localedir@/p
  9735. /@mandir@/p'
  9736. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9737. *datarootdir*) ac_datarootdir_seen=yes;;
  9738. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9739. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9740. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9741. _ACEOF
  9742. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9743. ac_datarootdir_hack='
  9744. s&@datadir@&$datadir&g
  9745. s&@docdir@&$docdir&g
  9746. s&@infodir@&$infodir&g
  9747. s&@localedir@&$localedir&g
  9748. s&@mandir@&$mandir&g
  9749. s&\\\${datarootdir}&$datarootdir&g' ;;
  9750. esac
  9751. _ACEOF
  9752. # Neutralize VPATH when `$srcdir' = `.'.
  9753. # Shell code in configure.ac might set extrasub.
  9754. # FIXME: do we really want to maintain this feature?
  9755. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9756. ac_sed_extra="$ac_vpsub
  9757. $extrasub
  9758. _ACEOF
  9759. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9760. :t
  9761. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9762. s|@configure_input@|$ac_sed_conf_input|;t t
  9763. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9764. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9765. s&@srcdir@&$ac_srcdir&;t t
  9766. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9767. s&@top_srcdir@&$ac_top_srcdir&;t t
  9768. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9769. s&@builddir@&$ac_builddir&;t t
  9770. s&@abs_builddir@&$ac_abs_builddir&;t t
  9771. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9772. s&@INSTALL@&$ac_INSTALL&;t t
  9773. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9774. $ac_datarootdir_hack
  9775. "
  9776. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9777. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9778. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9779. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9780. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9781. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9783. which seems to be undefined. Please make sure it is defined" >&5
  9784. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9785. which seems to be undefined. Please make sure it is defined" >&2;}
  9786. rm -f "$ac_tmp/stdin"
  9787. case $ac_file in
  9788. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9789. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9790. esac \
  9791. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9792. ;;
  9793. :H)
  9794. #
  9795. # CONFIG_HEADER
  9796. #
  9797. if test x"$ac_file" != x-; then
  9798. {
  9799. $as_echo "/* $configure_input */" \
  9800. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9801. } >"$ac_tmp/config.h" \
  9802. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9803. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9804. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9805. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9806. else
  9807. rm -f "$ac_file"
  9808. mv "$ac_tmp/config.h" "$ac_file" \
  9809. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9810. fi
  9811. else
  9812. $as_echo "/* $configure_input */" \
  9813. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9814. || as_fn_error $? "could not create -" "$LINENO" 5
  9815. fi
  9816. # Compute "$ac_file"'s index in $config_headers.
  9817. _am_arg="$ac_file"
  9818. _am_stamp_count=1
  9819. for _am_header in $config_headers :; do
  9820. case $_am_header in
  9821. $_am_arg | $_am_arg:* )
  9822. break ;;
  9823. * )
  9824. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  9825. esac
  9826. done
  9827. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  9828. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9829. X"$_am_arg" : 'X\(//\)[^/]' \| \
  9830. X"$_am_arg" : 'X\(//\)$' \| \
  9831. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  9832. $as_echo X"$_am_arg" |
  9833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9834. s//\1/
  9835. q
  9836. }
  9837. /^X\(\/\/\)[^/].*/{
  9838. s//\1/
  9839. q
  9840. }
  9841. /^X\(\/\/\)$/{
  9842. s//\1/
  9843. q
  9844. }
  9845. /^X\(\/\).*/{
  9846. s//\1/
  9847. q
  9848. }
  9849. s/.*/./; q'`/stamp-h$_am_stamp_count
  9850. ;;
  9851. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9852. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9853. ;;
  9854. esac
  9855. case $ac_file$ac_mode in
  9856. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  9857. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  9858. # are listed without --file. Let's play safe and only enable the eval
  9859. # if we detect the quoting.
  9860. case $CONFIG_FILES in
  9861. *\'*) eval set x "$CONFIG_FILES" ;;
  9862. *) set x $CONFIG_FILES ;;
  9863. esac
  9864. shift
  9865. for mf
  9866. do
  9867. # Strip MF so we end up with the name of the file.
  9868. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9869. # Check whether this is an Automake generated Makefile or not.
  9870. # We used to match only the files named 'Makefile.in', but
  9871. # some people rename them; so instead we look at the file content.
  9872. # Grep'ing the first line is not enough: some people post-process
  9873. # each Makefile.in and add a new line on top of each file to say so.
  9874. # Grep'ing the whole file is not good either: AIX grep has a line
  9875. # limit of 2048, but all sed's we know have understand at least 4000.
  9876. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  9877. dirpart=`$as_dirname -- "$mf" ||
  9878. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9879. X"$mf" : 'X\(//\)[^/]' \| \
  9880. X"$mf" : 'X\(//\)$' \| \
  9881. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  9882. $as_echo X"$mf" |
  9883. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9884. s//\1/
  9885. q
  9886. }
  9887. /^X\(\/\/\)[^/].*/{
  9888. s//\1/
  9889. q
  9890. }
  9891. /^X\(\/\/\)$/{
  9892. s//\1/
  9893. q
  9894. }
  9895. /^X\(\/\).*/{
  9896. s//\1/
  9897. q
  9898. }
  9899. s/.*/./; q'`
  9900. else
  9901. continue
  9902. fi
  9903. # Extract the definition of DEPDIR, am__include, and am__quote
  9904. # from the Makefile without running 'make'.
  9905. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  9906. test -z "$DEPDIR" && continue
  9907. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  9908. test -z "am__include" && continue
  9909. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  9910. # Find all dependency output files, they are included files with
  9911. # $(DEPDIR) in their names. We invoke sed twice because it is the
  9912. # simplest approach to changing $(DEPDIR) to its actual value in the
  9913. # expansion.
  9914. for file in `sed -n "
  9915. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  9916. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  9917. # Make sure the directory exists.
  9918. test -f "$dirpart/$file" && continue
  9919. fdir=`$as_dirname -- "$file" ||
  9920. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9921. X"$file" : 'X\(//\)[^/]' \| \
  9922. X"$file" : 'X\(//\)$' \| \
  9923. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  9924. $as_echo X"$file" |
  9925. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9926. s//\1/
  9927. q
  9928. }
  9929. /^X\(\/\/\)[^/].*/{
  9930. s//\1/
  9931. q
  9932. }
  9933. /^X\(\/\/\)$/{
  9934. s//\1/
  9935. q
  9936. }
  9937. /^X\(\/\).*/{
  9938. s//\1/
  9939. q
  9940. }
  9941. s/.*/./; q'`
  9942. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  9943. # echo "creating $dirpart/$file"
  9944. echo '# dummy' > "$dirpart/$file"
  9945. done
  9946. done
  9947. }
  9948. ;;
  9949. esac
  9950. done # for ac_tag
  9951. as_fn_exit 0
  9952. _ACEOF
  9953. ac_clean_files=$ac_clean_files_save
  9954. test $ac_write_fail = 0 ||
  9955. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9956. # configure is writing to config.log, and then calls config.status.
  9957. # config.status does its own redirection, appending to config.log.
  9958. # Unfortunately, on DOS this fails, as config.log is still kept open
  9959. # by configure, so config.status won't be able to write to it; its
  9960. # output is simply discarded. So we exec the FD to /dev/null,
  9961. # effectively closing config.log, so it can be properly (re)opened and
  9962. # appended to by config.status. When coming back to configure, we
  9963. # need to make the FD available again.
  9964. if test "$no_create" != yes; then
  9965. ac_cs_success=:
  9966. ac_config_status_args=
  9967. test "$silent" = yes &&
  9968. ac_config_status_args="$ac_config_status_args --quiet"
  9969. exec 5>/dev/null
  9970. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9971. exec 5>>config.log
  9972. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9973. # would make configure fail if this is the last instruction.
  9974. $ac_cs_success || as_fn_exit 1
  9975. fi
  9976. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9978. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9979. fi