configure 406 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.62 for oclock 1.0.3.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$as_shell") 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. exec 7<&0 </dev/null 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. # Identity of this package.
  515. PACKAGE_NAME='oclock'
  516. PACKAGE_TARNAME='oclock'
  517. PACKAGE_VERSION='1.0.3'
  518. PACKAGE_STRING='oclock 1.0.3'
  519. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  520. # Factoring default headers for most tests.
  521. ac_includes_default="\
  522. #include <stdio.h>
  523. #ifdef HAVE_SYS_TYPES_H
  524. # include <sys/types.h>
  525. #endif
  526. #ifdef HAVE_SYS_STAT_H
  527. # include <sys/stat.h>
  528. #endif
  529. #ifdef STDC_HEADERS
  530. # include <stdlib.h>
  531. # include <stddef.h>
  532. #else
  533. # ifdef HAVE_STDLIB_H
  534. # include <stdlib.h>
  535. # endif
  536. #endif
  537. #ifdef HAVE_STRING_H
  538. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  539. # include <memory.h>
  540. # endif
  541. # include <string.h>
  542. #endif
  543. #ifdef HAVE_STRINGS_H
  544. # include <strings.h>
  545. #endif
  546. #ifdef HAVE_INTTYPES_H
  547. # include <inttypes.h>
  548. #endif
  549. #ifdef HAVE_STDINT_H
  550. # include <stdint.h>
  551. #endif
  552. #ifdef HAVE_UNISTD_H
  553. # include <unistd.h>
  554. #endif"
  555. ac_subst_vars='SHELL
  556. PATH_SEPARATOR
  557. PACKAGE_NAME
  558. PACKAGE_TARNAME
  559. PACKAGE_VERSION
  560. PACKAGE_STRING
  561. PACKAGE_BUGREPORT
  562. exec_prefix
  563. prefix
  564. program_transform_name
  565. bindir
  566. sbindir
  567. libexecdir
  568. datarootdir
  569. datadir
  570. sysconfdir
  571. sharedstatedir
  572. localstatedir
  573. includedir
  574. oldincludedir
  575. docdir
  576. infodir
  577. htmldir
  578. dvidir
  579. pdfdir
  580. psdir
  581. libdir
  582. localedir
  583. mandir
  584. DEFS
  585. ECHO_C
  586. ECHO_N
  587. ECHO_T
  588. LIBS
  589. build_alias
  590. host_alias
  591. target_alias
  592. INSTALL_PROGRAM
  593. INSTALL_SCRIPT
  594. INSTALL_DATA
  595. CYGPATH_W
  596. PACKAGE
  597. VERSION
  598. ACLOCAL
  599. AUTOCONF
  600. AUTOMAKE
  601. AUTOHEADER
  602. MAKEINFO
  603. install_sh
  604. STRIP
  605. INSTALL_STRIP_PROGRAM
  606. mkdir_p
  607. AWK
  608. SET_MAKE
  609. am__leading_dot
  610. AMTAR
  611. am__tar
  612. am__untar
  613. MAINTAINER_MODE_TRUE
  614. MAINTAINER_MODE_FALSE
  615. MAINT
  616. CC
  617. CFLAGS
  618. LDFLAGS
  619. CPPFLAGS
  620. ac_ct_CC
  621. EXEEXT
  622. OBJEXT
  623. DEPDIR
  624. am__include
  625. am__quote
  626. AMDEP_TRUE
  627. AMDEP_FALSE
  628. AMDEPBACKSLASH
  629. CCDEPMODE
  630. am__fastdepCC_TRUE
  631. am__fastdepCC_FALSE
  632. CPP
  633. GREP
  634. EGREP
  635. BASE_CFLAGS
  636. CWARNFLAGS
  637. STRICT_CFLAGS
  638. CHANGELOG_CMD
  639. PKG_CONFIG
  640. INSTALL_CMD
  641. build
  642. build_cpu
  643. build_vendor
  644. build_os
  645. host
  646. host_cpu
  647. host_vendor
  648. host_os
  649. SED
  650. APP_MAN_SUFFIX
  651. LIB_MAN_SUFFIX
  652. FILE_MAN_SUFFIX
  653. MISC_MAN_SUFFIX
  654. DRIVER_MAN_SUFFIX
  655. ADMIN_MAN_SUFFIX
  656. APP_MAN_DIR
  657. LIB_MAN_DIR
  658. FILE_MAN_DIR
  659. MISC_MAN_DIR
  660. DRIVER_MAN_DIR
  661. ADMIN_MAN_DIR
  662. XORG_MAN_PAGE
  663. MAN_SUBSTS
  664. AM_DEFAULT_VERBOSITY
  665. OCLOCK_CFLAGS
  666. OCLOCK_LIBS
  667. appdefaultdir
  668. LIBOBJS
  669. LTLIBOBJS'
  670. ac_subst_files=''
  671. ac_user_opts='
  672. enable_option_checking
  673. enable_maintainer_mode
  674. enable_dependency_tracking
  675. enable_selective_werror
  676. enable_strict_compilation
  677. with_xkb
  678. with_appdefaultdir
  679. '
  680. ac_precious_vars='build_alias
  681. host_alias
  682. target_alias
  683. CC
  684. CFLAGS
  685. LDFLAGS
  686. LIBS
  687. CPPFLAGS
  688. CPP
  689. PKG_CONFIG
  690. OCLOCK_CFLAGS
  691. OCLOCK_LIBS'
  692. # Initialize some variables set by options.
  693. ac_init_help=
  694. ac_init_version=false
  695. ac_unrecognized_opts=
  696. ac_unrecognized_sep=
  697. # The variables have the same names as the options, with
  698. # dashes changed to underlines.
  699. cache_file=/dev/null
  700. exec_prefix=NONE
  701. no_create=
  702. no_recursion=
  703. prefix=NONE
  704. program_prefix=NONE
  705. program_suffix=NONE
  706. program_transform_name=s,x,x,
  707. silent=
  708. site=
  709. srcdir=
  710. verbose=
  711. x_includes=NONE
  712. x_libraries=NONE
  713. # Installation directory options.
  714. # These are left unexpanded so users can "make install exec_prefix=/foo"
  715. # and all the variables that are supposed to be based on exec_prefix
  716. # by default will actually change.
  717. # Use braces instead of parens because sh, perl, etc. also accept them.
  718. # (The list follows the same order as the GNU Coding Standards.)
  719. bindir='${exec_prefix}/bin'
  720. sbindir='${exec_prefix}/sbin'
  721. libexecdir='${exec_prefix}/libexec'
  722. datarootdir='${prefix}/share'
  723. datadir='${datarootdir}'
  724. sysconfdir='${prefix}/etc'
  725. sharedstatedir='${prefix}/com'
  726. localstatedir='${prefix}/var'
  727. includedir='${prefix}/include'
  728. oldincludedir='/usr/include'
  729. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  730. infodir='${datarootdir}/info'
  731. htmldir='${docdir}'
  732. dvidir='${docdir}'
  733. pdfdir='${docdir}'
  734. psdir='${docdir}'
  735. libdir='${exec_prefix}/lib'
  736. localedir='${datarootdir}/locale'
  737. mandir='${datarootdir}/man'
  738. ac_prev=
  739. ac_dashdash=
  740. for ac_option
  741. do
  742. # If the previous option needs an argument, assign it.
  743. if test -n "$ac_prev"; then
  744. eval $ac_prev=\$ac_option
  745. ac_prev=
  746. continue
  747. fi
  748. case $ac_option in
  749. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  750. *) ac_optarg=yes ;;
  751. esac
  752. # Accept the important Cygnus configure options, so we can diagnose typos.
  753. case $ac_dashdash$ac_option in
  754. --)
  755. ac_dashdash=yes ;;
  756. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  757. ac_prev=bindir ;;
  758. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  759. bindir=$ac_optarg ;;
  760. -build | --build | --buil | --bui | --bu)
  761. ac_prev=build_alias ;;
  762. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  763. build_alias=$ac_optarg ;;
  764. -cache-file | --cache-file | --cache-fil | --cache-fi \
  765. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  766. ac_prev=cache_file ;;
  767. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  768. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  769. cache_file=$ac_optarg ;;
  770. --config-cache | -C)
  771. cache_file=config.cache ;;
  772. -datadir | --datadir | --datadi | --datad)
  773. ac_prev=datadir ;;
  774. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  775. datadir=$ac_optarg ;;
  776. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  777. | --dataroo | --dataro | --datar)
  778. ac_prev=datarootdir ;;
  779. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  780. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  781. datarootdir=$ac_optarg ;;
  782. -disable-* | --disable-*)
  783. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  784. # Reject names that are not valid shell variable names.
  785. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  786. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  787. { (exit 1); exit 1; }; }
  788. ac_useropt_orig=$ac_useropt
  789. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  790. case $ac_user_opts in
  791. *"
  792. "enable_$ac_useropt"
  793. "*) ;;
  794. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  795. ac_unrecognized_sep=', ';;
  796. esac
  797. eval enable_$ac_useropt=no ;;
  798. -docdir | --docdir | --docdi | --doc | --do)
  799. ac_prev=docdir ;;
  800. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  801. docdir=$ac_optarg ;;
  802. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  803. ac_prev=dvidir ;;
  804. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  805. dvidir=$ac_optarg ;;
  806. -enable-* | --enable-*)
  807. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  808. # Reject names that are not valid shell variable names.
  809. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  810. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  811. { (exit 1); exit 1; }; }
  812. ac_useropt_orig=$ac_useropt
  813. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  814. case $ac_user_opts in
  815. *"
  816. "enable_$ac_useropt"
  817. "*) ;;
  818. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  819. ac_unrecognized_sep=', ';;
  820. esac
  821. eval enable_$ac_useropt=\$ac_optarg ;;
  822. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  823. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  824. | --exec | --exe | --ex)
  825. ac_prev=exec_prefix ;;
  826. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  827. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  828. | --exec=* | --exe=* | --ex=*)
  829. exec_prefix=$ac_optarg ;;
  830. -gas | --gas | --ga | --g)
  831. # Obsolete; use --with-gas.
  832. with_gas=yes ;;
  833. -help | --help | --hel | --he | -h)
  834. ac_init_help=long ;;
  835. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  836. ac_init_help=recursive ;;
  837. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  838. ac_init_help=short ;;
  839. -host | --host | --hos | --ho)
  840. ac_prev=host_alias ;;
  841. -host=* | --host=* | --hos=* | --ho=*)
  842. host_alias=$ac_optarg ;;
  843. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  844. ac_prev=htmldir ;;
  845. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  846. | --ht=*)
  847. htmldir=$ac_optarg ;;
  848. -includedir | --includedir | --includedi | --included | --include \
  849. | --includ | --inclu | --incl | --inc)
  850. ac_prev=includedir ;;
  851. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  852. | --includ=* | --inclu=* | --incl=* | --inc=*)
  853. includedir=$ac_optarg ;;
  854. -infodir | --infodir | --infodi | --infod | --info | --inf)
  855. ac_prev=infodir ;;
  856. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  857. infodir=$ac_optarg ;;
  858. -libdir | --libdir | --libdi | --libd)
  859. ac_prev=libdir ;;
  860. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  861. libdir=$ac_optarg ;;
  862. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  863. | --libexe | --libex | --libe)
  864. ac_prev=libexecdir ;;
  865. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  866. | --libexe=* | --libex=* | --libe=*)
  867. libexecdir=$ac_optarg ;;
  868. -localedir | --localedir | --localedi | --localed | --locale)
  869. ac_prev=localedir ;;
  870. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  871. localedir=$ac_optarg ;;
  872. -localstatedir | --localstatedir | --localstatedi | --localstated \
  873. | --localstate | --localstat | --localsta | --localst | --locals)
  874. ac_prev=localstatedir ;;
  875. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  876. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  877. localstatedir=$ac_optarg ;;
  878. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  879. ac_prev=mandir ;;
  880. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  881. mandir=$ac_optarg ;;
  882. -nfp | --nfp | --nf)
  883. # Obsolete; use --without-fp.
  884. with_fp=no ;;
  885. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  886. | --no-cr | --no-c | -n)
  887. no_create=yes ;;
  888. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  889. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  890. no_recursion=yes ;;
  891. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  892. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  893. | --oldin | --oldi | --old | --ol | --o)
  894. ac_prev=oldincludedir ;;
  895. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  896. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  897. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  898. oldincludedir=$ac_optarg ;;
  899. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  900. ac_prev=prefix ;;
  901. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  902. prefix=$ac_optarg ;;
  903. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  904. | --program-pre | --program-pr | --program-p)
  905. ac_prev=program_prefix ;;
  906. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  907. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  908. program_prefix=$ac_optarg ;;
  909. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  910. | --program-suf | --program-su | --program-s)
  911. ac_prev=program_suffix ;;
  912. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  913. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  914. program_suffix=$ac_optarg ;;
  915. -program-transform-name | --program-transform-name \
  916. | --program-transform-nam | --program-transform-na \
  917. | --program-transform-n | --program-transform- \
  918. | --program-transform | --program-transfor \
  919. | --program-transfo | --program-transf \
  920. | --program-trans | --program-tran \
  921. | --progr-tra | --program-tr | --program-t)
  922. ac_prev=program_transform_name ;;
  923. -program-transform-name=* | --program-transform-name=* \
  924. | --program-transform-nam=* | --program-transform-na=* \
  925. | --program-transform-n=* | --program-transform-=* \
  926. | --program-transform=* | --program-transfor=* \
  927. | --program-transfo=* | --program-transf=* \
  928. | --program-trans=* | --program-tran=* \
  929. | --progr-tra=* | --program-tr=* | --program-t=*)
  930. program_transform_name=$ac_optarg ;;
  931. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  932. ac_prev=pdfdir ;;
  933. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  934. pdfdir=$ac_optarg ;;
  935. -psdir | --psdir | --psdi | --psd | --ps)
  936. ac_prev=psdir ;;
  937. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  938. psdir=$ac_optarg ;;
  939. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  940. | -silent | --silent | --silen | --sile | --sil)
  941. silent=yes ;;
  942. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  943. ac_prev=sbindir ;;
  944. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  945. | --sbi=* | --sb=*)
  946. sbindir=$ac_optarg ;;
  947. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  948. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  949. | --sharedst | --shareds | --shared | --share | --shar \
  950. | --sha | --sh)
  951. ac_prev=sharedstatedir ;;
  952. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  953. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  954. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  955. | --sha=* | --sh=*)
  956. sharedstatedir=$ac_optarg ;;
  957. -site | --site | --sit)
  958. ac_prev=site ;;
  959. -site=* | --site=* | --sit=*)
  960. site=$ac_optarg ;;
  961. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  962. ac_prev=srcdir ;;
  963. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  964. srcdir=$ac_optarg ;;
  965. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  966. | --syscon | --sysco | --sysc | --sys | --sy)
  967. ac_prev=sysconfdir ;;
  968. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  969. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  970. sysconfdir=$ac_optarg ;;
  971. -target | --target | --targe | --targ | --tar | --ta | --t)
  972. ac_prev=target_alias ;;
  973. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  974. target_alias=$ac_optarg ;;
  975. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  976. verbose=yes ;;
  977. -version | --version | --versio | --versi | --vers | -V)
  978. ac_init_version=: ;;
  979. -with-* | --with-*)
  980. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  981. # Reject names that are not valid shell variable names.
  982. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  983. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  984. { (exit 1); exit 1; }; }
  985. ac_useropt_orig=$ac_useropt
  986. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  987. case $ac_user_opts in
  988. *"
  989. "with_$ac_useropt"
  990. "*) ;;
  991. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  992. ac_unrecognized_sep=', ';;
  993. esac
  994. eval with_$ac_useropt=\$ac_optarg ;;
  995. -without-* | --without-*)
  996. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  997. # Reject names that are not valid shell variable names.
  998. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  999. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1000. { (exit 1); exit 1; }; }
  1001. ac_useropt_orig=$ac_useropt
  1002. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1003. case $ac_user_opts in
  1004. *"
  1005. "with_$ac_useropt"
  1006. "*) ;;
  1007. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1008. ac_unrecognized_sep=', ';;
  1009. esac
  1010. eval with_$ac_useropt=no ;;
  1011. --x)
  1012. # Obsolete; use --with-x.
  1013. with_x=yes ;;
  1014. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1015. | --x-incl | --x-inc | --x-in | --x-i)
  1016. ac_prev=x_includes ;;
  1017. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1018. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1019. x_includes=$ac_optarg ;;
  1020. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1021. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1022. ac_prev=x_libraries ;;
  1023. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1024. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1025. x_libraries=$ac_optarg ;;
  1026. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1027. Try \`$0 --help' for more information." >&2
  1028. { (exit 1); exit 1; }; }
  1029. ;;
  1030. *=*)
  1031. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1032. # Reject names that are not valid shell variable names.
  1033. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1034. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1035. { (exit 1); exit 1; }; }
  1036. eval $ac_envvar=\$ac_optarg
  1037. export $ac_envvar ;;
  1038. *)
  1039. # FIXME: should be removed in autoconf 3.0.
  1040. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1041. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1042. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1043. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1044. ;;
  1045. esac
  1046. done
  1047. if test -n "$ac_prev"; then
  1048. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1049. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1050. { (exit 1); exit 1; }; }
  1051. fi
  1052. if test -n "$ac_unrecognized_opts"; then
  1053. case $enable_option_checking in
  1054. no) ;;
  1055. fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
  1056. { (exit 1); exit 1; }; } ;;
  1057. *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1058. esac
  1059. fi
  1060. # Check all directory arguments for consistency.
  1061. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1062. datadir sysconfdir sharedstatedir localstatedir includedir \
  1063. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1064. libdir localedir mandir
  1065. do
  1066. eval ac_val=\$$ac_var
  1067. # Remove trailing slashes.
  1068. case $ac_val in
  1069. */ )
  1070. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1071. eval $ac_var=\$ac_val;;
  1072. esac
  1073. # Be sure to have absolute directory names.
  1074. case $ac_val in
  1075. [\\/$]* | ?:[\\/]* ) continue;;
  1076. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1077. esac
  1078. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1079. { (exit 1); exit 1; }; }
  1080. done
  1081. # There might be people who depend on the old broken behavior: `$host'
  1082. # used to hold the argument of --host etc.
  1083. # FIXME: To remove some day.
  1084. build=$build_alias
  1085. host=$host_alias
  1086. target=$target_alias
  1087. # FIXME: To remove some day.
  1088. if test "x$host_alias" != x; then
  1089. if test "x$build_alias" = x; then
  1090. cross_compiling=maybe
  1091. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1092. If a cross compiler is detected then cross compile mode will be used." >&2
  1093. elif test "x$build_alias" != "x$host_alias"; then
  1094. cross_compiling=yes
  1095. fi
  1096. fi
  1097. ac_tool_prefix=
  1098. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1099. test "$silent" = yes && exec 6>/dev/null
  1100. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1101. ac_ls_di=`ls -di .` &&
  1102. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1103. { $as_echo "$as_me: error: Working directory cannot be determined" >&2
  1104. { (exit 1); exit 1; }; }
  1105. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1106. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1107. { (exit 1); exit 1; }; }
  1108. # Find the source files, if location was not specified.
  1109. if test -z "$srcdir"; then
  1110. ac_srcdir_defaulted=yes
  1111. # Try the directory containing this script, then the parent directory.
  1112. ac_confdir=`$as_dirname -- "$as_myself" ||
  1113. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1114. X"$as_myself" : 'X\(//\)[^/]' \| \
  1115. X"$as_myself" : 'X\(//\)$' \| \
  1116. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1117. $as_echo X"$as_myself" |
  1118. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1119. s//\1/
  1120. q
  1121. }
  1122. /^X\(\/\/\)[^/].*/{
  1123. s//\1/
  1124. q
  1125. }
  1126. /^X\(\/\/\)$/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\).*/{
  1131. s//\1/
  1132. q
  1133. }
  1134. s/.*/./; q'`
  1135. srcdir=$ac_confdir
  1136. if test ! -r "$srcdir/$ac_unique_file"; then
  1137. srcdir=..
  1138. fi
  1139. else
  1140. ac_srcdir_defaulted=no
  1141. fi
  1142. if test ! -r "$srcdir/$ac_unique_file"; then
  1143. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1144. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1145. { (exit 1); exit 1; }; }
  1146. fi
  1147. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1148. ac_abs_confdir=`(
  1149. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1150. { (exit 1); exit 1; }; }
  1151. pwd)`
  1152. # When building in place, set srcdir=.
  1153. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1154. srcdir=.
  1155. fi
  1156. # Remove unnecessary trailing slashes from srcdir.
  1157. # Double slashes in file names in object file debugging info
  1158. # mess up M-x gdb in Emacs.
  1159. case $srcdir in
  1160. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1161. esac
  1162. for ac_var in $ac_precious_vars; do
  1163. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1164. eval ac_env_${ac_var}_value=\$${ac_var}
  1165. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1166. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1167. done
  1168. #
  1169. # Report the --help message.
  1170. #
  1171. if test "$ac_init_help" = "long"; then
  1172. # Omit some internal or obsolete options to make the list less imposing.
  1173. # This message is too long to be a string in the A/UX 3.1 sh.
  1174. cat <<_ACEOF
  1175. \`configure' configures oclock 1.0.3 to adapt to many kinds of systems.
  1176. Usage: $0 [OPTION]... [VAR=VALUE]...
  1177. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1178. VAR=VALUE. See below for descriptions of some of the useful variables.
  1179. Defaults for the options are specified in brackets.
  1180. Configuration:
  1181. -h, --help display this help and exit
  1182. --help=short display options specific to this package
  1183. --help=recursive display the short help of all the included packages
  1184. -V, --version display version information and exit
  1185. -q, --quiet, --silent do not print \`checking...' messages
  1186. --cache-file=FILE cache test results in FILE [disabled]
  1187. -C, --config-cache alias for \`--cache-file=config.cache'
  1188. -n, --no-create do not create output files
  1189. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1190. Installation directories:
  1191. --prefix=PREFIX install architecture-independent files in PREFIX
  1192. [$ac_default_prefix]
  1193. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1194. [PREFIX]
  1195. By default, \`make install' will install all the files in
  1196. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1197. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1198. for instance \`--prefix=\$HOME'.
  1199. For better control, use the options below.
  1200. Fine tuning of the installation directories:
  1201. --bindir=DIR user executables [EPREFIX/bin]
  1202. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1203. --libexecdir=DIR program executables [EPREFIX/libexec]
  1204. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1205. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1206. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1207. --libdir=DIR object code libraries [EPREFIX/lib]
  1208. --includedir=DIR C header files [PREFIX/include]
  1209. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1210. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1211. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1212. --infodir=DIR info documentation [DATAROOTDIR/info]
  1213. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1214. --mandir=DIR man documentation [DATAROOTDIR/man]
  1215. --docdir=DIR documentation root [DATAROOTDIR/doc/oclock]
  1216. --htmldir=DIR html documentation [DOCDIR]
  1217. --dvidir=DIR dvi documentation [DOCDIR]
  1218. --pdfdir=DIR pdf documentation [DOCDIR]
  1219. --psdir=DIR ps documentation [DOCDIR]
  1220. _ACEOF
  1221. cat <<\_ACEOF
  1222. Program names:
  1223. --program-prefix=PREFIX prepend PREFIX to installed program names
  1224. --program-suffix=SUFFIX append SUFFIX to installed program names
  1225. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1226. System types:
  1227. --build=BUILD configure for building on BUILD [guessed]
  1228. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1229. _ACEOF
  1230. fi
  1231. if test -n "$ac_init_help"; then
  1232. case $ac_init_help in
  1233. short | recursive ) echo "Configuration of oclock 1.0.3:";;
  1234. esac
  1235. cat <<\_ACEOF
  1236. Optional Features:
  1237. --disable-option-checking ignore unrecognized --enable/--with options
  1238. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1239. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1240. --enable-maintainer-mode enable make rules and dependencies not useful
  1241. (and sometimes confusing) to the casual installer
  1242. --disable-dependency-tracking speeds up one-time build
  1243. --enable-dependency-tracking do not reject slow dependency extractors
  1244. --disable-selective-werror
  1245. Turn off selective compiler errors. (default:
  1246. enabled)
  1247. --enable-strict-compilation
  1248. Enable all warnings from compiler and make them
  1249. errors (default: disabled)
  1250. Optional Packages:
  1251. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1252. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1253. --without-xkb Disable use of XKB to sound bells (Default is
  1254. with-xkb)
  1255. --with-appdefaultdir=<pathname>
  1256. specify directory for app-defaults files (default is
  1257. autodetected)
  1258. Some influential environment variables:
  1259. CC C compiler command
  1260. CFLAGS C compiler flags
  1261. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1262. nonstandard directory <lib dir>
  1263. LIBS libraries to pass to the linker, e.g. -l<library>
  1264. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1265. you have headers in a nonstandard directory <include dir>
  1266. CPP C preprocessor
  1267. PKG_CONFIG path to pkg-config utility
  1268. OCLOCK_CFLAGS
  1269. C compiler flags for OCLOCK, overriding pkg-config
  1270. OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config
  1271. Use these variables to override the choices made by `configure' or to help
  1272. it to find libraries and programs with nonstandard names/locations.
  1273. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1274. _ACEOF
  1275. ac_status=$?
  1276. fi
  1277. if test "$ac_init_help" = "recursive"; then
  1278. # If there are subdirs, report their specific --help.
  1279. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1280. test -d "$ac_dir" ||
  1281. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1282. continue
  1283. ac_builddir=.
  1284. case "$ac_dir" in
  1285. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1286. *)
  1287. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1288. # A ".." for each directory in $ac_dir_suffix.
  1289. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1290. case $ac_top_builddir_sub in
  1291. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1292. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1293. esac ;;
  1294. esac
  1295. ac_abs_top_builddir=$ac_pwd
  1296. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1297. # for backward compatibility:
  1298. ac_top_builddir=$ac_top_build_prefix
  1299. case $srcdir in
  1300. .) # We are building in place.
  1301. ac_srcdir=.
  1302. ac_top_srcdir=$ac_top_builddir_sub
  1303. ac_abs_top_srcdir=$ac_pwd ;;
  1304. [\\/]* | ?:[\\/]* ) # Absolute name.
  1305. ac_srcdir=$srcdir$ac_dir_suffix;
  1306. ac_top_srcdir=$srcdir
  1307. ac_abs_top_srcdir=$srcdir ;;
  1308. *) # Relative name.
  1309. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1310. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1311. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1312. esac
  1313. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1314. cd "$ac_dir" || { ac_status=$?; continue; }
  1315. # Check for guested configure.
  1316. if test -f "$ac_srcdir/configure.gnu"; then
  1317. echo &&
  1318. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1319. elif test -f "$ac_srcdir/configure"; then
  1320. echo &&
  1321. $SHELL "$ac_srcdir/configure" --help=recursive
  1322. else
  1323. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1324. fi || ac_status=$?
  1325. cd "$ac_pwd" || { ac_status=$?; break; }
  1326. done
  1327. fi
  1328. test -n "$ac_init_help" && exit $ac_status
  1329. if $ac_init_version; then
  1330. cat <<\_ACEOF
  1331. oclock configure 1.0.3
  1332. generated by GNU Autoconf 2.62
  1333. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1334. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1335. This configure script is free software; the Free Software Foundation
  1336. gives unlimited permission to copy, distribute and modify it.
  1337. _ACEOF
  1338. exit
  1339. fi
  1340. cat >config.log <<_ACEOF
  1341. This file contains any messages produced by compilers while
  1342. running configure, to aid debugging if configure makes a mistake.
  1343. It was created by oclock $as_me 1.0.3, which was
  1344. generated by GNU Autoconf 2.62. Invocation command line was
  1345. $ $0 $@
  1346. _ACEOF
  1347. exec 5>>config.log
  1348. {
  1349. cat <<_ASUNAME
  1350. ## --------- ##
  1351. ## Platform. ##
  1352. ## --------- ##
  1353. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1354. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1355. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1356. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1357. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1358. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1359. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1360. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1361. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1362. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1363. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1364. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1365. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1366. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1367. _ASUNAME
  1368. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1369. for as_dir in $PATH
  1370. do
  1371. IFS=$as_save_IFS
  1372. test -z "$as_dir" && as_dir=.
  1373. $as_echo "PATH: $as_dir"
  1374. done
  1375. IFS=$as_save_IFS
  1376. } >&5
  1377. cat >&5 <<_ACEOF
  1378. ## ----------- ##
  1379. ## Core tests. ##
  1380. ## ----------- ##
  1381. _ACEOF
  1382. # Keep a trace of the command line.
  1383. # Strip out --no-create and --no-recursion so they do not pile up.
  1384. # Strip out --silent because we don't want to record it for future runs.
  1385. # Also quote any args containing shell meta-characters.
  1386. # Make two passes to allow for proper duplicate-argument suppression.
  1387. ac_configure_args=
  1388. ac_configure_args0=
  1389. ac_configure_args1=
  1390. ac_must_keep_next=false
  1391. for ac_pass in 1 2
  1392. do
  1393. for ac_arg
  1394. do
  1395. case $ac_arg in
  1396. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1397. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1398. | -silent | --silent | --silen | --sile | --sil)
  1399. continue ;;
  1400. *\'*)
  1401. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1402. esac
  1403. case $ac_pass in
  1404. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1405. 2)
  1406. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1407. if test $ac_must_keep_next = true; then
  1408. ac_must_keep_next=false # Got value, back to normal.
  1409. else
  1410. case $ac_arg in
  1411. *=* | --config-cache | -C | -disable-* | --disable-* \
  1412. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1413. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1414. | -with-* | --with-* | -without-* | --without-* | --x)
  1415. case "$ac_configure_args0 " in
  1416. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1417. esac
  1418. ;;
  1419. -* ) ac_must_keep_next=true ;;
  1420. esac
  1421. fi
  1422. ac_configure_args="$ac_configure_args '$ac_arg'"
  1423. ;;
  1424. esac
  1425. done
  1426. done
  1427. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1428. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1429. # When interrupted or exit'd, cleanup temporary files, and complete
  1430. # config.log. We remove comments because anyway the quotes in there
  1431. # would cause problems or look ugly.
  1432. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1433. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1434. trap 'exit_status=$?
  1435. # Save into config.log some information that might help in debugging.
  1436. {
  1437. echo
  1438. cat <<\_ASBOX
  1439. ## ---------------- ##
  1440. ## Cache variables. ##
  1441. ## ---------------- ##
  1442. _ASBOX
  1443. echo
  1444. # The following way of writing the cache mishandles newlines in values,
  1445. (
  1446. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1447. eval ac_val=\$$ac_var
  1448. case $ac_val in #(
  1449. *${as_nl}*)
  1450. case $ac_var in #(
  1451. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1452. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1453. esac
  1454. case $ac_var in #(
  1455. _ | IFS | as_nl) ;; #(
  1456. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1457. *) $as_unset $ac_var ;;
  1458. esac ;;
  1459. esac
  1460. done
  1461. (set) 2>&1 |
  1462. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1463. *${as_nl}ac_space=\ *)
  1464. sed -n \
  1465. "s/'\''/'\''\\\\'\'''\''/g;
  1466. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1467. ;; #(
  1468. *)
  1469. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1470. ;;
  1471. esac |
  1472. sort
  1473. )
  1474. echo
  1475. cat <<\_ASBOX
  1476. ## ----------------- ##
  1477. ## Output variables. ##
  1478. ## ----------------- ##
  1479. _ASBOX
  1480. echo
  1481. for ac_var in $ac_subst_vars
  1482. do
  1483. eval ac_val=\$$ac_var
  1484. case $ac_val in
  1485. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1486. esac
  1487. $as_echo "$ac_var='\''$ac_val'\''"
  1488. done | sort
  1489. echo
  1490. if test -n "$ac_subst_files"; then
  1491. cat <<\_ASBOX
  1492. ## ------------------- ##
  1493. ## File substitutions. ##
  1494. ## ------------------- ##
  1495. _ASBOX
  1496. echo
  1497. for ac_var in $ac_subst_files
  1498. do
  1499. eval ac_val=\$$ac_var
  1500. case $ac_val in
  1501. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1502. esac
  1503. $as_echo "$ac_var='\''$ac_val'\''"
  1504. done | sort
  1505. echo
  1506. fi
  1507. if test -s confdefs.h; then
  1508. cat <<\_ASBOX
  1509. ## ----------- ##
  1510. ## confdefs.h. ##
  1511. ## ----------- ##
  1512. _ASBOX
  1513. echo
  1514. cat confdefs.h
  1515. echo
  1516. fi
  1517. test "$ac_signal" != 0 &&
  1518. $as_echo "$as_me: caught signal $ac_signal"
  1519. $as_echo "$as_me: exit $exit_status"
  1520. } >&5
  1521. rm -f core *.core core.conftest.* &&
  1522. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1523. exit $exit_status
  1524. ' 0
  1525. for ac_signal in 1 2 13 15; do
  1526. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1527. done
  1528. ac_signal=0
  1529. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1530. rm -f -r conftest* confdefs.h
  1531. # Predefined preprocessor variables.
  1532. cat >>confdefs.h <<_ACEOF
  1533. #define PACKAGE_NAME "$PACKAGE_NAME"
  1534. _ACEOF
  1535. cat >>confdefs.h <<_ACEOF
  1536. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1537. _ACEOF
  1538. cat >>confdefs.h <<_ACEOF
  1539. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1540. _ACEOF
  1541. cat >>confdefs.h <<_ACEOF
  1542. #define PACKAGE_STRING "$PACKAGE_STRING"
  1543. _ACEOF
  1544. cat >>confdefs.h <<_ACEOF
  1545. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1546. _ACEOF
  1547. # Let the site file select an alternate cache file if it wants to.
  1548. # Prefer an explicitly selected file to automatically selected ones.
  1549. ac_site_file1=NONE
  1550. ac_site_file2=NONE
  1551. if test -n "$CONFIG_SITE"; then
  1552. ac_site_file1=$CONFIG_SITE
  1553. elif test "x$prefix" != xNONE; then
  1554. ac_site_file1=$prefix/share/config.site
  1555. ac_site_file2=$prefix/etc/config.site
  1556. else
  1557. ac_site_file1=$ac_default_prefix/share/config.site
  1558. ac_site_file2=$ac_default_prefix/etc/config.site
  1559. fi
  1560. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1561. do
  1562. test "x$ac_site_file" = xNONE && continue
  1563. if test -r "$ac_site_file"; then
  1564. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1565. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1566. sed 's/^/| /' "$ac_site_file" >&5
  1567. . "$ac_site_file"
  1568. fi
  1569. done
  1570. if test -r "$cache_file"; then
  1571. # Some versions of bash will fail to source /dev/null (special
  1572. # files actually), so we avoid doing that.
  1573. if test -f "$cache_file"; then
  1574. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1575. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1576. case $cache_file in
  1577. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1578. *) . "./$cache_file";;
  1579. esac
  1580. fi
  1581. else
  1582. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1583. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1584. >$cache_file
  1585. fi
  1586. # Check that the precious variables saved in the cache have kept the same
  1587. # value.
  1588. ac_cache_corrupted=false
  1589. for ac_var in $ac_precious_vars; do
  1590. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1591. eval ac_new_set=\$ac_env_${ac_var}_set
  1592. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1593. eval ac_new_val=\$ac_env_${ac_var}_value
  1594. case $ac_old_set,$ac_new_set in
  1595. set,)
  1596. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1597. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1598. ac_cache_corrupted=: ;;
  1599. ,set)
  1600. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1601. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1602. ac_cache_corrupted=: ;;
  1603. ,);;
  1604. *)
  1605. if test "x$ac_old_val" != "x$ac_new_val"; then
  1606. # differences in whitespace do not lead to failure.
  1607. ac_old_val_w=`echo x $ac_old_val`
  1608. ac_new_val_w=`echo x $ac_new_val`
  1609. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1610. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1611. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1612. ac_cache_corrupted=:
  1613. else
  1614. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1615. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1616. eval $ac_var=\$ac_old_val
  1617. fi
  1618. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1619. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1620. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1621. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1622. fi;;
  1623. esac
  1624. # Pass precious variables to config.status.
  1625. if test "$ac_new_set" = set; then
  1626. case $ac_new_val in
  1627. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1628. *) ac_arg=$ac_var=$ac_new_val ;;
  1629. esac
  1630. case " $ac_configure_args " in
  1631. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1632. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1633. esac
  1634. fi
  1635. done
  1636. if $ac_cache_corrupted; then
  1637. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1638. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1639. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1640. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1641. { (exit 1); exit 1; }; }
  1642. fi
  1643. ac_ext=c
  1644. ac_cpp='$CPP $CPPFLAGS'
  1645. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1646. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1647. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1648. am__api_version="1.9"
  1649. ac_aux_dir=
  1650. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1651. if test -f "$ac_dir/install-sh"; then
  1652. ac_aux_dir=$ac_dir
  1653. ac_install_sh="$ac_aux_dir/install-sh -c"
  1654. break
  1655. elif test -f "$ac_dir/install.sh"; then
  1656. ac_aux_dir=$ac_dir
  1657. ac_install_sh="$ac_aux_dir/install.sh -c"
  1658. break
  1659. elif test -f "$ac_dir/shtool"; then
  1660. ac_aux_dir=$ac_dir
  1661. ac_install_sh="$ac_aux_dir/shtool install -c"
  1662. break
  1663. fi
  1664. done
  1665. if test -z "$ac_aux_dir"; then
  1666. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1667. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1668. { (exit 1); exit 1; }; }
  1669. fi
  1670. # These three variables are undocumented and unsupported,
  1671. # and are intended to be withdrawn in a future Autoconf release.
  1672. # They can cause serious problems if a builder's source tree is in a directory
  1673. # whose full name contains unusual characters.
  1674. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1675. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1676. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1677. # Find a good install program. We prefer a C program (faster),
  1678. # so one script is as good as another. But avoid the broken or
  1679. # incompatible versions:
  1680. # SysV /etc/install, /usr/sbin/install
  1681. # SunOS /usr/etc/install
  1682. # IRIX /sbin/install
  1683. # AIX /bin/install
  1684. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1685. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1686. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1687. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1688. # OS/2's system install, which has a completely different semantic
  1689. # ./install, which can be erroneously created by make from ./install.sh.
  1690. # Reject install programs that cannot install multiple files.
  1691. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1692. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1693. if test -z "$INSTALL"; then
  1694. if test "${ac_cv_path_install+set}" = set; then
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1698. for as_dir in $PATH
  1699. do
  1700. IFS=$as_save_IFS
  1701. test -z "$as_dir" && as_dir=.
  1702. # Account for people who put trailing slashes in PATH elements.
  1703. case $as_dir/ in
  1704. ./ | .// | /cC/* | \
  1705. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1706. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1707. /usr/ucb/* ) ;;
  1708. *)
  1709. # OSF1 and SCO ODT 3.0 have their own names for install.
  1710. # Don't use installbsd from OSF since it installs stuff as root
  1711. # by default.
  1712. for ac_prog in ginstall scoinst install; do
  1713. for ac_exec_ext in '' $ac_executable_extensions; do
  1714. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1715. if test $ac_prog = install &&
  1716. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1717. # AIX install. It has an incompatible calling convention.
  1718. :
  1719. elif test $ac_prog = install &&
  1720. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1721. # program-specific install script used by HP pwplus--don't use.
  1722. :
  1723. else
  1724. rm -rf conftest.one conftest.two conftest.dir
  1725. echo one > conftest.one
  1726. echo two > conftest.two
  1727. mkdir conftest.dir
  1728. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1729. test -s conftest.one && test -s conftest.two &&
  1730. test -s conftest.dir/conftest.one &&
  1731. test -s conftest.dir/conftest.two
  1732. then
  1733. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1734. break 3
  1735. fi
  1736. fi
  1737. fi
  1738. done
  1739. done
  1740. ;;
  1741. esac
  1742. done
  1743. IFS=$as_save_IFS
  1744. rm -rf conftest.one conftest.two conftest.dir
  1745. fi
  1746. if test "${ac_cv_path_install+set}" = set; then
  1747. INSTALL=$ac_cv_path_install
  1748. else
  1749. # As a last resort, use the slow shell script. Don't cache a
  1750. # value for INSTALL within a source directory, because that will
  1751. # break other packages using the cache if that directory is
  1752. # removed, or if the value is a relative name.
  1753. INSTALL=$ac_install_sh
  1754. fi
  1755. fi
  1756. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  1757. $as_echo "$INSTALL" >&6; }
  1758. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1759. # It thinks the first close brace ends the variable substitution.
  1760. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1761. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1762. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1763. test "$program_prefix" != NONE &&
  1764. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1765. # Use a double $ so make ignores it.
  1766. test "$program_suffix" != NONE &&
  1767. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1768. # Double any \ or $.
  1769. # By default was `s,x,x', remove it if useless.
  1770. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  1771. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  1772. # expand $ac_aux_dir to an absolute path
  1773. am_aux_dir=`cd $ac_aux_dir && pwd`
  1774. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1775. # Use eval to expand $SHELL
  1776. if eval "$MISSING --run true"; then
  1777. am_missing_run="$MISSING --run "
  1778. else
  1779. am_missing_run=
  1780. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1781. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1782. fi
  1783. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1784. # We used to keeping the `.' as first argument, in order to
  1785. # allow $(mkdir_p) to be used without argument. As in
  1786. # $(mkdir_p) $(somedir)
  1787. # where $(somedir) is conditionally defined. However this is wrong
  1788. # for two reasons:
  1789. # 1. if the package is installed by a user who cannot write `.'
  1790. # make install will fail,
  1791. # 2. the above comment should most certainly read
  1792. # $(mkdir_p) $(DESTDIR)$(somedir)
  1793. # so it does not work when $(somedir) is undefined and
  1794. # $(DESTDIR) is not.
  1795. # To support the latter case, we have to write
  1796. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1797. # so the `.' trick is pointless.
  1798. mkdir_p='mkdir -p --'
  1799. else
  1800. # On NextStep and OpenStep, the `mkdir' command does not
  1801. # recognize any option. It will interpret all options as
  1802. # directories to create, and then abort because `.' already
  1803. # exists.
  1804. for d in ./-p ./--version;
  1805. do
  1806. test -d $d && rmdir $d
  1807. done
  1808. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1809. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1810. mkdir_p='$(mkinstalldirs)'
  1811. else
  1812. mkdir_p='$(SHELL) $(install_sh) -d'
  1813. fi
  1814. fi
  1815. for ac_prog in gawk mawk nawk awk
  1816. do
  1817. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1818. set dummy $ac_prog; ac_word=$2
  1819. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1820. $as_echo_n "checking for $ac_word... " >&6; }
  1821. if test "${ac_cv_prog_AWK+set}" = set; then
  1822. $as_echo_n "(cached) " >&6
  1823. else
  1824. if test -n "$AWK"; then
  1825. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1826. else
  1827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1828. for as_dir in $PATH
  1829. do
  1830. IFS=$as_save_IFS
  1831. test -z "$as_dir" && as_dir=.
  1832. for ac_exec_ext in '' $ac_executable_extensions; do
  1833. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1834. ac_cv_prog_AWK="$ac_prog"
  1835. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1836. break 2
  1837. fi
  1838. done
  1839. done
  1840. IFS=$as_save_IFS
  1841. fi
  1842. fi
  1843. AWK=$ac_cv_prog_AWK
  1844. if test -n "$AWK"; then
  1845. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  1846. $as_echo "$AWK" >&6; }
  1847. else
  1848. { $as_echo "$as_me:$LINENO: result: no" >&5
  1849. $as_echo "no" >&6; }
  1850. fi
  1851. test -n "$AWK" && break
  1852. done
  1853. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1854. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  1855. set x ${MAKE-make}
  1856. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1857. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1858. $as_echo_n "(cached) " >&6
  1859. else
  1860. cat >conftest.make <<\_ACEOF
  1861. SHELL = /bin/sh
  1862. all:
  1863. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1864. _ACEOF
  1865. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1866. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1867. *@@@%%%=?*=@@@%%%*)
  1868. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1869. *)
  1870. eval ac_cv_prog_make_${ac_make}_set=no;;
  1871. esac
  1872. rm -f conftest.make
  1873. fi
  1874. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1875. { $as_echo "$as_me:$LINENO: result: yes" >&5
  1876. $as_echo "yes" >&6; }
  1877. SET_MAKE=
  1878. else
  1879. { $as_echo "$as_me:$LINENO: result: no" >&5
  1880. $as_echo "no" >&6; }
  1881. SET_MAKE="MAKE=${MAKE-make}"
  1882. fi
  1883. rm -rf .tst 2>/dev/null
  1884. mkdir .tst 2>/dev/null
  1885. if test -d .tst; then
  1886. am__leading_dot=.
  1887. else
  1888. am__leading_dot=_
  1889. fi
  1890. rmdir .tst 2>/dev/null
  1891. # test to see if srcdir already configured
  1892. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1893. test -f $srcdir/config.status; then
  1894. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1895. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1896. { (exit 1); exit 1; }; }
  1897. fi
  1898. # test whether we have cygpath
  1899. if test -z "$CYGPATH_W"; then
  1900. if (cygpath --version) >/dev/null 2>/dev/null; then
  1901. CYGPATH_W='cygpath -w'
  1902. else
  1903. CYGPATH_W=echo
  1904. fi
  1905. fi
  1906. # Define the identity of the package.
  1907. PACKAGE='oclock'
  1908. VERSION='1.0.3'
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE "$PACKAGE"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define VERSION "$VERSION"
  1914. _ACEOF
  1915. # Some tools Automake needs.
  1916. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1917. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1918. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1919. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1920. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1921. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1922. # Installed binaries are usually stripped using `strip' when the user
  1923. # run `make install-strip'. However `strip' might not be the right
  1924. # tool to use in cross-compilation environments, therefore Automake
  1925. # will honor the `STRIP' environment variable to overrule this program.
  1926. if test "$cross_compiling" != no; then
  1927. if test -n "$ac_tool_prefix"; then
  1928. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1929. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1930. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1931. $as_echo_n "checking for $ac_word... " >&6; }
  1932. if test "${ac_cv_prog_STRIP+set}" = set; then
  1933. $as_echo_n "(cached) " >&6
  1934. else
  1935. if test -n "$STRIP"; then
  1936. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1937. else
  1938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1939. for as_dir in $PATH
  1940. do
  1941. IFS=$as_save_IFS
  1942. test -z "$as_dir" && as_dir=.
  1943. for ac_exec_ext in '' $ac_executable_extensions; do
  1944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1945. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1946. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1947. break 2
  1948. fi
  1949. done
  1950. done
  1951. IFS=$as_save_IFS
  1952. fi
  1953. fi
  1954. STRIP=$ac_cv_prog_STRIP
  1955. if test -n "$STRIP"; then
  1956. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  1957. $as_echo "$STRIP" >&6; }
  1958. else
  1959. { $as_echo "$as_me:$LINENO: result: no" >&5
  1960. $as_echo "no" >&6; }
  1961. fi
  1962. fi
  1963. if test -z "$ac_cv_prog_STRIP"; then
  1964. ac_ct_STRIP=$STRIP
  1965. # Extract the first word of "strip", so it can be a program name with args.
  1966. set dummy strip; ac_word=$2
  1967. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1968. $as_echo_n "checking for $ac_word... " >&6; }
  1969. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1970. $as_echo_n "(cached) " >&6
  1971. else
  1972. if test -n "$ac_ct_STRIP"; then
  1973. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_exec_ext in '' $ac_executable_extensions; do
  1981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1982. ac_cv_prog_ac_ct_STRIP="strip"
  1983. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1984. break 2
  1985. fi
  1986. done
  1987. done
  1988. IFS=$as_save_IFS
  1989. fi
  1990. fi
  1991. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1992. if test -n "$ac_ct_STRIP"; then
  1993. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1994. $as_echo "$ac_ct_STRIP" >&6; }
  1995. else
  1996. { $as_echo "$as_me:$LINENO: result: no" >&5
  1997. $as_echo "no" >&6; }
  1998. fi
  1999. if test "x$ac_ct_STRIP" = x; then
  2000. STRIP=":"
  2001. else
  2002. case $cross_compiling:$ac_tool_warned in
  2003. yes:)
  2004. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2005. whose name does not start with the host triplet. If you think this
  2006. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2007. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2008. whose name does not start with the host triplet. If you think this
  2009. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2010. ac_tool_warned=yes ;;
  2011. esac
  2012. STRIP=$ac_ct_STRIP
  2013. fi
  2014. else
  2015. STRIP="$ac_cv_prog_STRIP"
  2016. fi
  2017. fi
  2018. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2019. # We need awk for the "check" target. The system "awk" is bad on
  2020. # some platforms.
  2021. # Always define AMTAR for backward compatibility.
  2022. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2023. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2024. { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2025. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2026. # Check whether --enable-maintainer-mode was given.
  2027. if test "${enable_maintainer_mode+set}" = set; then
  2028. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2029. else
  2030. USE_MAINTAINER_MODE=no
  2031. fi
  2032. { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2033. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2034. if test $USE_MAINTAINER_MODE = yes; then
  2035. MAINTAINER_MODE_TRUE=
  2036. MAINTAINER_MODE_FALSE='#'
  2037. else
  2038. MAINTAINER_MODE_TRUE='#'
  2039. MAINTAINER_MODE_FALSE=
  2040. fi
  2041. MAINT=$MAINTAINER_MODE_TRUE
  2042. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2043. DEPDIR="${am__leading_dot}deps"
  2044. ac_config_commands="$ac_config_commands depfiles"
  2045. am_make=${MAKE-make}
  2046. cat > confinc << 'END'
  2047. am__doit:
  2048. @echo done
  2049. .PHONY: am__doit
  2050. END
  2051. # If we don't find an include directive, just comment out the code.
  2052. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2053. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2054. am__include="#"
  2055. am__quote=
  2056. _am_result=none
  2057. # First try GNU make style include.
  2058. echo "include confinc" > confmf
  2059. # We grep out `Entering directory' and `Leaving directory'
  2060. # messages which can occur if `w' ends up in MAKEFLAGS.
  2061. # In particular we don't look at `^make:' because GNU make might
  2062. # be invoked under some other name (usually "gmake"), in which
  2063. # case it prints its new name instead of `make'.
  2064. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2065. am__include=include
  2066. am__quote=
  2067. _am_result=GNU
  2068. fi
  2069. # Now try BSD make style include.
  2070. if test "$am__include" = "#"; then
  2071. echo '.include "confinc"' > confmf
  2072. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2073. am__include=.include
  2074. am__quote="\""
  2075. _am_result=BSD
  2076. fi
  2077. fi
  2078. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  2079. $as_echo "$_am_result" >&6; }
  2080. rm -f confinc confmf
  2081. # Check whether --enable-dependency-tracking was given.
  2082. if test "${enable_dependency_tracking+set}" = set; then
  2083. enableval=$enable_dependency_tracking;
  2084. fi
  2085. if test "x$enable_dependency_tracking" != xno; then
  2086. am_depcomp="$ac_aux_dir/depcomp"
  2087. AMDEPBACKSLASH='\'
  2088. fi
  2089. if test "x$enable_dependency_tracking" != xno; then
  2090. AMDEP_TRUE=
  2091. AMDEP_FALSE='#'
  2092. else
  2093. AMDEP_TRUE='#'
  2094. AMDEP_FALSE=
  2095. fi
  2096. ac_ext=c
  2097. ac_cpp='$CPP $CPPFLAGS'
  2098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2101. if test -n "$ac_tool_prefix"; then
  2102. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2103. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2104. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2105. $as_echo_n "checking for $ac_word... " >&6; }
  2106. if test "${ac_cv_prog_CC+set}" = set; then
  2107. $as_echo_n "(cached) " >&6
  2108. else
  2109. if test -n "$CC"; then
  2110. ac_cv_prog_CC="$CC" # Let the user override the test.
  2111. else
  2112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2113. for as_dir in $PATH
  2114. do
  2115. IFS=$as_save_IFS
  2116. test -z "$as_dir" && as_dir=.
  2117. for ac_exec_ext in '' $ac_executable_extensions; do
  2118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2119. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2120. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2121. break 2
  2122. fi
  2123. done
  2124. done
  2125. IFS=$as_save_IFS
  2126. fi
  2127. fi
  2128. CC=$ac_cv_prog_CC
  2129. if test -n "$CC"; then
  2130. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2131. $as_echo "$CC" >&6; }
  2132. else
  2133. { $as_echo "$as_me:$LINENO: result: no" >&5
  2134. $as_echo "no" >&6; }
  2135. fi
  2136. fi
  2137. if test -z "$ac_cv_prog_CC"; then
  2138. ac_ct_CC=$CC
  2139. # Extract the first word of "gcc", so it can be a program name with args.
  2140. set dummy gcc; ac_word=$2
  2141. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2142. $as_echo_n "checking for $ac_word... " >&6; }
  2143. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2144. $as_echo_n "(cached) " >&6
  2145. else
  2146. if test -n "$ac_ct_CC"; then
  2147. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2148. else
  2149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2150. for as_dir in $PATH
  2151. do
  2152. IFS=$as_save_IFS
  2153. test -z "$as_dir" && as_dir=.
  2154. for ac_exec_ext in '' $ac_executable_extensions; do
  2155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2156. ac_cv_prog_ac_ct_CC="gcc"
  2157. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2158. break 2
  2159. fi
  2160. done
  2161. done
  2162. IFS=$as_save_IFS
  2163. fi
  2164. fi
  2165. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2166. if test -n "$ac_ct_CC"; then
  2167. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2168. $as_echo "$ac_ct_CC" >&6; }
  2169. else
  2170. { $as_echo "$as_me:$LINENO: result: no" >&5
  2171. $as_echo "no" >&6; }
  2172. fi
  2173. if test "x$ac_ct_CC" = x; then
  2174. CC=""
  2175. else
  2176. case $cross_compiling:$ac_tool_warned in
  2177. yes:)
  2178. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2179. whose name does not start with the host triplet. If you think this
  2180. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2181. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2182. whose name does not start with the host triplet. If you think this
  2183. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2184. ac_tool_warned=yes ;;
  2185. esac
  2186. CC=$ac_ct_CC
  2187. fi
  2188. else
  2189. CC="$ac_cv_prog_CC"
  2190. fi
  2191. if test -z "$CC"; then
  2192. if test -n "$ac_tool_prefix"; then
  2193. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2194. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2195. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2196. $as_echo_n "checking for $ac_word... " >&6; }
  2197. if test "${ac_cv_prog_CC+set}" = set; then
  2198. $as_echo_n "(cached) " >&6
  2199. else
  2200. if test -n "$CC"; then
  2201. ac_cv_prog_CC="$CC" # Let the user override the test.
  2202. else
  2203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2204. for as_dir in $PATH
  2205. do
  2206. IFS=$as_save_IFS
  2207. test -z "$as_dir" && as_dir=.
  2208. for ac_exec_ext in '' $ac_executable_extensions; do
  2209. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2210. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2211. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2212. break 2
  2213. fi
  2214. done
  2215. done
  2216. IFS=$as_save_IFS
  2217. fi
  2218. fi
  2219. CC=$ac_cv_prog_CC
  2220. if test -n "$CC"; then
  2221. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2222. $as_echo "$CC" >&6; }
  2223. else
  2224. { $as_echo "$as_me:$LINENO: result: no" >&5
  2225. $as_echo "no" >&6; }
  2226. fi
  2227. fi
  2228. fi
  2229. if test -z "$CC"; then
  2230. # Extract the first word of "cc", so it can be a program name with args.
  2231. set dummy cc; ac_word=$2
  2232. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2233. $as_echo_n "checking for $ac_word... " >&6; }
  2234. if test "${ac_cv_prog_CC+set}" = set; then
  2235. $as_echo_n "(cached) " >&6
  2236. else
  2237. if test -n "$CC"; then
  2238. ac_cv_prog_CC="$CC" # Let the user override the test.
  2239. else
  2240. ac_prog_rejected=no
  2241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2242. for as_dir in $PATH
  2243. do
  2244. IFS=$as_save_IFS
  2245. test -z "$as_dir" && as_dir=.
  2246. for ac_exec_ext in '' $ac_executable_extensions; do
  2247. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2248. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2249. ac_prog_rejected=yes
  2250. continue
  2251. fi
  2252. ac_cv_prog_CC="cc"
  2253. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2254. break 2
  2255. fi
  2256. done
  2257. done
  2258. IFS=$as_save_IFS
  2259. if test $ac_prog_rejected = yes; then
  2260. # We found a bogon in the path, so make sure we never use it.
  2261. set dummy $ac_cv_prog_CC
  2262. shift
  2263. if test $# != 0; then
  2264. # We chose a different compiler from the bogus one.
  2265. # However, it has the same basename, so the bogon will be chosen
  2266. # first if we set CC to just the basename; use the full file name.
  2267. shift
  2268. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2269. fi
  2270. fi
  2271. fi
  2272. fi
  2273. CC=$ac_cv_prog_CC
  2274. if test -n "$CC"; then
  2275. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2276. $as_echo "$CC" >&6; }
  2277. else
  2278. { $as_echo "$as_me:$LINENO: result: no" >&5
  2279. $as_echo "no" >&6; }
  2280. fi
  2281. fi
  2282. if test -z "$CC"; then
  2283. if test -n "$ac_tool_prefix"; then
  2284. for ac_prog in cl.exe
  2285. do
  2286. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2287. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2288. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2289. $as_echo_n "checking for $ac_word... " >&6; }
  2290. if test "${ac_cv_prog_CC+set}" = set; then
  2291. $as_echo_n "(cached) " >&6
  2292. else
  2293. if test -n "$CC"; then
  2294. ac_cv_prog_CC="$CC" # Let the user override the test.
  2295. else
  2296. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2297. for as_dir in $PATH
  2298. do
  2299. IFS=$as_save_IFS
  2300. test -z "$as_dir" && as_dir=.
  2301. for ac_exec_ext in '' $ac_executable_extensions; do
  2302. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2303. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2304. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2305. break 2
  2306. fi
  2307. done
  2308. done
  2309. IFS=$as_save_IFS
  2310. fi
  2311. fi
  2312. CC=$ac_cv_prog_CC
  2313. if test -n "$CC"; then
  2314. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2315. $as_echo "$CC" >&6; }
  2316. else
  2317. { $as_echo "$as_me:$LINENO: result: no" >&5
  2318. $as_echo "no" >&6; }
  2319. fi
  2320. test -n "$CC" && break
  2321. done
  2322. fi
  2323. if test -z "$CC"; then
  2324. ac_ct_CC=$CC
  2325. for ac_prog in cl.exe
  2326. do
  2327. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2328. set dummy $ac_prog; ac_word=$2
  2329. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2330. $as_echo_n "checking for $ac_word... " >&6; }
  2331. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2332. $as_echo_n "(cached) " >&6
  2333. else
  2334. if test -n "$ac_ct_CC"; then
  2335. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2336. else
  2337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2338. for as_dir in $PATH
  2339. do
  2340. IFS=$as_save_IFS
  2341. test -z "$as_dir" && as_dir=.
  2342. for ac_exec_ext in '' $ac_executable_extensions; do
  2343. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2344. ac_cv_prog_ac_ct_CC="$ac_prog"
  2345. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2346. break 2
  2347. fi
  2348. done
  2349. done
  2350. IFS=$as_save_IFS
  2351. fi
  2352. fi
  2353. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2354. if test -n "$ac_ct_CC"; then
  2355. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2356. $as_echo "$ac_ct_CC" >&6; }
  2357. else
  2358. { $as_echo "$as_me:$LINENO: result: no" >&5
  2359. $as_echo "no" >&6; }
  2360. fi
  2361. test -n "$ac_ct_CC" && break
  2362. done
  2363. if test "x$ac_ct_CC" = x; then
  2364. CC=""
  2365. else
  2366. case $cross_compiling:$ac_tool_warned in
  2367. yes:)
  2368. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2369. whose name does not start with the host triplet. If you think this
  2370. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2371. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2372. whose name does not start with the host triplet. If you think this
  2373. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2374. ac_tool_warned=yes ;;
  2375. esac
  2376. CC=$ac_ct_CC
  2377. fi
  2378. fi
  2379. fi
  2380. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2381. See \`config.log' for more details." >&5
  2382. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2383. See \`config.log' for more details." >&2;}
  2384. { (exit 1); exit 1; }; }
  2385. # Provide some information about the compiler.
  2386. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2387. set X $ac_compile
  2388. ac_compiler=$2
  2389. { (ac_try="$ac_compiler --version >&5"
  2390. case "(($ac_try" in
  2391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2392. *) ac_try_echo=$ac_try;;
  2393. esac
  2394. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2395. $as_echo "$ac_try_echo") >&5
  2396. (eval "$ac_compiler --version >&5") 2>&5
  2397. ac_status=$?
  2398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2399. (exit $ac_status); }
  2400. { (ac_try="$ac_compiler -v >&5"
  2401. case "(($ac_try" in
  2402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2403. *) ac_try_echo=$ac_try;;
  2404. esac
  2405. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2406. $as_echo "$ac_try_echo") >&5
  2407. (eval "$ac_compiler -v >&5") 2>&5
  2408. ac_status=$?
  2409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2410. (exit $ac_status); }
  2411. { (ac_try="$ac_compiler -V >&5"
  2412. case "(($ac_try" in
  2413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2414. *) ac_try_echo=$ac_try;;
  2415. esac
  2416. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2417. $as_echo "$ac_try_echo") >&5
  2418. (eval "$ac_compiler -V >&5") 2>&5
  2419. ac_status=$?
  2420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2421. (exit $ac_status); }
  2422. cat >conftest.$ac_ext <<_ACEOF
  2423. /* confdefs.h. */
  2424. _ACEOF
  2425. cat confdefs.h >>conftest.$ac_ext
  2426. cat >>conftest.$ac_ext <<_ACEOF
  2427. /* end confdefs.h. */
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. ac_clean_files_save=$ac_clean_files
  2436. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2437. # Try to create an executable without -o first, disregard a.out.
  2438. # It will help us diagnose broken compilers, and finding out an intuition
  2439. # of exeext.
  2440. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2441. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2442. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2443. # The possible output files:
  2444. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2445. ac_rmfiles=
  2446. for ac_file in $ac_files
  2447. do
  2448. case $ac_file in
  2449. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2450. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2451. esac
  2452. done
  2453. rm -f $ac_rmfiles
  2454. if { (ac_try="$ac_link_default"
  2455. case "(($ac_try" in
  2456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2457. *) ac_try_echo=$ac_try;;
  2458. esac
  2459. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2460. $as_echo "$ac_try_echo") >&5
  2461. (eval "$ac_link_default") 2>&5
  2462. ac_status=$?
  2463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2464. (exit $ac_status); }; then
  2465. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2466. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2467. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2468. # so that the user can short-circuit this test for compilers unknown to
  2469. # Autoconf.
  2470. for ac_file in $ac_files ''
  2471. do
  2472. test -f "$ac_file" || continue
  2473. case $ac_file in
  2474. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2475. ;;
  2476. [ab].out )
  2477. # We found the default executable, but exeext='' is most
  2478. # certainly right.
  2479. break;;
  2480. *.* )
  2481. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2482. then :; else
  2483. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2484. fi
  2485. # We set ac_cv_exeext here because the later test for it is not
  2486. # safe: cross compilers may not add the suffix if given an `-o'
  2487. # argument, so we may need to know it at that point already.
  2488. # Even if this section looks crufty: it has the advantage of
  2489. # actually working.
  2490. break;;
  2491. * )
  2492. break;;
  2493. esac
  2494. done
  2495. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2496. else
  2497. ac_file=''
  2498. fi
  2499. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2500. $as_echo "$ac_file" >&6; }
  2501. if test -z "$ac_file"; then
  2502. $as_echo "$as_me: failed program was:" >&5
  2503. sed 's/^/| /' conftest.$ac_ext >&5
  2504. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2505. See \`config.log' for more details." >&5
  2506. $as_echo "$as_me: error: C compiler cannot create executables
  2507. See \`config.log' for more details." >&2;}
  2508. { (exit 77); exit 77; }; }
  2509. fi
  2510. ac_exeext=$ac_cv_exeext
  2511. # Check that the compiler produces executables we can run. If not, either
  2512. # the compiler is broken, or we cross compile.
  2513. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2514. $as_echo_n "checking whether the C compiler works... " >&6; }
  2515. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2516. # If not cross compiling, check that we can run a simple program.
  2517. if test "$cross_compiling" != yes; then
  2518. if { ac_try='./$ac_file'
  2519. { (case "(($ac_try" in
  2520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2521. *) ac_try_echo=$ac_try;;
  2522. esac
  2523. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2524. $as_echo "$ac_try_echo") >&5
  2525. (eval "$ac_try") 2>&5
  2526. ac_status=$?
  2527. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2528. (exit $ac_status); }; }; then
  2529. cross_compiling=no
  2530. else
  2531. if test "$cross_compiling" = maybe; then
  2532. cross_compiling=yes
  2533. else
  2534. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2535. If you meant to cross compile, use \`--host'.
  2536. See \`config.log' for more details." >&5
  2537. $as_echo "$as_me: error: cannot run C compiled programs.
  2538. If you meant to cross compile, use \`--host'.
  2539. See \`config.log' for more details." >&2;}
  2540. { (exit 1); exit 1; }; }
  2541. fi
  2542. fi
  2543. fi
  2544. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2545. $as_echo "yes" >&6; }
  2546. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2547. ac_clean_files=$ac_clean_files_save
  2548. # Check that the compiler produces executables we can run. If not, either
  2549. # the compiler is broken, or we cross compile.
  2550. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2551. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2552. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2553. $as_echo "$cross_compiling" >&6; }
  2554. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2555. $as_echo_n "checking for suffix of executables... " >&6; }
  2556. if { (ac_try="$ac_link"
  2557. case "(($ac_try" in
  2558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2559. *) ac_try_echo=$ac_try;;
  2560. esac
  2561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2562. $as_echo "$ac_try_echo") >&5
  2563. (eval "$ac_link") 2>&5
  2564. ac_status=$?
  2565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2566. (exit $ac_status); }; then
  2567. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2568. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2569. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2570. # `rm'.
  2571. for ac_file in conftest.exe conftest conftest.*; do
  2572. test -f "$ac_file" || continue
  2573. case $ac_file in
  2574. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2575. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2576. break;;
  2577. * ) break;;
  2578. esac
  2579. done
  2580. else
  2581. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2582. See \`config.log' for more details." >&5
  2583. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2584. See \`config.log' for more details." >&2;}
  2585. { (exit 1); exit 1; }; }
  2586. fi
  2587. rm -f conftest$ac_cv_exeext
  2588. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2589. $as_echo "$ac_cv_exeext" >&6; }
  2590. rm -f conftest.$ac_ext
  2591. EXEEXT=$ac_cv_exeext
  2592. ac_exeext=$EXEEXT
  2593. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2594. $as_echo_n "checking for suffix of object files... " >&6; }
  2595. if test "${ac_cv_objext+set}" = set; then
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. cat >conftest.$ac_ext <<_ACEOF
  2599. /* confdefs.h. */
  2600. _ACEOF
  2601. cat confdefs.h >>conftest.$ac_ext
  2602. cat >>conftest.$ac_ext <<_ACEOF
  2603. /* end confdefs.h. */
  2604. int
  2605. main ()
  2606. {
  2607. ;
  2608. return 0;
  2609. }
  2610. _ACEOF
  2611. rm -f conftest.o conftest.obj
  2612. if { (ac_try="$ac_compile"
  2613. case "(($ac_try" in
  2614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2615. *) ac_try_echo=$ac_try;;
  2616. esac
  2617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2618. $as_echo "$ac_try_echo") >&5
  2619. (eval "$ac_compile") 2>&5
  2620. ac_status=$?
  2621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2622. (exit $ac_status); }; then
  2623. for ac_file in conftest.o conftest.obj conftest.*; do
  2624. test -f "$ac_file" || continue;
  2625. case $ac_file in
  2626. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2627. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2628. break;;
  2629. esac
  2630. done
  2631. else
  2632. $as_echo "$as_me: failed program was:" >&5
  2633. sed 's/^/| /' conftest.$ac_ext >&5
  2634. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2635. See \`config.log' for more details." >&5
  2636. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2637. See \`config.log' for more details." >&2;}
  2638. { (exit 1); exit 1; }; }
  2639. fi
  2640. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2641. fi
  2642. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2643. $as_echo "$ac_cv_objext" >&6; }
  2644. OBJEXT=$ac_cv_objext
  2645. ac_objext=$OBJEXT
  2646. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2647. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2648. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2649. $as_echo_n "(cached) " >&6
  2650. else
  2651. cat >conftest.$ac_ext <<_ACEOF
  2652. /* confdefs.h. */
  2653. _ACEOF
  2654. cat confdefs.h >>conftest.$ac_ext
  2655. cat >>conftest.$ac_ext <<_ACEOF
  2656. /* end confdefs.h. */
  2657. int
  2658. main ()
  2659. {
  2660. #ifndef __GNUC__
  2661. choke me
  2662. #endif
  2663. ;
  2664. return 0;
  2665. }
  2666. _ACEOF
  2667. rm -f conftest.$ac_objext
  2668. if { (ac_try="$ac_compile"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2674. $as_echo "$ac_try_echo") >&5
  2675. (eval "$ac_compile") 2>conftest.er1
  2676. ac_status=$?
  2677. grep -v '^ *+' conftest.er1 >conftest.err
  2678. rm -f conftest.er1
  2679. cat conftest.err >&5
  2680. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2681. (exit $ac_status); } && {
  2682. test -z "$ac_c_werror_flag" ||
  2683. test ! -s conftest.err
  2684. } && test -s conftest.$ac_objext; then
  2685. ac_compiler_gnu=yes
  2686. else
  2687. $as_echo "$as_me: failed program was:" >&5
  2688. sed 's/^/| /' conftest.$ac_ext >&5
  2689. ac_compiler_gnu=no
  2690. fi
  2691. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2692. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2693. fi
  2694. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2695. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2696. if test $ac_compiler_gnu = yes; then
  2697. GCC=yes
  2698. else
  2699. GCC=
  2700. fi
  2701. ac_test_CFLAGS=${CFLAGS+set}
  2702. ac_save_CFLAGS=$CFLAGS
  2703. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2704. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2705. if test "${ac_cv_prog_cc_g+set}" = set; then
  2706. $as_echo_n "(cached) " >&6
  2707. else
  2708. ac_save_c_werror_flag=$ac_c_werror_flag
  2709. ac_c_werror_flag=yes
  2710. ac_cv_prog_cc_g=no
  2711. CFLAGS="-g"
  2712. cat >conftest.$ac_ext <<_ACEOF
  2713. /* confdefs.h. */
  2714. _ACEOF
  2715. cat confdefs.h >>conftest.$ac_ext
  2716. cat >>conftest.$ac_ext <<_ACEOF
  2717. /* end confdefs.h. */
  2718. int
  2719. main ()
  2720. {
  2721. ;
  2722. return 0;
  2723. }
  2724. _ACEOF
  2725. rm -f conftest.$ac_objext
  2726. if { (ac_try="$ac_compile"
  2727. case "(($ac_try" in
  2728. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2729. *) ac_try_echo=$ac_try;;
  2730. esac
  2731. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2732. $as_echo "$ac_try_echo") >&5
  2733. (eval "$ac_compile") 2>conftest.er1
  2734. ac_status=$?
  2735. grep -v '^ *+' conftest.er1 >conftest.err
  2736. rm -f conftest.er1
  2737. cat conftest.err >&5
  2738. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); } && {
  2740. test -z "$ac_c_werror_flag" ||
  2741. test ! -s conftest.err
  2742. } && test -s conftest.$ac_objext; then
  2743. ac_cv_prog_cc_g=yes
  2744. else
  2745. $as_echo "$as_me: failed program was:" >&5
  2746. sed 's/^/| /' conftest.$ac_ext >&5
  2747. CFLAGS=""
  2748. cat >conftest.$ac_ext <<_ACEOF
  2749. /* confdefs.h. */
  2750. _ACEOF
  2751. cat confdefs.h >>conftest.$ac_ext
  2752. cat >>conftest.$ac_ext <<_ACEOF
  2753. /* end confdefs.h. */
  2754. int
  2755. main ()
  2756. {
  2757. ;
  2758. return 0;
  2759. }
  2760. _ACEOF
  2761. rm -f conftest.$ac_objext
  2762. if { (ac_try="$ac_compile"
  2763. case "(($ac_try" in
  2764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2765. *) ac_try_echo=$ac_try;;
  2766. esac
  2767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2768. $as_echo "$ac_try_echo") >&5
  2769. (eval "$ac_compile") 2>conftest.er1
  2770. ac_status=$?
  2771. grep -v '^ *+' conftest.er1 >conftest.err
  2772. rm -f conftest.er1
  2773. cat conftest.err >&5
  2774. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. (exit $ac_status); } && {
  2776. test -z "$ac_c_werror_flag" ||
  2777. test ! -s conftest.err
  2778. } && test -s conftest.$ac_objext; then
  2779. :
  2780. else
  2781. $as_echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. ac_c_werror_flag=$ac_save_c_werror_flag
  2784. CFLAGS="-g"
  2785. cat >conftest.$ac_ext <<_ACEOF
  2786. /* confdefs.h. */
  2787. _ACEOF
  2788. cat confdefs.h >>conftest.$ac_ext
  2789. cat >>conftest.$ac_ext <<_ACEOF
  2790. /* end confdefs.h. */
  2791. int
  2792. main ()
  2793. {
  2794. ;
  2795. return 0;
  2796. }
  2797. _ACEOF
  2798. rm -f conftest.$ac_objext
  2799. if { (ac_try="$ac_compile"
  2800. case "(($ac_try" in
  2801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2802. *) ac_try_echo=$ac_try;;
  2803. esac
  2804. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2805. $as_echo "$ac_try_echo") >&5
  2806. (eval "$ac_compile") 2>conftest.er1
  2807. ac_status=$?
  2808. grep -v '^ *+' conftest.er1 >conftest.err
  2809. rm -f conftest.er1
  2810. cat conftest.err >&5
  2811. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); } && {
  2813. test -z "$ac_c_werror_flag" ||
  2814. test ! -s conftest.err
  2815. } && test -s conftest.$ac_objext; then
  2816. ac_cv_prog_cc_g=yes
  2817. else
  2818. $as_echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. fi
  2821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2822. fi
  2823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2824. fi
  2825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2826. ac_c_werror_flag=$ac_save_c_werror_flag
  2827. fi
  2828. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2829. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2830. if test "$ac_test_CFLAGS" = set; then
  2831. CFLAGS=$ac_save_CFLAGS
  2832. elif test $ac_cv_prog_cc_g = yes; then
  2833. if test "$GCC" = yes; then
  2834. CFLAGS="-g -O2"
  2835. else
  2836. CFLAGS="-g"
  2837. fi
  2838. else
  2839. if test "$GCC" = yes; then
  2840. CFLAGS="-O2"
  2841. else
  2842. CFLAGS=
  2843. fi
  2844. fi
  2845. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2846. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2847. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2848. $as_echo_n "(cached) " >&6
  2849. else
  2850. ac_cv_prog_cc_c89=no
  2851. ac_save_CC=$CC
  2852. cat >conftest.$ac_ext <<_ACEOF
  2853. /* confdefs.h. */
  2854. _ACEOF
  2855. cat confdefs.h >>conftest.$ac_ext
  2856. cat >>conftest.$ac_ext <<_ACEOF
  2857. /* end confdefs.h. */
  2858. #include <stdarg.h>
  2859. #include <stdio.h>
  2860. #include <sys/types.h>
  2861. #include <sys/stat.h>
  2862. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2863. struct buf { int x; };
  2864. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2865. static char *e (p, i)
  2866. char **p;
  2867. int i;
  2868. {
  2869. return p[i];
  2870. }
  2871. static char *f (char * (*g) (char **, int), char **p, ...)
  2872. {
  2873. char *s;
  2874. va_list v;
  2875. va_start (v,p);
  2876. s = g (p, va_arg (v,int));
  2877. va_end (v);
  2878. return s;
  2879. }
  2880. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2881. function prototypes and stuff, but not '\xHH' hex character constants.
  2882. These don't provoke an error unfortunately, instead are silently treated
  2883. as 'x'. The following induces an error, until -std is added to get
  2884. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2885. array size at least. It's necessary to write '\x00'==0 to get something
  2886. that's true only with -std. */
  2887. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2888. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2889. inside strings and character constants. */
  2890. #define FOO(x) 'x'
  2891. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2892. int test (int i, double x);
  2893. struct s1 {int (*f) (int a);};
  2894. struct s2 {int (*f) (double a);};
  2895. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2896. int argc;
  2897. char **argv;
  2898. int
  2899. main ()
  2900. {
  2901. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2907. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2908. do
  2909. CC="$ac_save_CC $ac_arg"
  2910. rm -f conftest.$ac_objext
  2911. if { (ac_try="$ac_compile"
  2912. case "(($ac_try" in
  2913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2914. *) ac_try_echo=$ac_try;;
  2915. esac
  2916. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2917. $as_echo "$ac_try_echo") >&5
  2918. (eval "$ac_compile") 2>conftest.er1
  2919. ac_status=$?
  2920. grep -v '^ *+' conftest.er1 >conftest.err
  2921. rm -f conftest.er1
  2922. cat conftest.err >&5
  2923. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2924. (exit $ac_status); } && {
  2925. test -z "$ac_c_werror_flag" ||
  2926. test ! -s conftest.err
  2927. } && test -s conftest.$ac_objext; then
  2928. ac_cv_prog_cc_c89=$ac_arg
  2929. else
  2930. $as_echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. fi
  2933. rm -f core conftest.err conftest.$ac_objext
  2934. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2935. done
  2936. rm -f conftest.$ac_ext
  2937. CC=$ac_save_CC
  2938. fi
  2939. # AC_CACHE_VAL
  2940. case "x$ac_cv_prog_cc_c89" in
  2941. x)
  2942. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  2943. $as_echo "none needed" >&6; } ;;
  2944. xno)
  2945. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  2946. $as_echo "unsupported" >&6; } ;;
  2947. *)
  2948. CC="$CC $ac_cv_prog_cc_c89"
  2949. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  2950. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2951. esac
  2952. ac_ext=c
  2953. ac_cpp='$CPP $CPPFLAGS'
  2954. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2955. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2956. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2957. depcc="$CC" am_compiler_list=
  2958. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2959. $as_echo_n "checking dependency style of $depcc... " >&6; }
  2960. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  2961. $as_echo_n "(cached) " >&6
  2962. else
  2963. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2964. # We make a subdir and do the tests there. Otherwise we can end up
  2965. # making bogus files that we don't know about and never remove. For
  2966. # instance it was reported that on HP-UX the gcc test will end up
  2967. # making a dummy file named `D' -- because `-MD' means `put the output
  2968. # in D'.
  2969. mkdir conftest.dir
  2970. # Copy depcomp to subdir because otherwise we won't find it if we're
  2971. # using a relative directory.
  2972. cp "$am_depcomp" conftest.dir
  2973. cd conftest.dir
  2974. # We will build objects and dependencies in a subdirectory because
  2975. # it helps to detect inapplicable dependency modes. For instance
  2976. # both Tru64's cc and ICC support -MD to output dependencies as a
  2977. # side effect of compilation, but ICC will put the dependencies in
  2978. # the current directory while Tru64 will put them in the object
  2979. # directory.
  2980. mkdir sub
  2981. am_cv_CC_dependencies_compiler_type=none
  2982. if test "$am_compiler_list" = ""; then
  2983. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2984. fi
  2985. for depmode in $am_compiler_list; do
  2986. # Setup a source with many dependencies, because some compilers
  2987. # like to wrap large dependency lists on column 80 (with \), and
  2988. # we should not choose a depcomp mode which is confused by this.
  2989. #
  2990. # We need to recreate these files for each test, as the compiler may
  2991. # overwrite some of them when testing with obscure command lines.
  2992. # This happens at least with the AIX C compiler.
  2993. : > sub/conftest.c
  2994. for i in 1 2 3 4 5 6; do
  2995. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2996. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2997. # Solaris 8's {/usr,}/bin/sh.
  2998. touch sub/conftst$i.h
  2999. done
  3000. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3001. case $depmode in
  3002. nosideeffect)
  3003. # after this tag, mechanisms are not by side-effect, so they'll
  3004. # only be used when explicitly requested
  3005. if test "x$enable_dependency_tracking" = xyes; then
  3006. continue
  3007. else
  3008. break
  3009. fi
  3010. ;;
  3011. none) break ;;
  3012. esac
  3013. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3014. # mode. It turns out that the SunPro C++ compiler does not properly
  3015. # handle `-M -o', and we need to detect this.
  3016. if depmode=$depmode \
  3017. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3018. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3019. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3020. >/dev/null 2>conftest.err &&
  3021. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3022. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3023. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3024. # icc doesn't choke on unknown options, it will just issue warnings
  3025. # or remarks (even with -Werror). So we grep stderr for any message
  3026. # that says an option was ignored or not supported.
  3027. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3028. # icc: Command line warning: ignoring option '-M'; no argument required
  3029. # The diagnosis changed in icc 8.0:
  3030. # icc: Command line remark: option '-MP' not supported
  3031. if (grep 'ignoring option' conftest.err ||
  3032. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3033. am_cv_CC_dependencies_compiler_type=$depmode
  3034. break
  3035. fi
  3036. fi
  3037. done
  3038. cd ..
  3039. rm -rf conftest.dir
  3040. else
  3041. am_cv_CC_dependencies_compiler_type=none
  3042. fi
  3043. fi
  3044. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3045. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3046. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3047. if
  3048. test "x$enable_dependency_tracking" != xno \
  3049. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3050. am__fastdepCC_TRUE=
  3051. am__fastdepCC_FALSE='#'
  3052. else
  3053. am__fastdepCC_TRUE='#'
  3054. am__fastdepCC_FALSE=
  3055. fi
  3056. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  3057. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3058. if test "${ac_cv_prog_cc_c99+set}" = set; then
  3059. $as_echo_n "(cached) " >&6
  3060. else
  3061. ac_cv_prog_cc_c99=no
  3062. ac_save_CC=$CC
  3063. cat >conftest.$ac_ext <<_ACEOF
  3064. /* confdefs.h. */
  3065. _ACEOF
  3066. cat confdefs.h >>conftest.$ac_ext
  3067. cat >>conftest.$ac_ext <<_ACEOF
  3068. /* end confdefs.h. */
  3069. #include <stdarg.h>
  3070. #include <stdbool.h>
  3071. #include <stdlib.h>
  3072. #include <wchar.h>
  3073. #include <stdio.h>
  3074. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3075. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3076. #define showlist(...) puts (#__VA_ARGS__)
  3077. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3078. static void
  3079. test_varargs_macros (void)
  3080. {
  3081. int x = 1234;
  3082. int y = 5678;
  3083. debug ("Flag");
  3084. debug ("X = %d\n", x);
  3085. showlist (The first, second, and third items.);
  3086. report (x>y, "x is %d but y is %d", x, y);
  3087. }
  3088. // Check long long types.
  3089. #define BIG64 18446744073709551615ull
  3090. #define BIG32 4294967295ul
  3091. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3092. #if !BIG_OK
  3093. your preprocessor is broken;
  3094. #endif
  3095. #if BIG_OK
  3096. #else
  3097. your preprocessor is broken;
  3098. #endif
  3099. static long long int bignum = -9223372036854775807LL;
  3100. static unsigned long long int ubignum = BIG64;
  3101. struct incomplete_array
  3102. {
  3103. int datasize;
  3104. double data[];
  3105. };
  3106. struct named_init {
  3107. int number;
  3108. const wchar_t *name;
  3109. double average;
  3110. };
  3111. typedef const char *ccp;
  3112. static inline int
  3113. test_restrict (ccp restrict text)
  3114. {
  3115. // See if C++-style comments work.
  3116. // Iterate through items via the restricted pointer.
  3117. // Also check for declarations in for loops.
  3118. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3119. continue;
  3120. return 0;
  3121. }
  3122. // Check varargs and va_copy.
  3123. static void
  3124. test_varargs (const char *format, ...)
  3125. {
  3126. va_list args;
  3127. va_start (args, format);
  3128. va_list args_copy;
  3129. va_copy (args_copy, args);
  3130. const char *str;
  3131. int number;
  3132. float fnumber;
  3133. while (*format)
  3134. {
  3135. switch (*format++)
  3136. {
  3137. case 's': // string
  3138. str = va_arg (args_copy, const char *);
  3139. break;
  3140. case 'd': // int
  3141. number = va_arg (args_copy, int);
  3142. break;
  3143. case 'f': // float
  3144. fnumber = va_arg (args_copy, double);
  3145. break;
  3146. default:
  3147. break;
  3148. }
  3149. }
  3150. va_end (args_copy);
  3151. va_end (args);
  3152. }
  3153. int
  3154. main ()
  3155. {
  3156. // Check bool.
  3157. _Bool success = false;
  3158. // Check restrict.
  3159. if (test_restrict ("String literal") == 0)
  3160. success = true;
  3161. char *restrict newvar = "Another string";
  3162. // Check varargs.
  3163. test_varargs ("s, d' f .", "string", 65, 34.234);
  3164. test_varargs_macros ();
  3165. // Check flexible array members.
  3166. struct incomplete_array *ia =
  3167. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3168. ia->datasize = 10;
  3169. for (int i = 0; i < ia->datasize; ++i)
  3170. ia->data[i] = i * 1.234;
  3171. // Check named initializers.
  3172. struct named_init ni = {
  3173. .number = 34,
  3174. .name = L"Test wide string",
  3175. .average = 543.34343,
  3176. };
  3177. ni.number = 58;
  3178. int dynamic_array[ni.number];
  3179. dynamic_array[ni.number - 1] = 543;
  3180. // work around unused variable warnings
  3181. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3182. || dynamic_array[ni.number - 1] != 543);
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3188. do
  3189. CC="$ac_save_CC $ac_arg"
  3190. rm -f conftest.$ac_objext
  3191. if { (ac_try="$ac_compile"
  3192. case "(($ac_try" in
  3193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3194. *) ac_try_echo=$ac_try;;
  3195. esac
  3196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3197. $as_echo "$ac_try_echo") >&5
  3198. (eval "$ac_compile") 2>conftest.er1
  3199. ac_status=$?
  3200. grep -v '^ *+' conftest.er1 >conftest.err
  3201. rm -f conftest.er1
  3202. cat conftest.err >&5
  3203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3204. (exit $ac_status); } && {
  3205. test -z "$ac_c_werror_flag" ||
  3206. test ! -s conftest.err
  3207. } && test -s conftest.$ac_objext; then
  3208. ac_cv_prog_cc_c99=$ac_arg
  3209. else
  3210. $as_echo "$as_me: failed program was:" >&5
  3211. sed 's/^/| /' conftest.$ac_ext >&5
  3212. fi
  3213. rm -f core conftest.err conftest.$ac_objext
  3214. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3215. done
  3216. rm -f conftest.$ac_ext
  3217. CC=$ac_save_CC
  3218. fi
  3219. # AC_CACHE_VAL
  3220. case "x$ac_cv_prog_cc_c99" in
  3221. x)
  3222. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3223. $as_echo "none needed" >&6; } ;;
  3224. xno)
  3225. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3226. $as_echo "unsupported" >&6; } ;;
  3227. *)
  3228. CC="$CC $ac_cv_prog_cc_c99"
  3229. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3230. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3231. esac
  3232. ac_ext=c
  3233. ac_cpp='$CPP $CPPFLAGS'
  3234. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3235. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3236. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3237. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3238. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3239. # On Suns, sometimes $CPP names a directory.
  3240. if test -n "$CPP" && test -d "$CPP"; then
  3241. CPP=
  3242. fi
  3243. if test -z "$CPP"; then
  3244. if test "${ac_cv_prog_CPP+set}" = set; then
  3245. $as_echo_n "(cached) " >&6
  3246. else
  3247. # Double quotes because CPP needs to be expanded
  3248. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3249. do
  3250. ac_preproc_ok=false
  3251. for ac_c_preproc_warn_flag in '' yes
  3252. do
  3253. # Use a header file that comes with gcc, so configuring glibc
  3254. # with a fresh cross-compiler works.
  3255. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3256. # <limits.h> exists even on freestanding compilers.
  3257. # On the NeXT, cc -E runs the code through the compiler's parser,
  3258. # not just through cpp. "Syntax error" is here to catch this case.
  3259. cat >conftest.$ac_ext <<_ACEOF
  3260. /* confdefs.h. */
  3261. _ACEOF
  3262. cat confdefs.h >>conftest.$ac_ext
  3263. cat >>conftest.$ac_ext <<_ACEOF
  3264. /* end confdefs.h. */
  3265. #ifdef __STDC__
  3266. # include <limits.h>
  3267. #else
  3268. # include <assert.h>
  3269. #endif
  3270. Syntax error
  3271. _ACEOF
  3272. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo") >&5
  3279. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3280. ac_status=$?
  3281. grep -v '^ *+' conftest.er1 >conftest.err
  3282. rm -f conftest.er1
  3283. cat conftest.err >&5
  3284. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); } >/dev/null && {
  3286. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3287. test ! -s conftest.err
  3288. }; then
  3289. :
  3290. else
  3291. $as_echo "$as_me: failed program was:" >&5
  3292. sed 's/^/| /' conftest.$ac_ext >&5
  3293. # Broken: fails on valid input.
  3294. continue
  3295. fi
  3296. rm -f conftest.err conftest.$ac_ext
  3297. # OK, works on sane cases. Now check whether nonexistent headers
  3298. # can be detected and how.
  3299. cat >conftest.$ac_ext <<_ACEOF
  3300. /* confdefs.h. */
  3301. _ACEOF
  3302. cat confdefs.h >>conftest.$ac_ext
  3303. cat >>conftest.$ac_ext <<_ACEOF
  3304. /* end confdefs.h. */
  3305. #include <ac_nonexistent.h>
  3306. _ACEOF
  3307. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3308. case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo") >&5
  3314. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3315. ac_status=$?
  3316. grep -v '^ *+' conftest.er1 >conftest.err
  3317. rm -f conftest.er1
  3318. cat conftest.err >&5
  3319. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3320. (exit $ac_status); } >/dev/null && {
  3321. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3322. test ! -s conftest.err
  3323. }; then
  3324. # Broken: success on invalid input.
  3325. continue
  3326. else
  3327. $as_echo "$as_me: failed program was:" >&5
  3328. sed 's/^/| /' conftest.$ac_ext >&5
  3329. # Passes both tests.
  3330. ac_preproc_ok=:
  3331. break
  3332. fi
  3333. rm -f conftest.err conftest.$ac_ext
  3334. done
  3335. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3336. rm -f conftest.err conftest.$ac_ext
  3337. if $ac_preproc_ok; then
  3338. break
  3339. fi
  3340. done
  3341. ac_cv_prog_CPP=$CPP
  3342. fi
  3343. CPP=$ac_cv_prog_CPP
  3344. else
  3345. ac_cv_prog_CPP=$CPP
  3346. fi
  3347. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  3348. $as_echo "$CPP" >&6; }
  3349. ac_preproc_ok=false
  3350. for ac_c_preproc_warn_flag in '' yes
  3351. do
  3352. # Use a header file that comes with gcc, so configuring glibc
  3353. # with a fresh cross-compiler works.
  3354. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3355. # <limits.h> exists even on freestanding compilers.
  3356. # On the NeXT, cc -E runs the code through the compiler's parser,
  3357. # not just through cpp. "Syntax error" is here to catch this case.
  3358. cat >conftest.$ac_ext <<_ACEOF
  3359. /* confdefs.h. */
  3360. _ACEOF
  3361. cat confdefs.h >>conftest.$ac_ext
  3362. cat >>conftest.$ac_ext <<_ACEOF
  3363. /* end confdefs.h. */
  3364. #ifdef __STDC__
  3365. # include <limits.h>
  3366. #else
  3367. # include <assert.h>
  3368. #endif
  3369. Syntax error
  3370. _ACEOF
  3371. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3372. case "(($ac_try" in
  3373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374. *) ac_try_echo=$ac_try;;
  3375. esac
  3376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3377. $as_echo "$ac_try_echo") >&5
  3378. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3379. ac_status=$?
  3380. grep -v '^ *+' conftest.er1 >conftest.err
  3381. rm -f conftest.er1
  3382. cat conftest.err >&5
  3383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3384. (exit $ac_status); } >/dev/null && {
  3385. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3386. test ! -s conftest.err
  3387. }; then
  3388. :
  3389. else
  3390. $as_echo "$as_me: failed program was:" >&5
  3391. sed 's/^/| /' conftest.$ac_ext >&5
  3392. # Broken: fails on valid input.
  3393. continue
  3394. fi
  3395. rm -f conftest.err conftest.$ac_ext
  3396. # OK, works on sane cases. Now check whether nonexistent headers
  3397. # can be detected and how.
  3398. cat >conftest.$ac_ext <<_ACEOF
  3399. /* confdefs.h. */
  3400. _ACEOF
  3401. cat confdefs.h >>conftest.$ac_ext
  3402. cat >>conftest.$ac_ext <<_ACEOF
  3403. /* end confdefs.h. */
  3404. #include <ac_nonexistent.h>
  3405. _ACEOF
  3406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  3407. case "(($ac_try" in
  3408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3409. *) ac_try_echo=$ac_try;;
  3410. esac
  3411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3412. $as_echo "$ac_try_echo") >&5
  3413. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  3414. ac_status=$?
  3415. grep -v '^ *+' conftest.er1 >conftest.err
  3416. rm -f conftest.er1
  3417. cat conftest.err >&5
  3418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3419. (exit $ac_status); } >/dev/null && {
  3420. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  3421. test ! -s conftest.err
  3422. }; then
  3423. # Broken: success on invalid input.
  3424. continue
  3425. else
  3426. $as_echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. # Passes both tests.
  3429. ac_preproc_ok=:
  3430. break
  3431. fi
  3432. rm -f conftest.err conftest.$ac_ext
  3433. done
  3434. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3435. rm -f conftest.err conftest.$ac_ext
  3436. if $ac_preproc_ok; then
  3437. :
  3438. else
  3439. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3440. See \`config.log' for more details." >&5
  3441. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3442. See \`config.log' for more details." >&2;}
  3443. { (exit 1); exit 1; }; }
  3444. fi
  3445. ac_ext=c
  3446. ac_cpp='$CPP $CPPFLAGS'
  3447. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3448. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3449. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3450. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3451. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3452. if test "${ac_cv_path_GREP+set}" = set; then
  3453. $as_echo_n "(cached) " >&6
  3454. else
  3455. if test -z "$GREP"; then
  3456. ac_path_GREP_found=false
  3457. # Loop through the user's path and test for each of PROGNAME-LIST
  3458. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3459. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3460. do
  3461. IFS=$as_save_IFS
  3462. test -z "$as_dir" && as_dir=.
  3463. for ac_prog in grep ggrep; do
  3464. for ac_exec_ext in '' $ac_executable_extensions; do
  3465. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3466. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3467. # Check for GNU ac_path_GREP and select it if it is found.
  3468. # Check for GNU $ac_path_GREP
  3469. case `"$ac_path_GREP" --version 2>&1` in
  3470. *GNU*)
  3471. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3472. *)
  3473. ac_count=0
  3474. $as_echo_n 0123456789 >"conftest.in"
  3475. while :
  3476. do
  3477. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3478. mv "conftest.tmp" "conftest.in"
  3479. cp "conftest.in" "conftest.nl"
  3480. $as_echo 'GREP' >> "conftest.nl"
  3481. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3482. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3483. ac_count=`expr $ac_count + 1`
  3484. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3485. # Best one so far, save it but keep looking for a better one
  3486. ac_cv_path_GREP="$ac_path_GREP"
  3487. ac_path_GREP_max=$ac_count
  3488. fi
  3489. # 10*(2^10) chars as input seems more than enough
  3490. test $ac_count -gt 10 && break
  3491. done
  3492. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3493. esac
  3494. $ac_path_GREP_found && break 3
  3495. done
  3496. done
  3497. done
  3498. IFS=$as_save_IFS
  3499. if test -z "$ac_cv_path_GREP"; then
  3500. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3501. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3502. { (exit 1); exit 1; }; }
  3503. fi
  3504. else
  3505. ac_cv_path_GREP=$GREP
  3506. fi
  3507. fi
  3508. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3509. $as_echo "$ac_cv_path_GREP" >&6; }
  3510. GREP="$ac_cv_path_GREP"
  3511. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  3512. $as_echo_n "checking for egrep... " >&6; }
  3513. if test "${ac_cv_path_EGREP+set}" = set; then
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3517. then ac_cv_path_EGREP="$GREP -E"
  3518. else
  3519. if test -z "$EGREP"; then
  3520. ac_path_EGREP_found=false
  3521. # Loop through the user's path and test for each of PROGNAME-LIST
  3522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3523. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3524. do
  3525. IFS=$as_save_IFS
  3526. test -z "$as_dir" && as_dir=.
  3527. for ac_prog in egrep; do
  3528. for ac_exec_ext in '' $ac_executable_extensions; do
  3529. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3530. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3531. # Check for GNU ac_path_EGREP and select it if it is found.
  3532. # Check for GNU $ac_path_EGREP
  3533. case `"$ac_path_EGREP" --version 2>&1` in
  3534. *GNU*)
  3535. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3536. *)
  3537. ac_count=0
  3538. $as_echo_n 0123456789 >"conftest.in"
  3539. while :
  3540. do
  3541. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3542. mv "conftest.tmp" "conftest.in"
  3543. cp "conftest.in" "conftest.nl"
  3544. $as_echo 'EGREP' >> "conftest.nl"
  3545. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3546. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3547. ac_count=`expr $ac_count + 1`
  3548. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3549. # Best one so far, save it but keep looking for a better one
  3550. ac_cv_path_EGREP="$ac_path_EGREP"
  3551. ac_path_EGREP_max=$ac_count
  3552. fi
  3553. # 10*(2^10) chars as input seems more than enough
  3554. test $ac_count -gt 10 && break
  3555. done
  3556. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3557. esac
  3558. $ac_path_EGREP_found && break 3
  3559. done
  3560. done
  3561. done
  3562. IFS=$as_save_IFS
  3563. if test -z "$ac_cv_path_EGREP"; then
  3564. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3565. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3566. { (exit 1); exit 1; }; }
  3567. fi
  3568. else
  3569. ac_cv_path_EGREP=$EGREP
  3570. fi
  3571. fi
  3572. fi
  3573. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3574. $as_echo "$ac_cv_path_EGREP" >&6; }
  3575. EGREP="$ac_cv_path_EGREP"
  3576. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3577. $as_echo_n "checking for ANSI C header files... " >&6; }
  3578. if test "${ac_cv_header_stdc+set}" = set; then
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. cat >conftest.$ac_ext <<_ACEOF
  3582. /* confdefs.h. */
  3583. _ACEOF
  3584. cat confdefs.h >>conftest.$ac_ext
  3585. cat >>conftest.$ac_ext <<_ACEOF
  3586. /* end confdefs.h. */
  3587. #include <stdlib.h>
  3588. #include <stdarg.h>
  3589. #include <string.h>
  3590. #include <float.h>
  3591. int
  3592. main ()
  3593. {
  3594. ;
  3595. return 0;
  3596. }
  3597. _ACEOF
  3598. rm -f conftest.$ac_objext
  3599. if { (ac_try="$ac_compile"
  3600. case "(($ac_try" in
  3601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3602. *) ac_try_echo=$ac_try;;
  3603. esac
  3604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3605. $as_echo "$ac_try_echo") >&5
  3606. (eval "$ac_compile") 2>conftest.er1
  3607. ac_status=$?
  3608. grep -v '^ *+' conftest.er1 >conftest.err
  3609. rm -f conftest.er1
  3610. cat conftest.err >&5
  3611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3612. (exit $ac_status); } && {
  3613. test -z "$ac_c_werror_flag" ||
  3614. test ! -s conftest.err
  3615. } && test -s conftest.$ac_objext; then
  3616. ac_cv_header_stdc=yes
  3617. else
  3618. $as_echo "$as_me: failed program was:" >&5
  3619. sed 's/^/| /' conftest.$ac_ext >&5
  3620. ac_cv_header_stdc=no
  3621. fi
  3622. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3623. if test $ac_cv_header_stdc = yes; then
  3624. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3625. cat >conftest.$ac_ext <<_ACEOF
  3626. /* confdefs.h. */
  3627. _ACEOF
  3628. cat confdefs.h >>conftest.$ac_ext
  3629. cat >>conftest.$ac_ext <<_ACEOF
  3630. /* end confdefs.h. */
  3631. #include <string.h>
  3632. _ACEOF
  3633. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3634. $EGREP "memchr" >/dev/null 2>&1; then
  3635. :
  3636. else
  3637. ac_cv_header_stdc=no
  3638. fi
  3639. rm -f conftest*
  3640. fi
  3641. if test $ac_cv_header_stdc = yes; then
  3642. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3643. cat >conftest.$ac_ext <<_ACEOF
  3644. /* confdefs.h. */
  3645. _ACEOF
  3646. cat confdefs.h >>conftest.$ac_ext
  3647. cat >>conftest.$ac_ext <<_ACEOF
  3648. /* end confdefs.h. */
  3649. #include <stdlib.h>
  3650. _ACEOF
  3651. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3652. $EGREP "free" >/dev/null 2>&1; then
  3653. :
  3654. else
  3655. ac_cv_header_stdc=no
  3656. fi
  3657. rm -f conftest*
  3658. fi
  3659. if test $ac_cv_header_stdc = yes; then
  3660. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3661. if test "$cross_compiling" = yes; then
  3662. :
  3663. else
  3664. cat >conftest.$ac_ext <<_ACEOF
  3665. /* confdefs.h. */
  3666. _ACEOF
  3667. cat confdefs.h >>conftest.$ac_ext
  3668. cat >>conftest.$ac_ext <<_ACEOF
  3669. /* end confdefs.h. */
  3670. #include <ctype.h>
  3671. #include <stdlib.h>
  3672. #if ((' ' & 0x0FF) == 0x020)
  3673. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3674. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3675. #else
  3676. # define ISLOWER(c) \
  3677. (('a' <= (c) && (c) <= 'i') \
  3678. || ('j' <= (c) && (c) <= 'r') \
  3679. || ('s' <= (c) && (c) <= 'z'))
  3680. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3681. #endif
  3682. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3683. int
  3684. main ()
  3685. {
  3686. int i;
  3687. for (i = 0; i < 256; i++)
  3688. if (XOR (islower (i), ISLOWER (i))
  3689. || toupper (i) != TOUPPER (i))
  3690. return 2;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. rm -f conftest$ac_exeext
  3695. if { (ac_try="$ac_link"
  3696. case "(($ac_try" in
  3697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3698. *) ac_try_echo=$ac_try;;
  3699. esac
  3700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3701. $as_echo "$ac_try_echo") >&5
  3702. (eval "$ac_link") 2>&5
  3703. ac_status=$?
  3704. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3705. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3706. { (case "(($ac_try" in
  3707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3708. *) ac_try_echo=$ac_try;;
  3709. esac
  3710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3711. $as_echo "$ac_try_echo") >&5
  3712. (eval "$ac_try") 2>&5
  3713. ac_status=$?
  3714. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); }; }; then
  3716. :
  3717. else
  3718. $as_echo "$as_me: program exited with status $ac_status" >&5
  3719. $as_echo "$as_me: failed program was:" >&5
  3720. sed 's/^/| /' conftest.$ac_ext >&5
  3721. ( exit $ac_status )
  3722. ac_cv_header_stdc=no
  3723. fi
  3724. rm -rf conftest.dSYM
  3725. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3726. fi
  3727. fi
  3728. fi
  3729. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3730. $as_echo "$ac_cv_header_stdc" >&6; }
  3731. if test $ac_cv_header_stdc = yes; then
  3732. cat >>confdefs.h <<\_ACEOF
  3733. #define STDC_HEADERS 1
  3734. _ACEOF
  3735. fi
  3736. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3737. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3738. inttypes.h stdint.h unistd.h
  3739. do
  3740. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3741. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  3742. $as_echo_n "checking for $ac_header... " >&6; }
  3743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  3744. $as_echo_n "(cached) " >&6
  3745. else
  3746. cat >conftest.$ac_ext <<_ACEOF
  3747. /* confdefs.h. */
  3748. _ACEOF
  3749. cat confdefs.h >>conftest.$ac_ext
  3750. cat >>conftest.$ac_ext <<_ACEOF
  3751. /* end confdefs.h. */
  3752. $ac_includes_default
  3753. #include <$ac_header>
  3754. _ACEOF
  3755. rm -f conftest.$ac_objext
  3756. if { (ac_try="$ac_compile"
  3757. case "(($ac_try" in
  3758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3759. *) ac_try_echo=$ac_try;;
  3760. esac
  3761. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3762. $as_echo "$ac_try_echo") >&5
  3763. (eval "$ac_compile") 2>conftest.er1
  3764. ac_status=$?
  3765. grep -v '^ *+' conftest.er1 >conftest.err
  3766. rm -f conftest.er1
  3767. cat conftest.err >&5
  3768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); } && {
  3770. test -z "$ac_c_werror_flag" ||
  3771. test ! -s conftest.err
  3772. } && test -s conftest.$ac_objext; then
  3773. eval "$as_ac_Header=yes"
  3774. else
  3775. $as_echo "$as_me: failed program was:" >&5
  3776. sed 's/^/| /' conftest.$ac_ext >&5
  3777. eval "$as_ac_Header=no"
  3778. fi
  3779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3780. fi
  3781. ac_res=`eval 'as_val=${'$as_ac_Header'}
  3782. $as_echo "$as_val"'`
  3783. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3784. $as_echo "$ac_res" >&6; }
  3785. if test `eval 'as_val=${'$as_ac_Header'}
  3786. $as_echo "$as_val"'` = yes; then
  3787. cat >>confdefs.h <<_ACEOF
  3788. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3789. _ACEOF
  3790. fi
  3791. done
  3792. { $as_echo "$as_me:$LINENO: checking whether __clang__ is declared" >&5
  3793. $as_echo_n "checking whether __clang__ is declared... " >&6; }
  3794. if test "${ac_cv_have_decl___clang__+set}" = set; then
  3795. $as_echo_n "(cached) " >&6
  3796. else
  3797. cat >conftest.$ac_ext <<_ACEOF
  3798. /* confdefs.h. */
  3799. _ACEOF
  3800. cat confdefs.h >>conftest.$ac_ext
  3801. cat >>conftest.$ac_ext <<_ACEOF
  3802. /* end confdefs.h. */
  3803. $ac_includes_default
  3804. int
  3805. main ()
  3806. {
  3807. #ifndef __clang__
  3808. (void) __clang__;
  3809. #endif
  3810. ;
  3811. return 0;
  3812. }
  3813. _ACEOF
  3814. rm -f conftest.$ac_objext
  3815. if { (ac_try="$ac_compile"
  3816. case "(($ac_try" in
  3817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3818. *) ac_try_echo=$ac_try;;
  3819. esac
  3820. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3821. $as_echo "$ac_try_echo") >&5
  3822. (eval "$ac_compile") 2>conftest.er1
  3823. ac_status=$?
  3824. grep -v '^ *+' conftest.er1 >conftest.err
  3825. rm -f conftest.er1
  3826. cat conftest.err >&5
  3827. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3828. (exit $ac_status); } && {
  3829. test -z "$ac_c_werror_flag" ||
  3830. test ! -s conftest.err
  3831. } && test -s conftest.$ac_objext; then
  3832. ac_cv_have_decl___clang__=yes
  3833. else
  3834. $as_echo "$as_me: failed program was:" >&5
  3835. sed 's/^/| /' conftest.$ac_ext >&5
  3836. ac_cv_have_decl___clang__=no
  3837. fi
  3838. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3839. fi
  3840. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___clang__" >&5
  3841. $as_echo "$ac_cv_have_decl___clang__" >&6; }
  3842. if test $ac_cv_have_decl___clang__ = yes; then
  3843. CLANGCC="yes"
  3844. else
  3845. CLANGCC="no"
  3846. fi
  3847. { $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
  3848. $as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
  3849. if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. cat >conftest.$ac_ext <<_ACEOF
  3853. /* confdefs.h. */
  3854. _ACEOF
  3855. cat confdefs.h >>conftest.$ac_ext
  3856. cat >>conftest.$ac_ext <<_ACEOF
  3857. /* end confdefs.h. */
  3858. $ac_includes_default
  3859. int
  3860. main ()
  3861. {
  3862. #ifndef __INTEL_COMPILER
  3863. (void) __INTEL_COMPILER;
  3864. #endif
  3865. ;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. rm -f conftest.$ac_objext
  3870. if { (ac_try="$ac_compile"
  3871. case "(($ac_try" in
  3872. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3873. *) ac_try_echo=$ac_try;;
  3874. esac
  3875. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3876. $as_echo "$ac_try_echo") >&5
  3877. (eval "$ac_compile") 2>conftest.er1
  3878. ac_status=$?
  3879. grep -v '^ *+' conftest.er1 >conftest.err
  3880. rm -f conftest.er1
  3881. cat conftest.err >&5
  3882. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); } && {
  3884. test -z "$ac_c_werror_flag" ||
  3885. test ! -s conftest.err
  3886. } && test -s conftest.$ac_objext; then
  3887. ac_cv_have_decl___INTEL_COMPILER=yes
  3888. else
  3889. $as_echo "$as_me: failed program was:" >&5
  3890. sed 's/^/| /' conftest.$ac_ext >&5
  3891. ac_cv_have_decl___INTEL_COMPILER=no
  3892. fi
  3893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3894. fi
  3895. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
  3896. $as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
  3897. if test $ac_cv_have_decl___INTEL_COMPILER = yes; then
  3898. INTELCC="yes"
  3899. else
  3900. INTELCC="no"
  3901. fi
  3902. { $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
  3903. $as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
  3904. if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. cat >conftest.$ac_ext <<_ACEOF
  3908. /* confdefs.h. */
  3909. _ACEOF
  3910. cat confdefs.h >>conftest.$ac_ext
  3911. cat >>conftest.$ac_ext <<_ACEOF
  3912. /* end confdefs.h. */
  3913. $ac_includes_default
  3914. int
  3915. main ()
  3916. {
  3917. #ifndef __SUNPRO_C
  3918. (void) __SUNPRO_C;
  3919. #endif
  3920. ;
  3921. return 0;
  3922. }
  3923. _ACEOF
  3924. rm -f conftest.$ac_objext
  3925. if { (ac_try="$ac_compile"
  3926. case "(($ac_try" in
  3927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3928. *) ac_try_echo=$ac_try;;
  3929. esac
  3930. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3931. $as_echo "$ac_try_echo") >&5
  3932. (eval "$ac_compile") 2>conftest.er1
  3933. ac_status=$?
  3934. grep -v '^ *+' conftest.er1 >conftest.err
  3935. rm -f conftest.er1
  3936. cat conftest.err >&5
  3937. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3938. (exit $ac_status); } && {
  3939. test -z "$ac_c_werror_flag" ||
  3940. test ! -s conftest.err
  3941. } && test -s conftest.$ac_objext; then
  3942. ac_cv_have_decl___SUNPRO_C=yes
  3943. else
  3944. $as_echo "$as_me: failed program was:" >&5
  3945. sed 's/^/| /' conftest.$ac_ext >&5
  3946. ac_cv_have_decl___SUNPRO_C=no
  3947. fi
  3948. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3949. fi
  3950. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
  3951. $as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
  3952. if test $ac_cv_have_decl___SUNPRO_C = yes; then
  3953. SUNCC="yes"
  3954. else
  3955. SUNCC="no"
  3956. fi
  3957. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3958. if test -n "$ac_tool_prefix"; then
  3959. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3960. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3961. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3962. $as_echo_n "checking for $ac_word... " >&6; }
  3963. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  3964. $as_echo_n "(cached) " >&6
  3965. else
  3966. case $PKG_CONFIG in
  3967. [\\/]* | ?:[\\/]*)
  3968. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3969. ;;
  3970. *)
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3978. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3979. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. ;;
  3986. esac
  3987. fi
  3988. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3989. if test -n "$PKG_CONFIG"; then
  3990. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  3991. $as_echo "$PKG_CONFIG" >&6; }
  3992. else
  3993. { $as_echo "$as_me:$LINENO: result: no" >&5
  3994. $as_echo "no" >&6; }
  3995. fi
  3996. fi
  3997. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3998. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3999. # Extract the first word of "pkg-config", so it can be a program name with args.
  4000. set dummy pkg-config; ac_word=$2
  4001. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4002. $as_echo_n "checking for $ac_word... " >&6; }
  4003. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  4004. $as_echo_n "(cached) " >&6
  4005. else
  4006. case $ac_pt_PKG_CONFIG in
  4007. [\\/]* | ?:[\\/]*)
  4008. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4009. ;;
  4010. *)
  4011. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4012. for as_dir in $PATH
  4013. do
  4014. IFS=$as_save_IFS
  4015. test -z "$as_dir" && as_dir=.
  4016. for ac_exec_ext in '' $ac_executable_extensions; do
  4017. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4018. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4019. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4020. break 2
  4021. fi
  4022. done
  4023. done
  4024. IFS=$as_save_IFS
  4025. ;;
  4026. esac
  4027. fi
  4028. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4029. if test -n "$ac_pt_PKG_CONFIG"; then
  4030. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  4031. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4032. else
  4033. { $as_echo "$as_me:$LINENO: result: no" >&5
  4034. $as_echo "no" >&6; }
  4035. fi
  4036. if test "x$ac_pt_PKG_CONFIG" = x; then
  4037. PKG_CONFIG=""
  4038. else
  4039. case $cross_compiling:$ac_tool_warned in
  4040. yes:)
  4041. { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4042. whose name does not start with the host triplet. If you think this
  4043. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4044. $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4045. whose name does not start with the host triplet. If you think this
  4046. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4047. ac_tool_warned=yes ;;
  4048. esac
  4049. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4050. fi
  4051. else
  4052. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4053. fi
  4054. fi
  4055. if test -n "$PKG_CONFIG"; then
  4056. _pkg_min_version=0.9.0
  4057. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  4058. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4059. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4060. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4061. $as_echo "yes" >&6; }
  4062. else
  4063. { $as_echo "$as_me:$LINENO: result: no" >&5
  4064. $as_echo "no" >&6; }
  4065. PKG_CONFIG=""
  4066. fi
  4067. fi
  4068. # Make sure we can run config.sub.
  4069. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4070. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4071. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4072. { (exit 1); exit 1; }; }
  4073. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  4074. $as_echo_n "checking build system type... " >&6; }
  4075. if test "${ac_cv_build+set}" = set; then
  4076. $as_echo_n "(cached) " >&6
  4077. else
  4078. ac_build_alias=$build_alias
  4079. test "x$ac_build_alias" = x &&
  4080. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4081. test "x$ac_build_alias" = x &&
  4082. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4083. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4084. { (exit 1); exit 1; }; }
  4085. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4086. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4087. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4088. { (exit 1); exit 1; }; }
  4089. fi
  4090. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4091. $as_echo "$ac_cv_build" >&6; }
  4092. case $ac_cv_build in
  4093. *-*-*) ;;
  4094. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4095. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  4096. { (exit 1); exit 1; }; };;
  4097. esac
  4098. build=$ac_cv_build
  4099. ac_save_IFS=$IFS; IFS='-'
  4100. set x $ac_cv_build
  4101. shift
  4102. build_cpu=$1
  4103. build_vendor=$2
  4104. shift; shift
  4105. # Remember, the first character of IFS is used to create $*,
  4106. # except with old shells:
  4107. build_os=$*
  4108. IFS=$ac_save_IFS
  4109. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4110. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  4111. $as_echo_n "checking host system type... " >&6; }
  4112. if test "${ac_cv_host+set}" = set; then
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. if test "x$host_alias" = x; then
  4116. ac_cv_host=$ac_cv_build
  4117. else
  4118. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4119. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4120. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4121. { (exit 1); exit 1; }; }
  4122. fi
  4123. fi
  4124. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4125. $as_echo "$ac_cv_host" >&6; }
  4126. case $ac_cv_host in
  4127. *-*-*) ;;
  4128. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4129. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  4130. { (exit 1); exit 1; }; };;
  4131. esac
  4132. host=$ac_cv_host
  4133. ac_save_IFS=$IFS; IFS='-'
  4134. set x $ac_cv_host
  4135. shift
  4136. host_cpu=$1
  4137. host_vendor=$2
  4138. shift; shift
  4139. # Remember, the first character of IFS is used to create $*,
  4140. # except with old shells:
  4141. host_os=$*
  4142. IFS=$ac_save_IFS
  4143. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4144. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4145. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4146. if test "${ac_cv_path_SED+set}" = set; then
  4147. $as_echo_n "(cached) " >&6
  4148. else
  4149. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4150. for ac_i in 1 2 3 4 5 6 7; do
  4151. ac_script="$ac_script$as_nl$ac_script"
  4152. done
  4153. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4154. $as_unset ac_script || ac_script=
  4155. if test -z "$SED"; then
  4156. ac_path_SED_found=false
  4157. # Loop through the user's path and test for each of PROGNAME-LIST
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_prog in sed gsed; do
  4164. for ac_exec_ext in '' $ac_executable_extensions; do
  4165. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4166. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4167. # Check for GNU ac_path_SED and select it if it is found.
  4168. # Check for GNU $ac_path_SED
  4169. case `"$ac_path_SED" --version 2>&1` in
  4170. *GNU*)
  4171. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4172. *)
  4173. ac_count=0
  4174. $as_echo_n 0123456789 >"conftest.in"
  4175. while :
  4176. do
  4177. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4178. mv "conftest.tmp" "conftest.in"
  4179. cp "conftest.in" "conftest.nl"
  4180. $as_echo '' >> "conftest.nl"
  4181. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4182. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4183. ac_count=`expr $ac_count + 1`
  4184. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4185. # Best one so far, save it but keep looking for a better one
  4186. ac_cv_path_SED="$ac_path_SED"
  4187. ac_path_SED_max=$ac_count
  4188. fi
  4189. # 10*(2^10) chars as input seems more than enough
  4190. test $ac_count -gt 10 && break
  4191. done
  4192. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4193. esac
  4194. $ac_path_SED_found && break 3
  4195. done
  4196. done
  4197. done
  4198. IFS=$as_save_IFS
  4199. if test -z "$ac_cv_path_SED"; then
  4200. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4201. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4202. { (exit 1); exit 1; }; }
  4203. fi
  4204. else
  4205. ac_cv_path_SED=$SED
  4206. fi
  4207. fi
  4208. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4209. $as_echo "$ac_cv_path_SED" >&6; }
  4210. SED="$ac_cv_path_SED"
  4211. rm -f conftest.sed
  4212. # Check whether --enable-selective-werror was given.
  4213. if test "${enable_selective_werror+set}" = set; then
  4214. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4215. else
  4216. SELECTIVE_WERROR=yes
  4217. fi
  4218. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4219. if test "x$SUNCC" = "xyes"; then
  4220. BASE_CFLAGS="-v"
  4221. else
  4222. BASE_CFLAGS=""
  4223. fi
  4224. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4225. xorg_testset_save_CFLAGS="$CFLAGS"
  4226. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4227. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4228. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4229. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4230. cat >conftest.$ac_ext <<_ACEOF
  4231. /* confdefs.h. */
  4232. _ACEOF
  4233. cat confdefs.h >>conftest.$ac_ext
  4234. cat >>conftest.$ac_ext <<_ACEOF
  4235. /* end confdefs.h. */
  4236. int i;
  4237. _ACEOF
  4238. rm -f conftest.$ac_objext
  4239. if { (ac_try="$ac_compile"
  4240. case "(($ac_try" in
  4241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4242. *) ac_try_echo=$ac_try;;
  4243. esac
  4244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4245. $as_echo "$ac_try_echo") >&5
  4246. (eval "$ac_compile") 2>conftest.er1
  4247. ac_status=$?
  4248. grep -v '^ *+' conftest.er1 >conftest.err
  4249. rm -f conftest.er1
  4250. cat conftest.err >&5
  4251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4252. (exit $ac_status); } && {
  4253. test -z "$ac_c_werror_flag" ||
  4254. test ! -s conftest.err
  4255. } && test -s conftest.$ac_objext; then
  4256. xorg_testset_unknown_warning_option=yes
  4257. else
  4258. $as_echo "$as_me: failed program was:" >&5
  4259. sed 's/^/| /' conftest.$ac_ext >&5
  4260. xorg_testset_unknown_warning_option=no
  4261. fi
  4262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4263. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  4264. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  4265. CFLAGS="$xorg_testset_save_CFLAGS"
  4266. fi
  4267. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  4268. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4269. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4270. fi
  4271. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4272. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4273. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4274. cat >conftest.$ac_ext <<_ACEOF
  4275. /* confdefs.h. */
  4276. _ACEOF
  4277. cat confdefs.h >>conftest.$ac_ext
  4278. cat >>conftest.$ac_ext <<_ACEOF
  4279. /* end confdefs.h. */
  4280. int i;
  4281. _ACEOF
  4282. rm -f conftest.$ac_objext
  4283. if { (ac_try="$ac_compile"
  4284. case "(($ac_try" in
  4285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4286. *) ac_try_echo=$ac_try;;
  4287. esac
  4288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4289. $as_echo "$ac_try_echo") >&5
  4290. (eval "$ac_compile") 2>conftest.er1
  4291. ac_status=$?
  4292. grep -v '^ *+' conftest.er1 >conftest.err
  4293. rm -f conftest.er1
  4294. cat conftest.err >&5
  4295. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4296. (exit $ac_status); } && {
  4297. test -z "$ac_c_werror_flag" ||
  4298. test ! -s conftest.err
  4299. } && test -s conftest.$ac_objext; then
  4300. xorg_testset_unused_command_line_argument=yes
  4301. else
  4302. $as_echo "$as_me: failed program was:" >&5
  4303. sed 's/^/| /' conftest.$ac_ext >&5
  4304. xorg_testset_unused_command_line_argument=no
  4305. fi
  4306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4307. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  4308. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  4309. CFLAGS="$xorg_testset_save_CFLAGS"
  4310. fi
  4311. found="no"
  4312. if test $found = "no" ; then
  4313. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4314. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4315. fi
  4316. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4317. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4318. fi
  4319. CFLAGS="$CFLAGS -Wall"
  4320. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wall" >&5
  4321. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4322. cat >conftest.$ac_ext <<_ACEOF
  4323. /* confdefs.h. */
  4324. _ACEOF
  4325. cat confdefs.h >>conftest.$ac_ext
  4326. cat >>conftest.$ac_ext <<_ACEOF
  4327. /* end confdefs.h. */
  4328. int i;
  4329. int
  4330. main ()
  4331. {
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. rm -f conftest.$ac_objext conftest$ac_exeext
  4337. if { (ac_try="$ac_link"
  4338. case "(($ac_try" in
  4339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4340. *) ac_try_echo=$ac_try;;
  4341. esac
  4342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4343. $as_echo "$ac_try_echo") >&5
  4344. (eval "$ac_link") 2>conftest.er1
  4345. ac_status=$?
  4346. grep -v '^ *+' conftest.er1 >conftest.err
  4347. rm -f conftest.er1
  4348. cat conftest.err >&5
  4349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4350. (exit $ac_status); } && {
  4351. test -z "$ac_c_werror_flag" ||
  4352. test ! -s conftest.err
  4353. } && test -s conftest$ac_exeext && {
  4354. test "$cross_compiling" = yes ||
  4355. $as_test_x conftest$ac_exeext
  4356. }; then
  4357. supported=yes
  4358. else
  4359. $as_echo "$as_me: failed program was:" >&5
  4360. sed 's/^/| /' conftest.$ac_ext >&5
  4361. supported=no
  4362. fi
  4363. rm -rf conftest.dSYM
  4364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4365. conftest$ac_exeext conftest.$ac_ext
  4366. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  4367. $as_echo "$supported" >&6; }
  4368. CFLAGS="$xorg_testset_save_CFLAGS"
  4369. if test "$supported" = "yes" ; then
  4370. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4371. found="yes"
  4372. fi
  4373. fi
  4374. xorg_testset_save_CFLAGS="$CFLAGS"
  4375. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4376. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4377. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4378. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4379. cat >conftest.$ac_ext <<_ACEOF
  4380. /* confdefs.h. */
  4381. _ACEOF
  4382. cat confdefs.h >>conftest.$ac_ext
  4383. cat >>conftest.$ac_ext <<_ACEOF
  4384. /* end confdefs.h. */
  4385. int i;
  4386. _ACEOF
  4387. rm -f conftest.$ac_objext
  4388. if { (ac_try="$ac_compile"
  4389. case "(($ac_try" in
  4390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4391. *) ac_try_echo=$ac_try;;
  4392. esac
  4393. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4394. $as_echo "$ac_try_echo") >&5
  4395. (eval "$ac_compile") 2>conftest.er1
  4396. ac_status=$?
  4397. grep -v '^ *+' conftest.er1 >conftest.err
  4398. rm -f conftest.er1
  4399. cat conftest.err >&5
  4400. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4401. (exit $ac_status); } && {
  4402. test -z "$ac_c_werror_flag" ||
  4403. test ! -s conftest.err
  4404. } && test -s conftest.$ac_objext; then
  4405. xorg_testset_unknown_warning_option=yes
  4406. else
  4407. $as_echo "$as_me: failed program was:" >&5
  4408. sed 's/^/| /' conftest.$ac_ext >&5
  4409. xorg_testset_unknown_warning_option=no
  4410. fi
  4411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4412. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  4413. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  4414. CFLAGS="$xorg_testset_save_CFLAGS"
  4415. fi
  4416. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  4417. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4419. fi
  4420. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4421. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4422. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4423. cat >conftest.$ac_ext <<_ACEOF
  4424. /* confdefs.h. */
  4425. _ACEOF
  4426. cat confdefs.h >>conftest.$ac_ext
  4427. cat >>conftest.$ac_ext <<_ACEOF
  4428. /* end confdefs.h. */
  4429. int i;
  4430. _ACEOF
  4431. rm -f conftest.$ac_objext
  4432. if { (ac_try="$ac_compile"
  4433. case "(($ac_try" in
  4434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4435. *) ac_try_echo=$ac_try;;
  4436. esac
  4437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4438. $as_echo "$ac_try_echo") >&5
  4439. (eval "$ac_compile") 2>conftest.er1
  4440. ac_status=$?
  4441. grep -v '^ *+' conftest.er1 >conftest.err
  4442. rm -f conftest.er1
  4443. cat conftest.err >&5
  4444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4445. (exit $ac_status); } && {
  4446. test -z "$ac_c_werror_flag" ||
  4447. test ! -s conftest.err
  4448. } && test -s conftest.$ac_objext; then
  4449. xorg_testset_unused_command_line_argument=yes
  4450. else
  4451. $as_echo "$as_me: failed program was:" >&5
  4452. sed 's/^/| /' conftest.$ac_ext >&5
  4453. xorg_testset_unused_command_line_argument=no
  4454. fi
  4455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4456. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  4457. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  4458. CFLAGS="$xorg_testset_save_CFLAGS"
  4459. fi
  4460. found="no"
  4461. if test $found = "no" ; then
  4462. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4463. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4464. fi
  4465. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4466. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4467. fi
  4468. CFLAGS="$CFLAGS -Wpointer-arith"
  4469. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-arith" >&5
  4470. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4471. cat >conftest.$ac_ext <<_ACEOF
  4472. /* confdefs.h. */
  4473. _ACEOF
  4474. cat confdefs.h >>conftest.$ac_ext
  4475. cat >>conftest.$ac_ext <<_ACEOF
  4476. /* end confdefs.h. */
  4477. int i;
  4478. int
  4479. main ()
  4480. {
  4481. ;
  4482. return 0;
  4483. }
  4484. _ACEOF
  4485. rm -f conftest.$ac_objext conftest$ac_exeext
  4486. if { (ac_try="$ac_link"
  4487. case "(($ac_try" in
  4488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4489. *) ac_try_echo=$ac_try;;
  4490. esac
  4491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4492. $as_echo "$ac_try_echo") >&5
  4493. (eval "$ac_link") 2>conftest.er1
  4494. ac_status=$?
  4495. grep -v '^ *+' conftest.er1 >conftest.err
  4496. rm -f conftest.er1
  4497. cat conftest.err >&5
  4498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4499. (exit $ac_status); } && {
  4500. test -z "$ac_c_werror_flag" ||
  4501. test ! -s conftest.err
  4502. } && test -s conftest$ac_exeext && {
  4503. test "$cross_compiling" = yes ||
  4504. $as_test_x conftest$ac_exeext
  4505. }; then
  4506. supported=yes
  4507. else
  4508. $as_echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510. supported=no
  4511. fi
  4512. rm -rf conftest.dSYM
  4513. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4514. conftest$ac_exeext conftest.$ac_ext
  4515. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  4516. $as_echo "$supported" >&6; }
  4517. CFLAGS="$xorg_testset_save_CFLAGS"
  4518. if test "$supported" = "yes" ; then
  4519. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4520. found="yes"
  4521. fi
  4522. fi
  4523. xorg_testset_save_CFLAGS="$CFLAGS"
  4524. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4526. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4527. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4528. cat >conftest.$ac_ext <<_ACEOF
  4529. /* confdefs.h. */
  4530. _ACEOF
  4531. cat confdefs.h >>conftest.$ac_ext
  4532. cat >>conftest.$ac_ext <<_ACEOF
  4533. /* end confdefs.h. */
  4534. int i;
  4535. _ACEOF
  4536. rm -f conftest.$ac_objext
  4537. if { (ac_try="$ac_compile"
  4538. case "(($ac_try" in
  4539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4540. *) ac_try_echo=$ac_try;;
  4541. esac
  4542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4543. $as_echo "$ac_try_echo") >&5
  4544. (eval "$ac_compile") 2>conftest.er1
  4545. ac_status=$?
  4546. grep -v '^ *+' conftest.er1 >conftest.err
  4547. rm -f conftest.er1
  4548. cat conftest.err >&5
  4549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); } && {
  4551. test -z "$ac_c_werror_flag" ||
  4552. test ! -s conftest.err
  4553. } && test -s conftest.$ac_objext; then
  4554. xorg_testset_unknown_warning_option=yes
  4555. else
  4556. $as_echo "$as_me: failed program was:" >&5
  4557. sed 's/^/| /' conftest.$ac_ext >&5
  4558. xorg_testset_unknown_warning_option=no
  4559. fi
  4560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4561. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  4562. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  4563. CFLAGS="$xorg_testset_save_CFLAGS"
  4564. fi
  4565. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  4566. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4568. fi
  4569. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4570. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4571. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4572. cat >conftest.$ac_ext <<_ACEOF
  4573. /* confdefs.h. */
  4574. _ACEOF
  4575. cat confdefs.h >>conftest.$ac_ext
  4576. cat >>conftest.$ac_ext <<_ACEOF
  4577. /* end confdefs.h. */
  4578. int i;
  4579. _ACEOF
  4580. rm -f conftest.$ac_objext
  4581. if { (ac_try="$ac_compile"
  4582. case "(($ac_try" in
  4583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4584. *) ac_try_echo=$ac_try;;
  4585. esac
  4586. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4587. $as_echo "$ac_try_echo") >&5
  4588. (eval "$ac_compile") 2>conftest.er1
  4589. ac_status=$?
  4590. grep -v '^ *+' conftest.er1 >conftest.err
  4591. rm -f conftest.er1
  4592. cat conftest.err >&5
  4593. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4594. (exit $ac_status); } && {
  4595. test -z "$ac_c_werror_flag" ||
  4596. test ! -s conftest.err
  4597. } && test -s conftest.$ac_objext; then
  4598. xorg_testset_unused_command_line_argument=yes
  4599. else
  4600. $as_echo "$as_me: failed program was:" >&5
  4601. sed 's/^/| /' conftest.$ac_ext >&5
  4602. xorg_testset_unused_command_line_argument=no
  4603. fi
  4604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4605. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  4606. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  4607. CFLAGS="$xorg_testset_save_CFLAGS"
  4608. fi
  4609. found="no"
  4610. if test $found = "no" ; then
  4611. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4612. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4613. fi
  4614. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4615. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4616. fi
  4617. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4618. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wstrict-prototypes" >&5
  4619. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4620. cat >conftest.$ac_ext <<_ACEOF
  4621. /* confdefs.h. */
  4622. _ACEOF
  4623. cat confdefs.h >>conftest.$ac_ext
  4624. cat >>conftest.$ac_ext <<_ACEOF
  4625. /* end confdefs.h. */
  4626. int i;
  4627. int
  4628. main ()
  4629. {
  4630. ;
  4631. return 0;
  4632. }
  4633. _ACEOF
  4634. rm -f conftest.$ac_objext conftest$ac_exeext
  4635. if { (ac_try="$ac_link"
  4636. case "(($ac_try" in
  4637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4638. *) ac_try_echo=$ac_try;;
  4639. esac
  4640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4641. $as_echo "$ac_try_echo") >&5
  4642. (eval "$ac_link") 2>conftest.er1
  4643. ac_status=$?
  4644. grep -v '^ *+' conftest.er1 >conftest.err
  4645. rm -f conftest.er1
  4646. cat conftest.err >&5
  4647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4648. (exit $ac_status); } && {
  4649. test -z "$ac_c_werror_flag" ||
  4650. test ! -s conftest.err
  4651. } && test -s conftest$ac_exeext && {
  4652. test "$cross_compiling" = yes ||
  4653. $as_test_x conftest$ac_exeext
  4654. }; then
  4655. supported=yes
  4656. else
  4657. $as_echo "$as_me: failed program was:" >&5
  4658. sed 's/^/| /' conftest.$ac_ext >&5
  4659. supported=no
  4660. fi
  4661. rm -rf conftest.dSYM
  4662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4663. conftest$ac_exeext conftest.$ac_ext
  4664. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  4665. $as_echo "$supported" >&6; }
  4666. CFLAGS="$xorg_testset_save_CFLAGS"
  4667. if test "$supported" = "yes" ; then
  4668. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4669. found="yes"
  4670. fi
  4671. fi
  4672. xorg_testset_save_CFLAGS="$CFLAGS"
  4673. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4674. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4675. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4676. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. /* confdefs.h. */
  4679. _ACEOF
  4680. cat confdefs.h >>conftest.$ac_ext
  4681. cat >>conftest.$ac_ext <<_ACEOF
  4682. /* end confdefs.h. */
  4683. int i;
  4684. _ACEOF
  4685. rm -f conftest.$ac_objext
  4686. if { (ac_try="$ac_compile"
  4687. case "(($ac_try" in
  4688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4689. *) ac_try_echo=$ac_try;;
  4690. esac
  4691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4692. $as_echo "$ac_try_echo") >&5
  4693. (eval "$ac_compile") 2>conftest.er1
  4694. ac_status=$?
  4695. grep -v '^ *+' conftest.er1 >conftest.err
  4696. rm -f conftest.er1
  4697. cat conftest.err >&5
  4698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); } && {
  4700. test -z "$ac_c_werror_flag" ||
  4701. test ! -s conftest.err
  4702. } && test -s conftest.$ac_objext; then
  4703. xorg_testset_unknown_warning_option=yes
  4704. else
  4705. $as_echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707. xorg_testset_unknown_warning_option=no
  4708. fi
  4709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4710. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  4711. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  4712. CFLAGS="$xorg_testset_save_CFLAGS"
  4713. fi
  4714. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  4715. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4717. fi
  4718. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4719. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4720. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4721. cat >conftest.$ac_ext <<_ACEOF
  4722. /* confdefs.h. */
  4723. _ACEOF
  4724. cat confdefs.h >>conftest.$ac_ext
  4725. cat >>conftest.$ac_ext <<_ACEOF
  4726. /* end confdefs.h. */
  4727. int i;
  4728. _ACEOF
  4729. rm -f conftest.$ac_objext
  4730. if { (ac_try="$ac_compile"
  4731. case "(($ac_try" in
  4732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4733. *) ac_try_echo=$ac_try;;
  4734. esac
  4735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4736. $as_echo "$ac_try_echo") >&5
  4737. (eval "$ac_compile") 2>conftest.er1
  4738. ac_status=$?
  4739. grep -v '^ *+' conftest.er1 >conftest.err
  4740. rm -f conftest.er1
  4741. cat conftest.err >&5
  4742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4743. (exit $ac_status); } && {
  4744. test -z "$ac_c_werror_flag" ||
  4745. test ! -s conftest.err
  4746. } && test -s conftest.$ac_objext; then
  4747. xorg_testset_unused_command_line_argument=yes
  4748. else
  4749. $as_echo "$as_me: failed program was:" >&5
  4750. sed 's/^/| /' conftest.$ac_ext >&5
  4751. xorg_testset_unused_command_line_argument=no
  4752. fi
  4753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4754. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  4755. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  4756. CFLAGS="$xorg_testset_save_CFLAGS"
  4757. fi
  4758. found="no"
  4759. if test $found = "no" ; then
  4760. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4761. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4762. fi
  4763. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4764. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4765. fi
  4766. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4767. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-prototypes" >&5
  4768. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4769. cat >conftest.$ac_ext <<_ACEOF
  4770. /* confdefs.h. */
  4771. _ACEOF
  4772. cat confdefs.h >>conftest.$ac_ext
  4773. cat >>conftest.$ac_ext <<_ACEOF
  4774. /* end confdefs.h. */
  4775. int i;
  4776. int
  4777. main ()
  4778. {
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. rm -f conftest.$ac_objext conftest$ac_exeext
  4784. if { (ac_try="$ac_link"
  4785. case "(($ac_try" in
  4786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4787. *) ac_try_echo=$ac_try;;
  4788. esac
  4789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4790. $as_echo "$ac_try_echo") >&5
  4791. (eval "$ac_link") 2>conftest.er1
  4792. ac_status=$?
  4793. grep -v '^ *+' conftest.er1 >conftest.err
  4794. rm -f conftest.er1
  4795. cat conftest.err >&5
  4796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4797. (exit $ac_status); } && {
  4798. test -z "$ac_c_werror_flag" ||
  4799. test ! -s conftest.err
  4800. } && test -s conftest$ac_exeext && {
  4801. test "$cross_compiling" = yes ||
  4802. $as_test_x conftest$ac_exeext
  4803. }; then
  4804. supported=yes
  4805. else
  4806. $as_echo "$as_me: failed program was:" >&5
  4807. sed 's/^/| /' conftest.$ac_ext >&5
  4808. supported=no
  4809. fi
  4810. rm -rf conftest.dSYM
  4811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4812. conftest$ac_exeext conftest.$ac_ext
  4813. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  4814. $as_echo "$supported" >&6; }
  4815. CFLAGS="$xorg_testset_save_CFLAGS"
  4816. if test "$supported" = "yes" ; then
  4817. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4818. found="yes"
  4819. fi
  4820. fi
  4821. xorg_testset_save_CFLAGS="$CFLAGS"
  4822. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4823. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4824. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4825. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4826. cat >conftest.$ac_ext <<_ACEOF
  4827. /* confdefs.h. */
  4828. _ACEOF
  4829. cat confdefs.h >>conftest.$ac_ext
  4830. cat >>conftest.$ac_ext <<_ACEOF
  4831. /* end confdefs.h. */
  4832. int i;
  4833. _ACEOF
  4834. rm -f conftest.$ac_objext
  4835. if { (ac_try="$ac_compile"
  4836. case "(($ac_try" in
  4837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4838. *) ac_try_echo=$ac_try;;
  4839. esac
  4840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4841. $as_echo "$ac_try_echo") >&5
  4842. (eval "$ac_compile") 2>conftest.er1
  4843. ac_status=$?
  4844. grep -v '^ *+' conftest.er1 >conftest.err
  4845. rm -f conftest.er1
  4846. cat conftest.err >&5
  4847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4848. (exit $ac_status); } && {
  4849. test -z "$ac_c_werror_flag" ||
  4850. test ! -s conftest.err
  4851. } && test -s conftest.$ac_objext; then
  4852. xorg_testset_unknown_warning_option=yes
  4853. else
  4854. $as_echo "$as_me: failed program was:" >&5
  4855. sed 's/^/| /' conftest.$ac_ext >&5
  4856. xorg_testset_unknown_warning_option=no
  4857. fi
  4858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4859. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  4860. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  4861. CFLAGS="$xorg_testset_save_CFLAGS"
  4862. fi
  4863. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  4864. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4865. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4866. fi
  4867. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4868. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4869. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4870. cat >conftest.$ac_ext <<_ACEOF
  4871. /* confdefs.h. */
  4872. _ACEOF
  4873. cat confdefs.h >>conftest.$ac_ext
  4874. cat >>conftest.$ac_ext <<_ACEOF
  4875. /* end confdefs.h. */
  4876. int i;
  4877. _ACEOF
  4878. rm -f conftest.$ac_objext
  4879. if { (ac_try="$ac_compile"
  4880. case "(($ac_try" in
  4881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4882. *) ac_try_echo=$ac_try;;
  4883. esac
  4884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4885. $as_echo "$ac_try_echo") >&5
  4886. (eval "$ac_compile") 2>conftest.er1
  4887. ac_status=$?
  4888. grep -v '^ *+' conftest.er1 >conftest.err
  4889. rm -f conftest.er1
  4890. cat conftest.err >&5
  4891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4892. (exit $ac_status); } && {
  4893. test -z "$ac_c_werror_flag" ||
  4894. test ! -s conftest.err
  4895. } && test -s conftest.$ac_objext; then
  4896. xorg_testset_unused_command_line_argument=yes
  4897. else
  4898. $as_echo "$as_me: failed program was:" >&5
  4899. sed 's/^/| /' conftest.$ac_ext >&5
  4900. xorg_testset_unused_command_line_argument=no
  4901. fi
  4902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4903. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  4904. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  4905. CFLAGS="$xorg_testset_save_CFLAGS"
  4906. fi
  4907. found="no"
  4908. if test $found = "no" ; then
  4909. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  4910. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4911. fi
  4912. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  4913. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4914. fi
  4915. CFLAGS="$CFLAGS -Wmissing-declarations"
  4916. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-declarations" >&5
  4917. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4918. cat >conftest.$ac_ext <<_ACEOF
  4919. /* confdefs.h. */
  4920. _ACEOF
  4921. cat confdefs.h >>conftest.$ac_ext
  4922. cat >>conftest.$ac_ext <<_ACEOF
  4923. /* end confdefs.h. */
  4924. int i;
  4925. int
  4926. main ()
  4927. {
  4928. ;
  4929. return 0;
  4930. }
  4931. _ACEOF
  4932. rm -f conftest.$ac_objext conftest$ac_exeext
  4933. if { (ac_try="$ac_link"
  4934. case "(($ac_try" in
  4935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4936. *) ac_try_echo=$ac_try;;
  4937. esac
  4938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4939. $as_echo "$ac_try_echo") >&5
  4940. (eval "$ac_link") 2>conftest.er1
  4941. ac_status=$?
  4942. grep -v '^ *+' conftest.er1 >conftest.err
  4943. rm -f conftest.er1
  4944. cat conftest.err >&5
  4945. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); } && {
  4947. test -z "$ac_c_werror_flag" ||
  4948. test ! -s conftest.err
  4949. } && test -s conftest$ac_exeext && {
  4950. test "$cross_compiling" = yes ||
  4951. $as_test_x conftest$ac_exeext
  4952. }; then
  4953. supported=yes
  4954. else
  4955. $as_echo "$as_me: failed program was:" >&5
  4956. sed 's/^/| /' conftest.$ac_ext >&5
  4957. supported=no
  4958. fi
  4959. rm -rf conftest.dSYM
  4960. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4961. conftest$ac_exeext conftest.$ac_ext
  4962. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  4963. $as_echo "$supported" >&6; }
  4964. CFLAGS="$xorg_testset_save_CFLAGS"
  4965. if test "$supported" = "yes" ; then
  4966. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4967. found="yes"
  4968. fi
  4969. fi
  4970. xorg_testset_save_CFLAGS="$CFLAGS"
  4971. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  4972. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4973. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  4974. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4975. cat >conftest.$ac_ext <<_ACEOF
  4976. /* confdefs.h. */
  4977. _ACEOF
  4978. cat confdefs.h >>conftest.$ac_ext
  4979. cat >>conftest.$ac_ext <<_ACEOF
  4980. /* end confdefs.h. */
  4981. int i;
  4982. _ACEOF
  4983. rm -f conftest.$ac_objext
  4984. if { (ac_try="$ac_compile"
  4985. case "(($ac_try" in
  4986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4987. *) ac_try_echo=$ac_try;;
  4988. esac
  4989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4990. $as_echo "$ac_try_echo") >&5
  4991. (eval "$ac_compile") 2>conftest.er1
  4992. ac_status=$?
  4993. grep -v '^ *+' conftest.er1 >conftest.err
  4994. rm -f conftest.er1
  4995. cat conftest.err >&5
  4996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4997. (exit $ac_status); } && {
  4998. test -z "$ac_c_werror_flag" ||
  4999. test ! -s conftest.err
  5000. } && test -s conftest.$ac_objext; then
  5001. xorg_testset_unknown_warning_option=yes
  5002. else
  5003. $as_echo "$as_me: failed program was:" >&5
  5004. sed 's/^/| /' conftest.$ac_ext >&5
  5005. xorg_testset_unknown_warning_option=no
  5006. fi
  5007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5008. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5009. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5010. CFLAGS="$xorg_testset_save_CFLAGS"
  5011. fi
  5012. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5013. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5014. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5015. fi
  5016. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5017. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5018. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5019. cat >conftest.$ac_ext <<_ACEOF
  5020. /* confdefs.h. */
  5021. _ACEOF
  5022. cat confdefs.h >>conftest.$ac_ext
  5023. cat >>conftest.$ac_ext <<_ACEOF
  5024. /* end confdefs.h. */
  5025. int i;
  5026. _ACEOF
  5027. rm -f conftest.$ac_objext
  5028. if { (ac_try="$ac_compile"
  5029. case "(($ac_try" in
  5030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5031. *) ac_try_echo=$ac_try;;
  5032. esac
  5033. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5034. $as_echo "$ac_try_echo") >&5
  5035. (eval "$ac_compile") 2>conftest.er1
  5036. ac_status=$?
  5037. grep -v '^ *+' conftest.er1 >conftest.err
  5038. rm -f conftest.er1
  5039. cat conftest.err >&5
  5040. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5041. (exit $ac_status); } && {
  5042. test -z "$ac_c_werror_flag" ||
  5043. test ! -s conftest.err
  5044. } && test -s conftest.$ac_objext; then
  5045. xorg_testset_unused_command_line_argument=yes
  5046. else
  5047. $as_echo "$as_me: failed program was:" >&5
  5048. sed 's/^/| /' conftest.$ac_ext >&5
  5049. xorg_testset_unused_command_line_argument=no
  5050. fi
  5051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5052. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5053. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5054. CFLAGS="$xorg_testset_save_CFLAGS"
  5055. fi
  5056. found="no"
  5057. if test $found = "no" ; then
  5058. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5059. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5060. fi
  5061. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5062. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5063. fi
  5064. CFLAGS="$CFLAGS -Wnested-externs"
  5065. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnested-externs" >&5
  5066. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  5067. cat >conftest.$ac_ext <<_ACEOF
  5068. /* confdefs.h. */
  5069. _ACEOF
  5070. cat confdefs.h >>conftest.$ac_ext
  5071. cat >>conftest.$ac_ext <<_ACEOF
  5072. /* end confdefs.h. */
  5073. int i;
  5074. int
  5075. main ()
  5076. {
  5077. ;
  5078. return 0;
  5079. }
  5080. _ACEOF
  5081. rm -f conftest.$ac_objext conftest$ac_exeext
  5082. if { (ac_try="$ac_link"
  5083. case "(($ac_try" in
  5084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5085. *) ac_try_echo=$ac_try;;
  5086. esac
  5087. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5088. $as_echo "$ac_try_echo") >&5
  5089. (eval "$ac_link") 2>conftest.er1
  5090. ac_status=$?
  5091. grep -v '^ *+' conftest.er1 >conftest.err
  5092. rm -f conftest.er1
  5093. cat conftest.err >&5
  5094. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); } && {
  5096. test -z "$ac_c_werror_flag" ||
  5097. test ! -s conftest.err
  5098. } && test -s conftest$ac_exeext && {
  5099. test "$cross_compiling" = yes ||
  5100. $as_test_x conftest$ac_exeext
  5101. }; then
  5102. supported=yes
  5103. else
  5104. $as_echo "$as_me: failed program was:" >&5
  5105. sed 's/^/| /' conftest.$ac_ext >&5
  5106. supported=no
  5107. fi
  5108. rm -rf conftest.dSYM
  5109. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5110. conftest$ac_exeext conftest.$ac_ext
  5111. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5112. $as_echo "$supported" >&6; }
  5113. CFLAGS="$xorg_testset_save_CFLAGS"
  5114. if test "$supported" = "yes" ; then
  5115. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  5116. found="yes"
  5117. fi
  5118. fi
  5119. xorg_testset_save_CFLAGS="$CFLAGS"
  5120. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5121. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5122. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5123. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5124. cat >conftest.$ac_ext <<_ACEOF
  5125. /* confdefs.h. */
  5126. _ACEOF
  5127. cat confdefs.h >>conftest.$ac_ext
  5128. cat >>conftest.$ac_ext <<_ACEOF
  5129. /* end confdefs.h. */
  5130. int i;
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext
  5133. if { (ac_try="$ac_compile"
  5134. case "(($ac_try" in
  5135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5136. *) ac_try_echo=$ac_try;;
  5137. esac
  5138. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5139. $as_echo "$ac_try_echo") >&5
  5140. (eval "$ac_compile") 2>conftest.er1
  5141. ac_status=$?
  5142. grep -v '^ *+' conftest.er1 >conftest.err
  5143. rm -f conftest.er1
  5144. cat conftest.err >&5
  5145. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5146. (exit $ac_status); } && {
  5147. test -z "$ac_c_werror_flag" ||
  5148. test ! -s conftest.err
  5149. } && test -s conftest.$ac_objext; then
  5150. xorg_testset_unknown_warning_option=yes
  5151. else
  5152. $as_echo "$as_me: failed program was:" >&5
  5153. sed 's/^/| /' conftest.$ac_ext >&5
  5154. xorg_testset_unknown_warning_option=no
  5155. fi
  5156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5157. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5158. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5159. CFLAGS="$xorg_testset_save_CFLAGS"
  5160. fi
  5161. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5162. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5163. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5164. fi
  5165. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5166. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5167. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5168. cat >conftest.$ac_ext <<_ACEOF
  5169. /* confdefs.h. */
  5170. _ACEOF
  5171. cat confdefs.h >>conftest.$ac_ext
  5172. cat >>conftest.$ac_ext <<_ACEOF
  5173. /* end confdefs.h. */
  5174. int i;
  5175. _ACEOF
  5176. rm -f conftest.$ac_objext
  5177. if { (ac_try="$ac_compile"
  5178. case "(($ac_try" in
  5179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5180. *) ac_try_echo=$ac_try;;
  5181. esac
  5182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5183. $as_echo "$ac_try_echo") >&5
  5184. (eval "$ac_compile") 2>conftest.er1
  5185. ac_status=$?
  5186. grep -v '^ *+' conftest.er1 >conftest.err
  5187. rm -f conftest.er1
  5188. cat conftest.err >&5
  5189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5190. (exit $ac_status); } && {
  5191. test -z "$ac_c_werror_flag" ||
  5192. test ! -s conftest.err
  5193. } && test -s conftest.$ac_objext; then
  5194. xorg_testset_unused_command_line_argument=yes
  5195. else
  5196. $as_echo "$as_me: failed program was:" >&5
  5197. sed 's/^/| /' conftest.$ac_ext >&5
  5198. xorg_testset_unused_command_line_argument=no
  5199. fi
  5200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5201. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5202. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5203. CFLAGS="$xorg_testset_save_CFLAGS"
  5204. fi
  5205. found="no"
  5206. if test $found = "no" ; then
  5207. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5208. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5209. fi
  5210. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5211. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5212. fi
  5213. CFLAGS="$CFLAGS -Wbad-function-cast"
  5214. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wbad-function-cast" >&5
  5215. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  5216. cat >conftest.$ac_ext <<_ACEOF
  5217. /* confdefs.h. */
  5218. _ACEOF
  5219. cat confdefs.h >>conftest.$ac_ext
  5220. cat >>conftest.$ac_ext <<_ACEOF
  5221. /* end confdefs.h. */
  5222. int i;
  5223. int
  5224. main ()
  5225. {
  5226. ;
  5227. return 0;
  5228. }
  5229. _ACEOF
  5230. rm -f conftest.$ac_objext conftest$ac_exeext
  5231. if { (ac_try="$ac_link"
  5232. case "(($ac_try" in
  5233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5234. *) ac_try_echo=$ac_try;;
  5235. esac
  5236. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5237. $as_echo "$ac_try_echo") >&5
  5238. (eval "$ac_link") 2>conftest.er1
  5239. ac_status=$?
  5240. grep -v '^ *+' conftest.er1 >conftest.err
  5241. rm -f conftest.er1
  5242. cat conftest.err >&5
  5243. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5244. (exit $ac_status); } && {
  5245. test -z "$ac_c_werror_flag" ||
  5246. test ! -s conftest.err
  5247. } && test -s conftest$ac_exeext && {
  5248. test "$cross_compiling" = yes ||
  5249. $as_test_x conftest$ac_exeext
  5250. }; then
  5251. supported=yes
  5252. else
  5253. $as_echo "$as_me: failed program was:" >&5
  5254. sed 's/^/| /' conftest.$ac_ext >&5
  5255. supported=no
  5256. fi
  5257. rm -rf conftest.dSYM
  5258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5259. conftest$ac_exeext conftest.$ac_ext
  5260. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5261. $as_echo "$supported" >&6; }
  5262. CFLAGS="$xorg_testset_save_CFLAGS"
  5263. if test "$supported" = "yes" ; then
  5264. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  5265. found="yes"
  5266. fi
  5267. fi
  5268. xorg_testset_save_CFLAGS="$CFLAGS"
  5269. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5270. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5271. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5272. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5273. cat >conftest.$ac_ext <<_ACEOF
  5274. /* confdefs.h. */
  5275. _ACEOF
  5276. cat confdefs.h >>conftest.$ac_ext
  5277. cat >>conftest.$ac_ext <<_ACEOF
  5278. /* end confdefs.h. */
  5279. int i;
  5280. _ACEOF
  5281. rm -f conftest.$ac_objext
  5282. if { (ac_try="$ac_compile"
  5283. case "(($ac_try" in
  5284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5285. *) ac_try_echo=$ac_try;;
  5286. esac
  5287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5288. $as_echo "$ac_try_echo") >&5
  5289. (eval "$ac_compile") 2>conftest.er1
  5290. ac_status=$?
  5291. grep -v '^ *+' conftest.er1 >conftest.err
  5292. rm -f conftest.er1
  5293. cat conftest.err >&5
  5294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5295. (exit $ac_status); } && {
  5296. test -z "$ac_c_werror_flag" ||
  5297. test ! -s conftest.err
  5298. } && test -s conftest.$ac_objext; then
  5299. xorg_testset_unknown_warning_option=yes
  5300. else
  5301. $as_echo "$as_me: failed program was:" >&5
  5302. sed 's/^/| /' conftest.$ac_ext >&5
  5303. xorg_testset_unknown_warning_option=no
  5304. fi
  5305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5306. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5307. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5308. CFLAGS="$xorg_testset_save_CFLAGS"
  5309. fi
  5310. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5311. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5312. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5313. fi
  5314. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5315. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5316. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5317. cat >conftest.$ac_ext <<_ACEOF
  5318. /* confdefs.h. */
  5319. _ACEOF
  5320. cat confdefs.h >>conftest.$ac_ext
  5321. cat >>conftest.$ac_ext <<_ACEOF
  5322. /* end confdefs.h. */
  5323. int i;
  5324. _ACEOF
  5325. rm -f conftest.$ac_objext
  5326. if { (ac_try="$ac_compile"
  5327. case "(($ac_try" in
  5328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5329. *) ac_try_echo=$ac_try;;
  5330. esac
  5331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5332. $as_echo "$ac_try_echo") >&5
  5333. (eval "$ac_compile") 2>conftest.er1
  5334. ac_status=$?
  5335. grep -v '^ *+' conftest.er1 >conftest.err
  5336. rm -f conftest.er1
  5337. cat conftest.err >&5
  5338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5339. (exit $ac_status); } && {
  5340. test -z "$ac_c_werror_flag" ||
  5341. test ! -s conftest.err
  5342. } && test -s conftest.$ac_objext; then
  5343. xorg_testset_unused_command_line_argument=yes
  5344. else
  5345. $as_echo "$as_me: failed program was:" >&5
  5346. sed 's/^/| /' conftest.$ac_ext >&5
  5347. xorg_testset_unused_command_line_argument=no
  5348. fi
  5349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5350. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5351. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5352. CFLAGS="$xorg_testset_save_CFLAGS"
  5353. fi
  5354. found="no"
  5355. if test $found = "no" ; then
  5356. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5358. fi
  5359. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5360. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5361. fi
  5362. CFLAGS="$CFLAGS -Wformat=2"
  5363. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wformat=2" >&5
  5364. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  5365. cat >conftest.$ac_ext <<_ACEOF
  5366. /* confdefs.h. */
  5367. _ACEOF
  5368. cat confdefs.h >>conftest.$ac_ext
  5369. cat >>conftest.$ac_ext <<_ACEOF
  5370. /* end confdefs.h. */
  5371. int i;
  5372. int
  5373. main ()
  5374. {
  5375. ;
  5376. return 0;
  5377. }
  5378. _ACEOF
  5379. rm -f conftest.$ac_objext conftest$ac_exeext
  5380. if { (ac_try="$ac_link"
  5381. case "(($ac_try" in
  5382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5383. *) ac_try_echo=$ac_try;;
  5384. esac
  5385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5386. $as_echo "$ac_try_echo") >&5
  5387. (eval "$ac_link") 2>conftest.er1
  5388. ac_status=$?
  5389. grep -v '^ *+' conftest.er1 >conftest.err
  5390. rm -f conftest.er1
  5391. cat conftest.err >&5
  5392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5393. (exit $ac_status); } && {
  5394. test -z "$ac_c_werror_flag" ||
  5395. test ! -s conftest.err
  5396. } && test -s conftest$ac_exeext && {
  5397. test "$cross_compiling" = yes ||
  5398. $as_test_x conftest$ac_exeext
  5399. }; then
  5400. supported=yes
  5401. else
  5402. $as_echo "$as_me: failed program was:" >&5
  5403. sed 's/^/| /' conftest.$ac_ext >&5
  5404. supported=no
  5405. fi
  5406. rm -rf conftest.dSYM
  5407. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5408. conftest$ac_exeext conftest.$ac_ext
  5409. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5410. $as_echo "$supported" >&6; }
  5411. CFLAGS="$xorg_testset_save_CFLAGS"
  5412. if test "$supported" = "yes" ; then
  5413. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  5414. found="yes"
  5415. fi
  5416. fi
  5417. if test $found = "no" ; then
  5418. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5419. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5420. fi
  5421. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5422. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5423. fi
  5424. CFLAGS="$CFLAGS -Wformat"
  5425. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wformat" >&5
  5426. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  5427. cat >conftest.$ac_ext <<_ACEOF
  5428. /* confdefs.h. */
  5429. _ACEOF
  5430. cat confdefs.h >>conftest.$ac_ext
  5431. cat >>conftest.$ac_ext <<_ACEOF
  5432. /* end confdefs.h. */
  5433. int i;
  5434. int
  5435. main ()
  5436. {
  5437. ;
  5438. return 0;
  5439. }
  5440. _ACEOF
  5441. rm -f conftest.$ac_objext conftest$ac_exeext
  5442. if { (ac_try="$ac_link"
  5443. case "(($ac_try" in
  5444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5445. *) ac_try_echo=$ac_try;;
  5446. esac
  5447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5448. $as_echo "$ac_try_echo") >&5
  5449. (eval "$ac_link") 2>conftest.er1
  5450. ac_status=$?
  5451. grep -v '^ *+' conftest.er1 >conftest.err
  5452. rm -f conftest.er1
  5453. cat conftest.err >&5
  5454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5455. (exit $ac_status); } && {
  5456. test -z "$ac_c_werror_flag" ||
  5457. test ! -s conftest.err
  5458. } && test -s conftest$ac_exeext && {
  5459. test "$cross_compiling" = yes ||
  5460. $as_test_x conftest$ac_exeext
  5461. }; then
  5462. supported=yes
  5463. else
  5464. $as_echo "$as_me: failed program was:" >&5
  5465. sed 's/^/| /' conftest.$ac_ext >&5
  5466. supported=no
  5467. fi
  5468. rm -rf conftest.dSYM
  5469. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5470. conftest$ac_exeext conftest.$ac_ext
  5471. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5472. $as_echo "$supported" >&6; }
  5473. CFLAGS="$xorg_testset_save_CFLAGS"
  5474. if test "$supported" = "yes" ; then
  5475. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  5476. found="yes"
  5477. fi
  5478. fi
  5479. xorg_testset_save_CFLAGS="$CFLAGS"
  5480. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5481. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5482. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5483. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5484. cat >conftest.$ac_ext <<_ACEOF
  5485. /* confdefs.h. */
  5486. _ACEOF
  5487. cat confdefs.h >>conftest.$ac_ext
  5488. cat >>conftest.$ac_ext <<_ACEOF
  5489. /* end confdefs.h. */
  5490. int i;
  5491. _ACEOF
  5492. rm -f conftest.$ac_objext
  5493. if { (ac_try="$ac_compile"
  5494. case "(($ac_try" in
  5495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5496. *) ac_try_echo=$ac_try;;
  5497. esac
  5498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5499. $as_echo "$ac_try_echo") >&5
  5500. (eval "$ac_compile") 2>conftest.er1
  5501. ac_status=$?
  5502. grep -v '^ *+' conftest.er1 >conftest.err
  5503. rm -f conftest.er1
  5504. cat conftest.err >&5
  5505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5506. (exit $ac_status); } && {
  5507. test -z "$ac_c_werror_flag" ||
  5508. test ! -s conftest.err
  5509. } && test -s conftest.$ac_objext; then
  5510. xorg_testset_unknown_warning_option=yes
  5511. else
  5512. $as_echo "$as_me: failed program was:" >&5
  5513. sed 's/^/| /' conftest.$ac_ext >&5
  5514. xorg_testset_unknown_warning_option=no
  5515. fi
  5516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5517. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5518. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5519. CFLAGS="$xorg_testset_save_CFLAGS"
  5520. fi
  5521. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5522. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5523. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5524. fi
  5525. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5526. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5527. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5528. cat >conftest.$ac_ext <<_ACEOF
  5529. /* confdefs.h. */
  5530. _ACEOF
  5531. cat confdefs.h >>conftest.$ac_ext
  5532. cat >>conftest.$ac_ext <<_ACEOF
  5533. /* end confdefs.h. */
  5534. int i;
  5535. _ACEOF
  5536. rm -f conftest.$ac_objext
  5537. if { (ac_try="$ac_compile"
  5538. case "(($ac_try" in
  5539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5540. *) ac_try_echo=$ac_try;;
  5541. esac
  5542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5543. $as_echo "$ac_try_echo") >&5
  5544. (eval "$ac_compile") 2>conftest.er1
  5545. ac_status=$?
  5546. grep -v '^ *+' conftest.er1 >conftest.err
  5547. rm -f conftest.er1
  5548. cat conftest.err >&5
  5549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5550. (exit $ac_status); } && {
  5551. test -z "$ac_c_werror_flag" ||
  5552. test ! -s conftest.err
  5553. } && test -s conftest.$ac_objext; then
  5554. xorg_testset_unused_command_line_argument=yes
  5555. else
  5556. $as_echo "$as_me: failed program was:" >&5
  5557. sed 's/^/| /' conftest.$ac_ext >&5
  5558. xorg_testset_unused_command_line_argument=no
  5559. fi
  5560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5561. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5562. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5563. CFLAGS="$xorg_testset_save_CFLAGS"
  5564. fi
  5565. found="no"
  5566. if test $found = "no" ; then
  5567. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5568. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5569. fi
  5570. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5571. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5572. fi
  5573. CFLAGS="$CFLAGS -Wold-style-definition"
  5574. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wold-style-definition" >&5
  5575. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5576. cat >conftest.$ac_ext <<_ACEOF
  5577. /* confdefs.h. */
  5578. _ACEOF
  5579. cat confdefs.h >>conftest.$ac_ext
  5580. cat >>conftest.$ac_ext <<_ACEOF
  5581. /* end confdefs.h. */
  5582. int i;
  5583. int
  5584. main ()
  5585. {
  5586. ;
  5587. return 0;
  5588. }
  5589. _ACEOF
  5590. rm -f conftest.$ac_objext conftest$ac_exeext
  5591. if { (ac_try="$ac_link"
  5592. case "(($ac_try" in
  5593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5594. *) ac_try_echo=$ac_try;;
  5595. esac
  5596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5597. $as_echo "$ac_try_echo") >&5
  5598. (eval "$ac_link") 2>conftest.er1
  5599. ac_status=$?
  5600. grep -v '^ *+' conftest.er1 >conftest.err
  5601. rm -f conftest.er1
  5602. cat conftest.err >&5
  5603. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5604. (exit $ac_status); } && {
  5605. test -z "$ac_c_werror_flag" ||
  5606. test ! -s conftest.err
  5607. } && test -s conftest$ac_exeext && {
  5608. test "$cross_compiling" = yes ||
  5609. $as_test_x conftest$ac_exeext
  5610. }; then
  5611. supported=yes
  5612. else
  5613. $as_echo "$as_me: failed program was:" >&5
  5614. sed 's/^/| /' conftest.$ac_ext >&5
  5615. supported=no
  5616. fi
  5617. rm -rf conftest.dSYM
  5618. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5619. conftest$ac_exeext conftest.$ac_ext
  5620. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5621. $as_echo "$supported" >&6; }
  5622. CFLAGS="$xorg_testset_save_CFLAGS"
  5623. if test "$supported" = "yes" ; then
  5624. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5625. found="yes"
  5626. fi
  5627. fi
  5628. xorg_testset_save_CFLAGS="$CFLAGS"
  5629. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5630. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5631. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5632. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5633. cat >conftest.$ac_ext <<_ACEOF
  5634. /* confdefs.h. */
  5635. _ACEOF
  5636. cat confdefs.h >>conftest.$ac_ext
  5637. cat >>conftest.$ac_ext <<_ACEOF
  5638. /* end confdefs.h. */
  5639. int i;
  5640. _ACEOF
  5641. rm -f conftest.$ac_objext
  5642. if { (ac_try="$ac_compile"
  5643. case "(($ac_try" in
  5644. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5645. *) ac_try_echo=$ac_try;;
  5646. esac
  5647. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5648. $as_echo "$ac_try_echo") >&5
  5649. (eval "$ac_compile") 2>conftest.er1
  5650. ac_status=$?
  5651. grep -v '^ *+' conftest.er1 >conftest.err
  5652. rm -f conftest.er1
  5653. cat conftest.err >&5
  5654. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5655. (exit $ac_status); } && {
  5656. test -z "$ac_c_werror_flag" ||
  5657. test ! -s conftest.err
  5658. } && test -s conftest.$ac_objext; then
  5659. xorg_testset_unknown_warning_option=yes
  5660. else
  5661. $as_echo "$as_me: failed program was:" >&5
  5662. sed 's/^/| /' conftest.$ac_ext >&5
  5663. xorg_testset_unknown_warning_option=no
  5664. fi
  5665. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5666. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5667. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5668. CFLAGS="$xorg_testset_save_CFLAGS"
  5669. fi
  5670. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5671. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5672. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5673. fi
  5674. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5675. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5676. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5677. cat >conftest.$ac_ext <<_ACEOF
  5678. /* confdefs.h. */
  5679. _ACEOF
  5680. cat confdefs.h >>conftest.$ac_ext
  5681. cat >>conftest.$ac_ext <<_ACEOF
  5682. /* end confdefs.h. */
  5683. int i;
  5684. _ACEOF
  5685. rm -f conftest.$ac_objext
  5686. if { (ac_try="$ac_compile"
  5687. case "(($ac_try" in
  5688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5689. *) ac_try_echo=$ac_try;;
  5690. esac
  5691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5692. $as_echo "$ac_try_echo") >&5
  5693. (eval "$ac_compile") 2>conftest.er1
  5694. ac_status=$?
  5695. grep -v '^ *+' conftest.er1 >conftest.err
  5696. rm -f conftest.er1
  5697. cat conftest.err >&5
  5698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5699. (exit $ac_status); } && {
  5700. test -z "$ac_c_werror_flag" ||
  5701. test ! -s conftest.err
  5702. } && test -s conftest.$ac_objext; then
  5703. xorg_testset_unused_command_line_argument=yes
  5704. else
  5705. $as_echo "$as_me: failed program was:" >&5
  5706. sed 's/^/| /' conftest.$ac_ext >&5
  5707. xorg_testset_unused_command_line_argument=no
  5708. fi
  5709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5710. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5711. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5712. CFLAGS="$xorg_testset_save_CFLAGS"
  5713. fi
  5714. found="no"
  5715. if test $found = "no" ; then
  5716. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5717. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5718. fi
  5719. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5720. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5721. fi
  5722. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5723. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
  5724. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5725. cat >conftest.$ac_ext <<_ACEOF
  5726. /* confdefs.h. */
  5727. _ACEOF
  5728. cat confdefs.h >>conftest.$ac_ext
  5729. cat >>conftest.$ac_ext <<_ACEOF
  5730. /* end confdefs.h. */
  5731. int i;
  5732. int
  5733. main ()
  5734. {
  5735. ;
  5736. return 0;
  5737. }
  5738. _ACEOF
  5739. rm -f conftest.$ac_objext conftest$ac_exeext
  5740. if { (ac_try="$ac_link"
  5741. case "(($ac_try" in
  5742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5743. *) ac_try_echo=$ac_try;;
  5744. esac
  5745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5746. $as_echo "$ac_try_echo") >&5
  5747. (eval "$ac_link") 2>conftest.er1
  5748. ac_status=$?
  5749. grep -v '^ *+' conftest.er1 >conftest.err
  5750. rm -f conftest.er1
  5751. cat conftest.err >&5
  5752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5753. (exit $ac_status); } && {
  5754. test -z "$ac_c_werror_flag" ||
  5755. test ! -s conftest.err
  5756. } && test -s conftest$ac_exeext && {
  5757. test "$cross_compiling" = yes ||
  5758. $as_test_x conftest$ac_exeext
  5759. }; then
  5760. supported=yes
  5761. else
  5762. $as_echo "$as_me: failed program was:" >&5
  5763. sed 's/^/| /' conftest.$ac_ext >&5
  5764. supported=no
  5765. fi
  5766. rm -rf conftest.dSYM
  5767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5768. conftest$ac_exeext conftest.$ac_ext
  5769. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5770. $as_echo "$supported" >&6; }
  5771. CFLAGS="$xorg_testset_save_CFLAGS"
  5772. if test "$supported" = "yes" ; then
  5773. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5774. found="yes"
  5775. fi
  5776. fi
  5777. # This chunk adds additional warnings that could catch undesired effects.
  5778. xorg_testset_save_CFLAGS="$CFLAGS"
  5779. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5780. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5781. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5782. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5783. cat >conftest.$ac_ext <<_ACEOF
  5784. /* confdefs.h. */
  5785. _ACEOF
  5786. cat confdefs.h >>conftest.$ac_ext
  5787. cat >>conftest.$ac_ext <<_ACEOF
  5788. /* end confdefs.h. */
  5789. int i;
  5790. _ACEOF
  5791. rm -f conftest.$ac_objext
  5792. if { (ac_try="$ac_compile"
  5793. case "(($ac_try" in
  5794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5795. *) ac_try_echo=$ac_try;;
  5796. esac
  5797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5798. $as_echo "$ac_try_echo") >&5
  5799. (eval "$ac_compile") 2>conftest.er1
  5800. ac_status=$?
  5801. grep -v '^ *+' conftest.er1 >conftest.err
  5802. rm -f conftest.er1
  5803. cat conftest.err >&5
  5804. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5805. (exit $ac_status); } && {
  5806. test -z "$ac_c_werror_flag" ||
  5807. test ! -s conftest.err
  5808. } && test -s conftest.$ac_objext; then
  5809. xorg_testset_unknown_warning_option=yes
  5810. else
  5811. $as_echo "$as_me: failed program was:" >&5
  5812. sed 's/^/| /' conftest.$ac_ext >&5
  5813. xorg_testset_unknown_warning_option=no
  5814. fi
  5815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5816. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5817. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5818. CFLAGS="$xorg_testset_save_CFLAGS"
  5819. fi
  5820. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5821. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5822. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5823. fi
  5824. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5825. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5826. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5827. cat >conftest.$ac_ext <<_ACEOF
  5828. /* confdefs.h. */
  5829. _ACEOF
  5830. cat confdefs.h >>conftest.$ac_ext
  5831. cat >>conftest.$ac_ext <<_ACEOF
  5832. /* end confdefs.h. */
  5833. int i;
  5834. _ACEOF
  5835. rm -f conftest.$ac_objext
  5836. if { (ac_try="$ac_compile"
  5837. case "(($ac_try" in
  5838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5839. *) ac_try_echo=$ac_try;;
  5840. esac
  5841. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5842. $as_echo "$ac_try_echo") >&5
  5843. (eval "$ac_compile") 2>conftest.er1
  5844. ac_status=$?
  5845. grep -v '^ *+' conftest.er1 >conftest.err
  5846. rm -f conftest.er1
  5847. cat conftest.err >&5
  5848. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); } && {
  5850. test -z "$ac_c_werror_flag" ||
  5851. test ! -s conftest.err
  5852. } && test -s conftest.$ac_objext; then
  5853. xorg_testset_unused_command_line_argument=yes
  5854. else
  5855. $as_echo "$as_me: failed program was:" >&5
  5856. sed 's/^/| /' conftest.$ac_ext >&5
  5857. xorg_testset_unused_command_line_argument=no
  5858. fi
  5859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5860. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  5861. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  5862. CFLAGS="$xorg_testset_save_CFLAGS"
  5863. fi
  5864. found="no"
  5865. if test $found = "no" ; then
  5866. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5867. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5868. fi
  5869. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  5870. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5871. fi
  5872. CFLAGS="$CFLAGS -Wunused"
  5873. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wunused" >&5
  5874. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5875. cat >conftest.$ac_ext <<_ACEOF
  5876. /* confdefs.h. */
  5877. _ACEOF
  5878. cat confdefs.h >>conftest.$ac_ext
  5879. cat >>conftest.$ac_ext <<_ACEOF
  5880. /* end confdefs.h. */
  5881. int i;
  5882. int
  5883. main ()
  5884. {
  5885. ;
  5886. return 0;
  5887. }
  5888. _ACEOF
  5889. rm -f conftest.$ac_objext conftest$ac_exeext
  5890. if { (ac_try="$ac_link"
  5891. case "(($ac_try" in
  5892. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5893. *) ac_try_echo=$ac_try;;
  5894. esac
  5895. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5896. $as_echo "$ac_try_echo") >&5
  5897. (eval "$ac_link") 2>conftest.er1
  5898. ac_status=$?
  5899. grep -v '^ *+' conftest.er1 >conftest.err
  5900. rm -f conftest.er1
  5901. cat conftest.err >&5
  5902. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5903. (exit $ac_status); } && {
  5904. test -z "$ac_c_werror_flag" ||
  5905. test ! -s conftest.err
  5906. } && test -s conftest$ac_exeext && {
  5907. test "$cross_compiling" = yes ||
  5908. $as_test_x conftest$ac_exeext
  5909. }; then
  5910. supported=yes
  5911. else
  5912. $as_echo "$as_me: failed program was:" >&5
  5913. sed 's/^/| /' conftest.$ac_ext >&5
  5914. supported=no
  5915. fi
  5916. rm -rf conftest.dSYM
  5917. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5918. conftest$ac_exeext conftest.$ac_ext
  5919. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  5920. $as_echo "$supported" >&6; }
  5921. CFLAGS="$xorg_testset_save_CFLAGS"
  5922. if test "$supported" = "yes" ; then
  5923. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5924. found="yes"
  5925. fi
  5926. fi
  5927. xorg_testset_save_CFLAGS="$CFLAGS"
  5928. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  5929. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5930. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  5931. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5932. cat >conftest.$ac_ext <<_ACEOF
  5933. /* confdefs.h. */
  5934. _ACEOF
  5935. cat confdefs.h >>conftest.$ac_ext
  5936. cat >>conftest.$ac_ext <<_ACEOF
  5937. /* end confdefs.h. */
  5938. int i;
  5939. _ACEOF
  5940. rm -f conftest.$ac_objext
  5941. if { (ac_try="$ac_compile"
  5942. case "(($ac_try" in
  5943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5944. *) ac_try_echo=$ac_try;;
  5945. esac
  5946. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5947. $as_echo "$ac_try_echo") >&5
  5948. (eval "$ac_compile") 2>conftest.er1
  5949. ac_status=$?
  5950. grep -v '^ *+' conftest.er1 >conftest.err
  5951. rm -f conftest.er1
  5952. cat conftest.err >&5
  5953. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5954. (exit $ac_status); } && {
  5955. test -z "$ac_c_werror_flag" ||
  5956. test ! -s conftest.err
  5957. } && test -s conftest.$ac_objext; then
  5958. xorg_testset_unknown_warning_option=yes
  5959. else
  5960. $as_echo "$as_me: failed program was:" >&5
  5961. sed 's/^/| /' conftest.$ac_ext >&5
  5962. xorg_testset_unknown_warning_option=no
  5963. fi
  5964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5965. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  5966. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  5967. CFLAGS="$xorg_testset_save_CFLAGS"
  5968. fi
  5969. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  5970. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  5971. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5972. fi
  5973. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5974. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5975. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. int i;
  5983. _ACEOF
  5984. rm -f conftest.$ac_objext
  5985. if { (ac_try="$ac_compile"
  5986. case "(($ac_try" in
  5987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5988. *) ac_try_echo=$ac_try;;
  5989. esac
  5990. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5991. $as_echo "$ac_try_echo") >&5
  5992. (eval "$ac_compile") 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } && {
  5999. test -z "$ac_c_werror_flag" ||
  6000. test ! -s conftest.err
  6001. } && test -s conftest.$ac_objext; then
  6002. xorg_testset_unused_command_line_argument=yes
  6003. else
  6004. $as_echo "$as_me: failed program was:" >&5
  6005. sed 's/^/| /' conftest.$ac_ext >&5
  6006. xorg_testset_unused_command_line_argument=no
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6009. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6010. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6011. CFLAGS="$xorg_testset_save_CFLAGS"
  6012. fi
  6013. found="no"
  6014. if test $found = "no" ; then
  6015. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6016. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6017. fi
  6018. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6019. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6020. fi
  6021. CFLAGS="$CFLAGS -Wuninitialized"
  6022. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wuninitialized" >&5
  6023. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  6024. cat >conftest.$ac_ext <<_ACEOF
  6025. /* confdefs.h. */
  6026. _ACEOF
  6027. cat confdefs.h >>conftest.$ac_ext
  6028. cat >>conftest.$ac_ext <<_ACEOF
  6029. /* end confdefs.h. */
  6030. int i;
  6031. int
  6032. main ()
  6033. {
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. rm -f conftest.$ac_objext conftest$ac_exeext
  6039. if { (ac_try="$ac_link"
  6040. case "(($ac_try" in
  6041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6042. *) ac_try_echo=$ac_try;;
  6043. esac
  6044. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6045. $as_echo "$ac_try_echo") >&5
  6046. (eval "$ac_link") 2>conftest.er1
  6047. ac_status=$?
  6048. grep -v '^ *+' conftest.er1 >conftest.err
  6049. rm -f conftest.er1
  6050. cat conftest.err >&5
  6051. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6052. (exit $ac_status); } && {
  6053. test -z "$ac_c_werror_flag" ||
  6054. test ! -s conftest.err
  6055. } && test -s conftest$ac_exeext && {
  6056. test "$cross_compiling" = yes ||
  6057. $as_test_x conftest$ac_exeext
  6058. }; then
  6059. supported=yes
  6060. else
  6061. $as_echo "$as_me: failed program was:" >&5
  6062. sed 's/^/| /' conftest.$ac_ext >&5
  6063. supported=no
  6064. fi
  6065. rm -rf conftest.dSYM
  6066. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6067. conftest$ac_exeext conftest.$ac_ext
  6068. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6069. $as_echo "$supported" >&6; }
  6070. CFLAGS="$xorg_testset_save_CFLAGS"
  6071. if test "$supported" = "yes" ; then
  6072. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  6073. found="yes"
  6074. fi
  6075. fi
  6076. xorg_testset_save_CFLAGS="$CFLAGS"
  6077. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6078. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6079. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6080. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6081. cat >conftest.$ac_ext <<_ACEOF
  6082. /* confdefs.h. */
  6083. _ACEOF
  6084. cat confdefs.h >>conftest.$ac_ext
  6085. cat >>conftest.$ac_ext <<_ACEOF
  6086. /* end confdefs.h. */
  6087. int i;
  6088. _ACEOF
  6089. rm -f conftest.$ac_objext
  6090. if { (ac_try="$ac_compile"
  6091. case "(($ac_try" in
  6092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6093. *) ac_try_echo=$ac_try;;
  6094. esac
  6095. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6096. $as_echo "$ac_try_echo") >&5
  6097. (eval "$ac_compile") 2>conftest.er1
  6098. ac_status=$?
  6099. grep -v '^ *+' conftest.er1 >conftest.err
  6100. rm -f conftest.er1
  6101. cat conftest.err >&5
  6102. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6103. (exit $ac_status); } && {
  6104. test -z "$ac_c_werror_flag" ||
  6105. test ! -s conftest.err
  6106. } && test -s conftest.$ac_objext; then
  6107. xorg_testset_unknown_warning_option=yes
  6108. else
  6109. $as_echo "$as_me: failed program was:" >&5
  6110. sed 's/^/| /' conftest.$ac_ext >&5
  6111. xorg_testset_unknown_warning_option=no
  6112. fi
  6113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6114. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6115. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6116. CFLAGS="$xorg_testset_save_CFLAGS"
  6117. fi
  6118. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6119. if test "x$xorg_testset_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:$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. cat >conftest.$ac_ext <<_ACEOF
  6126. /* confdefs.h. */
  6127. _ACEOF
  6128. cat confdefs.h >>conftest.$ac_ext
  6129. cat >>conftest.$ac_ext <<_ACEOF
  6130. /* end confdefs.h. */
  6131. int i;
  6132. _ACEOF
  6133. rm -f conftest.$ac_objext
  6134. if { (ac_try="$ac_compile"
  6135. case "(($ac_try" in
  6136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6137. *) ac_try_echo=$ac_try;;
  6138. esac
  6139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6140. $as_echo "$ac_try_echo") >&5
  6141. (eval "$ac_compile") 2>conftest.er1
  6142. ac_status=$?
  6143. grep -v '^ *+' conftest.er1 >conftest.err
  6144. rm -f conftest.er1
  6145. cat conftest.err >&5
  6146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6147. (exit $ac_status); } && {
  6148. test -z "$ac_c_werror_flag" ||
  6149. test ! -s conftest.err
  6150. } && test -s conftest.$ac_objext; then
  6151. xorg_testset_unused_command_line_argument=yes
  6152. else
  6153. $as_echo "$as_me: failed program was:" >&5
  6154. sed 's/^/| /' conftest.$ac_ext >&5
  6155. xorg_testset_unused_command_line_argument=no
  6156. fi
  6157. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6158. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6159. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6160. CFLAGS="$xorg_testset_save_CFLAGS"
  6161. fi
  6162. found="no"
  6163. if test $found = "no" ; then
  6164. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6165. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6166. fi
  6167. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6168. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6169. fi
  6170. CFLAGS="$CFLAGS -Wshadow"
  6171. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wshadow" >&5
  6172. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  6173. cat >conftest.$ac_ext <<_ACEOF
  6174. /* confdefs.h. */
  6175. _ACEOF
  6176. cat confdefs.h >>conftest.$ac_ext
  6177. cat >>conftest.$ac_ext <<_ACEOF
  6178. /* end confdefs.h. */
  6179. int i;
  6180. int
  6181. main ()
  6182. {
  6183. ;
  6184. return 0;
  6185. }
  6186. _ACEOF
  6187. rm -f conftest.$ac_objext conftest$ac_exeext
  6188. if { (ac_try="$ac_link"
  6189. case "(($ac_try" in
  6190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6191. *) ac_try_echo=$ac_try;;
  6192. esac
  6193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6194. $as_echo "$ac_try_echo") >&5
  6195. (eval "$ac_link") 2>conftest.er1
  6196. ac_status=$?
  6197. grep -v '^ *+' conftest.er1 >conftest.err
  6198. rm -f conftest.er1
  6199. cat conftest.err >&5
  6200. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6201. (exit $ac_status); } && {
  6202. test -z "$ac_c_werror_flag" ||
  6203. test ! -s conftest.err
  6204. } && test -s conftest$ac_exeext && {
  6205. test "$cross_compiling" = yes ||
  6206. $as_test_x conftest$ac_exeext
  6207. }; then
  6208. supported=yes
  6209. else
  6210. $as_echo "$as_me: failed program was:" >&5
  6211. sed 's/^/| /' conftest.$ac_ext >&5
  6212. supported=no
  6213. fi
  6214. rm -rf conftest.dSYM
  6215. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6216. conftest$ac_exeext conftest.$ac_ext
  6217. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6218. $as_echo "$supported" >&6; }
  6219. CFLAGS="$xorg_testset_save_CFLAGS"
  6220. if test "$supported" = "yes" ; then
  6221. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  6222. found="yes"
  6223. fi
  6224. fi
  6225. xorg_testset_save_CFLAGS="$CFLAGS"
  6226. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6227. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6228. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6229. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6230. cat >conftest.$ac_ext <<_ACEOF
  6231. /* confdefs.h. */
  6232. _ACEOF
  6233. cat confdefs.h >>conftest.$ac_ext
  6234. cat >>conftest.$ac_ext <<_ACEOF
  6235. /* end confdefs.h. */
  6236. int i;
  6237. _ACEOF
  6238. rm -f conftest.$ac_objext
  6239. if { (ac_try="$ac_compile"
  6240. case "(($ac_try" in
  6241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6242. *) ac_try_echo=$ac_try;;
  6243. esac
  6244. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6245. $as_echo "$ac_try_echo") >&5
  6246. (eval "$ac_compile") 2>conftest.er1
  6247. ac_status=$?
  6248. grep -v '^ *+' conftest.er1 >conftest.err
  6249. rm -f conftest.er1
  6250. cat conftest.err >&5
  6251. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6252. (exit $ac_status); } && {
  6253. test -z "$ac_c_werror_flag" ||
  6254. test ! -s conftest.err
  6255. } && test -s conftest.$ac_objext; then
  6256. xorg_testset_unknown_warning_option=yes
  6257. else
  6258. $as_echo "$as_me: failed program was:" >&5
  6259. sed 's/^/| /' conftest.$ac_ext >&5
  6260. xorg_testset_unknown_warning_option=no
  6261. fi
  6262. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6263. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6264. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6265. CFLAGS="$xorg_testset_save_CFLAGS"
  6266. fi
  6267. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6268. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6269. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6270. fi
  6271. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6272. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6273. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6274. cat >conftest.$ac_ext <<_ACEOF
  6275. /* confdefs.h. */
  6276. _ACEOF
  6277. cat confdefs.h >>conftest.$ac_ext
  6278. cat >>conftest.$ac_ext <<_ACEOF
  6279. /* end confdefs.h. */
  6280. int i;
  6281. _ACEOF
  6282. rm -f conftest.$ac_objext
  6283. if { (ac_try="$ac_compile"
  6284. case "(($ac_try" in
  6285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6286. *) ac_try_echo=$ac_try;;
  6287. esac
  6288. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6289. $as_echo "$ac_try_echo") >&5
  6290. (eval "$ac_compile") 2>conftest.er1
  6291. ac_status=$?
  6292. grep -v '^ *+' conftest.er1 >conftest.err
  6293. rm -f conftest.er1
  6294. cat conftest.err >&5
  6295. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6296. (exit $ac_status); } && {
  6297. test -z "$ac_c_werror_flag" ||
  6298. test ! -s conftest.err
  6299. } && test -s conftest.$ac_objext; then
  6300. xorg_testset_unused_command_line_argument=yes
  6301. else
  6302. $as_echo "$as_me: failed program was:" >&5
  6303. sed 's/^/| /' conftest.$ac_ext >&5
  6304. xorg_testset_unused_command_line_argument=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6307. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6308. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6309. CFLAGS="$xorg_testset_save_CFLAGS"
  6310. fi
  6311. found="no"
  6312. if test $found = "no" ; then
  6313. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6314. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6315. fi
  6316. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6317. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6318. fi
  6319. CFLAGS="$CFLAGS -Wcast-qual"
  6320. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wcast-qual" >&5
  6321. $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
  6322. cat >conftest.$ac_ext <<_ACEOF
  6323. /* confdefs.h. */
  6324. _ACEOF
  6325. cat confdefs.h >>conftest.$ac_ext
  6326. cat >>conftest.$ac_ext <<_ACEOF
  6327. /* end confdefs.h. */
  6328. int i;
  6329. int
  6330. main ()
  6331. {
  6332. ;
  6333. return 0;
  6334. }
  6335. _ACEOF
  6336. rm -f conftest.$ac_objext conftest$ac_exeext
  6337. if { (ac_try="$ac_link"
  6338. case "(($ac_try" in
  6339. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6340. *) ac_try_echo=$ac_try;;
  6341. esac
  6342. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6343. $as_echo "$ac_try_echo") >&5
  6344. (eval "$ac_link") 2>conftest.er1
  6345. ac_status=$?
  6346. grep -v '^ *+' conftest.er1 >conftest.err
  6347. rm -f conftest.er1
  6348. cat conftest.err >&5
  6349. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6350. (exit $ac_status); } && {
  6351. test -z "$ac_c_werror_flag" ||
  6352. test ! -s conftest.err
  6353. } && test -s conftest$ac_exeext && {
  6354. test "$cross_compiling" = yes ||
  6355. $as_test_x conftest$ac_exeext
  6356. }; then
  6357. supported=yes
  6358. else
  6359. $as_echo "$as_me: failed program was:" >&5
  6360. sed 's/^/| /' conftest.$ac_ext >&5
  6361. supported=no
  6362. fi
  6363. rm -rf conftest.dSYM
  6364. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6365. conftest$ac_exeext conftest.$ac_ext
  6366. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6367. $as_echo "$supported" >&6; }
  6368. CFLAGS="$xorg_testset_save_CFLAGS"
  6369. if test "$supported" = "yes" ; then
  6370. BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
  6371. found="yes"
  6372. fi
  6373. fi
  6374. xorg_testset_save_CFLAGS="$CFLAGS"
  6375. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6376. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6377. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6378. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6379. cat >conftest.$ac_ext <<_ACEOF
  6380. /* confdefs.h. */
  6381. _ACEOF
  6382. cat confdefs.h >>conftest.$ac_ext
  6383. cat >>conftest.$ac_ext <<_ACEOF
  6384. /* end confdefs.h. */
  6385. int i;
  6386. _ACEOF
  6387. rm -f conftest.$ac_objext
  6388. if { (ac_try="$ac_compile"
  6389. case "(($ac_try" in
  6390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6391. *) ac_try_echo=$ac_try;;
  6392. esac
  6393. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6394. $as_echo "$ac_try_echo") >&5
  6395. (eval "$ac_compile") 2>conftest.er1
  6396. ac_status=$?
  6397. grep -v '^ *+' conftest.er1 >conftest.err
  6398. rm -f conftest.er1
  6399. cat conftest.err >&5
  6400. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6401. (exit $ac_status); } && {
  6402. test -z "$ac_c_werror_flag" ||
  6403. test ! -s conftest.err
  6404. } && test -s conftest.$ac_objext; then
  6405. xorg_testset_unknown_warning_option=yes
  6406. else
  6407. $as_echo "$as_me: failed program was:" >&5
  6408. sed 's/^/| /' conftest.$ac_ext >&5
  6409. xorg_testset_unknown_warning_option=no
  6410. fi
  6411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6412. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6413. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6414. CFLAGS="$xorg_testset_save_CFLAGS"
  6415. fi
  6416. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6417. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6418. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6419. fi
  6420. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6421. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6422. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6423. cat >conftest.$ac_ext <<_ACEOF
  6424. /* confdefs.h. */
  6425. _ACEOF
  6426. cat confdefs.h >>conftest.$ac_ext
  6427. cat >>conftest.$ac_ext <<_ACEOF
  6428. /* end confdefs.h. */
  6429. int i;
  6430. _ACEOF
  6431. rm -f conftest.$ac_objext
  6432. if { (ac_try="$ac_compile"
  6433. case "(($ac_try" in
  6434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6435. *) ac_try_echo=$ac_try;;
  6436. esac
  6437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6438. $as_echo "$ac_try_echo") >&5
  6439. (eval "$ac_compile") 2>conftest.er1
  6440. ac_status=$?
  6441. grep -v '^ *+' conftest.er1 >conftest.err
  6442. rm -f conftest.er1
  6443. cat conftest.err >&5
  6444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6445. (exit $ac_status); } && {
  6446. test -z "$ac_c_werror_flag" ||
  6447. test ! -s conftest.err
  6448. } && test -s conftest.$ac_objext; then
  6449. xorg_testset_unused_command_line_argument=yes
  6450. else
  6451. $as_echo "$as_me: failed program was:" >&5
  6452. sed 's/^/| /' conftest.$ac_ext >&5
  6453. xorg_testset_unused_command_line_argument=no
  6454. fi
  6455. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6456. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6457. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6458. CFLAGS="$xorg_testset_save_CFLAGS"
  6459. fi
  6460. found="no"
  6461. if test $found = "no" ; then
  6462. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6463. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6464. fi
  6465. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6466. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6467. fi
  6468. CFLAGS="$CFLAGS -Wmissing-noreturn"
  6469. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-noreturn" >&5
  6470. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  6471. cat >conftest.$ac_ext <<_ACEOF
  6472. /* confdefs.h. */
  6473. _ACEOF
  6474. cat confdefs.h >>conftest.$ac_ext
  6475. cat >>conftest.$ac_ext <<_ACEOF
  6476. /* end confdefs.h. */
  6477. int i;
  6478. int
  6479. main ()
  6480. {
  6481. ;
  6482. return 0;
  6483. }
  6484. _ACEOF
  6485. rm -f conftest.$ac_objext conftest$ac_exeext
  6486. if { (ac_try="$ac_link"
  6487. case "(($ac_try" in
  6488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6489. *) ac_try_echo=$ac_try;;
  6490. esac
  6491. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6492. $as_echo "$ac_try_echo") >&5
  6493. (eval "$ac_link") 2>conftest.er1
  6494. ac_status=$?
  6495. grep -v '^ *+' conftest.er1 >conftest.err
  6496. rm -f conftest.er1
  6497. cat conftest.err >&5
  6498. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6499. (exit $ac_status); } && {
  6500. test -z "$ac_c_werror_flag" ||
  6501. test ! -s conftest.err
  6502. } && test -s conftest$ac_exeext && {
  6503. test "$cross_compiling" = yes ||
  6504. $as_test_x conftest$ac_exeext
  6505. }; then
  6506. supported=yes
  6507. else
  6508. $as_echo "$as_me: failed program was:" >&5
  6509. sed 's/^/| /' conftest.$ac_ext >&5
  6510. supported=no
  6511. fi
  6512. rm -rf conftest.dSYM
  6513. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6514. conftest$ac_exeext conftest.$ac_ext
  6515. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6516. $as_echo "$supported" >&6; }
  6517. CFLAGS="$xorg_testset_save_CFLAGS"
  6518. if test "$supported" = "yes" ; then
  6519. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  6520. found="yes"
  6521. fi
  6522. fi
  6523. xorg_testset_save_CFLAGS="$CFLAGS"
  6524. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6525. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6526. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6527. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6528. cat >conftest.$ac_ext <<_ACEOF
  6529. /* confdefs.h. */
  6530. _ACEOF
  6531. cat confdefs.h >>conftest.$ac_ext
  6532. cat >>conftest.$ac_ext <<_ACEOF
  6533. /* end confdefs.h. */
  6534. int i;
  6535. _ACEOF
  6536. rm -f conftest.$ac_objext
  6537. if { (ac_try="$ac_compile"
  6538. case "(($ac_try" in
  6539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6540. *) ac_try_echo=$ac_try;;
  6541. esac
  6542. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6543. $as_echo "$ac_try_echo") >&5
  6544. (eval "$ac_compile") 2>conftest.er1
  6545. ac_status=$?
  6546. grep -v '^ *+' conftest.er1 >conftest.err
  6547. rm -f conftest.er1
  6548. cat conftest.err >&5
  6549. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6550. (exit $ac_status); } && {
  6551. test -z "$ac_c_werror_flag" ||
  6552. test ! -s conftest.err
  6553. } && test -s conftest.$ac_objext; then
  6554. xorg_testset_unknown_warning_option=yes
  6555. else
  6556. $as_echo "$as_me: failed program was:" >&5
  6557. sed 's/^/| /' conftest.$ac_ext >&5
  6558. xorg_testset_unknown_warning_option=no
  6559. fi
  6560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6561. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6562. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6563. CFLAGS="$xorg_testset_save_CFLAGS"
  6564. fi
  6565. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6566. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6568. fi
  6569. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6570. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6571. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6572. cat >conftest.$ac_ext <<_ACEOF
  6573. /* confdefs.h. */
  6574. _ACEOF
  6575. cat confdefs.h >>conftest.$ac_ext
  6576. cat >>conftest.$ac_ext <<_ACEOF
  6577. /* end confdefs.h. */
  6578. int i;
  6579. _ACEOF
  6580. rm -f conftest.$ac_objext
  6581. if { (ac_try="$ac_compile"
  6582. case "(($ac_try" in
  6583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6584. *) ac_try_echo=$ac_try;;
  6585. esac
  6586. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6587. $as_echo "$ac_try_echo") >&5
  6588. (eval "$ac_compile") 2>conftest.er1
  6589. ac_status=$?
  6590. grep -v '^ *+' conftest.er1 >conftest.err
  6591. rm -f conftest.er1
  6592. cat conftest.err >&5
  6593. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); } && {
  6595. test -z "$ac_c_werror_flag" ||
  6596. test ! -s conftest.err
  6597. } && test -s conftest.$ac_objext; then
  6598. xorg_testset_unused_command_line_argument=yes
  6599. else
  6600. $as_echo "$as_me: failed program was:" >&5
  6601. sed 's/^/| /' conftest.$ac_ext >&5
  6602. xorg_testset_unused_command_line_argument=no
  6603. fi
  6604. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6605. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6606. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6607. CFLAGS="$xorg_testset_save_CFLAGS"
  6608. fi
  6609. found="no"
  6610. if test $found = "no" ; then
  6611. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6612. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6613. fi
  6614. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6615. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6616. fi
  6617. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  6618. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-format-attribute" >&5
  6619. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  6620. cat >conftest.$ac_ext <<_ACEOF
  6621. /* confdefs.h. */
  6622. _ACEOF
  6623. cat confdefs.h >>conftest.$ac_ext
  6624. cat >>conftest.$ac_ext <<_ACEOF
  6625. /* end confdefs.h. */
  6626. int i;
  6627. int
  6628. main ()
  6629. {
  6630. ;
  6631. return 0;
  6632. }
  6633. _ACEOF
  6634. rm -f conftest.$ac_objext conftest$ac_exeext
  6635. if { (ac_try="$ac_link"
  6636. case "(($ac_try" in
  6637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6638. *) ac_try_echo=$ac_try;;
  6639. esac
  6640. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6641. $as_echo "$ac_try_echo") >&5
  6642. (eval "$ac_link") 2>conftest.er1
  6643. ac_status=$?
  6644. grep -v '^ *+' conftest.er1 >conftest.err
  6645. rm -f conftest.er1
  6646. cat conftest.err >&5
  6647. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6648. (exit $ac_status); } && {
  6649. test -z "$ac_c_werror_flag" ||
  6650. test ! -s conftest.err
  6651. } && test -s conftest$ac_exeext && {
  6652. test "$cross_compiling" = yes ||
  6653. $as_test_x conftest$ac_exeext
  6654. }; then
  6655. supported=yes
  6656. else
  6657. $as_echo "$as_me: failed program was:" >&5
  6658. sed 's/^/| /' conftest.$ac_ext >&5
  6659. supported=no
  6660. fi
  6661. rm -rf conftest.dSYM
  6662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6663. conftest$ac_exeext conftest.$ac_ext
  6664. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6665. $as_echo "$supported" >&6; }
  6666. CFLAGS="$xorg_testset_save_CFLAGS"
  6667. if test "$supported" = "yes" ; then
  6668. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  6669. found="yes"
  6670. fi
  6671. fi
  6672. xorg_testset_save_CFLAGS="$CFLAGS"
  6673. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6674. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6675. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6676. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6677. cat >conftest.$ac_ext <<_ACEOF
  6678. /* confdefs.h. */
  6679. _ACEOF
  6680. cat confdefs.h >>conftest.$ac_ext
  6681. cat >>conftest.$ac_ext <<_ACEOF
  6682. /* end confdefs.h. */
  6683. int i;
  6684. _ACEOF
  6685. rm -f conftest.$ac_objext
  6686. if { (ac_try="$ac_compile"
  6687. case "(($ac_try" in
  6688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6689. *) ac_try_echo=$ac_try;;
  6690. esac
  6691. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6692. $as_echo "$ac_try_echo") >&5
  6693. (eval "$ac_compile") 2>conftest.er1
  6694. ac_status=$?
  6695. grep -v '^ *+' conftest.er1 >conftest.err
  6696. rm -f conftest.er1
  6697. cat conftest.err >&5
  6698. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); } && {
  6700. test -z "$ac_c_werror_flag" ||
  6701. test ! -s conftest.err
  6702. } && test -s conftest.$ac_objext; then
  6703. xorg_testset_unknown_warning_option=yes
  6704. else
  6705. $as_echo "$as_me: failed program was:" >&5
  6706. sed 's/^/| /' conftest.$ac_ext >&5
  6707. xorg_testset_unknown_warning_option=no
  6708. fi
  6709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6710. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6711. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6712. CFLAGS="$xorg_testset_save_CFLAGS"
  6713. fi
  6714. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6715. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6717. fi
  6718. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6719. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6720. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6721. cat >conftest.$ac_ext <<_ACEOF
  6722. /* confdefs.h. */
  6723. _ACEOF
  6724. cat confdefs.h >>conftest.$ac_ext
  6725. cat >>conftest.$ac_ext <<_ACEOF
  6726. /* end confdefs.h. */
  6727. int i;
  6728. _ACEOF
  6729. rm -f conftest.$ac_objext
  6730. if { (ac_try="$ac_compile"
  6731. case "(($ac_try" in
  6732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6733. *) ac_try_echo=$ac_try;;
  6734. esac
  6735. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6736. $as_echo "$ac_try_echo") >&5
  6737. (eval "$ac_compile") 2>conftest.er1
  6738. ac_status=$?
  6739. grep -v '^ *+' conftest.er1 >conftest.err
  6740. rm -f conftest.er1
  6741. cat conftest.err >&5
  6742. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6743. (exit $ac_status); } && {
  6744. test -z "$ac_c_werror_flag" ||
  6745. test ! -s conftest.err
  6746. } && test -s conftest.$ac_objext; then
  6747. xorg_testset_unused_command_line_argument=yes
  6748. else
  6749. $as_echo "$as_me: failed program was:" >&5
  6750. sed 's/^/| /' conftest.$ac_ext >&5
  6751. xorg_testset_unused_command_line_argument=no
  6752. fi
  6753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6754. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6755. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6756. CFLAGS="$xorg_testset_save_CFLAGS"
  6757. fi
  6758. found="no"
  6759. if test $found = "no" ; then
  6760. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6761. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6762. fi
  6763. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6764. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6765. fi
  6766. CFLAGS="$CFLAGS -Wredundant-decls"
  6767. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wredundant-decls" >&5
  6768. $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
  6769. cat >conftest.$ac_ext <<_ACEOF
  6770. /* confdefs.h. */
  6771. _ACEOF
  6772. cat confdefs.h >>conftest.$ac_ext
  6773. cat >>conftest.$ac_ext <<_ACEOF
  6774. /* end confdefs.h. */
  6775. int i;
  6776. int
  6777. main ()
  6778. {
  6779. ;
  6780. return 0;
  6781. }
  6782. _ACEOF
  6783. rm -f conftest.$ac_objext conftest$ac_exeext
  6784. if { (ac_try="$ac_link"
  6785. case "(($ac_try" in
  6786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6787. *) ac_try_echo=$ac_try;;
  6788. esac
  6789. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6790. $as_echo "$ac_try_echo") >&5
  6791. (eval "$ac_link") 2>conftest.er1
  6792. ac_status=$?
  6793. grep -v '^ *+' conftest.er1 >conftest.err
  6794. rm -f conftest.er1
  6795. cat conftest.err >&5
  6796. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6797. (exit $ac_status); } && {
  6798. test -z "$ac_c_werror_flag" ||
  6799. test ! -s conftest.err
  6800. } && test -s conftest$ac_exeext && {
  6801. test "$cross_compiling" = yes ||
  6802. $as_test_x conftest$ac_exeext
  6803. }; then
  6804. supported=yes
  6805. else
  6806. $as_echo "$as_me: failed program was:" >&5
  6807. sed 's/^/| /' conftest.$ac_ext >&5
  6808. supported=no
  6809. fi
  6810. rm -rf conftest.dSYM
  6811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6812. conftest$ac_exeext conftest.$ac_ext
  6813. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6814. $as_echo "$supported" >&6; }
  6815. CFLAGS="$xorg_testset_save_CFLAGS"
  6816. if test "$supported" = "yes" ; then
  6817. BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
  6818. found="yes"
  6819. fi
  6820. fi
  6821. # These are currently disabled because they are noisy. They will be enabled
  6822. # in the future once the codebase is sufficiently modernized to silence
  6823. # them. For now, I don't want them to drown out the other warnings.
  6824. # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
  6825. # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
  6826. # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
  6827. # Turn some warnings into errors, so we don't accidently get successful builds
  6828. # when there are problems that should be fixed.
  6829. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  6830. xorg_testset_save_CFLAGS="$CFLAGS"
  6831. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  6832. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6833. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  6834. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6835. cat >conftest.$ac_ext <<_ACEOF
  6836. /* confdefs.h. */
  6837. _ACEOF
  6838. cat confdefs.h >>conftest.$ac_ext
  6839. cat >>conftest.$ac_ext <<_ACEOF
  6840. /* end confdefs.h. */
  6841. int i;
  6842. _ACEOF
  6843. rm -f conftest.$ac_objext
  6844. if { (ac_try="$ac_compile"
  6845. case "(($ac_try" in
  6846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6847. *) ac_try_echo=$ac_try;;
  6848. esac
  6849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6850. $as_echo "$ac_try_echo") >&5
  6851. (eval "$ac_compile") 2>conftest.er1
  6852. ac_status=$?
  6853. grep -v '^ *+' conftest.er1 >conftest.err
  6854. rm -f conftest.er1
  6855. cat conftest.err >&5
  6856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } && {
  6858. test -z "$ac_c_werror_flag" ||
  6859. test ! -s conftest.err
  6860. } && test -s conftest.$ac_objext; then
  6861. xorg_testset_unknown_warning_option=yes
  6862. else
  6863. $as_echo "$as_me: failed program was:" >&5
  6864. sed 's/^/| /' conftest.$ac_ext >&5
  6865. xorg_testset_unknown_warning_option=no
  6866. fi
  6867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6868. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  6869. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  6870. CFLAGS="$xorg_testset_save_CFLAGS"
  6871. fi
  6872. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  6873. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6874. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6875. fi
  6876. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6877. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6878. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6879. cat >conftest.$ac_ext <<_ACEOF
  6880. /* confdefs.h. */
  6881. _ACEOF
  6882. cat confdefs.h >>conftest.$ac_ext
  6883. cat >>conftest.$ac_ext <<_ACEOF
  6884. /* end confdefs.h. */
  6885. int i;
  6886. _ACEOF
  6887. rm -f conftest.$ac_objext
  6888. if { (ac_try="$ac_compile"
  6889. case "(($ac_try" in
  6890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6891. *) ac_try_echo=$ac_try;;
  6892. esac
  6893. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6894. $as_echo "$ac_try_echo") >&5
  6895. (eval "$ac_compile") 2>conftest.er1
  6896. ac_status=$?
  6897. grep -v '^ *+' conftest.er1 >conftest.err
  6898. rm -f conftest.er1
  6899. cat conftest.err >&5
  6900. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6901. (exit $ac_status); } && {
  6902. test -z "$ac_c_werror_flag" ||
  6903. test ! -s conftest.err
  6904. } && test -s conftest.$ac_objext; then
  6905. xorg_testset_unused_command_line_argument=yes
  6906. else
  6907. $as_echo "$as_me: failed program was:" >&5
  6908. sed 's/^/| /' conftest.$ac_ext >&5
  6909. xorg_testset_unused_command_line_argument=no
  6910. fi
  6911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6912. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  6913. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  6914. CFLAGS="$xorg_testset_save_CFLAGS"
  6915. fi
  6916. found="no"
  6917. if test $found = "no" ; then
  6918. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6919. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6920. fi
  6921. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6922. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6923. fi
  6924. CFLAGS="$CFLAGS -Werror=implicit"
  6925. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=implicit" >&5
  6926. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  6927. cat >conftest.$ac_ext <<_ACEOF
  6928. /* confdefs.h. */
  6929. _ACEOF
  6930. cat confdefs.h >>conftest.$ac_ext
  6931. cat >>conftest.$ac_ext <<_ACEOF
  6932. /* end confdefs.h. */
  6933. int i;
  6934. int
  6935. main ()
  6936. {
  6937. ;
  6938. return 0;
  6939. }
  6940. _ACEOF
  6941. rm -f conftest.$ac_objext conftest$ac_exeext
  6942. if { (ac_try="$ac_link"
  6943. case "(($ac_try" in
  6944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6945. *) ac_try_echo=$ac_try;;
  6946. esac
  6947. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6948. $as_echo "$ac_try_echo") >&5
  6949. (eval "$ac_link") 2>conftest.er1
  6950. ac_status=$?
  6951. grep -v '^ *+' conftest.er1 >conftest.err
  6952. rm -f conftest.er1
  6953. cat conftest.err >&5
  6954. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6955. (exit $ac_status); } && {
  6956. test -z "$ac_c_werror_flag" ||
  6957. test ! -s conftest.err
  6958. } && test -s conftest$ac_exeext && {
  6959. test "$cross_compiling" = yes ||
  6960. $as_test_x conftest$ac_exeext
  6961. }; then
  6962. supported=yes
  6963. else
  6964. $as_echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966. supported=no
  6967. fi
  6968. rm -rf conftest.dSYM
  6969. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6970. conftest$ac_exeext conftest.$ac_ext
  6971. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  6972. $as_echo "$supported" >&6; }
  6973. CFLAGS="$xorg_testset_save_CFLAGS"
  6974. if test "$supported" = "yes" ; then
  6975. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  6976. found="yes"
  6977. fi
  6978. fi
  6979. if test $found = "no" ; then
  6980. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  6981. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6982. fi
  6983. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  6984. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6985. fi
  6986. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  6987. { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  6988. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  6989. cat >conftest.$ac_ext <<_ACEOF
  6990. /* confdefs.h. */
  6991. _ACEOF
  6992. cat confdefs.h >>conftest.$ac_ext
  6993. cat >>conftest.$ac_ext <<_ACEOF
  6994. /* end confdefs.h. */
  6995. int i;
  6996. int
  6997. main ()
  6998. {
  6999. ;
  7000. return 0;
  7001. }
  7002. _ACEOF
  7003. rm -f conftest.$ac_objext conftest$ac_exeext
  7004. if { (ac_try="$ac_link"
  7005. case "(($ac_try" in
  7006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7007. *) ac_try_echo=$ac_try;;
  7008. esac
  7009. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7010. $as_echo "$ac_try_echo") >&5
  7011. (eval "$ac_link") 2>conftest.er1
  7012. ac_status=$?
  7013. grep -v '^ *+' conftest.er1 >conftest.err
  7014. rm -f conftest.er1
  7015. cat conftest.err >&5
  7016. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7017. (exit $ac_status); } && {
  7018. test -z "$ac_c_werror_flag" ||
  7019. test ! -s conftest.err
  7020. } && test -s conftest$ac_exeext && {
  7021. test "$cross_compiling" = yes ||
  7022. $as_test_x conftest$ac_exeext
  7023. }; then
  7024. supported=yes
  7025. else
  7026. $as_echo "$as_me: failed program was:" >&5
  7027. sed 's/^/| /' conftest.$ac_ext >&5
  7028. supported=no
  7029. fi
  7030. rm -rf conftest.dSYM
  7031. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7032. conftest$ac_exeext conftest.$ac_ext
  7033. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7034. $as_echo "$supported" >&6; }
  7035. CFLAGS="$xorg_testset_save_CFLAGS"
  7036. if test "$supported" = "yes" ; then
  7037. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  7038. found="yes"
  7039. fi
  7040. fi
  7041. xorg_testset_save_CFLAGS="$CFLAGS"
  7042. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7043. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7044. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7045. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7046. cat >conftest.$ac_ext <<_ACEOF
  7047. /* confdefs.h. */
  7048. _ACEOF
  7049. cat confdefs.h >>conftest.$ac_ext
  7050. cat >>conftest.$ac_ext <<_ACEOF
  7051. /* end confdefs.h. */
  7052. int i;
  7053. _ACEOF
  7054. rm -f conftest.$ac_objext
  7055. if { (ac_try="$ac_compile"
  7056. case "(($ac_try" in
  7057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7058. *) ac_try_echo=$ac_try;;
  7059. esac
  7060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7061. $as_echo "$ac_try_echo") >&5
  7062. (eval "$ac_compile") 2>conftest.er1
  7063. ac_status=$?
  7064. grep -v '^ *+' conftest.er1 >conftest.err
  7065. rm -f conftest.er1
  7066. cat conftest.err >&5
  7067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7068. (exit $ac_status); } && {
  7069. test -z "$ac_c_werror_flag" ||
  7070. test ! -s conftest.err
  7071. } && test -s conftest.$ac_objext; then
  7072. xorg_testset_unknown_warning_option=yes
  7073. else
  7074. $as_echo "$as_me: failed program was:" >&5
  7075. sed 's/^/| /' conftest.$ac_ext >&5
  7076. xorg_testset_unknown_warning_option=no
  7077. fi
  7078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7079. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7080. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7081. CFLAGS="$xorg_testset_save_CFLAGS"
  7082. fi
  7083. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7084. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7085. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7086. fi
  7087. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7088. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7089. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7090. cat >conftest.$ac_ext <<_ACEOF
  7091. /* confdefs.h. */
  7092. _ACEOF
  7093. cat confdefs.h >>conftest.$ac_ext
  7094. cat >>conftest.$ac_ext <<_ACEOF
  7095. /* end confdefs.h. */
  7096. int i;
  7097. _ACEOF
  7098. rm -f conftest.$ac_objext
  7099. if { (ac_try="$ac_compile"
  7100. case "(($ac_try" in
  7101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7102. *) ac_try_echo=$ac_try;;
  7103. esac
  7104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7105. $as_echo "$ac_try_echo") >&5
  7106. (eval "$ac_compile") 2>conftest.er1
  7107. ac_status=$?
  7108. grep -v '^ *+' conftest.er1 >conftest.err
  7109. rm -f conftest.er1
  7110. cat conftest.err >&5
  7111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7112. (exit $ac_status); } && {
  7113. test -z "$ac_c_werror_flag" ||
  7114. test ! -s conftest.err
  7115. } && test -s conftest.$ac_objext; then
  7116. xorg_testset_unused_command_line_argument=yes
  7117. else
  7118. $as_echo "$as_me: failed program was:" >&5
  7119. sed 's/^/| /' conftest.$ac_ext >&5
  7120. xorg_testset_unused_command_line_argument=no
  7121. fi
  7122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7123. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7124. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7125. CFLAGS="$xorg_testset_save_CFLAGS"
  7126. fi
  7127. found="no"
  7128. if test $found = "no" ; then
  7129. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7130. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7131. fi
  7132. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7133. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7134. fi
  7135. CFLAGS="$CFLAGS -Werror=nonnull"
  7136. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=nonnull" >&5
  7137. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  7138. cat >conftest.$ac_ext <<_ACEOF
  7139. /* confdefs.h. */
  7140. _ACEOF
  7141. cat confdefs.h >>conftest.$ac_ext
  7142. cat >>conftest.$ac_ext <<_ACEOF
  7143. /* end confdefs.h. */
  7144. int i;
  7145. int
  7146. main ()
  7147. {
  7148. ;
  7149. return 0;
  7150. }
  7151. _ACEOF
  7152. rm -f conftest.$ac_objext conftest$ac_exeext
  7153. if { (ac_try="$ac_link"
  7154. case "(($ac_try" in
  7155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7156. *) ac_try_echo=$ac_try;;
  7157. esac
  7158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7159. $as_echo "$ac_try_echo") >&5
  7160. (eval "$ac_link") 2>conftest.er1
  7161. ac_status=$?
  7162. grep -v '^ *+' conftest.er1 >conftest.err
  7163. rm -f conftest.er1
  7164. cat conftest.err >&5
  7165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7166. (exit $ac_status); } && {
  7167. test -z "$ac_c_werror_flag" ||
  7168. test ! -s conftest.err
  7169. } && test -s conftest$ac_exeext && {
  7170. test "$cross_compiling" = yes ||
  7171. $as_test_x conftest$ac_exeext
  7172. }; then
  7173. supported=yes
  7174. else
  7175. $as_echo "$as_me: failed program was:" >&5
  7176. sed 's/^/| /' conftest.$ac_ext >&5
  7177. supported=no
  7178. fi
  7179. rm -rf conftest.dSYM
  7180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7181. conftest$ac_exeext conftest.$ac_ext
  7182. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7183. $as_echo "$supported" >&6; }
  7184. CFLAGS="$xorg_testset_save_CFLAGS"
  7185. if test "$supported" = "yes" ; then
  7186. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  7187. found="yes"
  7188. fi
  7189. fi
  7190. xorg_testset_save_CFLAGS="$CFLAGS"
  7191. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7192. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7193. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7194. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7195. cat >conftest.$ac_ext <<_ACEOF
  7196. /* confdefs.h. */
  7197. _ACEOF
  7198. cat confdefs.h >>conftest.$ac_ext
  7199. cat >>conftest.$ac_ext <<_ACEOF
  7200. /* end confdefs.h. */
  7201. int i;
  7202. _ACEOF
  7203. rm -f conftest.$ac_objext
  7204. if { (ac_try="$ac_compile"
  7205. case "(($ac_try" in
  7206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7207. *) ac_try_echo=$ac_try;;
  7208. esac
  7209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7210. $as_echo "$ac_try_echo") >&5
  7211. (eval "$ac_compile") 2>conftest.er1
  7212. ac_status=$?
  7213. grep -v '^ *+' conftest.er1 >conftest.err
  7214. rm -f conftest.er1
  7215. cat conftest.err >&5
  7216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7217. (exit $ac_status); } && {
  7218. test -z "$ac_c_werror_flag" ||
  7219. test ! -s conftest.err
  7220. } && test -s conftest.$ac_objext; then
  7221. xorg_testset_unknown_warning_option=yes
  7222. else
  7223. $as_echo "$as_me: failed program was:" >&5
  7224. sed 's/^/| /' conftest.$ac_ext >&5
  7225. xorg_testset_unknown_warning_option=no
  7226. fi
  7227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7228. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7229. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7230. CFLAGS="$xorg_testset_save_CFLAGS"
  7231. fi
  7232. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7233. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7234. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7235. fi
  7236. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7237. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7238. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7239. cat >conftest.$ac_ext <<_ACEOF
  7240. /* confdefs.h. */
  7241. _ACEOF
  7242. cat confdefs.h >>conftest.$ac_ext
  7243. cat >>conftest.$ac_ext <<_ACEOF
  7244. /* end confdefs.h. */
  7245. int i;
  7246. _ACEOF
  7247. rm -f conftest.$ac_objext
  7248. if { (ac_try="$ac_compile"
  7249. case "(($ac_try" in
  7250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7251. *) ac_try_echo=$ac_try;;
  7252. esac
  7253. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7254. $as_echo "$ac_try_echo") >&5
  7255. (eval "$ac_compile") 2>conftest.er1
  7256. ac_status=$?
  7257. grep -v '^ *+' conftest.er1 >conftest.err
  7258. rm -f conftest.er1
  7259. cat conftest.err >&5
  7260. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7261. (exit $ac_status); } && {
  7262. test -z "$ac_c_werror_flag" ||
  7263. test ! -s conftest.err
  7264. } && test -s conftest.$ac_objext; then
  7265. xorg_testset_unused_command_line_argument=yes
  7266. else
  7267. $as_echo "$as_me: failed program was:" >&5
  7268. sed 's/^/| /' conftest.$ac_ext >&5
  7269. xorg_testset_unused_command_line_argument=no
  7270. fi
  7271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7272. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7273. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7274. CFLAGS="$xorg_testset_save_CFLAGS"
  7275. fi
  7276. found="no"
  7277. if test $found = "no" ; then
  7278. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7279. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7280. fi
  7281. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7282. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7283. fi
  7284. CFLAGS="$CFLAGS -Werror=init-self"
  7285. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=init-self" >&5
  7286. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  7287. cat >conftest.$ac_ext <<_ACEOF
  7288. /* confdefs.h. */
  7289. _ACEOF
  7290. cat confdefs.h >>conftest.$ac_ext
  7291. cat >>conftest.$ac_ext <<_ACEOF
  7292. /* end confdefs.h. */
  7293. int i;
  7294. int
  7295. main ()
  7296. {
  7297. ;
  7298. return 0;
  7299. }
  7300. _ACEOF
  7301. rm -f conftest.$ac_objext conftest$ac_exeext
  7302. if { (ac_try="$ac_link"
  7303. case "(($ac_try" in
  7304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7305. *) ac_try_echo=$ac_try;;
  7306. esac
  7307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7308. $as_echo "$ac_try_echo") >&5
  7309. (eval "$ac_link") 2>conftest.er1
  7310. ac_status=$?
  7311. grep -v '^ *+' conftest.er1 >conftest.err
  7312. rm -f conftest.er1
  7313. cat conftest.err >&5
  7314. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315. (exit $ac_status); } && {
  7316. test -z "$ac_c_werror_flag" ||
  7317. test ! -s conftest.err
  7318. } && test -s conftest$ac_exeext && {
  7319. test "$cross_compiling" = yes ||
  7320. $as_test_x conftest$ac_exeext
  7321. }; then
  7322. supported=yes
  7323. else
  7324. $as_echo "$as_me: failed program was:" >&5
  7325. sed 's/^/| /' conftest.$ac_ext >&5
  7326. supported=no
  7327. fi
  7328. rm -rf conftest.dSYM
  7329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7330. conftest$ac_exeext conftest.$ac_ext
  7331. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7332. $as_echo "$supported" >&6; }
  7333. CFLAGS="$xorg_testset_save_CFLAGS"
  7334. if test "$supported" = "yes" ; then
  7335. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  7336. found="yes"
  7337. fi
  7338. fi
  7339. xorg_testset_save_CFLAGS="$CFLAGS"
  7340. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7341. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7342. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7343. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7344. cat >conftest.$ac_ext <<_ACEOF
  7345. /* confdefs.h. */
  7346. _ACEOF
  7347. cat confdefs.h >>conftest.$ac_ext
  7348. cat >>conftest.$ac_ext <<_ACEOF
  7349. /* end confdefs.h. */
  7350. int i;
  7351. _ACEOF
  7352. rm -f conftest.$ac_objext
  7353. if { (ac_try="$ac_compile"
  7354. case "(($ac_try" in
  7355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7356. *) ac_try_echo=$ac_try;;
  7357. esac
  7358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7359. $as_echo "$ac_try_echo") >&5
  7360. (eval "$ac_compile") 2>conftest.er1
  7361. ac_status=$?
  7362. grep -v '^ *+' conftest.er1 >conftest.err
  7363. rm -f conftest.er1
  7364. cat conftest.err >&5
  7365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7366. (exit $ac_status); } && {
  7367. test -z "$ac_c_werror_flag" ||
  7368. test ! -s conftest.err
  7369. } && test -s conftest.$ac_objext; then
  7370. xorg_testset_unknown_warning_option=yes
  7371. else
  7372. $as_echo "$as_me: failed program was:" >&5
  7373. sed 's/^/| /' conftest.$ac_ext >&5
  7374. xorg_testset_unknown_warning_option=no
  7375. fi
  7376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7377. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7378. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7379. CFLAGS="$xorg_testset_save_CFLAGS"
  7380. fi
  7381. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7382. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7384. fi
  7385. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7386. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7387. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7388. cat >conftest.$ac_ext <<_ACEOF
  7389. /* confdefs.h. */
  7390. _ACEOF
  7391. cat confdefs.h >>conftest.$ac_ext
  7392. cat >>conftest.$ac_ext <<_ACEOF
  7393. /* end confdefs.h. */
  7394. int i;
  7395. _ACEOF
  7396. rm -f conftest.$ac_objext
  7397. if { (ac_try="$ac_compile"
  7398. case "(($ac_try" in
  7399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7400. *) ac_try_echo=$ac_try;;
  7401. esac
  7402. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7403. $as_echo "$ac_try_echo") >&5
  7404. (eval "$ac_compile") 2>conftest.er1
  7405. ac_status=$?
  7406. grep -v '^ *+' conftest.er1 >conftest.err
  7407. rm -f conftest.er1
  7408. cat conftest.err >&5
  7409. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); } && {
  7411. test -z "$ac_c_werror_flag" ||
  7412. test ! -s conftest.err
  7413. } && test -s conftest.$ac_objext; then
  7414. xorg_testset_unused_command_line_argument=yes
  7415. else
  7416. $as_echo "$as_me: failed program was:" >&5
  7417. sed 's/^/| /' conftest.$ac_ext >&5
  7418. xorg_testset_unused_command_line_argument=no
  7419. fi
  7420. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7421. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7422. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7423. CFLAGS="$xorg_testset_save_CFLAGS"
  7424. fi
  7425. found="no"
  7426. if test $found = "no" ; then
  7427. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7428. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7429. fi
  7430. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7431. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7432. fi
  7433. CFLAGS="$CFLAGS -Werror=main"
  7434. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=main" >&5
  7435. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  7436. cat >conftest.$ac_ext <<_ACEOF
  7437. /* confdefs.h. */
  7438. _ACEOF
  7439. cat confdefs.h >>conftest.$ac_ext
  7440. cat >>conftest.$ac_ext <<_ACEOF
  7441. /* end confdefs.h. */
  7442. int i;
  7443. int
  7444. main ()
  7445. {
  7446. ;
  7447. return 0;
  7448. }
  7449. _ACEOF
  7450. rm -f conftest.$ac_objext conftest$ac_exeext
  7451. if { (ac_try="$ac_link"
  7452. case "(($ac_try" in
  7453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7454. *) ac_try_echo=$ac_try;;
  7455. esac
  7456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7457. $as_echo "$ac_try_echo") >&5
  7458. (eval "$ac_link") 2>conftest.er1
  7459. ac_status=$?
  7460. grep -v '^ *+' conftest.er1 >conftest.err
  7461. rm -f conftest.er1
  7462. cat conftest.err >&5
  7463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); } && {
  7465. test -z "$ac_c_werror_flag" ||
  7466. test ! -s conftest.err
  7467. } && test -s conftest$ac_exeext && {
  7468. test "$cross_compiling" = yes ||
  7469. $as_test_x conftest$ac_exeext
  7470. }; then
  7471. supported=yes
  7472. else
  7473. $as_echo "$as_me: failed program was:" >&5
  7474. sed 's/^/| /' conftest.$ac_ext >&5
  7475. supported=no
  7476. fi
  7477. rm -rf conftest.dSYM
  7478. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7479. conftest$ac_exeext conftest.$ac_ext
  7480. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7481. $as_echo "$supported" >&6; }
  7482. CFLAGS="$xorg_testset_save_CFLAGS"
  7483. if test "$supported" = "yes" ; then
  7484. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  7485. found="yes"
  7486. fi
  7487. fi
  7488. xorg_testset_save_CFLAGS="$CFLAGS"
  7489. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7490. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7491. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7492. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7493. cat >conftest.$ac_ext <<_ACEOF
  7494. /* confdefs.h. */
  7495. _ACEOF
  7496. cat confdefs.h >>conftest.$ac_ext
  7497. cat >>conftest.$ac_ext <<_ACEOF
  7498. /* end confdefs.h. */
  7499. int i;
  7500. _ACEOF
  7501. rm -f conftest.$ac_objext
  7502. if { (ac_try="$ac_compile"
  7503. case "(($ac_try" in
  7504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7505. *) ac_try_echo=$ac_try;;
  7506. esac
  7507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7508. $as_echo "$ac_try_echo") >&5
  7509. (eval "$ac_compile") 2>conftest.er1
  7510. ac_status=$?
  7511. grep -v '^ *+' conftest.er1 >conftest.err
  7512. rm -f conftest.er1
  7513. cat conftest.err >&5
  7514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7515. (exit $ac_status); } && {
  7516. test -z "$ac_c_werror_flag" ||
  7517. test ! -s conftest.err
  7518. } && test -s conftest.$ac_objext; then
  7519. xorg_testset_unknown_warning_option=yes
  7520. else
  7521. $as_echo "$as_me: failed program was:" >&5
  7522. sed 's/^/| /' conftest.$ac_ext >&5
  7523. xorg_testset_unknown_warning_option=no
  7524. fi
  7525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7526. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7527. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7528. CFLAGS="$xorg_testset_save_CFLAGS"
  7529. fi
  7530. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7531. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7532. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7533. fi
  7534. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7535. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7536. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7537. cat >conftest.$ac_ext <<_ACEOF
  7538. /* confdefs.h. */
  7539. _ACEOF
  7540. cat confdefs.h >>conftest.$ac_ext
  7541. cat >>conftest.$ac_ext <<_ACEOF
  7542. /* end confdefs.h. */
  7543. int i;
  7544. _ACEOF
  7545. rm -f conftest.$ac_objext
  7546. if { (ac_try="$ac_compile"
  7547. case "(($ac_try" in
  7548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7549. *) ac_try_echo=$ac_try;;
  7550. esac
  7551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7552. $as_echo "$ac_try_echo") >&5
  7553. (eval "$ac_compile") 2>conftest.er1
  7554. ac_status=$?
  7555. grep -v '^ *+' conftest.er1 >conftest.err
  7556. rm -f conftest.er1
  7557. cat conftest.err >&5
  7558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. (exit $ac_status); } && {
  7560. test -z "$ac_c_werror_flag" ||
  7561. test ! -s conftest.err
  7562. } && test -s conftest.$ac_objext; then
  7563. xorg_testset_unused_command_line_argument=yes
  7564. else
  7565. $as_echo "$as_me: failed program was:" >&5
  7566. sed 's/^/| /' conftest.$ac_ext >&5
  7567. xorg_testset_unused_command_line_argument=no
  7568. fi
  7569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7570. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7571. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7572. CFLAGS="$xorg_testset_save_CFLAGS"
  7573. fi
  7574. found="no"
  7575. if test $found = "no" ; then
  7576. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7577. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7578. fi
  7579. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7580. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7581. fi
  7582. CFLAGS="$CFLAGS -Werror=missing-braces"
  7583. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=missing-braces" >&5
  7584. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. int i;
  7592. int
  7593. main ()
  7594. {
  7595. ;
  7596. return 0;
  7597. }
  7598. _ACEOF
  7599. rm -f conftest.$ac_objext conftest$ac_exeext
  7600. if { (ac_try="$ac_link"
  7601. case "(($ac_try" in
  7602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7603. *) ac_try_echo=$ac_try;;
  7604. esac
  7605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7606. $as_echo "$ac_try_echo") >&5
  7607. (eval "$ac_link") 2>conftest.er1
  7608. ac_status=$?
  7609. grep -v '^ *+' conftest.er1 >conftest.err
  7610. rm -f conftest.er1
  7611. cat conftest.err >&5
  7612. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. (exit $ac_status); } && {
  7614. test -z "$ac_c_werror_flag" ||
  7615. test ! -s conftest.err
  7616. } && test -s conftest$ac_exeext && {
  7617. test "$cross_compiling" = yes ||
  7618. $as_test_x conftest$ac_exeext
  7619. }; then
  7620. supported=yes
  7621. else
  7622. $as_echo "$as_me: failed program was:" >&5
  7623. sed 's/^/| /' conftest.$ac_ext >&5
  7624. supported=no
  7625. fi
  7626. rm -rf conftest.dSYM
  7627. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7628. conftest$ac_exeext conftest.$ac_ext
  7629. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7630. $as_echo "$supported" >&6; }
  7631. CFLAGS="$xorg_testset_save_CFLAGS"
  7632. if test "$supported" = "yes" ; then
  7633. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  7634. found="yes"
  7635. fi
  7636. fi
  7637. xorg_testset_save_CFLAGS="$CFLAGS"
  7638. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7639. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7640. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7641. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7642. cat >conftest.$ac_ext <<_ACEOF
  7643. /* confdefs.h. */
  7644. _ACEOF
  7645. cat confdefs.h >>conftest.$ac_ext
  7646. cat >>conftest.$ac_ext <<_ACEOF
  7647. /* end confdefs.h. */
  7648. int i;
  7649. _ACEOF
  7650. rm -f conftest.$ac_objext
  7651. if { (ac_try="$ac_compile"
  7652. case "(($ac_try" in
  7653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7654. *) ac_try_echo=$ac_try;;
  7655. esac
  7656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7657. $as_echo "$ac_try_echo") >&5
  7658. (eval "$ac_compile") 2>conftest.er1
  7659. ac_status=$?
  7660. grep -v '^ *+' conftest.er1 >conftest.err
  7661. rm -f conftest.er1
  7662. cat conftest.err >&5
  7663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7664. (exit $ac_status); } && {
  7665. test -z "$ac_c_werror_flag" ||
  7666. test ! -s conftest.err
  7667. } && test -s conftest.$ac_objext; then
  7668. xorg_testset_unknown_warning_option=yes
  7669. else
  7670. $as_echo "$as_me: failed program was:" >&5
  7671. sed 's/^/| /' conftest.$ac_ext >&5
  7672. xorg_testset_unknown_warning_option=no
  7673. fi
  7674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7675. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7676. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7677. CFLAGS="$xorg_testset_save_CFLAGS"
  7678. fi
  7679. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7680. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7681. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7682. fi
  7683. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7684. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7685. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7686. cat >conftest.$ac_ext <<_ACEOF
  7687. /* confdefs.h. */
  7688. _ACEOF
  7689. cat confdefs.h >>conftest.$ac_ext
  7690. cat >>conftest.$ac_ext <<_ACEOF
  7691. /* end confdefs.h. */
  7692. int i;
  7693. _ACEOF
  7694. rm -f conftest.$ac_objext
  7695. if { (ac_try="$ac_compile"
  7696. case "(($ac_try" in
  7697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7698. *) ac_try_echo=$ac_try;;
  7699. esac
  7700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7701. $as_echo "$ac_try_echo") >&5
  7702. (eval "$ac_compile") 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } && {
  7709. test -z "$ac_c_werror_flag" ||
  7710. test ! -s conftest.err
  7711. } && test -s conftest.$ac_objext; then
  7712. xorg_testset_unused_command_line_argument=yes
  7713. else
  7714. $as_echo "$as_me: failed program was:" >&5
  7715. sed 's/^/| /' conftest.$ac_ext >&5
  7716. xorg_testset_unused_command_line_argument=no
  7717. fi
  7718. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7719. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7720. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7721. CFLAGS="$xorg_testset_save_CFLAGS"
  7722. fi
  7723. found="no"
  7724. if test $found = "no" ; then
  7725. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7726. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7727. fi
  7728. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7729. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7730. fi
  7731. CFLAGS="$CFLAGS -Werror=sequence-point"
  7732. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=sequence-point" >&5
  7733. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  7734. cat >conftest.$ac_ext <<_ACEOF
  7735. /* confdefs.h. */
  7736. _ACEOF
  7737. cat confdefs.h >>conftest.$ac_ext
  7738. cat >>conftest.$ac_ext <<_ACEOF
  7739. /* end confdefs.h. */
  7740. int i;
  7741. int
  7742. main ()
  7743. {
  7744. ;
  7745. return 0;
  7746. }
  7747. _ACEOF
  7748. rm -f conftest.$ac_objext conftest$ac_exeext
  7749. if { (ac_try="$ac_link"
  7750. case "(($ac_try" in
  7751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7752. *) ac_try_echo=$ac_try;;
  7753. esac
  7754. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7755. $as_echo "$ac_try_echo") >&5
  7756. (eval "$ac_link") 2>conftest.er1
  7757. ac_status=$?
  7758. grep -v '^ *+' conftest.er1 >conftest.err
  7759. rm -f conftest.er1
  7760. cat conftest.err >&5
  7761. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7762. (exit $ac_status); } && {
  7763. test -z "$ac_c_werror_flag" ||
  7764. test ! -s conftest.err
  7765. } && test -s conftest$ac_exeext && {
  7766. test "$cross_compiling" = yes ||
  7767. $as_test_x conftest$ac_exeext
  7768. }; then
  7769. supported=yes
  7770. else
  7771. $as_echo "$as_me: failed program was:" >&5
  7772. sed 's/^/| /' conftest.$ac_ext >&5
  7773. supported=no
  7774. fi
  7775. rm -rf conftest.dSYM
  7776. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7777. conftest$ac_exeext conftest.$ac_ext
  7778. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7779. $as_echo "$supported" >&6; }
  7780. CFLAGS="$xorg_testset_save_CFLAGS"
  7781. if test "$supported" = "yes" ; then
  7782. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  7783. found="yes"
  7784. fi
  7785. fi
  7786. xorg_testset_save_CFLAGS="$CFLAGS"
  7787. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7788. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7789. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  7790. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7791. cat >conftest.$ac_ext <<_ACEOF
  7792. /* confdefs.h. */
  7793. _ACEOF
  7794. cat confdefs.h >>conftest.$ac_ext
  7795. cat >>conftest.$ac_ext <<_ACEOF
  7796. /* end confdefs.h. */
  7797. int i;
  7798. _ACEOF
  7799. rm -f conftest.$ac_objext
  7800. if { (ac_try="$ac_compile"
  7801. case "(($ac_try" in
  7802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7803. *) ac_try_echo=$ac_try;;
  7804. esac
  7805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7806. $as_echo "$ac_try_echo") >&5
  7807. (eval "$ac_compile") 2>conftest.er1
  7808. ac_status=$?
  7809. grep -v '^ *+' conftest.er1 >conftest.err
  7810. rm -f conftest.er1
  7811. cat conftest.err >&5
  7812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); } && {
  7814. test -z "$ac_c_werror_flag" ||
  7815. test ! -s conftest.err
  7816. } && test -s conftest.$ac_objext; then
  7817. xorg_testset_unknown_warning_option=yes
  7818. else
  7819. $as_echo "$as_me: failed program was:" >&5
  7820. sed 's/^/| /' conftest.$ac_ext >&5
  7821. xorg_testset_unknown_warning_option=no
  7822. fi
  7823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7824. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  7825. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  7826. CFLAGS="$xorg_testset_save_CFLAGS"
  7827. fi
  7828. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  7829. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7830. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7831. fi
  7832. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7833. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7834. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7835. cat >conftest.$ac_ext <<_ACEOF
  7836. /* confdefs.h. */
  7837. _ACEOF
  7838. cat confdefs.h >>conftest.$ac_ext
  7839. cat >>conftest.$ac_ext <<_ACEOF
  7840. /* end confdefs.h. */
  7841. int i;
  7842. _ACEOF
  7843. rm -f conftest.$ac_objext
  7844. if { (ac_try="$ac_compile"
  7845. case "(($ac_try" in
  7846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7847. *) ac_try_echo=$ac_try;;
  7848. esac
  7849. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7850. $as_echo "$ac_try_echo") >&5
  7851. (eval "$ac_compile") 2>conftest.er1
  7852. ac_status=$?
  7853. grep -v '^ *+' conftest.er1 >conftest.err
  7854. rm -f conftest.er1
  7855. cat conftest.err >&5
  7856. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7857. (exit $ac_status); } && {
  7858. test -z "$ac_c_werror_flag" ||
  7859. test ! -s conftest.err
  7860. } && test -s conftest.$ac_objext; then
  7861. xorg_testset_unused_command_line_argument=yes
  7862. else
  7863. $as_echo "$as_me: failed program was:" >&5
  7864. sed 's/^/| /' conftest.$ac_ext >&5
  7865. xorg_testset_unused_command_line_argument=no
  7866. fi
  7867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7868. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  7869. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  7870. CFLAGS="$xorg_testset_save_CFLAGS"
  7871. fi
  7872. found="no"
  7873. if test $found = "no" ; then
  7874. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7875. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7876. fi
  7877. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7878. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7879. fi
  7880. CFLAGS="$CFLAGS -Werror=return-type"
  7881. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=return-type" >&5
  7882. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  7883. cat >conftest.$ac_ext <<_ACEOF
  7884. /* confdefs.h. */
  7885. _ACEOF
  7886. cat confdefs.h >>conftest.$ac_ext
  7887. cat >>conftest.$ac_ext <<_ACEOF
  7888. /* end confdefs.h. */
  7889. int i;
  7890. int
  7891. main ()
  7892. {
  7893. ;
  7894. return 0;
  7895. }
  7896. _ACEOF
  7897. rm -f conftest.$ac_objext conftest$ac_exeext
  7898. if { (ac_try="$ac_link"
  7899. case "(($ac_try" in
  7900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7901. *) ac_try_echo=$ac_try;;
  7902. esac
  7903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7904. $as_echo "$ac_try_echo") >&5
  7905. (eval "$ac_link") 2>conftest.er1
  7906. ac_status=$?
  7907. grep -v '^ *+' conftest.er1 >conftest.err
  7908. rm -f conftest.er1
  7909. cat conftest.err >&5
  7910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); } && {
  7912. test -z "$ac_c_werror_flag" ||
  7913. test ! -s conftest.err
  7914. } && test -s conftest$ac_exeext && {
  7915. test "$cross_compiling" = yes ||
  7916. $as_test_x conftest$ac_exeext
  7917. }; then
  7918. supported=yes
  7919. else
  7920. $as_echo "$as_me: failed program was:" >&5
  7921. sed 's/^/| /' conftest.$ac_ext >&5
  7922. supported=no
  7923. fi
  7924. rm -rf conftest.dSYM
  7925. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7926. conftest$ac_exeext conftest.$ac_ext
  7927. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7928. $as_echo "$supported" >&6; }
  7929. CFLAGS="$xorg_testset_save_CFLAGS"
  7930. if test "$supported" = "yes" ; then
  7931. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  7932. found="yes"
  7933. fi
  7934. fi
  7935. if test $found = "no" ; then
  7936. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  7937. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7938. fi
  7939. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  7940. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7941. fi
  7942. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  7943. { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  7944. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  7945. cat >conftest.$ac_ext <<_ACEOF
  7946. /* confdefs.h. */
  7947. _ACEOF
  7948. cat confdefs.h >>conftest.$ac_ext
  7949. cat >>conftest.$ac_ext <<_ACEOF
  7950. /* end confdefs.h. */
  7951. int i;
  7952. int
  7953. main ()
  7954. {
  7955. ;
  7956. return 0;
  7957. }
  7958. _ACEOF
  7959. rm -f conftest.$ac_objext conftest$ac_exeext
  7960. if { (ac_try="$ac_link"
  7961. case "(($ac_try" in
  7962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7963. *) ac_try_echo=$ac_try;;
  7964. esac
  7965. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7966. $as_echo "$ac_try_echo") >&5
  7967. (eval "$ac_link") 2>conftest.er1
  7968. ac_status=$?
  7969. grep -v '^ *+' conftest.er1 >conftest.err
  7970. rm -f conftest.er1
  7971. cat conftest.err >&5
  7972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); } && {
  7974. test -z "$ac_c_werror_flag" ||
  7975. test ! -s conftest.err
  7976. } && test -s conftest$ac_exeext && {
  7977. test "$cross_compiling" = yes ||
  7978. $as_test_x conftest$ac_exeext
  7979. }; then
  7980. supported=yes
  7981. else
  7982. $as_echo "$as_me: failed program was:" >&5
  7983. sed 's/^/| /' conftest.$ac_ext >&5
  7984. supported=no
  7985. fi
  7986. rm -rf conftest.dSYM
  7987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7988. conftest$ac_exeext conftest.$ac_ext
  7989. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  7990. $as_echo "$supported" >&6; }
  7991. CFLAGS="$xorg_testset_save_CFLAGS"
  7992. if test "$supported" = "yes" ; then
  7993. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  7994. found="yes"
  7995. fi
  7996. fi
  7997. xorg_testset_save_CFLAGS="$CFLAGS"
  7998. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  7999. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8000. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8001. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8002. cat >conftest.$ac_ext <<_ACEOF
  8003. /* confdefs.h. */
  8004. _ACEOF
  8005. cat confdefs.h >>conftest.$ac_ext
  8006. cat >>conftest.$ac_ext <<_ACEOF
  8007. /* end confdefs.h. */
  8008. int i;
  8009. _ACEOF
  8010. rm -f conftest.$ac_objext
  8011. if { (ac_try="$ac_compile"
  8012. case "(($ac_try" in
  8013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8014. *) ac_try_echo=$ac_try;;
  8015. esac
  8016. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8017. $as_echo "$ac_try_echo") >&5
  8018. (eval "$ac_compile") 2>conftest.er1
  8019. ac_status=$?
  8020. grep -v '^ *+' conftest.er1 >conftest.err
  8021. rm -f conftest.er1
  8022. cat conftest.err >&5
  8023. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); } && {
  8025. test -z "$ac_c_werror_flag" ||
  8026. test ! -s conftest.err
  8027. } && test -s conftest.$ac_objext; then
  8028. xorg_testset_unknown_warning_option=yes
  8029. else
  8030. $as_echo "$as_me: failed program was:" >&5
  8031. sed 's/^/| /' conftest.$ac_ext >&5
  8032. xorg_testset_unknown_warning_option=no
  8033. fi
  8034. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8035. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8036. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8037. CFLAGS="$xorg_testset_save_CFLAGS"
  8038. fi
  8039. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8040. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8041. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8042. fi
  8043. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8044. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8045. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8046. cat >conftest.$ac_ext <<_ACEOF
  8047. /* confdefs.h. */
  8048. _ACEOF
  8049. cat confdefs.h >>conftest.$ac_ext
  8050. cat >>conftest.$ac_ext <<_ACEOF
  8051. /* end confdefs.h. */
  8052. int i;
  8053. _ACEOF
  8054. rm -f conftest.$ac_objext
  8055. if { (ac_try="$ac_compile"
  8056. case "(($ac_try" in
  8057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8058. *) ac_try_echo=$ac_try;;
  8059. esac
  8060. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8061. $as_echo "$ac_try_echo") >&5
  8062. (eval "$ac_compile") 2>conftest.er1
  8063. ac_status=$?
  8064. grep -v '^ *+' conftest.er1 >conftest.err
  8065. rm -f conftest.er1
  8066. cat conftest.err >&5
  8067. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8068. (exit $ac_status); } && {
  8069. test -z "$ac_c_werror_flag" ||
  8070. test ! -s conftest.err
  8071. } && test -s conftest.$ac_objext; then
  8072. xorg_testset_unused_command_line_argument=yes
  8073. else
  8074. $as_echo "$as_me: failed program was:" >&5
  8075. sed 's/^/| /' conftest.$ac_ext >&5
  8076. xorg_testset_unused_command_line_argument=no
  8077. fi
  8078. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8079. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8080. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8081. CFLAGS="$xorg_testset_save_CFLAGS"
  8082. fi
  8083. found="no"
  8084. if test $found = "no" ; then
  8085. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8086. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8087. fi
  8088. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8089. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8090. fi
  8091. CFLAGS="$CFLAGS -Werror=trigraphs"
  8092. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=trigraphs" >&5
  8093. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  8094. cat >conftest.$ac_ext <<_ACEOF
  8095. /* confdefs.h. */
  8096. _ACEOF
  8097. cat confdefs.h >>conftest.$ac_ext
  8098. cat >>conftest.$ac_ext <<_ACEOF
  8099. /* end confdefs.h. */
  8100. int i;
  8101. int
  8102. main ()
  8103. {
  8104. ;
  8105. return 0;
  8106. }
  8107. _ACEOF
  8108. rm -f conftest.$ac_objext conftest$ac_exeext
  8109. if { (ac_try="$ac_link"
  8110. case "(($ac_try" in
  8111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8112. *) ac_try_echo=$ac_try;;
  8113. esac
  8114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8115. $as_echo "$ac_try_echo") >&5
  8116. (eval "$ac_link") 2>conftest.er1
  8117. ac_status=$?
  8118. grep -v '^ *+' conftest.er1 >conftest.err
  8119. rm -f conftest.er1
  8120. cat conftest.err >&5
  8121. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); } && {
  8123. test -z "$ac_c_werror_flag" ||
  8124. test ! -s conftest.err
  8125. } && test -s conftest$ac_exeext && {
  8126. test "$cross_compiling" = yes ||
  8127. $as_test_x conftest$ac_exeext
  8128. }; then
  8129. supported=yes
  8130. else
  8131. $as_echo "$as_me: failed program was:" >&5
  8132. sed 's/^/| /' conftest.$ac_ext >&5
  8133. supported=no
  8134. fi
  8135. rm -rf conftest.dSYM
  8136. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8137. conftest$ac_exeext conftest.$ac_ext
  8138. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8139. $as_echo "$supported" >&6; }
  8140. CFLAGS="$xorg_testset_save_CFLAGS"
  8141. if test "$supported" = "yes" ; then
  8142. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  8143. found="yes"
  8144. fi
  8145. fi
  8146. xorg_testset_save_CFLAGS="$CFLAGS"
  8147. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8148. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8149. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8150. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8151. cat >conftest.$ac_ext <<_ACEOF
  8152. /* confdefs.h. */
  8153. _ACEOF
  8154. cat confdefs.h >>conftest.$ac_ext
  8155. cat >>conftest.$ac_ext <<_ACEOF
  8156. /* end confdefs.h. */
  8157. int i;
  8158. _ACEOF
  8159. rm -f conftest.$ac_objext
  8160. if { (ac_try="$ac_compile"
  8161. case "(($ac_try" in
  8162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8163. *) ac_try_echo=$ac_try;;
  8164. esac
  8165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8166. $as_echo "$ac_try_echo") >&5
  8167. (eval "$ac_compile") 2>conftest.er1
  8168. ac_status=$?
  8169. grep -v '^ *+' conftest.er1 >conftest.err
  8170. rm -f conftest.er1
  8171. cat conftest.err >&5
  8172. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8173. (exit $ac_status); } && {
  8174. test -z "$ac_c_werror_flag" ||
  8175. test ! -s conftest.err
  8176. } && test -s conftest.$ac_objext; then
  8177. xorg_testset_unknown_warning_option=yes
  8178. else
  8179. $as_echo "$as_me: failed program was:" >&5
  8180. sed 's/^/| /' conftest.$ac_ext >&5
  8181. xorg_testset_unknown_warning_option=no
  8182. fi
  8183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8184. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8185. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8186. CFLAGS="$xorg_testset_save_CFLAGS"
  8187. fi
  8188. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8189. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8190. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8191. fi
  8192. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8193. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8194. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8195. cat >conftest.$ac_ext <<_ACEOF
  8196. /* confdefs.h. */
  8197. _ACEOF
  8198. cat confdefs.h >>conftest.$ac_ext
  8199. cat >>conftest.$ac_ext <<_ACEOF
  8200. /* end confdefs.h. */
  8201. int i;
  8202. _ACEOF
  8203. rm -f conftest.$ac_objext
  8204. if { (ac_try="$ac_compile"
  8205. case "(($ac_try" in
  8206. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8207. *) ac_try_echo=$ac_try;;
  8208. esac
  8209. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8210. $as_echo "$ac_try_echo") >&5
  8211. (eval "$ac_compile") 2>conftest.er1
  8212. ac_status=$?
  8213. grep -v '^ *+' conftest.er1 >conftest.err
  8214. rm -f conftest.er1
  8215. cat conftest.err >&5
  8216. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8217. (exit $ac_status); } && {
  8218. test -z "$ac_c_werror_flag" ||
  8219. test ! -s conftest.err
  8220. } && test -s conftest.$ac_objext; then
  8221. xorg_testset_unused_command_line_argument=yes
  8222. else
  8223. $as_echo "$as_me: failed program was:" >&5
  8224. sed 's/^/| /' conftest.$ac_ext >&5
  8225. xorg_testset_unused_command_line_argument=no
  8226. fi
  8227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8228. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8229. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8230. CFLAGS="$xorg_testset_save_CFLAGS"
  8231. fi
  8232. found="no"
  8233. if test $found = "no" ; then
  8234. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8235. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8236. fi
  8237. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8238. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8239. fi
  8240. CFLAGS="$CFLAGS -Werror=array-bounds"
  8241. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=array-bounds" >&5
  8242. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  8243. cat >conftest.$ac_ext <<_ACEOF
  8244. /* confdefs.h. */
  8245. _ACEOF
  8246. cat confdefs.h >>conftest.$ac_ext
  8247. cat >>conftest.$ac_ext <<_ACEOF
  8248. /* end confdefs.h. */
  8249. int i;
  8250. int
  8251. main ()
  8252. {
  8253. ;
  8254. return 0;
  8255. }
  8256. _ACEOF
  8257. rm -f conftest.$ac_objext conftest$ac_exeext
  8258. if { (ac_try="$ac_link"
  8259. case "(($ac_try" in
  8260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8261. *) ac_try_echo=$ac_try;;
  8262. esac
  8263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8264. $as_echo "$ac_try_echo") >&5
  8265. (eval "$ac_link") 2>conftest.er1
  8266. ac_status=$?
  8267. grep -v '^ *+' conftest.er1 >conftest.err
  8268. rm -f conftest.er1
  8269. cat conftest.err >&5
  8270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8271. (exit $ac_status); } && {
  8272. test -z "$ac_c_werror_flag" ||
  8273. test ! -s conftest.err
  8274. } && test -s conftest$ac_exeext && {
  8275. test "$cross_compiling" = yes ||
  8276. $as_test_x conftest$ac_exeext
  8277. }; then
  8278. supported=yes
  8279. else
  8280. $as_echo "$as_me: failed program was:" >&5
  8281. sed 's/^/| /' conftest.$ac_ext >&5
  8282. supported=no
  8283. fi
  8284. rm -rf conftest.dSYM
  8285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8286. conftest$ac_exeext conftest.$ac_ext
  8287. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8288. $as_echo "$supported" >&6; }
  8289. CFLAGS="$xorg_testset_save_CFLAGS"
  8290. if test "$supported" = "yes" ; then
  8291. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  8292. found="yes"
  8293. fi
  8294. fi
  8295. xorg_testset_save_CFLAGS="$CFLAGS"
  8296. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8297. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8298. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8299. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8300. cat >conftest.$ac_ext <<_ACEOF
  8301. /* confdefs.h. */
  8302. _ACEOF
  8303. cat confdefs.h >>conftest.$ac_ext
  8304. cat >>conftest.$ac_ext <<_ACEOF
  8305. /* end confdefs.h. */
  8306. int i;
  8307. _ACEOF
  8308. rm -f conftest.$ac_objext
  8309. if { (ac_try="$ac_compile"
  8310. case "(($ac_try" in
  8311. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8312. *) ac_try_echo=$ac_try;;
  8313. esac
  8314. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8315. $as_echo "$ac_try_echo") >&5
  8316. (eval "$ac_compile") 2>conftest.er1
  8317. ac_status=$?
  8318. grep -v '^ *+' conftest.er1 >conftest.err
  8319. rm -f conftest.er1
  8320. cat conftest.err >&5
  8321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8322. (exit $ac_status); } && {
  8323. test -z "$ac_c_werror_flag" ||
  8324. test ! -s conftest.err
  8325. } && test -s conftest.$ac_objext; then
  8326. xorg_testset_unknown_warning_option=yes
  8327. else
  8328. $as_echo "$as_me: failed program was:" >&5
  8329. sed 's/^/| /' conftest.$ac_ext >&5
  8330. xorg_testset_unknown_warning_option=no
  8331. fi
  8332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8333. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8334. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8335. CFLAGS="$xorg_testset_save_CFLAGS"
  8336. fi
  8337. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8338. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8339. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8340. fi
  8341. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8342. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8343. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8344. cat >conftest.$ac_ext <<_ACEOF
  8345. /* confdefs.h. */
  8346. _ACEOF
  8347. cat confdefs.h >>conftest.$ac_ext
  8348. cat >>conftest.$ac_ext <<_ACEOF
  8349. /* end confdefs.h. */
  8350. int i;
  8351. _ACEOF
  8352. rm -f conftest.$ac_objext
  8353. if { (ac_try="$ac_compile"
  8354. case "(($ac_try" in
  8355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8356. *) ac_try_echo=$ac_try;;
  8357. esac
  8358. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8359. $as_echo "$ac_try_echo") >&5
  8360. (eval "$ac_compile") 2>conftest.er1
  8361. ac_status=$?
  8362. grep -v '^ *+' conftest.er1 >conftest.err
  8363. rm -f conftest.er1
  8364. cat conftest.err >&5
  8365. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); } && {
  8367. test -z "$ac_c_werror_flag" ||
  8368. test ! -s conftest.err
  8369. } && test -s conftest.$ac_objext; then
  8370. xorg_testset_unused_command_line_argument=yes
  8371. else
  8372. $as_echo "$as_me: failed program was:" >&5
  8373. sed 's/^/| /' conftest.$ac_ext >&5
  8374. xorg_testset_unused_command_line_argument=no
  8375. fi
  8376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8377. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8378. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8379. CFLAGS="$xorg_testset_save_CFLAGS"
  8380. fi
  8381. found="no"
  8382. if test $found = "no" ; then
  8383. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8384. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8385. fi
  8386. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8387. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8388. fi
  8389. CFLAGS="$CFLAGS -Werror=write-strings"
  8390. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=write-strings" >&5
  8391. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  8392. cat >conftest.$ac_ext <<_ACEOF
  8393. /* confdefs.h. */
  8394. _ACEOF
  8395. cat confdefs.h >>conftest.$ac_ext
  8396. cat >>conftest.$ac_ext <<_ACEOF
  8397. /* end confdefs.h. */
  8398. int i;
  8399. int
  8400. main ()
  8401. {
  8402. ;
  8403. return 0;
  8404. }
  8405. _ACEOF
  8406. rm -f conftest.$ac_objext conftest$ac_exeext
  8407. if { (ac_try="$ac_link"
  8408. case "(($ac_try" in
  8409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8410. *) ac_try_echo=$ac_try;;
  8411. esac
  8412. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8413. $as_echo "$ac_try_echo") >&5
  8414. (eval "$ac_link") 2>conftest.er1
  8415. ac_status=$?
  8416. grep -v '^ *+' conftest.er1 >conftest.err
  8417. rm -f conftest.er1
  8418. cat conftest.err >&5
  8419. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8420. (exit $ac_status); } && {
  8421. test -z "$ac_c_werror_flag" ||
  8422. test ! -s conftest.err
  8423. } && test -s conftest$ac_exeext && {
  8424. test "$cross_compiling" = yes ||
  8425. $as_test_x conftest$ac_exeext
  8426. }; then
  8427. supported=yes
  8428. else
  8429. $as_echo "$as_me: failed program was:" >&5
  8430. sed 's/^/| /' conftest.$ac_ext >&5
  8431. supported=no
  8432. fi
  8433. rm -rf conftest.dSYM
  8434. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8435. conftest$ac_exeext conftest.$ac_ext
  8436. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8437. $as_echo "$supported" >&6; }
  8438. CFLAGS="$xorg_testset_save_CFLAGS"
  8439. if test "$supported" = "yes" ; then
  8440. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  8441. found="yes"
  8442. fi
  8443. fi
  8444. xorg_testset_save_CFLAGS="$CFLAGS"
  8445. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8446. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8447. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8448. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8449. cat >conftest.$ac_ext <<_ACEOF
  8450. /* confdefs.h. */
  8451. _ACEOF
  8452. cat confdefs.h >>conftest.$ac_ext
  8453. cat >>conftest.$ac_ext <<_ACEOF
  8454. /* end confdefs.h. */
  8455. int i;
  8456. _ACEOF
  8457. rm -f conftest.$ac_objext
  8458. if { (ac_try="$ac_compile"
  8459. case "(($ac_try" in
  8460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8461. *) ac_try_echo=$ac_try;;
  8462. esac
  8463. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8464. $as_echo "$ac_try_echo") >&5
  8465. (eval "$ac_compile") 2>conftest.er1
  8466. ac_status=$?
  8467. grep -v '^ *+' conftest.er1 >conftest.err
  8468. rm -f conftest.er1
  8469. cat conftest.err >&5
  8470. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. (exit $ac_status); } && {
  8472. test -z "$ac_c_werror_flag" ||
  8473. test ! -s conftest.err
  8474. } && test -s conftest.$ac_objext; then
  8475. xorg_testset_unknown_warning_option=yes
  8476. else
  8477. $as_echo "$as_me: failed program was:" >&5
  8478. sed 's/^/| /' conftest.$ac_ext >&5
  8479. xorg_testset_unknown_warning_option=no
  8480. fi
  8481. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8482. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8483. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8484. CFLAGS="$xorg_testset_save_CFLAGS"
  8485. fi
  8486. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8487. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8488. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8489. fi
  8490. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8491. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8492. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8493. cat >conftest.$ac_ext <<_ACEOF
  8494. /* confdefs.h. */
  8495. _ACEOF
  8496. cat confdefs.h >>conftest.$ac_ext
  8497. cat >>conftest.$ac_ext <<_ACEOF
  8498. /* end confdefs.h. */
  8499. int i;
  8500. _ACEOF
  8501. rm -f conftest.$ac_objext
  8502. if { (ac_try="$ac_compile"
  8503. case "(($ac_try" in
  8504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8505. *) ac_try_echo=$ac_try;;
  8506. esac
  8507. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8508. $as_echo "$ac_try_echo") >&5
  8509. (eval "$ac_compile") 2>conftest.er1
  8510. ac_status=$?
  8511. grep -v '^ *+' conftest.er1 >conftest.err
  8512. rm -f conftest.er1
  8513. cat conftest.err >&5
  8514. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. (exit $ac_status); } && {
  8516. test -z "$ac_c_werror_flag" ||
  8517. test ! -s conftest.err
  8518. } && test -s conftest.$ac_objext; then
  8519. xorg_testset_unused_command_line_argument=yes
  8520. else
  8521. $as_echo "$as_me: failed program was:" >&5
  8522. sed 's/^/| /' conftest.$ac_ext >&5
  8523. xorg_testset_unused_command_line_argument=no
  8524. fi
  8525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8526. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8527. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8528. CFLAGS="$xorg_testset_save_CFLAGS"
  8529. fi
  8530. found="no"
  8531. if test $found = "no" ; then
  8532. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8533. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8534. fi
  8535. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8536. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8537. fi
  8538. CFLAGS="$CFLAGS -Werror=address"
  8539. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=address" >&5
  8540. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  8541. cat >conftest.$ac_ext <<_ACEOF
  8542. /* confdefs.h. */
  8543. _ACEOF
  8544. cat confdefs.h >>conftest.$ac_ext
  8545. cat >>conftest.$ac_ext <<_ACEOF
  8546. /* end confdefs.h. */
  8547. int i;
  8548. int
  8549. main ()
  8550. {
  8551. ;
  8552. return 0;
  8553. }
  8554. _ACEOF
  8555. rm -f conftest.$ac_objext conftest$ac_exeext
  8556. if { (ac_try="$ac_link"
  8557. case "(($ac_try" in
  8558. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8559. *) ac_try_echo=$ac_try;;
  8560. esac
  8561. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8562. $as_echo "$ac_try_echo") >&5
  8563. (eval "$ac_link") 2>conftest.er1
  8564. ac_status=$?
  8565. grep -v '^ *+' conftest.er1 >conftest.err
  8566. rm -f conftest.er1
  8567. cat conftest.err >&5
  8568. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8569. (exit $ac_status); } && {
  8570. test -z "$ac_c_werror_flag" ||
  8571. test ! -s conftest.err
  8572. } && test -s conftest$ac_exeext && {
  8573. test "$cross_compiling" = yes ||
  8574. $as_test_x conftest$ac_exeext
  8575. }; then
  8576. supported=yes
  8577. else
  8578. $as_echo "$as_me: failed program was:" >&5
  8579. sed 's/^/| /' conftest.$ac_ext >&5
  8580. supported=no
  8581. fi
  8582. rm -rf conftest.dSYM
  8583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8584. conftest$ac_exeext conftest.$ac_ext
  8585. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8586. $as_echo "$supported" >&6; }
  8587. CFLAGS="$xorg_testset_save_CFLAGS"
  8588. if test "$supported" = "yes" ; then
  8589. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  8590. found="yes"
  8591. fi
  8592. fi
  8593. xorg_testset_save_CFLAGS="$CFLAGS"
  8594. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8595. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8596. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8597. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8598. cat >conftest.$ac_ext <<_ACEOF
  8599. /* confdefs.h. */
  8600. _ACEOF
  8601. cat confdefs.h >>conftest.$ac_ext
  8602. cat >>conftest.$ac_ext <<_ACEOF
  8603. /* end confdefs.h. */
  8604. int i;
  8605. _ACEOF
  8606. rm -f conftest.$ac_objext
  8607. if { (ac_try="$ac_compile"
  8608. case "(($ac_try" in
  8609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8610. *) ac_try_echo=$ac_try;;
  8611. esac
  8612. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8613. $as_echo "$ac_try_echo") >&5
  8614. (eval "$ac_compile") 2>conftest.er1
  8615. ac_status=$?
  8616. grep -v '^ *+' conftest.er1 >conftest.err
  8617. rm -f conftest.er1
  8618. cat conftest.err >&5
  8619. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8620. (exit $ac_status); } && {
  8621. test -z "$ac_c_werror_flag" ||
  8622. test ! -s conftest.err
  8623. } && test -s conftest.$ac_objext; then
  8624. xorg_testset_unknown_warning_option=yes
  8625. else
  8626. $as_echo "$as_me: failed program was:" >&5
  8627. sed 's/^/| /' conftest.$ac_ext >&5
  8628. xorg_testset_unknown_warning_option=no
  8629. fi
  8630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8631. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8632. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8633. CFLAGS="$xorg_testset_save_CFLAGS"
  8634. fi
  8635. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8636. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8637. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8638. fi
  8639. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8640. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8641. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8642. cat >conftest.$ac_ext <<_ACEOF
  8643. /* confdefs.h. */
  8644. _ACEOF
  8645. cat confdefs.h >>conftest.$ac_ext
  8646. cat >>conftest.$ac_ext <<_ACEOF
  8647. /* end confdefs.h. */
  8648. int i;
  8649. _ACEOF
  8650. rm -f conftest.$ac_objext
  8651. if { (ac_try="$ac_compile"
  8652. case "(($ac_try" in
  8653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8654. *) ac_try_echo=$ac_try;;
  8655. esac
  8656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8657. $as_echo "$ac_try_echo") >&5
  8658. (eval "$ac_compile") 2>conftest.er1
  8659. ac_status=$?
  8660. grep -v '^ *+' conftest.er1 >conftest.err
  8661. rm -f conftest.er1
  8662. cat conftest.err >&5
  8663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. (exit $ac_status); } && {
  8665. test -z "$ac_c_werror_flag" ||
  8666. test ! -s conftest.err
  8667. } && test -s conftest.$ac_objext; then
  8668. xorg_testset_unused_command_line_argument=yes
  8669. else
  8670. $as_echo "$as_me: failed program was:" >&5
  8671. sed 's/^/| /' conftest.$ac_ext >&5
  8672. xorg_testset_unused_command_line_argument=no
  8673. fi
  8674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8675. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8676. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8677. CFLAGS="$xorg_testset_save_CFLAGS"
  8678. fi
  8679. found="no"
  8680. if test $found = "no" ; then
  8681. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8682. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8683. fi
  8684. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8685. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8686. fi
  8687. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  8688. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  8689. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  8690. cat >conftest.$ac_ext <<_ACEOF
  8691. /* confdefs.h. */
  8692. _ACEOF
  8693. cat confdefs.h >>conftest.$ac_ext
  8694. cat >>conftest.$ac_ext <<_ACEOF
  8695. /* end confdefs.h. */
  8696. int i;
  8697. int
  8698. main ()
  8699. {
  8700. ;
  8701. return 0;
  8702. }
  8703. _ACEOF
  8704. rm -f conftest.$ac_objext conftest$ac_exeext
  8705. if { (ac_try="$ac_link"
  8706. case "(($ac_try" in
  8707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8708. *) ac_try_echo=$ac_try;;
  8709. esac
  8710. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8711. $as_echo "$ac_try_echo") >&5
  8712. (eval "$ac_link") 2>conftest.er1
  8713. ac_status=$?
  8714. grep -v '^ *+' conftest.er1 >conftest.err
  8715. rm -f conftest.er1
  8716. cat conftest.err >&5
  8717. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8718. (exit $ac_status); } && {
  8719. test -z "$ac_c_werror_flag" ||
  8720. test ! -s conftest.err
  8721. } && test -s conftest$ac_exeext && {
  8722. test "$cross_compiling" = yes ||
  8723. $as_test_x conftest$ac_exeext
  8724. }; then
  8725. supported=yes
  8726. else
  8727. $as_echo "$as_me: failed program was:" >&5
  8728. sed 's/^/| /' conftest.$ac_ext >&5
  8729. supported=no
  8730. fi
  8731. rm -rf conftest.dSYM
  8732. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8733. conftest$ac_exeext conftest.$ac_ext
  8734. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8735. $as_echo "$supported" >&6; }
  8736. CFLAGS="$xorg_testset_save_CFLAGS"
  8737. if test "$supported" = "yes" ; then
  8738. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  8739. found="yes"
  8740. fi
  8741. fi
  8742. if test $found = "no" ; then
  8743. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8744. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8745. fi
  8746. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8747. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8748. fi
  8749. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  8750. { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  8751. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  8752. cat >conftest.$ac_ext <<_ACEOF
  8753. /* confdefs.h. */
  8754. _ACEOF
  8755. cat confdefs.h >>conftest.$ac_ext
  8756. cat >>conftest.$ac_ext <<_ACEOF
  8757. /* end confdefs.h. */
  8758. int i;
  8759. int
  8760. main ()
  8761. {
  8762. ;
  8763. return 0;
  8764. }
  8765. _ACEOF
  8766. rm -f conftest.$ac_objext conftest$ac_exeext
  8767. if { (ac_try="$ac_link"
  8768. case "(($ac_try" in
  8769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8770. *) ac_try_echo=$ac_try;;
  8771. esac
  8772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8773. $as_echo "$ac_try_echo") >&5
  8774. (eval "$ac_link") 2>conftest.er1
  8775. ac_status=$?
  8776. grep -v '^ *+' conftest.er1 >conftest.err
  8777. rm -f conftest.er1
  8778. cat conftest.err >&5
  8779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8780. (exit $ac_status); } && {
  8781. test -z "$ac_c_werror_flag" ||
  8782. test ! -s conftest.err
  8783. } && test -s conftest$ac_exeext && {
  8784. test "$cross_compiling" = yes ||
  8785. $as_test_x conftest$ac_exeext
  8786. }; then
  8787. supported=yes
  8788. else
  8789. $as_echo "$as_me: failed program was:" >&5
  8790. sed 's/^/| /' conftest.$ac_ext >&5
  8791. supported=no
  8792. fi
  8793. rm -rf conftest.dSYM
  8794. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8795. conftest$ac_exeext conftest.$ac_ext
  8796. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8797. $as_echo "$supported" >&6; }
  8798. CFLAGS="$xorg_testset_save_CFLAGS"
  8799. if test "$supported" = "yes" ; then
  8800. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  8801. found="yes"
  8802. fi
  8803. fi
  8804. xorg_testset_save_CFLAGS="$CFLAGS"
  8805. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8806. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8807. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8808. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8809. cat >conftest.$ac_ext <<_ACEOF
  8810. /* confdefs.h. */
  8811. _ACEOF
  8812. cat confdefs.h >>conftest.$ac_ext
  8813. cat >>conftest.$ac_ext <<_ACEOF
  8814. /* end confdefs.h. */
  8815. int i;
  8816. _ACEOF
  8817. rm -f conftest.$ac_objext
  8818. if { (ac_try="$ac_compile"
  8819. case "(($ac_try" in
  8820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8821. *) ac_try_echo=$ac_try;;
  8822. esac
  8823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8824. $as_echo "$ac_try_echo") >&5
  8825. (eval "$ac_compile") 2>conftest.er1
  8826. ac_status=$?
  8827. grep -v '^ *+' conftest.er1 >conftest.err
  8828. rm -f conftest.er1
  8829. cat conftest.err >&5
  8830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8831. (exit $ac_status); } && {
  8832. test -z "$ac_c_werror_flag" ||
  8833. test ! -s conftest.err
  8834. } && test -s conftest.$ac_objext; then
  8835. xorg_testset_unknown_warning_option=yes
  8836. else
  8837. $as_echo "$as_me: failed program was:" >&5
  8838. sed 's/^/| /' conftest.$ac_ext >&5
  8839. xorg_testset_unknown_warning_option=no
  8840. fi
  8841. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8842. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8843. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8844. CFLAGS="$xorg_testset_save_CFLAGS"
  8845. fi
  8846. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  8847. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8848. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8849. fi
  8850. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8851. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8852. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8853. cat >conftest.$ac_ext <<_ACEOF
  8854. /* confdefs.h. */
  8855. _ACEOF
  8856. cat confdefs.h >>conftest.$ac_ext
  8857. cat >>conftest.$ac_ext <<_ACEOF
  8858. /* end confdefs.h. */
  8859. int i;
  8860. _ACEOF
  8861. rm -f conftest.$ac_objext
  8862. if { (ac_try="$ac_compile"
  8863. case "(($ac_try" in
  8864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8865. *) ac_try_echo=$ac_try;;
  8866. esac
  8867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8868. $as_echo "$ac_try_echo") >&5
  8869. (eval "$ac_compile") 2>conftest.er1
  8870. ac_status=$?
  8871. grep -v '^ *+' conftest.er1 >conftest.err
  8872. rm -f conftest.er1
  8873. cat conftest.err >&5
  8874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8875. (exit $ac_status); } && {
  8876. test -z "$ac_c_werror_flag" ||
  8877. test ! -s conftest.err
  8878. } && test -s conftest.$ac_objext; then
  8879. xorg_testset_unused_command_line_argument=yes
  8880. else
  8881. $as_echo "$as_me: failed program was:" >&5
  8882. sed 's/^/| /' conftest.$ac_ext >&5
  8883. xorg_testset_unused_command_line_argument=no
  8884. fi
  8885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8886. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  8887. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  8888. CFLAGS="$xorg_testset_save_CFLAGS"
  8889. fi
  8890. found="no"
  8891. if test $found = "no" ; then
  8892. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  8893. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8894. fi
  8895. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  8896. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8897. fi
  8898. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  8899. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  8900. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  8901. cat >conftest.$ac_ext <<_ACEOF
  8902. /* confdefs.h. */
  8903. _ACEOF
  8904. cat confdefs.h >>conftest.$ac_ext
  8905. cat >>conftest.$ac_ext <<_ACEOF
  8906. /* end confdefs.h. */
  8907. int i;
  8908. int
  8909. main ()
  8910. {
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. rm -f conftest.$ac_objext conftest$ac_exeext
  8916. if { (ac_try="$ac_link"
  8917. case "(($ac_try" in
  8918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8919. *) ac_try_echo=$ac_try;;
  8920. esac
  8921. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8922. $as_echo "$ac_try_echo") >&5
  8923. (eval "$ac_link") 2>conftest.er1
  8924. ac_status=$?
  8925. grep -v '^ *+' conftest.er1 >conftest.err
  8926. rm -f conftest.er1
  8927. cat conftest.err >&5
  8928. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8929. (exit $ac_status); } && {
  8930. test -z "$ac_c_werror_flag" ||
  8931. test ! -s conftest.err
  8932. } && test -s conftest$ac_exeext && {
  8933. test "$cross_compiling" = yes ||
  8934. $as_test_x conftest$ac_exeext
  8935. }; then
  8936. supported=yes
  8937. else
  8938. $as_echo "$as_me: failed program was:" >&5
  8939. sed 's/^/| /' conftest.$ac_ext >&5
  8940. supported=no
  8941. fi
  8942. rm -rf conftest.dSYM
  8943. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8944. conftest$ac_exeext conftest.$ac_ext
  8945. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  8946. $as_echo "$supported" >&6; }
  8947. CFLAGS="$xorg_testset_save_CFLAGS"
  8948. if test "$supported" = "yes" ; then
  8949. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  8950. found="yes"
  8951. fi
  8952. fi
  8953. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  8954. else
  8955. { $as_echo "$as_me:$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
  8956. $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;}
  8957. xorg_testset_save_CFLAGS="$CFLAGS"
  8958. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  8959. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8960. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  8961. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. int i;
  8969. _ACEOF
  8970. rm -f conftest.$ac_objext
  8971. if { (ac_try="$ac_compile"
  8972. case "(($ac_try" in
  8973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8974. *) ac_try_echo=$ac_try;;
  8975. esac
  8976. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8977. $as_echo "$ac_try_echo") >&5
  8978. (eval "$ac_compile") 2>conftest.er1
  8979. ac_status=$?
  8980. grep -v '^ *+' conftest.er1 >conftest.err
  8981. rm -f conftest.er1
  8982. cat conftest.err >&5
  8983. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8984. (exit $ac_status); } && {
  8985. test -z "$ac_c_werror_flag" ||
  8986. test ! -s conftest.err
  8987. } && test -s conftest.$ac_objext; then
  8988. xorg_testset_unknown_warning_option=yes
  8989. else
  8990. $as_echo "$as_me: failed program was:" >&5
  8991. sed 's/^/| /' conftest.$ac_ext >&5
  8992. xorg_testset_unknown_warning_option=no
  8993. fi
  8994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8995. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  8996. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  8997. CFLAGS="$xorg_testset_save_CFLAGS"
  8998. fi
  8999. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9000. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9001. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9002. fi
  9003. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9004. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9005. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9006. cat >conftest.$ac_ext <<_ACEOF
  9007. /* confdefs.h. */
  9008. _ACEOF
  9009. cat confdefs.h >>conftest.$ac_ext
  9010. cat >>conftest.$ac_ext <<_ACEOF
  9011. /* end confdefs.h. */
  9012. int i;
  9013. _ACEOF
  9014. rm -f conftest.$ac_objext
  9015. if { (ac_try="$ac_compile"
  9016. case "(($ac_try" in
  9017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9018. *) ac_try_echo=$ac_try;;
  9019. esac
  9020. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9021. $as_echo "$ac_try_echo") >&5
  9022. (eval "$ac_compile") 2>conftest.er1
  9023. ac_status=$?
  9024. grep -v '^ *+' conftest.er1 >conftest.err
  9025. rm -f conftest.er1
  9026. cat conftest.err >&5
  9027. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9028. (exit $ac_status); } && {
  9029. test -z "$ac_c_werror_flag" ||
  9030. test ! -s conftest.err
  9031. } && test -s conftest.$ac_objext; then
  9032. xorg_testset_unused_command_line_argument=yes
  9033. else
  9034. $as_echo "$as_me: failed program was:" >&5
  9035. sed 's/^/| /' conftest.$ac_ext >&5
  9036. xorg_testset_unused_command_line_argument=no
  9037. fi
  9038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9039. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9040. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9041. CFLAGS="$xorg_testset_save_CFLAGS"
  9042. fi
  9043. found="no"
  9044. if test $found = "no" ; then
  9045. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9047. fi
  9048. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9049. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9050. fi
  9051. CFLAGS="$CFLAGS -Wimplicit"
  9052. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wimplicit" >&5
  9053. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  9054. cat >conftest.$ac_ext <<_ACEOF
  9055. /* confdefs.h. */
  9056. _ACEOF
  9057. cat confdefs.h >>conftest.$ac_ext
  9058. cat >>conftest.$ac_ext <<_ACEOF
  9059. /* end confdefs.h. */
  9060. int i;
  9061. int
  9062. main ()
  9063. {
  9064. ;
  9065. return 0;
  9066. }
  9067. _ACEOF
  9068. rm -f conftest.$ac_objext conftest$ac_exeext
  9069. if { (ac_try="$ac_link"
  9070. case "(($ac_try" in
  9071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9072. *) ac_try_echo=$ac_try;;
  9073. esac
  9074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9075. $as_echo "$ac_try_echo") >&5
  9076. (eval "$ac_link") 2>conftest.er1
  9077. ac_status=$?
  9078. grep -v '^ *+' conftest.er1 >conftest.err
  9079. rm -f conftest.er1
  9080. cat conftest.err >&5
  9081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9082. (exit $ac_status); } && {
  9083. test -z "$ac_c_werror_flag" ||
  9084. test ! -s conftest.err
  9085. } && test -s conftest$ac_exeext && {
  9086. test "$cross_compiling" = yes ||
  9087. $as_test_x conftest$ac_exeext
  9088. }; then
  9089. supported=yes
  9090. else
  9091. $as_echo "$as_me: failed program was:" >&5
  9092. sed 's/^/| /' conftest.$ac_ext >&5
  9093. supported=no
  9094. fi
  9095. rm -rf conftest.dSYM
  9096. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9097. conftest$ac_exeext conftest.$ac_ext
  9098. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9099. $as_echo "$supported" >&6; }
  9100. CFLAGS="$xorg_testset_save_CFLAGS"
  9101. if test "$supported" = "yes" ; then
  9102. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  9103. found="yes"
  9104. fi
  9105. fi
  9106. xorg_testset_save_CFLAGS="$CFLAGS"
  9107. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9108. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9109. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9110. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9111. cat >conftest.$ac_ext <<_ACEOF
  9112. /* confdefs.h. */
  9113. _ACEOF
  9114. cat confdefs.h >>conftest.$ac_ext
  9115. cat >>conftest.$ac_ext <<_ACEOF
  9116. /* end confdefs.h. */
  9117. int i;
  9118. _ACEOF
  9119. rm -f conftest.$ac_objext
  9120. if { (ac_try="$ac_compile"
  9121. case "(($ac_try" in
  9122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9123. *) ac_try_echo=$ac_try;;
  9124. esac
  9125. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9126. $as_echo "$ac_try_echo") >&5
  9127. (eval "$ac_compile") 2>conftest.er1
  9128. ac_status=$?
  9129. grep -v '^ *+' conftest.er1 >conftest.err
  9130. rm -f conftest.er1
  9131. cat conftest.err >&5
  9132. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9133. (exit $ac_status); } && {
  9134. test -z "$ac_c_werror_flag" ||
  9135. test ! -s conftest.err
  9136. } && test -s conftest.$ac_objext; then
  9137. xorg_testset_unknown_warning_option=yes
  9138. else
  9139. $as_echo "$as_me: failed program was:" >&5
  9140. sed 's/^/| /' conftest.$ac_ext >&5
  9141. xorg_testset_unknown_warning_option=no
  9142. fi
  9143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9144. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9145. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9146. CFLAGS="$xorg_testset_save_CFLAGS"
  9147. fi
  9148. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9149. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9150. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9151. fi
  9152. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9153. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9154. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9155. cat >conftest.$ac_ext <<_ACEOF
  9156. /* confdefs.h. */
  9157. _ACEOF
  9158. cat confdefs.h >>conftest.$ac_ext
  9159. cat >>conftest.$ac_ext <<_ACEOF
  9160. /* end confdefs.h. */
  9161. int i;
  9162. _ACEOF
  9163. rm -f conftest.$ac_objext
  9164. if { (ac_try="$ac_compile"
  9165. case "(($ac_try" in
  9166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9167. *) ac_try_echo=$ac_try;;
  9168. esac
  9169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9170. $as_echo "$ac_try_echo") >&5
  9171. (eval "$ac_compile") 2>conftest.er1
  9172. ac_status=$?
  9173. grep -v '^ *+' conftest.er1 >conftest.err
  9174. rm -f conftest.er1
  9175. cat conftest.err >&5
  9176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9177. (exit $ac_status); } && {
  9178. test -z "$ac_c_werror_flag" ||
  9179. test ! -s conftest.err
  9180. } && test -s conftest.$ac_objext; then
  9181. xorg_testset_unused_command_line_argument=yes
  9182. else
  9183. $as_echo "$as_me: failed program was:" >&5
  9184. sed 's/^/| /' conftest.$ac_ext >&5
  9185. xorg_testset_unused_command_line_argument=no
  9186. fi
  9187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9188. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9189. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9190. CFLAGS="$xorg_testset_save_CFLAGS"
  9191. fi
  9192. found="no"
  9193. if test $found = "no" ; then
  9194. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9195. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9196. fi
  9197. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9198. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9199. fi
  9200. CFLAGS="$CFLAGS -Wnonnull"
  9201. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wnonnull" >&5
  9202. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  9203. cat >conftest.$ac_ext <<_ACEOF
  9204. /* confdefs.h. */
  9205. _ACEOF
  9206. cat confdefs.h >>conftest.$ac_ext
  9207. cat >>conftest.$ac_ext <<_ACEOF
  9208. /* end confdefs.h. */
  9209. int i;
  9210. int
  9211. main ()
  9212. {
  9213. ;
  9214. return 0;
  9215. }
  9216. _ACEOF
  9217. rm -f conftest.$ac_objext conftest$ac_exeext
  9218. if { (ac_try="$ac_link"
  9219. case "(($ac_try" in
  9220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9221. *) ac_try_echo=$ac_try;;
  9222. esac
  9223. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9224. $as_echo "$ac_try_echo") >&5
  9225. (eval "$ac_link") 2>conftest.er1
  9226. ac_status=$?
  9227. grep -v '^ *+' conftest.er1 >conftest.err
  9228. rm -f conftest.er1
  9229. cat conftest.err >&5
  9230. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9231. (exit $ac_status); } && {
  9232. test -z "$ac_c_werror_flag" ||
  9233. test ! -s conftest.err
  9234. } && test -s conftest$ac_exeext && {
  9235. test "$cross_compiling" = yes ||
  9236. $as_test_x conftest$ac_exeext
  9237. }; then
  9238. supported=yes
  9239. else
  9240. $as_echo "$as_me: failed program was:" >&5
  9241. sed 's/^/| /' conftest.$ac_ext >&5
  9242. supported=no
  9243. fi
  9244. rm -rf conftest.dSYM
  9245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9246. conftest$ac_exeext conftest.$ac_ext
  9247. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9248. $as_echo "$supported" >&6; }
  9249. CFLAGS="$xorg_testset_save_CFLAGS"
  9250. if test "$supported" = "yes" ; then
  9251. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  9252. found="yes"
  9253. fi
  9254. fi
  9255. xorg_testset_save_CFLAGS="$CFLAGS"
  9256. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9257. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9258. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9259. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9260. cat >conftest.$ac_ext <<_ACEOF
  9261. /* confdefs.h. */
  9262. _ACEOF
  9263. cat confdefs.h >>conftest.$ac_ext
  9264. cat >>conftest.$ac_ext <<_ACEOF
  9265. /* end confdefs.h. */
  9266. int i;
  9267. _ACEOF
  9268. rm -f conftest.$ac_objext
  9269. if { (ac_try="$ac_compile"
  9270. case "(($ac_try" in
  9271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9272. *) ac_try_echo=$ac_try;;
  9273. esac
  9274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9275. $as_echo "$ac_try_echo") >&5
  9276. (eval "$ac_compile") 2>conftest.er1
  9277. ac_status=$?
  9278. grep -v '^ *+' conftest.er1 >conftest.err
  9279. rm -f conftest.er1
  9280. cat conftest.err >&5
  9281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9282. (exit $ac_status); } && {
  9283. test -z "$ac_c_werror_flag" ||
  9284. test ! -s conftest.err
  9285. } && test -s conftest.$ac_objext; then
  9286. xorg_testset_unknown_warning_option=yes
  9287. else
  9288. $as_echo "$as_me: failed program was:" >&5
  9289. sed 's/^/| /' conftest.$ac_ext >&5
  9290. xorg_testset_unknown_warning_option=no
  9291. fi
  9292. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9293. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9294. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9295. CFLAGS="$xorg_testset_save_CFLAGS"
  9296. fi
  9297. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9298. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9299. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9300. fi
  9301. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9302. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9303. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9304. cat >conftest.$ac_ext <<_ACEOF
  9305. /* confdefs.h. */
  9306. _ACEOF
  9307. cat confdefs.h >>conftest.$ac_ext
  9308. cat >>conftest.$ac_ext <<_ACEOF
  9309. /* end confdefs.h. */
  9310. int i;
  9311. _ACEOF
  9312. rm -f conftest.$ac_objext
  9313. if { (ac_try="$ac_compile"
  9314. case "(($ac_try" in
  9315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9316. *) ac_try_echo=$ac_try;;
  9317. esac
  9318. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9319. $as_echo "$ac_try_echo") >&5
  9320. (eval "$ac_compile") 2>conftest.er1
  9321. ac_status=$?
  9322. grep -v '^ *+' conftest.er1 >conftest.err
  9323. rm -f conftest.er1
  9324. cat conftest.err >&5
  9325. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9326. (exit $ac_status); } && {
  9327. test -z "$ac_c_werror_flag" ||
  9328. test ! -s conftest.err
  9329. } && test -s conftest.$ac_objext; then
  9330. xorg_testset_unused_command_line_argument=yes
  9331. else
  9332. $as_echo "$as_me: failed program was:" >&5
  9333. sed 's/^/| /' conftest.$ac_ext >&5
  9334. xorg_testset_unused_command_line_argument=no
  9335. fi
  9336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9337. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9338. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9339. CFLAGS="$xorg_testset_save_CFLAGS"
  9340. fi
  9341. found="no"
  9342. if test $found = "no" ; then
  9343. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9344. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9345. fi
  9346. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9347. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9348. fi
  9349. CFLAGS="$CFLAGS -Winit-self"
  9350. { $as_echo "$as_me:$LINENO: checking if $CC supports -Winit-self" >&5
  9351. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  9352. cat >conftest.$ac_ext <<_ACEOF
  9353. /* confdefs.h. */
  9354. _ACEOF
  9355. cat confdefs.h >>conftest.$ac_ext
  9356. cat >>conftest.$ac_ext <<_ACEOF
  9357. /* end confdefs.h. */
  9358. int i;
  9359. int
  9360. main ()
  9361. {
  9362. ;
  9363. return 0;
  9364. }
  9365. _ACEOF
  9366. rm -f conftest.$ac_objext conftest$ac_exeext
  9367. if { (ac_try="$ac_link"
  9368. case "(($ac_try" in
  9369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9370. *) ac_try_echo=$ac_try;;
  9371. esac
  9372. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9373. $as_echo "$ac_try_echo") >&5
  9374. (eval "$ac_link") 2>conftest.er1
  9375. ac_status=$?
  9376. grep -v '^ *+' conftest.er1 >conftest.err
  9377. rm -f conftest.er1
  9378. cat conftest.err >&5
  9379. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9380. (exit $ac_status); } && {
  9381. test -z "$ac_c_werror_flag" ||
  9382. test ! -s conftest.err
  9383. } && test -s conftest$ac_exeext && {
  9384. test "$cross_compiling" = yes ||
  9385. $as_test_x conftest$ac_exeext
  9386. }; then
  9387. supported=yes
  9388. else
  9389. $as_echo "$as_me: failed program was:" >&5
  9390. sed 's/^/| /' conftest.$ac_ext >&5
  9391. supported=no
  9392. fi
  9393. rm -rf conftest.dSYM
  9394. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9395. conftest$ac_exeext conftest.$ac_ext
  9396. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9397. $as_echo "$supported" >&6; }
  9398. CFLAGS="$xorg_testset_save_CFLAGS"
  9399. if test "$supported" = "yes" ; then
  9400. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  9401. found="yes"
  9402. fi
  9403. fi
  9404. xorg_testset_save_CFLAGS="$CFLAGS"
  9405. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9406. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9407. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9408. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9409. cat >conftest.$ac_ext <<_ACEOF
  9410. /* confdefs.h. */
  9411. _ACEOF
  9412. cat confdefs.h >>conftest.$ac_ext
  9413. cat >>conftest.$ac_ext <<_ACEOF
  9414. /* end confdefs.h. */
  9415. int i;
  9416. _ACEOF
  9417. rm -f conftest.$ac_objext
  9418. if { (ac_try="$ac_compile"
  9419. case "(($ac_try" in
  9420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9421. *) ac_try_echo=$ac_try;;
  9422. esac
  9423. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9424. $as_echo "$ac_try_echo") >&5
  9425. (eval "$ac_compile") 2>conftest.er1
  9426. ac_status=$?
  9427. grep -v '^ *+' conftest.er1 >conftest.err
  9428. rm -f conftest.er1
  9429. cat conftest.err >&5
  9430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9431. (exit $ac_status); } && {
  9432. test -z "$ac_c_werror_flag" ||
  9433. test ! -s conftest.err
  9434. } && test -s conftest.$ac_objext; then
  9435. xorg_testset_unknown_warning_option=yes
  9436. else
  9437. $as_echo "$as_me: failed program was:" >&5
  9438. sed 's/^/| /' conftest.$ac_ext >&5
  9439. xorg_testset_unknown_warning_option=no
  9440. fi
  9441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9442. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9443. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9444. CFLAGS="$xorg_testset_save_CFLAGS"
  9445. fi
  9446. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9447. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9448. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9449. fi
  9450. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9451. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9452. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9453. cat >conftest.$ac_ext <<_ACEOF
  9454. /* confdefs.h. */
  9455. _ACEOF
  9456. cat confdefs.h >>conftest.$ac_ext
  9457. cat >>conftest.$ac_ext <<_ACEOF
  9458. /* end confdefs.h. */
  9459. int i;
  9460. _ACEOF
  9461. rm -f conftest.$ac_objext
  9462. if { (ac_try="$ac_compile"
  9463. case "(($ac_try" in
  9464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9465. *) ac_try_echo=$ac_try;;
  9466. esac
  9467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9468. $as_echo "$ac_try_echo") >&5
  9469. (eval "$ac_compile") 2>conftest.er1
  9470. ac_status=$?
  9471. grep -v '^ *+' conftest.er1 >conftest.err
  9472. rm -f conftest.er1
  9473. cat conftest.err >&5
  9474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9475. (exit $ac_status); } && {
  9476. test -z "$ac_c_werror_flag" ||
  9477. test ! -s conftest.err
  9478. } && test -s conftest.$ac_objext; then
  9479. xorg_testset_unused_command_line_argument=yes
  9480. else
  9481. $as_echo "$as_me: failed program was:" >&5
  9482. sed 's/^/| /' conftest.$ac_ext >&5
  9483. xorg_testset_unused_command_line_argument=no
  9484. fi
  9485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9486. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9487. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9488. CFLAGS="$xorg_testset_save_CFLAGS"
  9489. fi
  9490. found="no"
  9491. if test $found = "no" ; then
  9492. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9493. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9494. fi
  9495. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9496. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9497. fi
  9498. CFLAGS="$CFLAGS -Wmain"
  9499. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmain" >&5
  9500. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  9501. cat >conftest.$ac_ext <<_ACEOF
  9502. /* confdefs.h. */
  9503. _ACEOF
  9504. cat confdefs.h >>conftest.$ac_ext
  9505. cat >>conftest.$ac_ext <<_ACEOF
  9506. /* end confdefs.h. */
  9507. int i;
  9508. int
  9509. main ()
  9510. {
  9511. ;
  9512. return 0;
  9513. }
  9514. _ACEOF
  9515. rm -f conftest.$ac_objext conftest$ac_exeext
  9516. if { (ac_try="$ac_link"
  9517. case "(($ac_try" in
  9518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9519. *) ac_try_echo=$ac_try;;
  9520. esac
  9521. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9522. $as_echo "$ac_try_echo") >&5
  9523. (eval "$ac_link") 2>conftest.er1
  9524. ac_status=$?
  9525. grep -v '^ *+' conftest.er1 >conftest.err
  9526. rm -f conftest.er1
  9527. cat conftest.err >&5
  9528. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9529. (exit $ac_status); } && {
  9530. test -z "$ac_c_werror_flag" ||
  9531. test ! -s conftest.err
  9532. } && test -s conftest$ac_exeext && {
  9533. test "$cross_compiling" = yes ||
  9534. $as_test_x conftest$ac_exeext
  9535. }; then
  9536. supported=yes
  9537. else
  9538. $as_echo "$as_me: failed program was:" >&5
  9539. sed 's/^/| /' conftest.$ac_ext >&5
  9540. supported=no
  9541. fi
  9542. rm -rf conftest.dSYM
  9543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9544. conftest$ac_exeext conftest.$ac_ext
  9545. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9546. $as_echo "$supported" >&6; }
  9547. CFLAGS="$xorg_testset_save_CFLAGS"
  9548. if test "$supported" = "yes" ; then
  9549. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  9550. found="yes"
  9551. fi
  9552. fi
  9553. xorg_testset_save_CFLAGS="$CFLAGS"
  9554. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9555. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9556. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9557. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9558. cat >conftest.$ac_ext <<_ACEOF
  9559. /* confdefs.h. */
  9560. _ACEOF
  9561. cat confdefs.h >>conftest.$ac_ext
  9562. cat >>conftest.$ac_ext <<_ACEOF
  9563. /* end confdefs.h. */
  9564. int i;
  9565. _ACEOF
  9566. rm -f conftest.$ac_objext
  9567. if { (ac_try="$ac_compile"
  9568. case "(($ac_try" in
  9569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9570. *) ac_try_echo=$ac_try;;
  9571. esac
  9572. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9573. $as_echo "$ac_try_echo") >&5
  9574. (eval "$ac_compile") 2>conftest.er1
  9575. ac_status=$?
  9576. grep -v '^ *+' conftest.er1 >conftest.err
  9577. rm -f conftest.er1
  9578. cat conftest.err >&5
  9579. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9580. (exit $ac_status); } && {
  9581. test -z "$ac_c_werror_flag" ||
  9582. test ! -s conftest.err
  9583. } && test -s conftest.$ac_objext; then
  9584. xorg_testset_unknown_warning_option=yes
  9585. else
  9586. $as_echo "$as_me: failed program was:" >&5
  9587. sed 's/^/| /' conftest.$ac_ext >&5
  9588. xorg_testset_unknown_warning_option=no
  9589. fi
  9590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9591. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9592. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9593. CFLAGS="$xorg_testset_save_CFLAGS"
  9594. fi
  9595. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9596. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9597. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9598. fi
  9599. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9600. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9601. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9602. cat >conftest.$ac_ext <<_ACEOF
  9603. /* confdefs.h. */
  9604. _ACEOF
  9605. cat confdefs.h >>conftest.$ac_ext
  9606. cat >>conftest.$ac_ext <<_ACEOF
  9607. /* end confdefs.h. */
  9608. int i;
  9609. _ACEOF
  9610. rm -f conftest.$ac_objext
  9611. if { (ac_try="$ac_compile"
  9612. case "(($ac_try" in
  9613. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9614. *) ac_try_echo=$ac_try;;
  9615. esac
  9616. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9617. $as_echo "$ac_try_echo") >&5
  9618. (eval "$ac_compile") 2>conftest.er1
  9619. ac_status=$?
  9620. grep -v '^ *+' conftest.er1 >conftest.err
  9621. rm -f conftest.er1
  9622. cat conftest.err >&5
  9623. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9624. (exit $ac_status); } && {
  9625. test -z "$ac_c_werror_flag" ||
  9626. test ! -s conftest.err
  9627. } && test -s conftest.$ac_objext; then
  9628. xorg_testset_unused_command_line_argument=yes
  9629. else
  9630. $as_echo "$as_me: failed program was:" >&5
  9631. sed 's/^/| /' conftest.$ac_ext >&5
  9632. xorg_testset_unused_command_line_argument=no
  9633. fi
  9634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9635. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9636. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9637. CFLAGS="$xorg_testset_save_CFLAGS"
  9638. fi
  9639. found="no"
  9640. if test $found = "no" ; then
  9641. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9642. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9643. fi
  9644. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9645. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9646. fi
  9647. CFLAGS="$CFLAGS -Wmissing-braces"
  9648. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wmissing-braces" >&5
  9649. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  9650. cat >conftest.$ac_ext <<_ACEOF
  9651. /* confdefs.h. */
  9652. _ACEOF
  9653. cat confdefs.h >>conftest.$ac_ext
  9654. cat >>conftest.$ac_ext <<_ACEOF
  9655. /* end confdefs.h. */
  9656. int i;
  9657. int
  9658. main ()
  9659. {
  9660. ;
  9661. return 0;
  9662. }
  9663. _ACEOF
  9664. rm -f conftest.$ac_objext conftest$ac_exeext
  9665. if { (ac_try="$ac_link"
  9666. case "(($ac_try" in
  9667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9668. *) ac_try_echo=$ac_try;;
  9669. esac
  9670. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9671. $as_echo "$ac_try_echo") >&5
  9672. (eval "$ac_link") 2>conftest.er1
  9673. ac_status=$?
  9674. grep -v '^ *+' conftest.er1 >conftest.err
  9675. rm -f conftest.er1
  9676. cat conftest.err >&5
  9677. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9678. (exit $ac_status); } && {
  9679. test -z "$ac_c_werror_flag" ||
  9680. test ! -s conftest.err
  9681. } && test -s conftest$ac_exeext && {
  9682. test "$cross_compiling" = yes ||
  9683. $as_test_x conftest$ac_exeext
  9684. }; then
  9685. supported=yes
  9686. else
  9687. $as_echo "$as_me: failed program was:" >&5
  9688. sed 's/^/| /' conftest.$ac_ext >&5
  9689. supported=no
  9690. fi
  9691. rm -rf conftest.dSYM
  9692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9693. conftest$ac_exeext conftest.$ac_ext
  9694. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9695. $as_echo "$supported" >&6; }
  9696. CFLAGS="$xorg_testset_save_CFLAGS"
  9697. if test "$supported" = "yes" ; then
  9698. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  9699. found="yes"
  9700. fi
  9701. fi
  9702. xorg_testset_save_CFLAGS="$CFLAGS"
  9703. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9704. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9705. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9706. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9707. cat >conftest.$ac_ext <<_ACEOF
  9708. /* confdefs.h. */
  9709. _ACEOF
  9710. cat confdefs.h >>conftest.$ac_ext
  9711. cat >>conftest.$ac_ext <<_ACEOF
  9712. /* end confdefs.h. */
  9713. int i;
  9714. _ACEOF
  9715. rm -f conftest.$ac_objext
  9716. if { (ac_try="$ac_compile"
  9717. case "(($ac_try" in
  9718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9719. *) ac_try_echo=$ac_try;;
  9720. esac
  9721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9722. $as_echo "$ac_try_echo") >&5
  9723. (eval "$ac_compile") 2>conftest.er1
  9724. ac_status=$?
  9725. grep -v '^ *+' conftest.er1 >conftest.err
  9726. rm -f conftest.er1
  9727. cat conftest.err >&5
  9728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9729. (exit $ac_status); } && {
  9730. test -z "$ac_c_werror_flag" ||
  9731. test ! -s conftest.err
  9732. } && test -s conftest.$ac_objext; then
  9733. xorg_testset_unknown_warning_option=yes
  9734. else
  9735. $as_echo "$as_me: failed program was:" >&5
  9736. sed 's/^/| /' conftest.$ac_ext >&5
  9737. xorg_testset_unknown_warning_option=no
  9738. fi
  9739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9740. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9741. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9742. CFLAGS="$xorg_testset_save_CFLAGS"
  9743. fi
  9744. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9745. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9746. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9747. fi
  9748. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9749. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9750. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9751. cat >conftest.$ac_ext <<_ACEOF
  9752. /* confdefs.h. */
  9753. _ACEOF
  9754. cat confdefs.h >>conftest.$ac_ext
  9755. cat >>conftest.$ac_ext <<_ACEOF
  9756. /* end confdefs.h. */
  9757. int i;
  9758. _ACEOF
  9759. rm -f conftest.$ac_objext
  9760. if { (ac_try="$ac_compile"
  9761. case "(($ac_try" in
  9762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9763. *) ac_try_echo=$ac_try;;
  9764. esac
  9765. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9766. $as_echo "$ac_try_echo") >&5
  9767. (eval "$ac_compile") 2>conftest.er1
  9768. ac_status=$?
  9769. grep -v '^ *+' conftest.er1 >conftest.err
  9770. rm -f conftest.er1
  9771. cat conftest.err >&5
  9772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9773. (exit $ac_status); } && {
  9774. test -z "$ac_c_werror_flag" ||
  9775. test ! -s conftest.err
  9776. } && test -s conftest.$ac_objext; then
  9777. xorg_testset_unused_command_line_argument=yes
  9778. else
  9779. $as_echo "$as_me: failed program was:" >&5
  9780. sed 's/^/| /' conftest.$ac_ext >&5
  9781. xorg_testset_unused_command_line_argument=no
  9782. fi
  9783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9784. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9785. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9786. CFLAGS="$xorg_testset_save_CFLAGS"
  9787. fi
  9788. found="no"
  9789. if test $found = "no" ; then
  9790. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9791. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9792. fi
  9793. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9794. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9795. fi
  9796. CFLAGS="$CFLAGS -Wsequence-point"
  9797. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wsequence-point" >&5
  9798. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  9799. cat >conftest.$ac_ext <<_ACEOF
  9800. /* confdefs.h. */
  9801. _ACEOF
  9802. cat confdefs.h >>conftest.$ac_ext
  9803. cat >>conftest.$ac_ext <<_ACEOF
  9804. /* end confdefs.h. */
  9805. int i;
  9806. int
  9807. main ()
  9808. {
  9809. ;
  9810. return 0;
  9811. }
  9812. _ACEOF
  9813. rm -f conftest.$ac_objext conftest$ac_exeext
  9814. if { (ac_try="$ac_link"
  9815. case "(($ac_try" in
  9816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9817. *) ac_try_echo=$ac_try;;
  9818. esac
  9819. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9820. $as_echo "$ac_try_echo") >&5
  9821. (eval "$ac_link") 2>conftest.er1
  9822. ac_status=$?
  9823. grep -v '^ *+' conftest.er1 >conftest.err
  9824. rm -f conftest.er1
  9825. cat conftest.err >&5
  9826. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9827. (exit $ac_status); } && {
  9828. test -z "$ac_c_werror_flag" ||
  9829. test ! -s conftest.err
  9830. } && test -s conftest$ac_exeext && {
  9831. test "$cross_compiling" = yes ||
  9832. $as_test_x conftest$ac_exeext
  9833. }; then
  9834. supported=yes
  9835. else
  9836. $as_echo "$as_me: failed program was:" >&5
  9837. sed 's/^/| /' conftest.$ac_ext >&5
  9838. supported=no
  9839. fi
  9840. rm -rf conftest.dSYM
  9841. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9842. conftest$ac_exeext conftest.$ac_ext
  9843. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9844. $as_echo "$supported" >&6; }
  9845. CFLAGS="$xorg_testset_save_CFLAGS"
  9846. if test "$supported" = "yes" ; then
  9847. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  9848. found="yes"
  9849. fi
  9850. fi
  9851. xorg_testset_save_CFLAGS="$CFLAGS"
  9852. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  9853. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9854. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  9855. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  9856. cat >conftest.$ac_ext <<_ACEOF
  9857. /* confdefs.h. */
  9858. _ACEOF
  9859. cat confdefs.h >>conftest.$ac_ext
  9860. cat >>conftest.$ac_ext <<_ACEOF
  9861. /* end confdefs.h. */
  9862. int i;
  9863. _ACEOF
  9864. rm -f conftest.$ac_objext
  9865. if { (ac_try="$ac_compile"
  9866. case "(($ac_try" in
  9867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9868. *) ac_try_echo=$ac_try;;
  9869. esac
  9870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9871. $as_echo "$ac_try_echo") >&5
  9872. (eval "$ac_compile") 2>conftest.er1
  9873. ac_status=$?
  9874. grep -v '^ *+' conftest.er1 >conftest.err
  9875. rm -f conftest.er1
  9876. cat conftest.err >&5
  9877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9878. (exit $ac_status); } && {
  9879. test -z "$ac_c_werror_flag" ||
  9880. test ! -s conftest.err
  9881. } && test -s conftest.$ac_objext; then
  9882. xorg_testset_unknown_warning_option=yes
  9883. else
  9884. $as_echo "$as_me: failed program was:" >&5
  9885. sed 's/^/| /' conftest.$ac_ext >&5
  9886. xorg_testset_unknown_warning_option=no
  9887. fi
  9888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9889. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  9890. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  9891. CFLAGS="$xorg_testset_save_CFLAGS"
  9892. fi
  9893. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  9894. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9895. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9896. fi
  9897. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9898. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  9899. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  9900. cat >conftest.$ac_ext <<_ACEOF
  9901. /* confdefs.h. */
  9902. _ACEOF
  9903. cat confdefs.h >>conftest.$ac_ext
  9904. cat >>conftest.$ac_ext <<_ACEOF
  9905. /* end confdefs.h. */
  9906. int i;
  9907. _ACEOF
  9908. rm -f conftest.$ac_objext
  9909. if { (ac_try="$ac_compile"
  9910. case "(($ac_try" in
  9911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9912. *) ac_try_echo=$ac_try;;
  9913. esac
  9914. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9915. $as_echo "$ac_try_echo") >&5
  9916. (eval "$ac_compile") 2>conftest.er1
  9917. ac_status=$?
  9918. grep -v '^ *+' conftest.er1 >conftest.err
  9919. rm -f conftest.er1
  9920. cat conftest.err >&5
  9921. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9922. (exit $ac_status); } && {
  9923. test -z "$ac_c_werror_flag" ||
  9924. test ! -s conftest.err
  9925. } && test -s conftest.$ac_objext; then
  9926. xorg_testset_unused_command_line_argument=yes
  9927. else
  9928. $as_echo "$as_me: failed program was:" >&5
  9929. sed 's/^/| /' conftest.$ac_ext >&5
  9930. xorg_testset_unused_command_line_argument=no
  9931. fi
  9932. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9933. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  9934. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  9935. CFLAGS="$xorg_testset_save_CFLAGS"
  9936. fi
  9937. found="no"
  9938. if test $found = "no" ; then
  9939. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  9940. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  9941. fi
  9942. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  9943. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  9944. fi
  9945. CFLAGS="$CFLAGS -Wreturn-type"
  9946. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wreturn-type" >&5
  9947. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  9948. cat >conftest.$ac_ext <<_ACEOF
  9949. /* confdefs.h. */
  9950. _ACEOF
  9951. cat confdefs.h >>conftest.$ac_ext
  9952. cat >>conftest.$ac_ext <<_ACEOF
  9953. /* end confdefs.h. */
  9954. int i;
  9955. int
  9956. main ()
  9957. {
  9958. ;
  9959. return 0;
  9960. }
  9961. _ACEOF
  9962. rm -f conftest.$ac_objext conftest$ac_exeext
  9963. if { (ac_try="$ac_link"
  9964. case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9969. $as_echo "$ac_try_echo") >&5
  9970. (eval "$ac_link") 2>conftest.er1
  9971. ac_status=$?
  9972. grep -v '^ *+' conftest.er1 >conftest.err
  9973. rm -f conftest.er1
  9974. cat conftest.err >&5
  9975. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9976. (exit $ac_status); } && {
  9977. test -z "$ac_c_werror_flag" ||
  9978. test ! -s conftest.err
  9979. } && test -s conftest$ac_exeext && {
  9980. test "$cross_compiling" = yes ||
  9981. $as_test_x conftest$ac_exeext
  9982. }; then
  9983. supported=yes
  9984. else
  9985. $as_echo "$as_me: failed program was:" >&5
  9986. sed 's/^/| /' conftest.$ac_ext >&5
  9987. supported=no
  9988. fi
  9989. rm -rf conftest.dSYM
  9990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9991. conftest$ac_exeext conftest.$ac_ext
  9992. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  9993. $as_echo "$supported" >&6; }
  9994. CFLAGS="$xorg_testset_save_CFLAGS"
  9995. if test "$supported" = "yes" ; then
  9996. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  9997. found="yes"
  9998. fi
  9999. fi
  10000. xorg_testset_save_CFLAGS="$CFLAGS"
  10001. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10002. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10003. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10004. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10005. cat >conftest.$ac_ext <<_ACEOF
  10006. /* confdefs.h. */
  10007. _ACEOF
  10008. cat confdefs.h >>conftest.$ac_ext
  10009. cat >>conftest.$ac_ext <<_ACEOF
  10010. /* end confdefs.h. */
  10011. int i;
  10012. _ACEOF
  10013. rm -f conftest.$ac_objext
  10014. if { (ac_try="$ac_compile"
  10015. case "(($ac_try" in
  10016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10017. *) ac_try_echo=$ac_try;;
  10018. esac
  10019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10020. $as_echo "$ac_try_echo") >&5
  10021. (eval "$ac_compile") 2>conftest.er1
  10022. ac_status=$?
  10023. grep -v '^ *+' conftest.er1 >conftest.err
  10024. rm -f conftest.er1
  10025. cat conftest.err >&5
  10026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10027. (exit $ac_status); } && {
  10028. test -z "$ac_c_werror_flag" ||
  10029. test ! -s conftest.err
  10030. } && test -s conftest.$ac_objext; then
  10031. xorg_testset_unknown_warning_option=yes
  10032. else
  10033. $as_echo "$as_me: failed program was:" >&5
  10034. sed 's/^/| /' conftest.$ac_ext >&5
  10035. xorg_testset_unknown_warning_option=no
  10036. fi
  10037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10038. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10039. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10040. CFLAGS="$xorg_testset_save_CFLAGS"
  10041. fi
  10042. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10043. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10044. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10045. fi
  10046. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10047. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10048. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10049. cat >conftest.$ac_ext <<_ACEOF
  10050. /* confdefs.h. */
  10051. _ACEOF
  10052. cat confdefs.h >>conftest.$ac_ext
  10053. cat >>conftest.$ac_ext <<_ACEOF
  10054. /* end confdefs.h. */
  10055. int i;
  10056. _ACEOF
  10057. rm -f conftest.$ac_objext
  10058. if { (ac_try="$ac_compile"
  10059. case "(($ac_try" in
  10060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10061. *) ac_try_echo=$ac_try;;
  10062. esac
  10063. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10064. $as_echo "$ac_try_echo") >&5
  10065. (eval "$ac_compile") 2>conftest.er1
  10066. ac_status=$?
  10067. grep -v '^ *+' conftest.er1 >conftest.err
  10068. rm -f conftest.er1
  10069. cat conftest.err >&5
  10070. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10071. (exit $ac_status); } && {
  10072. test -z "$ac_c_werror_flag" ||
  10073. test ! -s conftest.err
  10074. } && test -s conftest.$ac_objext; then
  10075. xorg_testset_unused_command_line_argument=yes
  10076. else
  10077. $as_echo "$as_me: failed program was:" >&5
  10078. sed 's/^/| /' conftest.$ac_ext >&5
  10079. xorg_testset_unused_command_line_argument=no
  10080. fi
  10081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10082. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10083. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10084. CFLAGS="$xorg_testset_save_CFLAGS"
  10085. fi
  10086. found="no"
  10087. if test $found = "no" ; then
  10088. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10089. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10090. fi
  10091. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10092. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10093. fi
  10094. CFLAGS="$CFLAGS -Wtrigraphs"
  10095. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wtrigraphs" >&5
  10096. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  10097. cat >conftest.$ac_ext <<_ACEOF
  10098. /* confdefs.h. */
  10099. _ACEOF
  10100. cat confdefs.h >>conftest.$ac_ext
  10101. cat >>conftest.$ac_ext <<_ACEOF
  10102. /* end confdefs.h. */
  10103. int i;
  10104. int
  10105. main ()
  10106. {
  10107. ;
  10108. return 0;
  10109. }
  10110. _ACEOF
  10111. rm -f conftest.$ac_objext conftest$ac_exeext
  10112. if { (ac_try="$ac_link"
  10113. case "(($ac_try" in
  10114. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10115. *) ac_try_echo=$ac_try;;
  10116. esac
  10117. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10118. $as_echo "$ac_try_echo") >&5
  10119. (eval "$ac_link") 2>conftest.er1
  10120. ac_status=$?
  10121. grep -v '^ *+' conftest.er1 >conftest.err
  10122. rm -f conftest.er1
  10123. cat conftest.err >&5
  10124. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10125. (exit $ac_status); } && {
  10126. test -z "$ac_c_werror_flag" ||
  10127. test ! -s conftest.err
  10128. } && test -s conftest$ac_exeext && {
  10129. test "$cross_compiling" = yes ||
  10130. $as_test_x conftest$ac_exeext
  10131. }; then
  10132. supported=yes
  10133. else
  10134. $as_echo "$as_me: failed program was:" >&5
  10135. sed 's/^/| /' conftest.$ac_ext >&5
  10136. supported=no
  10137. fi
  10138. rm -rf conftest.dSYM
  10139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10140. conftest$ac_exeext conftest.$ac_ext
  10141. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10142. $as_echo "$supported" >&6; }
  10143. CFLAGS="$xorg_testset_save_CFLAGS"
  10144. if test "$supported" = "yes" ; then
  10145. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  10146. found="yes"
  10147. fi
  10148. fi
  10149. xorg_testset_save_CFLAGS="$CFLAGS"
  10150. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10151. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10152. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10153. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10154. cat >conftest.$ac_ext <<_ACEOF
  10155. /* confdefs.h. */
  10156. _ACEOF
  10157. cat confdefs.h >>conftest.$ac_ext
  10158. cat >>conftest.$ac_ext <<_ACEOF
  10159. /* end confdefs.h. */
  10160. int i;
  10161. _ACEOF
  10162. rm -f conftest.$ac_objext
  10163. if { (ac_try="$ac_compile"
  10164. case "(($ac_try" in
  10165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10166. *) ac_try_echo=$ac_try;;
  10167. esac
  10168. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10169. $as_echo "$ac_try_echo") >&5
  10170. (eval "$ac_compile") 2>conftest.er1
  10171. ac_status=$?
  10172. grep -v '^ *+' conftest.er1 >conftest.err
  10173. rm -f conftest.er1
  10174. cat conftest.err >&5
  10175. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10176. (exit $ac_status); } && {
  10177. test -z "$ac_c_werror_flag" ||
  10178. test ! -s conftest.err
  10179. } && test -s conftest.$ac_objext; then
  10180. xorg_testset_unknown_warning_option=yes
  10181. else
  10182. $as_echo "$as_me: failed program was:" >&5
  10183. sed 's/^/| /' conftest.$ac_ext >&5
  10184. xorg_testset_unknown_warning_option=no
  10185. fi
  10186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10187. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10188. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10189. CFLAGS="$xorg_testset_save_CFLAGS"
  10190. fi
  10191. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10192. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10193. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10194. fi
  10195. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10196. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10197. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10198. cat >conftest.$ac_ext <<_ACEOF
  10199. /* confdefs.h. */
  10200. _ACEOF
  10201. cat confdefs.h >>conftest.$ac_ext
  10202. cat >>conftest.$ac_ext <<_ACEOF
  10203. /* end confdefs.h. */
  10204. int i;
  10205. _ACEOF
  10206. rm -f conftest.$ac_objext
  10207. if { (ac_try="$ac_compile"
  10208. case "(($ac_try" in
  10209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10210. *) ac_try_echo=$ac_try;;
  10211. esac
  10212. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10213. $as_echo "$ac_try_echo") >&5
  10214. (eval "$ac_compile") 2>conftest.er1
  10215. ac_status=$?
  10216. grep -v '^ *+' conftest.er1 >conftest.err
  10217. rm -f conftest.er1
  10218. cat conftest.err >&5
  10219. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10220. (exit $ac_status); } && {
  10221. test -z "$ac_c_werror_flag" ||
  10222. test ! -s conftest.err
  10223. } && test -s conftest.$ac_objext; then
  10224. xorg_testset_unused_command_line_argument=yes
  10225. else
  10226. $as_echo "$as_me: failed program was:" >&5
  10227. sed 's/^/| /' conftest.$ac_ext >&5
  10228. xorg_testset_unused_command_line_argument=no
  10229. fi
  10230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10231. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10232. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10233. CFLAGS="$xorg_testset_save_CFLAGS"
  10234. fi
  10235. found="no"
  10236. if test $found = "no" ; then
  10237. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10238. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10239. fi
  10240. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10241. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10242. fi
  10243. CFLAGS="$CFLAGS -Warray-bounds"
  10244. { $as_echo "$as_me:$LINENO: checking if $CC supports -Warray-bounds" >&5
  10245. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  10246. cat >conftest.$ac_ext <<_ACEOF
  10247. /* confdefs.h. */
  10248. _ACEOF
  10249. cat confdefs.h >>conftest.$ac_ext
  10250. cat >>conftest.$ac_ext <<_ACEOF
  10251. /* end confdefs.h. */
  10252. int i;
  10253. int
  10254. main ()
  10255. {
  10256. ;
  10257. return 0;
  10258. }
  10259. _ACEOF
  10260. rm -f conftest.$ac_objext conftest$ac_exeext
  10261. if { (ac_try="$ac_link"
  10262. case "(($ac_try" in
  10263. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10264. *) ac_try_echo=$ac_try;;
  10265. esac
  10266. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10267. $as_echo "$ac_try_echo") >&5
  10268. (eval "$ac_link") 2>conftest.er1
  10269. ac_status=$?
  10270. grep -v '^ *+' conftest.er1 >conftest.err
  10271. rm -f conftest.er1
  10272. cat conftest.err >&5
  10273. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10274. (exit $ac_status); } && {
  10275. test -z "$ac_c_werror_flag" ||
  10276. test ! -s conftest.err
  10277. } && test -s conftest$ac_exeext && {
  10278. test "$cross_compiling" = yes ||
  10279. $as_test_x conftest$ac_exeext
  10280. }; then
  10281. supported=yes
  10282. else
  10283. $as_echo "$as_me: failed program was:" >&5
  10284. sed 's/^/| /' conftest.$ac_ext >&5
  10285. supported=no
  10286. fi
  10287. rm -rf conftest.dSYM
  10288. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10289. conftest$ac_exeext conftest.$ac_ext
  10290. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10291. $as_echo "$supported" >&6; }
  10292. CFLAGS="$xorg_testset_save_CFLAGS"
  10293. if test "$supported" = "yes" ; then
  10294. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  10295. found="yes"
  10296. fi
  10297. fi
  10298. xorg_testset_save_CFLAGS="$CFLAGS"
  10299. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10300. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10301. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10302. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10303. cat >conftest.$ac_ext <<_ACEOF
  10304. /* confdefs.h. */
  10305. _ACEOF
  10306. cat confdefs.h >>conftest.$ac_ext
  10307. cat >>conftest.$ac_ext <<_ACEOF
  10308. /* end confdefs.h. */
  10309. int i;
  10310. _ACEOF
  10311. rm -f conftest.$ac_objext
  10312. if { (ac_try="$ac_compile"
  10313. case "(($ac_try" in
  10314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10315. *) ac_try_echo=$ac_try;;
  10316. esac
  10317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10318. $as_echo "$ac_try_echo") >&5
  10319. (eval "$ac_compile") 2>conftest.er1
  10320. ac_status=$?
  10321. grep -v '^ *+' conftest.er1 >conftest.err
  10322. rm -f conftest.er1
  10323. cat conftest.err >&5
  10324. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10325. (exit $ac_status); } && {
  10326. test -z "$ac_c_werror_flag" ||
  10327. test ! -s conftest.err
  10328. } && test -s conftest.$ac_objext; then
  10329. xorg_testset_unknown_warning_option=yes
  10330. else
  10331. $as_echo "$as_me: failed program was:" >&5
  10332. sed 's/^/| /' conftest.$ac_ext >&5
  10333. xorg_testset_unknown_warning_option=no
  10334. fi
  10335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10336. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10337. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10338. CFLAGS="$xorg_testset_save_CFLAGS"
  10339. fi
  10340. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10341. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10342. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10343. fi
  10344. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10345. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10346. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10347. cat >conftest.$ac_ext <<_ACEOF
  10348. /* confdefs.h. */
  10349. _ACEOF
  10350. cat confdefs.h >>conftest.$ac_ext
  10351. cat >>conftest.$ac_ext <<_ACEOF
  10352. /* end confdefs.h. */
  10353. int i;
  10354. _ACEOF
  10355. rm -f conftest.$ac_objext
  10356. if { (ac_try="$ac_compile"
  10357. case "(($ac_try" in
  10358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10359. *) ac_try_echo=$ac_try;;
  10360. esac
  10361. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10362. $as_echo "$ac_try_echo") >&5
  10363. (eval "$ac_compile") 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } && {
  10370. test -z "$ac_c_werror_flag" ||
  10371. test ! -s conftest.err
  10372. } && test -s conftest.$ac_objext; then
  10373. xorg_testset_unused_command_line_argument=yes
  10374. else
  10375. $as_echo "$as_me: failed program was:" >&5
  10376. sed 's/^/| /' conftest.$ac_ext >&5
  10377. xorg_testset_unused_command_line_argument=no
  10378. fi
  10379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10380. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10381. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10382. CFLAGS="$xorg_testset_save_CFLAGS"
  10383. fi
  10384. found="no"
  10385. if test $found = "no" ; then
  10386. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10387. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10388. fi
  10389. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10390. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10391. fi
  10392. CFLAGS="$CFLAGS -Wwrite-strings"
  10393. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wwrite-strings" >&5
  10394. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  10395. cat >conftest.$ac_ext <<_ACEOF
  10396. /* confdefs.h. */
  10397. _ACEOF
  10398. cat confdefs.h >>conftest.$ac_ext
  10399. cat >>conftest.$ac_ext <<_ACEOF
  10400. /* end confdefs.h. */
  10401. int i;
  10402. int
  10403. main ()
  10404. {
  10405. ;
  10406. return 0;
  10407. }
  10408. _ACEOF
  10409. rm -f conftest.$ac_objext conftest$ac_exeext
  10410. if { (ac_try="$ac_link"
  10411. case "(($ac_try" in
  10412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10413. *) ac_try_echo=$ac_try;;
  10414. esac
  10415. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10416. $as_echo "$ac_try_echo") >&5
  10417. (eval "$ac_link") 2>conftest.er1
  10418. ac_status=$?
  10419. grep -v '^ *+' conftest.er1 >conftest.err
  10420. rm -f conftest.er1
  10421. cat conftest.err >&5
  10422. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); } && {
  10424. test -z "$ac_c_werror_flag" ||
  10425. test ! -s conftest.err
  10426. } && test -s conftest$ac_exeext && {
  10427. test "$cross_compiling" = yes ||
  10428. $as_test_x conftest$ac_exeext
  10429. }; then
  10430. supported=yes
  10431. else
  10432. $as_echo "$as_me: failed program was:" >&5
  10433. sed 's/^/| /' conftest.$ac_ext >&5
  10434. supported=no
  10435. fi
  10436. rm -rf conftest.dSYM
  10437. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10438. conftest$ac_exeext conftest.$ac_ext
  10439. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10440. $as_echo "$supported" >&6; }
  10441. CFLAGS="$xorg_testset_save_CFLAGS"
  10442. if test "$supported" = "yes" ; then
  10443. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  10444. found="yes"
  10445. fi
  10446. fi
  10447. xorg_testset_save_CFLAGS="$CFLAGS"
  10448. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10449. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10450. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10451. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10452. cat >conftest.$ac_ext <<_ACEOF
  10453. /* confdefs.h. */
  10454. _ACEOF
  10455. cat confdefs.h >>conftest.$ac_ext
  10456. cat >>conftest.$ac_ext <<_ACEOF
  10457. /* end confdefs.h. */
  10458. int i;
  10459. _ACEOF
  10460. rm -f conftest.$ac_objext
  10461. if { (ac_try="$ac_compile"
  10462. case "(($ac_try" in
  10463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10464. *) ac_try_echo=$ac_try;;
  10465. esac
  10466. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10467. $as_echo "$ac_try_echo") >&5
  10468. (eval "$ac_compile") 2>conftest.er1
  10469. ac_status=$?
  10470. grep -v '^ *+' conftest.er1 >conftest.err
  10471. rm -f conftest.er1
  10472. cat conftest.err >&5
  10473. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10474. (exit $ac_status); } && {
  10475. test -z "$ac_c_werror_flag" ||
  10476. test ! -s conftest.err
  10477. } && test -s conftest.$ac_objext; then
  10478. xorg_testset_unknown_warning_option=yes
  10479. else
  10480. $as_echo "$as_me: failed program was:" >&5
  10481. sed 's/^/| /' conftest.$ac_ext >&5
  10482. xorg_testset_unknown_warning_option=no
  10483. fi
  10484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10485. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10486. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10487. CFLAGS="$xorg_testset_save_CFLAGS"
  10488. fi
  10489. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10490. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10491. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10492. fi
  10493. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10494. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10495. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10496. cat >conftest.$ac_ext <<_ACEOF
  10497. /* confdefs.h. */
  10498. _ACEOF
  10499. cat confdefs.h >>conftest.$ac_ext
  10500. cat >>conftest.$ac_ext <<_ACEOF
  10501. /* end confdefs.h. */
  10502. int i;
  10503. _ACEOF
  10504. rm -f conftest.$ac_objext
  10505. if { (ac_try="$ac_compile"
  10506. case "(($ac_try" in
  10507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10508. *) ac_try_echo=$ac_try;;
  10509. esac
  10510. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10511. $as_echo "$ac_try_echo") >&5
  10512. (eval "$ac_compile") 2>conftest.er1
  10513. ac_status=$?
  10514. grep -v '^ *+' conftest.er1 >conftest.err
  10515. rm -f conftest.er1
  10516. cat conftest.err >&5
  10517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10518. (exit $ac_status); } && {
  10519. test -z "$ac_c_werror_flag" ||
  10520. test ! -s conftest.err
  10521. } && test -s conftest.$ac_objext; then
  10522. xorg_testset_unused_command_line_argument=yes
  10523. else
  10524. $as_echo "$as_me: failed program was:" >&5
  10525. sed 's/^/| /' conftest.$ac_ext >&5
  10526. xorg_testset_unused_command_line_argument=no
  10527. fi
  10528. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10529. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10530. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10531. CFLAGS="$xorg_testset_save_CFLAGS"
  10532. fi
  10533. found="no"
  10534. if test $found = "no" ; then
  10535. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10536. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10537. fi
  10538. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10539. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10540. fi
  10541. CFLAGS="$CFLAGS -Waddress"
  10542. { $as_echo "$as_me:$LINENO: checking if $CC supports -Waddress" >&5
  10543. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  10544. cat >conftest.$ac_ext <<_ACEOF
  10545. /* confdefs.h. */
  10546. _ACEOF
  10547. cat confdefs.h >>conftest.$ac_ext
  10548. cat >>conftest.$ac_ext <<_ACEOF
  10549. /* end confdefs.h. */
  10550. int i;
  10551. int
  10552. main ()
  10553. {
  10554. ;
  10555. return 0;
  10556. }
  10557. _ACEOF
  10558. rm -f conftest.$ac_objext conftest$ac_exeext
  10559. if { (ac_try="$ac_link"
  10560. case "(($ac_try" in
  10561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10562. *) ac_try_echo=$ac_try;;
  10563. esac
  10564. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10565. $as_echo "$ac_try_echo") >&5
  10566. (eval "$ac_link") 2>conftest.er1
  10567. ac_status=$?
  10568. grep -v '^ *+' conftest.er1 >conftest.err
  10569. rm -f conftest.er1
  10570. cat conftest.err >&5
  10571. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10572. (exit $ac_status); } && {
  10573. test -z "$ac_c_werror_flag" ||
  10574. test ! -s conftest.err
  10575. } && test -s conftest$ac_exeext && {
  10576. test "$cross_compiling" = yes ||
  10577. $as_test_x conftest$ac_exeext
  10578. }; then
  10579. supported=yes
  10580. else
  10581. $as_echo "$as_me: failed program was:" >&5
  10582. sed 's/^/| /' conftest.$ac_ext >&5
  10583. supported=no
  10584. fi
  10585. rm -rf conftest.dSYM
  10586. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10587. conftest$ac_exeext conftest.$ac_ext
  10588. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10589. $as_echo "$supported" >&6; }
  10590. CFLAGS="$xorg_testset_save_CFLAGS"
  10591. if test "$supported" = "yes" ; then
  10592. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  10593. found="yes"
  10594. fi
  10595. fi
  10596. xorg_testset_save_CFLAGS="$CFLAGS"
  10597. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10598. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10599. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10600. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10601. cat >conftest.$ac_ext <<_ACEOF
  10602. /* confdefs.h. */
  10603. _ACEOF
  10604. cat confdefs.h >>conftest.$ac_ext
  10605. cat >>conftest.$ac_ext <<_ACEOF
  10606. /* end confdefs.h. */
  10607. int i;
  10608. _ACEOF
  10609. rm -f conftest.$ac_objext
  10610. if { (ac_try="$ac_compile"
  10611. case "(($ac_try" in
  10612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10613. *) ac_try_echo=$ac_try;;
  10614. esac
  10615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10616. $as_echo "$ac_try_echo") >&5
  10617. (eval "$ac_compile") 2>conftest.er1
  10618. ac_status=$?
  10619. grep -v '^ *+' conftest.er1 >conftest.err
  10620. rm -f conftest.er1
  10621. cat conftest.err >&5
  10622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10623. (exit $ac_status); } && {
  10624. test -z "$ac_c_werror_flag" ||
  10625. test ! -s conftest.err
  10626. } && test -s conftest.$ac_objext; then
  10627. xorg_testset_unknown_warning_option=yes
  10628. else
  10629. $as_echo "$as_me: failed program was:" >&5
  10630. sed 's/^/| /' conftest.$ac_ext >&5
  10631. xorg_testset_unknown_warning_option=no
  10632. fi
  10633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10634. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10635. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10636. CFLAGS="$xorg_testset_save_CFLAGS"
  10637. fi
  10638. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10639. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10640. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10641. fi
  10642. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10643. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10644. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10645. cat >conftest.$ac_ext <<_ACEOF
  10646. /* confdefs.h. */
  10647. _ACEOF
  10648. cat confdefs.h >>conftest.$ac_ext
  10649. cat >>conftest.$ac_ext <<_ACEOF
  10650. /* end confdefs.h. */
  10651. int i;
  10652. _ACEOF
  10653. rm -f conftest.$ac_objext
  10654. if { (ac_try="$ac_compile"
  10655. case "(($ac_try" in
  10656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10657. *) ac_try_echo=$ac_try;;
  10658. esac
  10659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10660. $as_echo "$ac_try_echo") >&5
  10661. (eval "$ac_compile") 2>conftest.er1
  10662. ac_status=$?
  10663. grep -v '^ *+' conftest.er1 >conftest.err
  10664. rm -f conftest.er1
  10665. cat conftest.err >&5
  10666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10667. (exit $ac_status); } && {
  10668. test -z "$ac_c_werror_flag" ||
  10669. test ! -s conftest.err
  10670. } && test -s conftest.$ac_objext; then
  10671. xorg_testset_unused_command_line_argument=yes
  10672. else
  10673. $as_echo "$as_me: failed program was:" >&5
  10674. sed 's/^/| /' conftest.$ac_ext >&5
  10675. xorg_testset_unused_command_line_argument=no
  10676. fi
  10677. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10678. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10679. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10680. CFLAGS="$xorg_testset_save_CFLAGS"
  10681. fi
  10682. found="no"
  10683. if test $found = "no" ; then
  10684. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10685. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10686. fi
  10687. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10688. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10689. fi
  10690. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  10691. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wint-to-pointer-cast" >&5
  10692. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  10693. cat >conftest.$ac_ext <<_ACEOF
  10694. /* confdefs.h. */
  10695. _ACEOF
  10696. cat confdefs.h >>conftest.$ac_ext
  10697. cat >>conftest.$ac_ext <<_ACEOF
  10698. /* end confdefs.h. */
  10699. int i;
  10700. int
  10701. main ()
  10702. {
  10703. ;
  10704. return 0;
  10705. }
  10706. _ACEOF
  10707. rm -f conftest.$ac_objext conftest$ac_exeext
  10708. if { (ac_try="$ac_link"
  10709. case "(($ac_try" in
  10710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10711. *) ac_try_echo=$ac_try;;
  10712. esac
  10713. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10714. $as_echo "$ac_try_echo") >&5
  10715. (eval "$ac_link") 2>conftest.er1
  10716. ac_status=$?
  10717. grep -v '^ *+' conftest.er1 >conftest.err
  10718. rm -f conftest.er1
  10719. cat conftest.err >&5
  10720. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10721. (exit $ac_status); } && {
  10722. test -z "$ac_c_werror_flag" ||
  10723. test ! -s conftest.err
  10724. } && test -s conftest$ac_exeext && {
  10725. test "$cross_compiling" = yes ||
  10726. $as_test_x conftest$ac_exeext
  10727. }; then
  10728. supported=yes
  10729. else
  10730. $as_echo "$as_me: failed program was:" >&5
  10731. sed 's/^/| /' conftest.$ac_ext >&5
  10732. supported=no
  10733. fi
  10734. rm -rf conftest.dSYM
  10735. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10736. conftest$ac_exeext conftest.$ac_ext
  10737. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10738. $as_echo "$supported" >&6; }
  10739. CFLAGS="$xorg_testset_save_CFLAGS"
  10740. if test "$supported" = "yes" ; then
  10741. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  10742. found="yes"
  10743. fi
  10744. fi
  10745. xorg_testset_save_CFLAGS="$CFLAGS"
  10746. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10747. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10748. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10749. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10750. cat >conftest.$ac_ext <<_ACEOF
  10751. /* confdefs.h. */
  10752. _ACEOF
  10753. cat confdefs.h >>conftest.$ac_ext
  10754. cat >>conftest.$ac_ext <<_ACEOF
  10755. /* end confdefs.h. */
  10756. int i;
  10757. _ACEOF
  10758. rm -f conftest.$ac_objext
  10759. if { (ac_try="$ac_compile"
  10760. case "(($ac_try" in
  10761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10762. *) ac_try_echo=$ac_try;;
  10763. esac
  10764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10765. $as_echo "$ac_try_echo") >&5
  10766. (eval "$ac_compile") 2>conftest.er1
  10767. ac_status=$?
  10768. grep -v '^ *+' conftest.er1 >conftest.err
  10769. rm -f conftest.er1
  10770. cat conftest.err >&5
  10771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10772. (exit $ac_status); } && {
  10773. test -z "$ac_c_werror_flag" ||
  10774. test ! -s conftest.err
  10775. } && test -s conftest.$ac_objext; then
  10776. xorg_testset_unknown_warning_option=yes
  10777. else
  10778. $as_echo "$as_me: failed program was:" >&5
  10779. sed 's/^/| /' conftest.$ac_ext >&5
  10780. xorg_testset_unknown_warning_option=no
  10781. fi
  10782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10783. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10784. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10785. CFLAGS="$xorg_testset_save_CFLAGS"
  10786. fi
  10787. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10788. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10789. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10790. fi
  10791. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10792. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10793. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10794. cat >conftest.$ac_ext <<_ACEOF
  10795. /* confdefs.h. */
  10796. _ACEOF
  10797. cat confdefs.h >>conftest.$ac_ext
  10798. cat >>conftest.$ac_ext <<_ACEOF
  10799. /* end confdefs.h. */
  10800. int i;
  10801. _ACEOF
  10802. rm -f conftest.$ac_objext
  10803. if { (ac_try="$ac_compile"
  10804. case "(($ac_try" in
  10805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10806. *) ac_try_echo=$ac_try;;
  10807. esac
  10808. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10809. $as_echo "$ac_try_echo") >&5
  10810. (eval "$ac_compile") 2>conftest.er1
  10811. ac_status=$?
  10812. grep -v '^ *+' conftest.er1 >conftest.err
  10813. rm -f conftest.er1
  10814. cat conftest.err >&5
  10815. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10816. (exit $ac_status); } && {
  10817. test -z "$ac_c_werror_flag" ||
  10818. test ! -s conftest.err
  10819. } && test -s conftest.$ac_objext; then
  10820. xorg_testset_unused_command_line_argument=yes
  10821. else
  10822. $as_echo "$as_me: failed program was:" >&5
  10823. sed 's/^/| /' conftest.$ac_ext >&5
  10824. xorg_testset_unused_command_line_argument=no
  10825. fi
  10826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10827. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10828. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10829. CFLAGS="$xorg_testset_save_CFLAGS"
  10830. fi
  10831. found="no"
  10832. if test $found = "no" ; then
  10833. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10834. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10835. fi
  10836. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10837. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10838. fi
  10839. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  10840. { $as_echo "$as_me:$LINENO: checking if $CC supports -Wpointer-to-int-cast" >&5
  10841. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  10842. cat >conftest.$ac_ext <<_ACEOF
  10843. /* confdefs.h. */
  10844. _ACEOF
  10845. cat confdefs.h >>conftest.$ac_ext
  10846. cat >>conftest.$ac_ext <<_ACEOF
  10847. /* end confdefs.h. */
  10848. int i;
  10849. int
  10850. main ()
  10851. {
  10852. ;
  10853. return 0;
  10854. }
  10855. _ACEOF
  10856. rm -f conftest.$ac_objext conftest$ac_exeext
  10857. if { (ac_try="$ac_link"
  10858. case "(($ac_try" in
  10859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10860. *) ac_try_echo=$ac_try;;
  10861. esac
  10862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10863. $as_echo "$ac_try_echo") >&5
  10864. (eval "$ac_link") 2>conftest.er1
  10865. ac_status=$?
  10866. grep -v '^ *+' conftest.er1 >conftest.err
  10867. rm -f conftest.er1
  10868. cat conftest.err >&5
  10869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10870. (exit $ac_status); } && {
  10871. test -z "$ac_c_werror_flag" ||
  10872. test ! -s conftest.err
  10873. } && test -s conftest$ac_exeext && {
  10874. test "$cross_compiling" = yes ||
  10875. $as_test_x conftest$ac_exeext
  10876. }; then
  10877. supported=yes
  10878. else
  10879. $as_echo "$as_me: failed program was:" >&5
  10880. sed 's/^/| /' conftest.$ac_ext >&5
  10881. supported=no
  10882. fi
  10883. rm -rf conftest.dSYM
  10884. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10885. conftest$ac_exeext conftest.$ac_ext
  10886. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  10887. $as_echo "$supported" >&6; }
  10888. CFLAGS="$xorg_testset_save_CFLAGS"
  10889. if test "$supported" = "yes" ; then
  10890. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  10891. found="yes"
  10892. fi
  10893. fi
  10894. fi
  10895. CWARNFLAGS="$BASE_CFLAGS"
  10896. if test "x$GCC" = xyes ; then
  10897. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  10898. fi
  10899. # Check whether --enable-strict-compilation was given.
  10900. if test "${enable_strict_compilation+set}" = set; then
  10901. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  10902. else
  10903. STRICT_COMPILE=no
  10904. fi
  10905. STRICT_CFLAGS=""
  10906. xorg_testset_save_CFLAGS="$CFLAGS"
  10907. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  10908. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10909. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  10910. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  10911. cat >conftest.$ac_ext <<_ACEOF
  10912. /* confdefs.h. */
  10913. _ACEOF
  10914. cat confdefs.h >>conftest.$ac_ext
  10915. cat >>conftest.$ac_ext <<_ACEOF
  10916. /* end confdefs.h. */
  10917. int i;
  10918. _ACEOF
  10919. rm -f conftest.$ac_objext
  10920. if { (ac_try="$ac_compile"
  10921. case "(($ac_try" in
  10922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10923. *) ac_try_echo=$ac_try;;
  10924. esac
  10925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10926. $as_echo "$ac_try_echo") >&5
  10927. (eval "$ac_compile") 2>conftest.er1
  10928. ac_status=$?
  10929. grep -v '^ *+' conftest.er1 >conftest.err
  10930. rm -f conftest.er1
  10931. cat conftest.err >&5
  10932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10933. (exit $ac_status); } && {
  10934. test -z "$ac_c_werror_flag" ||
  10935. test ! -s conftest.err
  10936. } && test -s conftest.$ac_objext; then
  10937. xorg_testset_unknown_warning_option=yes
  10938. else
  10939. $as_echo "$as_me: failed program was:" >&5
  10940. sed 's/^/| /' conftest.$ac_ext >&5
  10941. xorg_testset_unknown_warning_option=no
  10942. fi
  10943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10944. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  10945. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  10946. CFLAGS="$xorg_testset_save_CFLAGS"
  10947. fi
  10948. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  10949. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10950. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10951. fi
  10952. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10953. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  10954. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  10955. cat >conftest.$ac_ext <<_ACEOF
  10956. /* confdefs.h. */
  10957. _ACEOF
  10958. cat confdefs.h >>conftest.$ac_ext
  10959. cat >>conftest.$ac_ext <<_ACEOF
  10960. /* end confdefs.h. */
  10961. int i;
  10962. _ACEOF
  10963. rm -f conftest.$ac_objext
  10964. if { (ac_try="$ac_compile"
  10965. case "(($ac_try" in
  10966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10967. *) ac_try_echo=$ac_try;;
  10968. esac
  10969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10970. $as_echo "$ac_try_echo") >&5
  10971. (eval "$ac_compile") 2>conftest.er1
  10972. ac_status=$?
  10973. grep -v '^ *+' conftest.er1 >conftest.err
  10974. rm -f conftest.er1
  10975. cat conftest.err >&5
  10976. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10977. (exit $ac_status); } && {
  10978. test -z "$ac_c_werror_flag" ||
  10979. test ! -s conftest.err
  10980. } && test -s conftest.$ac_objext; then
  10981. xorg_testset_unused_command_line_argument=yes
  10982. else
  10983. $as_echo "$as_me: failed program was:" >&5
  10984. sed 's/^/| /' conftest.$ac_ext >&5
  10985. xorg_testset_unused_command_line_argument=no
  10986. fi
  10987. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10988. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  10989. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  10990. CFLAGS="$xorg_testset_save_CFLAGS"
  10991. fi
  10992. found="no"
  10993. if test $found = "no" ; then
  10994. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  10995. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  10996. fi
  10997. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  10998. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  10999. fi
  11000. CFLAGS="$CFLAGS -pedantic"
  11001. { $as_echo "$as_me:$LINENO: checking if $CC supports -pedantic" >&5
  11002. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  11003. cat >conftest.$ac_ext <<_ACEOF
  11004. /* confdefs.h. */
  11005. _ACEOF
  11006. cat confdefs.h >>conftest.$ac_ext
  11007. cat >>conftest.$ac_ext <<_ACEOF
  11008. /* end confdefs.h. */
  11009. int i;
  11010. int
  11011. main ()
  11012. {
  11013. ;
  11014. return 0;
  11015. }
  11016. _ACEOF
  11017. rm -f conftest.$ac_objext conftest$ac_exeext
  11018. if { (ac_try="$ac_link"
  11019. case "(($ac_try" in
  11020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11021. *) ac_try_echo=$ac_try;;
  11022. esac
  11023. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11024. $as_echo "$ac_try_echo") >&5
  11025. (eval "$ac_link") 2>conftest.er1
  11026. ac_status=$?
  11027. grep -v '^ *+' conftest.er1 >conftest.err
  11028. rm -f conftest.er1
  11029. cat conftest.err >&5
  11030. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11031. (exit $ac_status); } && {
  11032. test -z "$ac_c_werror_flag" ||
  11033. test ! -s conftest.err
  11034. } && test -s conftest$ac_exeext && {
  11035. test "$cross_compiling" = yes ||
  11036. $as_test_x conftest$ac_exeext
  11037. }; then
  11038. supported=yes
  11039. else
  11040. $as_echo "$as_me: failed program was:" >&5
  11041. sed 's/^/| /' conftest.$ac_ext >&5
  11042. supported=no
  11043. fi
  11044. rm -rf conftest.dSYM
  11045. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11046. conftest$ac_exeext conftest.$ac_ext
  11047. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  11048. $as_echo "$supported" >&6; }
  11049. CFLAGS="$xorg_testset_save_CFLAGS"
  11050. if test "$supported" = "yes" ; then
  11051. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  11052. found="yes"
  11053. fi
  11054. fi
  11055. xorg_testset_save_CFLAGS="$CFLAGS"
  11056. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  11057. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11058. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  11059. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  11060. cat >conftest.$ac_ext <<_ACEOF
  11061. /* confdefs.h. */
  11062. _ACEOF
  11063. cat confdefs.h >>conftest.$ac_ext
  11064. cat >>conftest.$ac_ext <<_ACEOF
  11065. /* end confdefs.h. */
  11066. int i;
  11067. _ACEOF
  11068. rm -f conftest.$ac_objext
  11069. if { (ac_try="$ac_compile"
  11070. case "(($ac_try" in
  11071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11072. *) ac_try_echo=$ac_try;;
  11073. esac
  11074. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11075. $as_echo "$ac_try_echo") >&5
  11076. (eval "$ac_compile") 2>conftest.er1
  11077. ac_status=$?
  11078. grep -v '^ *+' conftest.er1 >conftest.err
  11079. rm -f conftest.er1
  11080. cat conftest.err >&5
  11081. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11082. (exit $ac_status); } && {
  11083. test -z "$ac_c_werror_flag" ||
  11084. test ! -s conftest.err
  11085. } && test -s conftest.$ac_objext; then
  11086. xorg_testset_unknown_warning_option=yes
  11087. else
  11088. $as_echo "$as_me: failed program was:" >&5
  11089. sed 's/^/| /' conftest.$ac_ext >&5
  11090. xorg_testset_unknown_warning_option=no
  11091. fi
  11092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11093. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  11094. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  11095. CFLAGS="$xorg_testset_save_CFLAGS"
  11096. fi
  11097. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  11098. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  11099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11100. fi
  11101. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  11102. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  11103. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  11104. cat >conftest.$ac_ext <<_ACEOF
  11105. /* confdefs.h. */
  11106. _ACEOF
  11107. cat confdefs.h >>conftest.$ac_ext
  11108. cat >>conftest.$ac_ext <<_ACEOF
  11109. /* end confdefs.h. */
  11110. int i;
  11111. _ACEOF
  11112. rm -f conftest.$ac_objext
  11113. if { (ac_try="$ac_compile"
  11114. case "(($ac_try" in
  11115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11116. *) ac_try_echo=$ac_try;;
  11117. esac
  11118. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11119. $as_echo "$ac_try_echo") >&5
  11120. (eval "$ac_compile") 2>conftest.er1
  11121. ac_status=$?
  11122. grep -v '^ *+' conftest.er1 >conftest.err
  11123. rm -f conftest.er1
  11124. cat conftest.err >&5
  11125. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11126. (exit $ac_status); } && {
  11127. test -z "$ac_c_werror_flag" ||
  11128. test ! -s conftest.err
  11129. } && test -s conftest.$ac_objext; then
  11130. xorg_testset_unused_command_line_argument=yes
  11131. else
  11132. $as_echo "$as_me: failed program was:" >&5
  11133. sed 's/^/| /' conftest.$ac_ext >&5
  11134. xorg_testset_unused_command_line_argument=no
  11135. fi
  11136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11137. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  11138. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  11139. CFLAGS="$xorg_testset_save_CFLAGS"
  11140. fi
  11141. found="no"
  11142. if test $found = "no" ; then
  11143. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  11144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11145. fi
  11146. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  11147. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  11148. fi
  11149. CFLAGS="$CFLAGS -Werror"
  11150. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror" >&5
  11151. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  11152. cat >conftest.$ac_ext <<_ACEOF
  11153. /* confdefs.h. */
  11154. _ACEOF
  11155. cat confdefs.h >>conftest.$ac_ext
  11156. cat >>conftest.$ac_ext <<_ACEOF
  11157. /* end confdefs.h. */
  11158. int i;
  11159. int
  11160. main ()
  11161. {
  11162. ;
  11163. return 0;
  11164. }
  11165. _ACEOF
  11166. rm -f conftest.$ac_objext conftest$ac_exeext
  11167. if { (ac_try="$ac_link"
  11168. case "(($ac_try" in
  11169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11170. *) ac_try_echo=$ac_try;;
  11171. esac
  11172. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11173. $as_echo "$ac_try_echo") >&5
  11174. (eval "$ac_link") 2>conftest.er1
  11175. ac_status=$?
  11176. grep -v '^ *+' conftest.er1 >conftest.err
  11177. rm -f conftest.er1
  11178. cat conftest.err >&5
  11179. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11180. (exit $ac_status); } && {
  11181. test -z "$ac_c_werror_flag" ||
  11182. test ! -s conftest.err
  11183. } && test -s conftest$ac_exeext && {
  11184. test "$cross_compiling" = yes ||
  11185. $as_test_x conftest$ac_exeext
  11186. }; then
  11187. supported=yes
  11188. else
  11189. $as_echo "$as_me: failed program was:" >&5
  11190. sed 's/^/| /' conftest.$ac_ext >&5
  11191. supported=no
  11192. fi
  11193. rm -rf conftest.dSYM
  11194. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11195. conftest$ac_exeext conftest.$ac_ext
  11196. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  11197. $as_echo "$supported" >&6; }
  11198. CFLAGS="$xorg_testset_save_CFLAGS"
  11199. if test "$supported" = "yes" ; then
  11200. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  11201. found="yes"
  11202. fi
  11203. fi
  11204. if test $found = "no" ; then
  11205. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  11206. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11207. fi
  11208. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  11209. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  11210. fi
  11211. CFLAGS="$CFLAGS -errwarn"
  11212. { $as_echo "$as_me:$LINENO: checking if $CC supports -errwarn" >&5
  11213. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  11214. cat >conftest.$ac_ext <<_ACEOF
  11215. /* confdefs.h. */
  11216. _ACEOF
  11217. cat confdefs.h >>conftest.$ac_ext
  11218. cat >>conftest.$ac_ext <<_ACEOF
  11219. /* end confdefs.h. */
  11220. int i;
  11221. int
  11222. main ()
  11223. {
  11224. ;
  11225. return 0;
  11226. }
  11227. _ACEOF
  11228. rm -f conftest.$ac_objext conftest$ac_exeext
  11229. if { (ac_try="$ac_link"
  11230. case "(($ac_try" in
  11231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11232. *) ac_try_echo=$ac_try;;
  11233. esac
  11234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11235. $as_echo "$ac_try_echo") >&5
  11236. (eval "$ac_link") 2>conftest.er1
  11237. ac_status=$?
  11238. grep -v '^ *+' conftest.er1 >conftest.err
  11239. rm -f conftest.er1
  11240. cat conftest.err >&5
  11241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11242. (exit $ac_status); } && {
  11243. test -z "$ac_c_werror_flag" ||
  11244. test ! -s conftest.err
  11245. } && test -s conftest$ac_exeext && {
  11246. test "$cross_compiling" = yes ||
  11247. $as_test_x conftest$ac_exeext
  11248. }; then
  11249. supported=yes
  11250. else
  11251. $as_echo "$as_me: failed program was:" >&5
  11252. sed 's/^/| /' conftest.$ac_ext >&5
  11253. supported=no
  11254. fi
  11255. rm -rf conftest.dSYM
  11256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11257. conftest$ac_exeext conftest.$ac_ext
  11258. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  11259. $as_echo "$supported" >&6; }
  11260. CFLAGS="$xorg_testset_save_CFLAGS"
  11261. if test "$supported" = "yes" ; then
  11262. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  11263. found="yes"
  11264. fi
  11265. fi
  11266. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  11267. # activate it with -Werror, so we add it here explicitly.
  11268. xorg_testset_save_CFLAGS="$CFLAGS"
  11269. if test "x$xorg_testset_unknown_warning_option" = "x" ; then
  11270. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11271. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unknown-warning-option" >&5
  11272. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  11273. cat >conftest.$ac_ext <<_ACEOF
  11274. /* confdefs.h. */
  11275. _ACEOF
  11276. cat confdefs.h >>conftest.$ac_ext
  11277. cat >>conftest.$ac_ext <<_ACEOF
  11278. /* end confdefs.h. */
  11279. int i;
  11280. _ACEOF
  11281. rm -f conftest.$ac_objext
  11282. if { (ac_try="$ac_compile"
  11283. case "(($ac_try" in
  11284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11285. *) ac_try_echo=$ac_try;;
  11286. esac
  11287. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11288. $as_echo "$ac_try_echo") >&5
  11289. (eval "$ac_compile") 2>conftest.er1
  11290. ac_status=$?
  11291. grep -v '^ *+' conftest.er1 >conftest.err
  11292. rm -f conftest.er1
  11293. cat conftest.err >&5
  11294. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11295. (exit $ac_status); } && {
  11296. test -z "$ac_c_werror_flag" ||
  11297. test ! -s conftest.err
  11298. } && test -s conftest.$ac_objext; then
  11299. xorg_testset_unknown_warning_option=yes
  11300. else
  11301. $as_echo "$as_me: failed program was:" >&5
  11302. sed 's/^/| /' conftest.$ac_ext >&5
  11303. xorg_testset_unknown_warning_option=no
  11304. fi
  11305. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11306. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unknown_warning_option" >&5
  11307. $as_echo "$xorg_testset_unknown_warning_option" >&6; }
  11308. CFLAGS="$xorg_testset_save_CFLAGS"
  11309. fi
  11310. if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
  11311. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  11312. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11313. fi
  11314. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  11315. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=unused-command-line-argument" >&5
  11316. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  11317. cat >conftest.$ac_ext <<_ACEOF
  11318. /* confdefs.h. */
  11319. _ACEOF
  11320. cat confdefs.h >>conftest.$ac_ext
  11321. cat >>conftest.$ac_ext <<_ACEOF
  11322. /* end confdefs.h. */
  11323. int i;
  11324. _ACEOF
  11325. rm -f conftest.$ac_objext
  11326. if { (ac_try="$ac_compile"
  11327. case "(($ac_try" in
  11328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11329. *) ac_try_echo=$ac_try;;
  11330. esac
  11331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11332. $as_echo "$ac_try_echo") >&5
  11333. (eval "$ac_compile") 2>conftest.er1
  11334. ac_status=$?
  11335. grep -v '^ *+' conftest.er1 >conftest.err
  11336. rm -f conftest.er1
  11337. cat conftest.err >&5
  11338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11339. (exit $ac_status); } && {
  11340. test -z "$ac_c_werror_flag" ||
  11341. test ! -s conftest.err
  11342. } && test -s conftest.$ac_objext; then
  11343. xorg_testset_unused_command_line_argument=yes
  11344. else
  11345. $as_echo "$as_me: failed program was:" >&5
  11346. sed 's/^/| /' conftest.$ac_ext >&5
  11347. xorg_testset_unused_command_line_argument=no
  11348. fi
  11349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11350. { $as_echo "$as_me:$LINENO: result: $xorg_testset_unused_command_line_argument" >&5
  11351. $as_echo "$xorg_testset_unused_command_line_argument" >&6; }
  11352. CFLAGS="$xorg_testset_save_CFLAGS"
  11353. fi
  11354. found="no"
  11355. if test $found = "no" ; then
  11356. if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
  11357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  11358. fi
  11359. if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
  11360. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  11361. fi
  11362. CFLAGS="$CFLAGS -Werror=attributes"
  11363. { $as_echo "$as_me:$LINENO: checking if $CC supports -Werror=attributes" >&5
  11364. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  11365. cat >conftest.$ac_ext <<_ACEOF
  11366. /* confdefs.h. */
  11367. _ACEOF
  11368. cat confdefs.h >>conftest.$ac_ext
  11369. cat >>conftest.$ac_ext <<_ACEOF
  11370. /* end confdefs.h. */
  11371. int i;
  11372. int
  11373. main ()
  11374. {
  11375. ;
  11376. return 0;
  11377. }
  11378. _ACEOF
  11379. rm -f conftest.$ac_objext conftest$ac_exeext
  11380. if { (ac_try="$ac_link"
  11381. case "(($ac_try" in
  11382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11383. *) ac_try_echo=$ac_try;;
  11384. esac
  11385. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11386. $as_echo "$ac_try_echo") >&5
  11387. (eval "$ac_link") 2>conftest.er1
  11388. ac_status=$?
  11389. grep -v '^ *+' conftest.er1 >conftest.err
  11390. rm -f conftest.er1
  11391. cat conftest.err >&5
  11392. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11393. (exit $ac_status); } && {
  11394. test -z "$ac_c_werror_flag" ||
  11395. test ! -s conftest.err
  11396. } && test -s conftest$ac_exeext && {
  11397. test "$cross_compiling" = yes ||
  11398. $as_test_x conftest$ac_exeext
  11399. }; then
  11400. supported=yes
  11401. else
  11402. $as_echo "$as_me: failed program was:" >&5
  11403. sed 's/^/| /' conftest.$ac_ext >&5
  11404. supported=no
  11405. fi
  11406. rm -rf conftest.dSYM
  11407. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11408. conftest$ac_exeext conftest.$ac_ext
  11409. { $as_echo "$as_me:$LINENO: result: $supported" >&5
  11410. $as_echo "$supported" >&6; }
  11411. CFLAGS="$xorg_testset_save_CFLAGS"
  11412. if test "$supported" = "yes" ; then
  11413. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  11414. found="yes"
  11415. fi
  11416. fi
  11417. if test "x$STRICT_COMPILE" = "xyes"; then
  11418. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  11419. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  11420. fi
  11421. cat >>confdefs.h <<_ACEOF
  11422. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  11423. _ACEOF
  11424. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  11425. if test "x$PVM" = "x"; then
  11426. PVM="0"
  11427. fi
  11428. cat >>confdefs.h <<_ACEOF
  11429. #define PACKAGE_VERSION_MINOR $PVM
  11430. _ACEOF
  11431. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  11432. if test "x$PVP" = "x"; then
  11433. PVP="0"
  11434. fi
  11435. cat >>confdefs.h <<_ACEOF
  11436. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  11437. _ACEOF
  11438. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  11439. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  11440. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  11441. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  11442. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  11443. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  11444. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  11445. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  11446. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  11447. if test x$APP_MAN_SUFFIX = x ; then
  11448. APP_MAN_SUFFIX=1
  11449. fi
  11450. if test x$APP_MAN_DIR = x ; then
  11451. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  11452. fi
  11453. if test x$LIB_MAN_SUFFIX = x ; then
  11454. LIB_MAN_SUFFIX=3
  11455. fi
  11456. if test x$LIB_MAN_DIR = x ; then
  11457. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  11458. fi
  11459. if test x$FILE_MAN_SUFFIX = x ; then
  11460. case $host_os in
  11461. solaris*) FILE_MAN_SUFFIX=4 ;;
  11462. *) FILE_MAN_SUFFIX=5 ;;
  11463. esac
  11464. fi
  11465. if test x$FILE_MAN_DIR = x ; then
  11466. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  11467. fi
  11468. if test x$MISC_MAN_SUFFIX = x ; then
  11469. case $host_os in
  11470. solaris*) MISC_MAN_SUFFIX=5 ;;
  11471. *) MISC_MAN_SUFFIX=7 ;;
  11472. esac
  11473. fi
  11474. if test x$MISC_MAN_DIR = x ; then
  11475. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  11476. fi
  11477. if test x$DRIVER_MAN_SUFFIX = x ; then
  11478. case $host_os in
  11479. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  11480. *) DRIVER_MAN_SUFFIX=4 ;;
  11481. esac
  11482. fi
  11483. if test x$DRIVER_MAN_DIR = x ; then
  11484. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  11485. fi
  11486. if test x$ADMIN_MAN_SUFFIX = x ; then
  11487. case $host_os in
  11488. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  11489. *) ADMIN_MAN_SUFFIX=8 ;;
  11490. esac
  11491. fi
  11492. if test x$ADMIN_MAN_DIR = x ; then
  11493. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  11494. fi
  11495. XORG_MAN_PAGE="X Version 11"
  11496. MAN_SUBSTS="\
  11497. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  11498. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  11499. -e 's|__xservername__|Xorg|g' \
  11500. -e 's|__xconfigfile__|xorg.conf|g' \
  11501. -e 's|__projectroot__|\$(prefix)|g' \
  11502. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  11503. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  11504. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  11505. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  11506. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  11507. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  11508. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  11509. AM_DEFAULT_VERBOSITY=1
  11510. ac_config_headers="$ac_config_headers config.h"
  11511. # Optional dependencies
  11512. # Check whether --with-xkb was given.
  11513. if test "${with_xkb+set}" = set; then
  11514. withval=$with_xkb; use_xkb="$withval"
  11515. else
  11516. use_xkb="yes"
  11517. fi
  11518. if test x$use_xkb != xno ; then
  11519. XKBMODULE="xkbfile"
  11520. cat >>confdefs.h <<\_ACEOF
  11521. #define XKB 1
  11522. _ACEOF
  11523. fi
  11524. # Checks for pkg-config packages
  11525. pkg_failed=no
  11526. { $as_echo "$as_me:$LINENO: checking for OCLOCK" >&5
  11527. $as_echo_n "checking for OCLOCK... " >&6; }
  11528. if test -n "$PKG_CONFIG"; then
  11529. if test -n "$OCLOCK_CFLAGS"; then
  11530. pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS"
  11531. else
  11532. if test -n "$PKG_CONFIG" && \
  11533. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\"") >&5
  11534. ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
  11535. ac_status=$?
  11536. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11537. (exit $ac_status); }; then
  11538. pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
  11539. else
  11540. pkg_failed=yes
  11541. fi
  11542. fi
  11543. else
  11544. pkg_failed=untried
  11545. fi
  11546. if test -n "$PKG_CONFIG"; then
  11547. if test -n "$OCLOCK_LIBS"; then
  11548. pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS"
  11549. else
  11550. if test -n "$PKG_CONFIG" && \
  11551. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext xt \${XKBMODULE}\"") >&5
  11552. ($PKG_CONFIG --exists --print-errors "x11 xmu xext xt ${XKBMODULE}") 2>&5
  11553. ac_status=$?
  11554. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11555. (exit $ac_status); }; then
  11556. pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext xt ${XKBMODULE}" 2>/dev/null`
  11557. else
  11558. pkg_failed=yes
  11559. fi
  11560. fi
  11561. else
  11562. pkg_failed=untried
  11563. fi
  11564. if test $pkg_failed = yes; then
  11565. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  11566. _pkg_short_errors_supported=yes
  11567. else
  11568. _pkg_short_errors_supported=no
  11569. fi
  11570. if test $_pkg_short_errors_supported = yes; then
  11571. OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xmu xext xt ${XKBMODULE}"`
  11572. else
  11573. OCLOCK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmu xext xt ${XKBMODULE}"`
  11574. fi
  11575. # Put the nasty error message in config.log where it belongs
  11576. echo "$OCLOCK_PKG_ERRORS" >&5
  11577. { { $as_echo "$as_me:$LINENO: error: Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met:
  11578. $OCLOCK_PKG_ERRORS
  11579. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11580. installed software in a non-standard prefix.
  11581. Alternatively, you may set the environment variables OCLOCK_CFLAGS
  11582. and OCLOCK_LIBS to avoid the need to call pkg-config.
  11583. See the pkg-config man page for more details.
  11584. " >&5
  11585. $as_echo "$as_me: error: Package requirements (x11 xmu xext xt ${XKBMODULE}) were not met:
  11586. $OCLOCK_PKG_ERRORS
  11587. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  11588. installed software in a non-standard prefix.
  11589. Alternatively, you may set the environment variables OCLOCK_CFLAGS
  11590. and OCLOCK_LIBS to avoid the need to call pkg-config.
  11591. See the pkg-config man page for more details.
  11592. " >&2;}
  11593. { (exit 1); exit 1; }; }
  11594. elif test $pkg_failed = untried; then
  11595. { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  11596. is in your PATH or set the PKG_CONFIG environment variable to the full
  11597. path to pkg-config.
  11598. Alternatively, you may set the environment variables OCLOCK_CFLAGS
  11599. and OCLOCK_LIBS to avoid the need to call pkg-config.
  11600. See the pkg-config man page for more details.
  11601. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  11602. See \`config.log' for more details." >&5
  11603. $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  11604. is in your PATH or set the PKG_CONFIG environment variable to the full
  11605. path to pkg-config.
  11606. Alternatively, you may set the environment variables OCLOCK_CFLAGS
  11607. and OCLOCK_LIBS to avoid the need to call pkg-config.
  11608. See the pkg-config man page for more details.
  11609. To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
  11610. See \`config.log' for more details." >&2;}
  11611. { (exit 1); exit 1; }; }
  11612. else
  11613. OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS
  11614. OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS
  11615. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11616. $as_echo "yes" >&6; }
  11617. :
  11618. fi
  11619. xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
  11620. # Check whether --with-appdefaultdir was given.
  11621. if test "${with_appdefaultdir+set}" = set; then
  11622. withval=$with_appdefaultdir; appdefaultdir="$withval"
  11623. else
  11624. appdefaultdir="${xt_appdefaultdir}"
  11625. fi
  11626. ac_config_files="$ac_config_files Makefile man/Makefile"
  11627. cat >confcache <<\_ACEOF
  11628. # This file is a shell script that caches the results of configure
  11629. # tests run on this system so they can be shared between configure
  11630. # scripts and configure runs, see configure's option --config-cache.
  11631. # It is not useful on other systems. If it contains results you don't
  11632. # want to keep, you may remove or edit it.
  11633. #
  11634. # config.status only pays attention to the cache file if you give it
  11635. # the --recheck option to rerun configure.
  11636. #
  11637. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11638. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11639. # following values.
  11640. _ACEOF
  11641. # The following way of writing the cache mishandles newlines in values,
  11642. # but we know of no workaround that is simple, portable, and efficient.
  11643. # So, we kill variables containing newlines.
  11644. # Ultrix sh set writes to stderr and can't be redirected directly,
  11645. # and sets the high bit in the cache file unless we assign to the vars.
  11646. (
  11647. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11648. eval ac_val=\$$ac_var
  11649. case $ac_val in #(
  11650. *${as_nl}*)
  11651. case $ac_var in #(
  11652. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11653. $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11654. esac
  11655. case $ac_var in #(
  11656. _ | IFS | as_nl) ;; #(
  11657. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11658. *) $as_unset $ac_var ;;
  11659. esac ;;
  11660. esac
  11661. done
  11662. (set) 2>&1 |
  11663. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11664. *${as_nl}ac_space=\ *)
  11665. # `set' does not quote correctly, so add quotes (double-quote
  11666. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11667. sed -n \
  11668. "s/'/'\\\\''/g;
  11669. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11670. ;; #(
  11671. *)
  11672. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11673. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11674. ;;
  11675. esac |
  11676. sort
  11677. ) |
  11678. sed '
  11679. /^ac_cv_env_/b end
  11680. t clear
  11681. :clear
  11682. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11683. t end
  11684. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11685. :end' >>confcache
  11686. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11687. if test -w "$cache_file"; then
  11688. test "x$cache_file" != "x/dev/null" &&
  11689. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11690. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11691. cat confcache >$cache_file
  11692. else
  11693. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11694. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11695. fi
  11696. fi
  11697. rm -f confcache
  11698. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11699. # Let make expand exec_prefix.
  11700. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11701. DEFS=-DHAVE_CONFIG_H
  11702. ac_libobjs=
  11703. ac_ltlibobjs=
  11704. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11705. # 1. Remove the extension, and $U if already installed.
  11706. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11707. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11708. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11709. # will be set to the directory where LIBOBJS objects are built.
  11710. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11711. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11712. done
  11713. LIBOBJS=$ac_libobjs
  11714. LTLIBOBJS=$ac_ltlibobjs
  11715. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  11716. { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  11717. Usually this means the macro was only invoked conditionally." >&5
  11718. $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  11719. Usually this means the macro was only invoked conditionally." >&2;}
  11720. { (exit 1); exit 1; }; }
  11721. fi
  11722. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11723. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11724. Usually this means the macro was only invoked conditionally." >&5
  11725. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11726. Usually this means the macro was only invoked conditionally." >&2;}
  11727. { (exit 1); exit 1; }; }
  11728. fi
  11729. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11730. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11731. Usually this means the macro was only invoked conditionally." >&5
  11732. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11733. Usually this means the macro was only invoked conditionally." >&2;}
  11734. { (exit 1); exit 1; }; }
  11735. fi
  11736. : ${CONFIG_STATUS=./config.status}
  11737. ac_write_fail=0
  11738. ac_clean_files_save=$ac_clean_files
  11739. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11740. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11741. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11742. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11743. #! $SHELL
  11744. # Generated by $as_me.
  11745. # Run this file to recreate the current configuration.
  11746. # Compiler output produced by configure, useful for debugging
  11747. # configure, is in config.log if it exists.
  11748. debug=false
  11749. ac_cs_recheck=false
  11750. ac_cs_silent=false
  11751. SHELL=\${CONFIG_SHELL-$SHELL}
  11752. _ACEOF
  11753. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11754. ## --------------------- ##
  11755. ## M4sh Initialization. ##
  11756. ## --------------------- ##
  11757. # Be more Bourne compatible
  11758. DUALCASE=1; export DUALCASE # for MKS sh
  11759. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11760. emulate sh
  11761. NULLCMD=:
  11762. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11763. # is contrary to our usage. Disable this feature.
  11764. alias -g '${1+"$@"}'='"$@"'
  11765. setopt NO_GLOB_SUBST
  11766. else
  11767. case `(set -o) 2>/dev/null` in
  11768. *posix*) set -o posix ;;
  11769. esac
  11770. fi
  11771. # PATH needs CR
  11772. # Avoid depending upon Character Ranges.
  11773. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11774. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11775. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11776. as_cr_digits='0123456789'
  11777. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11778. as_nl='
  11779. '
  11780. export as_nl
  11781. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11782. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11783. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11784. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11785. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11786. as_echo='printf %s\n'
  11787. as_echo_n='printf %s'
  11788. else
  11789. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11790. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11791. as_echo_n='/usr/ucb/echo -n'
  11792. else
  11793. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11794. as_echo_n_body='eval
  11795. arg=$1;
  11796. case $arg in
  11797. *"$as_nl"*)
  11798. expr "X$arg" : "X\\(.*\\)$as_nl";
  11799. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11800. esac;
  11801. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11802. '
  11803. export as_echo_n_body
  11804. as_echo_n='sh -c $as_echo_n_body as_echo'
  11805. fi
  11806. export as_echo_body
  11807. as_echo='sh -c $as_echo_body as_echo'
  11808. fi
  11809. # The user is always right.
  11810. if test "${PATH_SEPARATOR+set}" != set; then
  11811. PATH_SEPARATOR=:
  11812. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11813. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11814. PATH_SEPARATOR=';'
  11815. }
  11816. fi
  11817. # Support unset when possible.
  11818. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11819. as_unset=unset
  11820. else
  11821. as_unset=false
  11822. fi
  11823. # IFS
  11824. # We need space, tab and new line, in precisely that order. Quoting is
  11825. # there to prevent editors from complaining about space-tab.
  11826. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11827. # splitting by setting IFS to empty value.)
  11828. IFS=" "" $as_nl"
  11829. # Find who we are. Look in the path if we contain no directory separator.
  11830. case $0 in
  11831. *[\\/]* ) as_myself=$0 ;;
  11832. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11833. for as_dir in $PATH
  11834. do
  11835. IFS=$as_save_IFS
  11836. test -z "$as_dir" && as_dir=.
  11837. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11838. done
  11839. IFS=$as_save_IFS
  11840. ;;
  11841. esac
  11842. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11843. # in which case we are not to be found in the path.
  11844. if test "x$as_myself" = x; then
  11845. as_myself=$0
  11846. fi
  11847. if test ! -f "$as_myself"; then
  11848. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11849. { (exit 1); exit 1; }
  11850. fi
  11851. # Work around bugs in pre-3.0 UWIN ksh.
  11852. for as_var in ENV MAIL MAILPATH
  11853. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11854. done
  11855. PS1='$ '
  11856. PS2='> '
  11857. PS4='+ '
  11858. # NLS nuisances.
  11859. LC_ALL=C
  11860. export LC_ALL
  11861. LANGUAGE=C
  11862. export LANGUAGE
  11863. # Required to use basename.
  11864. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11865. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11866. as_expr=expr
  11867. else
  11868. as_expr=false
  11869. fi
  11870. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11871. as_basename=basename
  11872. else
  11873. as_basename=false
  11874. fi
  11875. # Name of the executable.
  11876. as_me=`$as_basename -- "$0" ||
  11877. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11878. X"$0" : 'X\(//\)$' \| \
  11879. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11880. $as_echo X/"$0" |
  11881. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11882. s//\1/
  11883. q
  11884. }
  11885. /^X\/\(\/\/\)$/{
  11886. s//\1/
  11887. q
  11888. }
  11889. /^X\/\(\/\).*/{
  11890. s//\1/
  11891. q
  11892. }
  11893. s/.*/./; q'`
  11894. # CDPATH.
  11895. $as_unset CDPATH
  11896. as_lineno_1=$LINENO
  11897. as_lineno_2=$LINENO
  11898. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11899. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11900. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11901. # uniformly replaced by the line number. The first 'sed' inserts a
  11902. # line-number line after each line using $LINENO; the second 'sed'
  11903. # does the real work. The second script uses 'N' to pair each
  11904. # line-number line with the line containing $LINENO, and appends
  11905. # trailing '-' during substitution so that $LINENO is not a special
  11906. # case at line end.
  11907. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11908. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11909. # E. McMahon (1931-1989) for sed's syntax. :-)
  11910. sed -n '
  11911. p
  11912. /[$]LINENO/=
  11913. ' <$as_myself |
  11914. sed '
  11915. s/[$]LINENO.*/&-/
  11916. t lineno
  11917. b
  11918. :lineno
  11919. N
  11920. :loop
  11921. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11922. t loop
  11923. s/-\n.*//
  11924. ' >$as_me.lineno &&
  11925. chmod +x "$as_me.lineno" ||
  11926. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11927. { (exit 1); exit 1; }; }
  11928. # Don't try to exec as it changes $[0], causing all sort of problems
  11929. # (the dirname of $[0] is not the place where we might find the
  11930. # original and so on. Autoconf is especially sensitive to this).
  11931. . "./$as_me.lineno"
  11932. # Exit status is that of the last command.
  11933. exit
  11934. }
  11935. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11936. as_dirname=dirname
  11937. else
  11938. as_dirname=false
  11939. fi
  11940. ECHO_C= ECHO_N= ECHO_T=
  11941. case `echo -n x` in
  11942. -n*)
  11943. case `echo 'x\c'` in
  11944. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11945. *) ECHO_C='\c';;
  11946. esac;;
  11947. *)
  11948. ECHO_N='-n';;
  11949. esac
  11950. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11951. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11952. as_expr=expr
  11953. else
  11954. as_expr=false
  11955. fi
  11956. rm -f conf$$ conf$$.exe conf$$.file
  11957. if test -d conf$$.dir; then
  11958. rm -f conf$$.dir/conf$$.file
  11959. else
  11960. rm -f conf$$.dir
  11961. mkdir conf$$.dir 2>/dev/null
  11962. fi
  11963. if (echo >conf$$.file) 2>/dev/null; then
  11964. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11965. as_ln_s='ln -s'
  11966. # ... but there are two gotchas:
  11967. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11968. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11969. # In both cases, we have to default to `cp -p'.
  11970. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11971. as_ln_s='cp -p'
  11972. elif ln conf$$.file conf$$ 2>/dev/null; then
  11973. as_ln_s=ln
  11974. else
  11975. as_ln_s='cp -p'
  11976. fi
  11977. else
  11978. as_ln_s='cp -p'
  11979. fi
  11980. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11981. rmdir conf$$.dir 2>/dev/null
  11982. if mkdir -p . 2>/dev/null; then
  11983. as_mkdir_p=:
  11984. else
  11985. test -d ./-p && rmdir ./-p
  11986. as_mkdir_p=false
  11987. fi
  11988. if test -x / >/dev/null 2>&1; then
  11989. as_test_x='test -x'
  11990. else
  11991. if ls -dL / >/dev/null 2>&1; then
  11992. as_ls_L_option=L
  11993. else
  11994. as_ls_L_option=
  11995. fi
  11996. as_test_x='
  11997. eval sh -c '\''
  11998. if test -d "$1"; then
  11999. test -d "$1/.";
  12000. else
  12001. case $1 in
  12002. -*)set "./$1";;
  12003. esac;
  12004. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12005. ???[sx]*):;;*)false;;esac;fi
  12006. '\'' sh
  12007. '
  12008. fi
  12009. as_executable_p=$as_test_x
  12010. # Sed expression to map a string onto a valid CPP name.
  12011. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12012. # Sed expression to map a string onto a valid variable name.
  12013. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12014. exec 6>&1
  12015. # Save the log message, to keep $[0] and so on meaningful, and to
  12016. # report actual input values of CONFIG_FILES etc. instead of their
  12017. # values after options handling.
  12018. ac_log="
  12019. This file was extended by oclock $as_me 1.0.3, which was
  12020. generated by GNU Autoconf 2.62. Invocation command line was
  12021. CONFIG_FILES = $CONFIG_FILES
  12022. CONFIG_HEADERS = $CONFIG_HEADERS
  12023. CONFIG_LINKS = $CONFIG_LINKS
  12024. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12025. $ $0 $@
  12026. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12027. "
  12028. _ACEOF
  12029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12030. # Files that config.status was made for.
  12031. config_files="$ac_config_files"
  12032. config_headers="$ac_config_headers"
  12033. config_commands="$ac_config_commands"
  12034. _ACEOF
  12035. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12036. ac_cs_usage="\
  12037. \`$as_me' instantiates files from templates according to the
  12038. current configuration.
  12039. Usage: $0 [OPTIONS] [FILE]...
  12040. -h, --help print this help, then exit
  12041. -V, --version print version number and configuration settings, then exit
  12042. -q, --quiet do not print progress messages
  12043. -d, --debug don't remove temporary files
  12044. --recheck update $as_me by reconfiguring in the same conditions
  12045. --file=FILE[:TEMPLATE]
  12046. instantiate the configuration file FILE
  12047. --header=FILE[:TEMPLATE]
  12048. instantiate the configuration header FILE
  12049. Configuration files:
  12050. $config_files
  12051. Configuration headers:
  12052. $config_headers
  12053. Configuration commands:
  12054. $config_commands
  12055. Report bugs to <bug-autoconf@gnu.org>."
  12056. _ACEOF
  12057. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12058. ac_cs_version="\\
  12059. oclock config.status 1.0.3
  12060. configured by $0, generated by GNU Autoconf 2.62,
  12061. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12062. Copyright (C) 2008 Free Software Foundation, Inc.
  12063. This config.status script is free software; the Free Software Foundation
  12064. gives unlimited permission to copy, distribute and modify it."
  12065. ac_pwd='$ac_pwd'
  12066. srcdir='$srcdir'
  12067. INSTALL='$INSTALL'
  12068. AWK='$AWK'
  12069. test -n "\$AWK" || AWK=awk
  12070. _ACEOF
  12071. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12072. # The default lists apply if the user does not specify any file.
  12073. ac_need_defaults=:
  12074. while test $# != 0
  12075. do
  12076. case $1 in
  12077. --*=*)
  12078. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12079. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12080. ac_shift=:
  12081. ;;
  12082. *)
  12083. ac_option=$1
  12084. ac_optarg=$2
  12085. ac_shift=shift
  12086. ;;
  12087. esac
  12088. case $ac_option in
  12089. # Handling of the options.
  12090. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12091. ac_cs_recheck=: ;;
  12092. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12093. $as_echo "$ac_cs_version"; exit ;;
  12094. --debug | --debu | --deb | --de | --d | -d )
  12095. debug=: ;;
  12096. --file | --fil | --fi | --f )
  12097. $ac_shift
  12098. case $ac_optarg in
  12099. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12100. esac
  12101. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  12102. ac_need_defaults=false;;
  12103. --header | --heade | --head | --hea )
  12104. $ac_shift
  12105. case $ac_optarg in
  12106. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  12107. esac
  12108. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  12109. ac_need_defaults=false;;
  12110. --he | --h)
  12111. # Conflict between --help and --header
  12112. { $as_echo "$as_me: error: ambiguous option: $1
  12113. Try \`$0 --help' for more information." >&2
  12114. { (exit 1); exit 1; }; };;
  12115. --help | --hel | -h )
  12116. $as_echo "$ac_cs_usage"; exit ;;
  12117. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12118. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12119. ac_cs_silent=: ;;
  12120. # This is an error.
  12121. -*) { $as_echo "$as_me: error: unrecognized option: $1
  12122. Try \`$0 --help' for more information." >&2
  12123. { (exit 1); exit 1; }; } ;;
  12124. *) ac_config_targets="$ac_config_targets $1"
  12125. ac_need_defaults=false ;;
  12126. esac
  12127. shift
  12128. done
  12129. ac_configure_extra_args=
  12130. if $ac_cs_silent; then
  12131. exec 6>/dev/null
  12132. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12133. fi
  12134. _ACEOF
  12135. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12136. if \$ac_cs_recheck; then
  12137. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12138. shift
  12139. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  12140. CONFIG_SHELL='$SHELL'
  12141. export CONFIG_SHELL
  12142. exec "\$@"
  12143. fi
  12144. _ACEOF
  12145. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12146. exec 5>>config.log
  12147. {
  12148. echo
  12149. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12150. ## Running $as_me. ##
  12151. _ASBOX
  12152. $as_echo "$ac_log"
  12153. } >&5
  12154. _ACEOF
  12155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12156. #
  12157. # INIT-COMMANDS
  12158. #
  12159. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12160. _ACEOF
  12161. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12162. # Handling of arguments.
  12163. for ac_config_target in $ac_config_targets
  12164. do
  12165. case $ac_config_target in
  12166. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12167. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12168. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12169. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  12170. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12171. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12172. { (exit 1); exit 1; }; };;
  12173. esac
  12174. done
  12175. # If the user did not use the arguments to specify the items to instantiate,
  12176. # then the envvar interface is used. Set only those that are not.
  12177. # We use the long form for the default assignment because of an extremely
  12178. # bizarre bug on SunOS 4.1.3.
  12179. if $ac_need_defaults; then
  12180. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12181. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12182. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12183. fi
  12184. # Have a temporary directory for convenience. Make it in the build tree
  12185. # simply because there is no reason against having it here, and in addition,
  12186. # creating and moving files from /tmp can sometimes cause problems.
  12187. # Hook for its removal unless debugging.
  12188. # Note that there is a small window in which the directory will not be cleaned:
  12189. # after its creation but before its name has been assigned to `$tmp'.
  12190. $debug ||
  12191. {
  12192. tmp=
  12193. trap 'exit_status=$?
  12194. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12195. ' 0
  12196. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12197. }
  12198. # Create a (secure) tmp directory for tmp files.
  12199. {
  12200. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12201. test -n "$tmp" && test -d "$tmp"
  12202. } ||
  12203. {
  12204. tmp=./conf$$-$RANDOM
  12205. (umask 077 && mkdir "$tmp")
  12206. } ||
  12207. {
  12208. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  12209. { (exit 1); exit 1; }
  12210. }
  12211. # Set up the scripts for CONFIG_FILES section.
  12212. # No need to generate them if there are no CONFIG_FILES.
  12213. # This happens for instance with `./config.status config.h'.
  12214. if test -n "$CONFIG_FILES"; then
  12215. ac_cr=' '
  12216. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12217. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12218. ac_cs_awk_cr='\\r'
  12219. else
  12220. ac_cs_awk_cr=$ac_cr
  12221. fi
  12222. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  12223. _ACEOF
  12224. {
  12225. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12226. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12227. echo "_ACEOF"
  12228. } >conf$$subs.sh ||
  12229. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12230. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12231. { (exit 1); exit 1; }; }
  12232. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  12233. ac_delim='%!_!# '
  12234. for ac_last_try in false false false false false :; do
  12235. . ./conf$$subs.sh ||
  12236. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12237. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12238. { (exit 1); exit 1; }; }
  12239. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
  12240. break
  12241. elif $ac_last_try; then
  12242. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12243. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12244. { (exit 1); exit 1; }; }
  12245. else
  12246. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12247. fi
  12248. done
  12249. rm -f conf$$subs.sh
  12250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12251. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  12252. _ACEOF
  12253. sed -n '
  12254. h
  12255. s/^/S["/; s/!.*/"]=/
  12256. p
  12257. g
  12258. s/^[^!]*!//
  12259. :repl
  12260. t repl
  12261. s/'"$ac_delim"'$//
  12262. t delim
  12263. :nl
  12264. h
  12265. s/\(.\{148\}\).*/\1/
  12266. t more1
  12267. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12268. p
  12269. n
  12270. b repl
  12271. :more1
  12272. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12273. p
  12274. g
  12275. s/.\{148\}//
  12276. t nl
  12277. :delim
  12278. h
  12279. s/\(.\{148\}\).*/\1/
  12280. t more2
  12281. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12282. p
  12283. b
  12284. :more2
  12285. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12286. p
  12287. g
  12288. s/.\{148\}//
  12289. t delim
  12290. ' <conf$$subs.awk | sed '
  12291. /^[^""]/{
  12292. N
  12293. s/\n//
  12294. }
  12295. ' >>$CONFIG_STATUS || ac_write_fail=1
  12296. rm -f conf$$subs.awk
  12297. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12298. _ACAWK
  12299. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  12300. for (key in S) S_is_set[key] = 1
  12301. FS = ""
  12302. }
  12303. {
  12304. line = $ 0
  12305. nfields = split(line, field, "@")
  12306. substed = 0
  12307. len = length(field[1])
  12308. for (i = 2; i < nfields; i++) {
  12309. key = field[i]
  12310. keylen = length(key)
  12311. if (S_is_set[key]) {
  12312. value = S[key]
  12313. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12314. len += length(value) + length(field[++i])
  12315. substed = 1
  12316. } else
  12317. len += 1 + keylen
  12318. }
  12319. print line
  12320. }
  12321. _ACAWK
  12322. _ACEOF
  12323. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12324. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12325. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12326. else
  12327. cat
  12328. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  12329. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  12330. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  12331. { (exit 1); exit 1; }; }
  12332. _ACEOF
  12333. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12334. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12335. # trailing colons and then remove the whole line if VPATH becomes empty
  12336. # (actually we leave an empty line to preserve line numbers).
  12337. if test "x$srcdir" = x.; then
  12338. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12339. s/:*\$(srcdir):*/:/
  12340. s/:*\${srcdir}:*/:/
  12341. s/:*@srcdir@:*/:/
  12342. s/^\([^=]*=[ ]*\):*/\1/
  12343. s/:*$//
  12344. s/^[^=]*=[ ]*$//
  12345. }'
  12346. fi
  12347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12348. fi # test -n "$CONFIG_FILES"
  12349. # Set up the scripts for CONFIG_HEADERS section.
  12350. # No need to generate them if there are no CONFIG_HEADERS.
  12351. # This happens for instance with `./config.status Makefile'.
  12352. if test -n "$CONFIG_HEADERS"; then
  12353. cat >"$tmp/defines.awk" <<\_ACAWK ||
  12354. BEGIN {
  12355. _ACEOF
  12356. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12357. # here-document in config.status, that substitutes the proper values into
  12358. # config.h.in to produce config.h.
  12359. # Create a delimiter string that does not exist in confdefs.h, to ease
  12360. # handling of long lines.
  12361. ac_delim='%!_!# '
  12362. for ac_last_try in false false :; do
  12363. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  12364. if test -z "$ac_t"; then
  12365. break
  12366. elif $ac_last_try; then
  12367. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  12368. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  12369. { (exit 1); exit 1; }; }
  12370. else
  12371. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12372. fi
  12373. done
  12374. # For the awk script, D is an array of macro values keyed by name,
  12375. # likewise P contains macro parameters if any. Preserve backslash
  12376. # newline sequences.
  12377. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12378. sed -n '
  12379. s/.\{148\}/&'"$ac_delim"'/g
  12380. t rset
  12381. :rset
  12382. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12383. t def
  12384. d
  12385. :def
  12386. s/\\$//
  12387. t bsnl
  12388. s/["\\]/\\&/g
  12389. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12390. D["\1"]=" \3"/p
  12391. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12392. d
  12393. :bsnl
  12394. s/["\\]/\\&/g
  12395. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12396. D["\1"]=" \3\\\\\\n"\\/p
  12397. t cont
  12398. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12399. t cont
  12400. d
  12401. :cont
  12402. n
  12403. s/.\{148\}/&'"$ac_delim"'/g
  12404. t clear
  12405. :clear
  12406. s/\\$//
  12407. t bsnlc
  12408. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12409. d
  12410. :bsnlc
  12411. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12412. b cont
  12413. ' <confdefs.h | sed '
  12414. s/'"$ac_delim"'/"\\\
  12415. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12417. for (key in D) D_is_set[key] = 1
  12418. FS = ""
  12419. }
  12420. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12421. line = \$ 0
  12422. split(line, arg, " ")
  12423. if (arg[1] == "#") {
  12424. defundef = arg[2]
  12425. mac1 = arg[3]
  12426. } else {
  12427. defundef = substr(arg[1], 2)
  12428. mac1 = arg[2]
  12429. }
  12430. split(mac1, mac2, "(") #)
  12431. macro = mac2[1]
  12432. if (D_is_set[macro]) {
  12433. # Preserve the white space surrounding the "#".
  12434. prefix = substr(line, 1, index(line, defundef) - 1)
  12435. print prefix "define", macro P[macro] D[macro]
  12436. next
  12437. } else {
  12438. # Replace #undef with comments. This is necessary, for example,
  12439. # in the case of _POSIX_SOURCE, which is predefined and required
  12440. # on some systems where configure will not decide to define it.
  12441. if (defundef == "undef") {
  12442. print "/*", line, "*/"
  12443. next
  12444. }
  12445. }
  12446. }
  12447. { print }
  12448. _ACAWK
  12449. _ACEOF
  12450. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12451. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  12452. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  12453. { (exit 1); exit 1; }; }
  12454. fi # test -n "$CONFIG_HEADERS"
  12455. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12456. shift
  12457. for ac_tag
  12458. do
  12459. case $ac_tag in
  12460. :[FHLC]) ac_mode=$ac_tag; continue;;
  12461. esac
  12462. case $ac_mode$ac_tag in
  12463. :[FHL]*:*);;
  12464. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12465. $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12466. { (exit 1); exit 1; }; };;
  12467. :[FH]-) ac_tag=-:-;;
  12468. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12469. esac
  12470. ac_save_IFS=$IFS
  12471. IFS=:
  12472. set x $ac_tag
  12473. IFS=$ac_save_IFS
  12474. shift
  12475. ac_file=$1
  12476. shift
  12477. case $ac_mode in
  12478. :L) ac_source=$1;;
  12479. :[FH])
  12480. ac_file_inputs=
  12481. for ac_f
  12482. do
  12483. case $ac_f in
  12484. -) ac_f="$tmp/stdin";;
  12485. *) # Look for the file first in the build tree, then in the source tree
  12486. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12487. # because $ac_f cannot contain `:'.
  12488. test -f "$ac_f" ||
  12489. case $ac_f in
  12490. [\\/$]*) false;;
  12491. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12492. esac ||
  12493. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12494. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12495. { (exit 1); exit 1; }; };;
  12496. esac
  12497. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12498. ac_file_inputs="$ac_file_inputs '$ac_f'"
  12499. done
  12500. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12501. # use $as_me), people would be surprised to read:
  12502. # /* config.h. Generated by config.status. */
  12503. configure_input='Generated from '`
  12504. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12505. `' by configure.'
  12506. if test x"$ac_file" != x-; then
  12507. configure_input="$ac_file. $configure_input"
  12508. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  12509. $as_echo "$as_me: creating $ac_file" >&6;}
  12510. fi
  12511. # Neutralize special characters interpreted by sed in replacement strings.
  12512. case $configure_input in #(
  12513. *\&* | *\|* | *\\* )
  12514. ac_sed_conf_input=`$as_echo "$configure_input" |
  12515. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12516. *) ac_sed_conf_input=$configure_input;;
  12517. esac
  12518. case $ac_tag in
  12519. *:-:* | *:-) cat >"$tmp/stdin" \
  12520. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12521. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12522. { (exit 1); exit 1; }; } ;;
  12523. esac
  12524. ;;
  12525. esac
  12526. ac_dir=`$as_dirname -- "$ac_file" ||
  12527. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12528. X"$ac_file" : 'X\(//\)[^/]' \| \
  12529. X"$ac_file" : 'X\(//\)$' \| \
  12530. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12531. $as_echo X"$ac_file" |
  12532. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12533. s//\1/
  12534. q
  12535. }
  12536. /^X\(\/\/\)[^/].*/{
  12537. s//\1/
  12538. q
  12539. }
  12540. /^X\(\/\/\)$/{
  12541. s//\1/
  12542. q
  12543. }
  12544. /^X\(\/\).*/{
  12545. s//\1/
  12546. q
  12547. }
  12548. s/.*/./; q'`
  12549. { as_dir="$ac_dir"
  12550. case $as_dir in #(
  12551. -*) as_dir=./$as_dir;;
  12552. esac
  12553. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12554. as_dirs=
  12555. while :; do
  12556. case $as_dir in #(
  12557. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12558. *) as_qdir=$as_dir;;
  12559. esac
  12560. as_dirs="'$as_qdir' $as_dirs"
  12561. as_dir=`$as_dirname -- "$as_dir" ||
  12562. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12563. X"$as_dir" : 'X\(//\)[^/]' \| \
  12564. X"$as_dir" : 'X\(//\)$' \| \
  12565. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12566. $as_echo X"$as_dir" |
  12567. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12568. s//\1/
  12569. q
  12570. }
  12571. /^X\(\/\/\)[^/].*/{
  12572. s//\1/
  12573. q
  12574. }
  12575. /^X\(\/\/\)$/{
  12576. s//\1/
  12577. q
  12578. }
  12579. /^X\(\/\).*/{
  12580. s//\1/
  12581. q
  12582. }
  12583. s/.*/./; q'`
  12584. test -d "$as_dir" && break
  12585. done
  12586. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12587. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12588. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12589. { (exit 1); exit 1; }; }; }
  12590. ac_builddir=.
  12591. case "$ac_dir" in
  12592. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12593. *)
  12594. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12595. # A ".." for each directory in $ac_dir_suffix.
  12596. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12597. case $ac_top_builddir_sub in
  12598. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12599. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12600. esac ;;
  12601. esac
  12602. ac_abs_top_builddir=$ac_pwd
  12603. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12604. # for backward compatibility:
  12605. ac_top_builddir=$ac_top_build_prefix
  12606. case $srcdir in
  12607. .) # We are building in place.
  12608. ac_srcdir=.
  12609. ac_top_srcdir=$ac_top_builddir_sub
  12610. ac_abs_top_srcdir=$ac_pwd ;;
  12611. [\\/]* | ?:[\\/]* ) # Absolute name.
  12612. ac_srcdir=$srcdir$ac_dir_suffix;
  12613. ac_top_srcdir=$srcdir
  12614. ac_abs_top_srcdir=$srcdir ;;
  12615. *) # Relative name.
  12616. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12617. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12618. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12619. esac
  12620. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12621. case $ac_mode in
  12622. :F)
  12623. #
  12624. # CONFIG_FILE
  12625. #
  12626. case $INSTALL in
  12627. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12628. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12629. esac
  12630. _ACEOF
  12631. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12632. # If the template does not know about datarootdir, expand it.
  12633. # FIXME: This hack should be removed a few years after 2.60.
  12634. ac_datarootdir_hack=; ac_datarootdir_seen=
  12635. ac_sed_dataroot='
  12636. /datarootdir/ {
  12637. p
  12638. q
  12639. }
  12640. /@datadir@/p
  12641. /@docdir@/p
  12642. /@infodir@/p
  12643. /@localedir@/p
  12644. /@mandir@/p
  12645. '
  12646. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12647. *datarootdir*) ac_datarootdir_seen=yes;;
  12648. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12649. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12650. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12651. _ACEOF
  12652. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12653. ac_datarootdir_hack='
  12654. s&@datadir@&$datadir&g
  12655. s&@docdir@&$docdir&g
  12656. s&@infodir@&$infodir&g
  12657. s&@localedir@&$localedir&g
  12658. s&@mandir@&$mandir&g
  12659. s&\\\${datarootdir}&$datarootdir&g' ;;
  12660. esac
  12661. _ACEOF
  12662. # Neutralize VPATH when `$srcdir' = `.'.
  12663. # Shell code in configure.ac might set extrasub.
  12664. # FIXME: do we really want to maintain this feature?
  12665. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12666. ac_sed_extra="$ac_vpsub
  12667. $extrasub
  12668. _ACEOF
  12669. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12670. :t
  12671. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12672. s|@configure_input@|$ac_sed_conf_input|;t t
  12673. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12674. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12675. s&@srcdir@&$ac_srcdir&;t t
  12676. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12677. s&@top_srcdir@&$ac_top_srcdir&;t t
  12678. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12679. s&@builddir@&$ac_builddir&;t t
  12680. s&@abs_builddir@&$ac_abs_builddir&;t t
  12681. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12682. s&@INSTALL@&$ac_INSTALL&;t t
  12683. $ac_datarootdir_hack
  12684. "
  12685. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12686. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12687. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12688. { (exit 1); exit 1; }; }
  12689. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12690. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12691. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12692. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12693. which seems to be undefined. Please make sure it is defined." >&5
  12694. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12695. which seems to be undefined. Please make sure it is defined." >&2;}
  12696. rm -f "$tmp/stdin"
  12697. case $ac_file in
  12698. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12699. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12700. esac \
  12701. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12702. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12703. { (exit 1); exit 1; }; }
  12704. ;;
  12705. :H)
  12706. #
  12707. # CONFIG_HEADER
  12708. #
  12709. if test x"$ac_file" != x-; then
  12710. {
  12711. $as_echo "/* $configure_input */" \
  12712. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12713. } >"$tmp/config.h" \
  12714. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12715. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12716. { (exit 1); exit 1; }; }
  12717. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12718. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12719. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12720. else
  12721. rm -f "$ac_file"
  12722. mv "$tmp/config.h" "$ac_file" \
  12723. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  12724. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  12725. { (exit 1); exit 1; }; }
  12726. fi
  12727. else
  12728. $as_echo "/* $configure_input */" \
  12729. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12730. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  12731. $as_echo "$as_me: error: could not create -" >&2;}
  12732. { (exit 1); exit 1; }; }
  12733. fi
  12734. # Compute "$ac_file"'s index in $config_headers.
  12735. _am_stamp_count=1
  12736. for _am_header in $config_headers :; do
  12737. case $_am_header in
  12738. "$ac_file" | "$ac_file":* )
  12739. break ;;
  12740. * )
  12741. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12742. esac
  12743. done
  12744. echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
  12745. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12746. X"$ac_file" : 'X\(//\)[^/]' \| \
  12747. X"$ac_file" : 'X\(//\)$' \| \
  12748. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12749. $as_echo X"$ac_file" |
  12750. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12751. s//\1/
  12752. q
  12753. }
  12754. /^X\(\/\/\)[^/].*/{
  12755. s//\1/
  12756. q
  12757. }
  12758. /^X\(\/\/\)$/{
  12759. s//\1/
  12760. q
  12761. }
  12762. /^X\(\/\).*/{
  12763. s//\1/
  12764. q
  12765. }
  12766. s/.*/./; q'`/stamp-h$_am_stamp_count
  12767. ;;
  12768. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12769. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12770. ;;
  12771. esac
  12772. case $ac_file$ac_mode in
  12773. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  12774. # Strip MF so we end up with the name of the file.
  12775. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12776. # Check whether this is an Automake generated Makefile or not.
  12777. # We used to match only the files named `Makefile.in', but
  12778. # some people rename them; so instead we look at the file content.
  12779. # Grep'ing the first line is not enough: some people post-process
  12780. # each Makefile.in and add a new line on top of each file to say so.
  12781. # So let's grep whole file.
  12782. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12783. dirpart=`$as_dirname -- "$mf" ||
  12784. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12785. X"$mf" : 'X\(//\)[^/]' \| \
  12786. X"$mf" : 'X\(//\)$' \| \
  12787. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12788. $as_echo X"$mf" |
  12789. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12790. s//\1/
  12791. q
  12792. }
  12793. /^X\(\/\/\)[^/].*/{
  12794. s//\1/
  12795. q
  12796. }
  12797. /^X\(\/\/\)$/{
  12798. s//\1/
  12799. q
  12800. }
  12801. /^X\(\/\).*/{
  12802. s//\1/
  12803. q
  12804. }
  12805. s/.*/./; q'`
  12806. else
  12807. continue
  12808. fi
  12809. # Extract the definition of DEPDIR, am__include, and am__quote
  12810. # from the Makefile without running `make'.
  12811. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12812. test -z "$DEPDIR" && continue
  12813. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12814. test -z "am__include" && continue
  12815. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12816. # When using ansi2knr, U may be empty or an underscore; expand it
  12817. U=`sed -n 's/^U = //p' < "$mf"`
  12818. # Find all dependency output files, they are included files with
  12819. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12820. # simplest approach to changing $(DEPDIR) to its actual value in the
  12821. # expansion.
  12822. for file in `sed -n "
  12823. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12824. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12825. # Make sure the directory exists.
  12826. test -f "$dirpart/$file" && continue
  12827. fdir=`$as_dirname -- "$file" ||
  12828. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12829. X"$file" : 'X\(//\)[^/]' \| \
  12830. X"$file" : 'X\(//\)$' \| \
  12831. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12832. $as_echo X"$file" |
  12833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12834. s//\1/
  12835. q
  12836. }
  12837. /^X\(\/\/\)[^/].*/{
  12838. s//\1/
  12839. q
  12840. }
  12841. /^X\(\/\/\)$/{
  12842. s//\1/
  12843. q
  12844. }
  12845. /^X\(\/\).*/{
  12846. s//\1/
  12847. q
  12848. }
  12849. s/.*/./; q'`
  12850. { as_dir=$dirpart/$fdir
  12851. case $as_dir in #(
  12852. -*) as_dir=./$as_dir;;
  12853. esac
  12854. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12855. as_dirs=
  12856. while :; do
  12857. case $as_dir in #(
  12858. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  12859. *) as_qdir=$as_dir;;
  12860. esac
  12861. as_dirs="'$as_qdir' $as_dirs"
  12862. as_dir=`$as_dirname -- "$as_dir" ||
  12863. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12864. X"$as_dir" : 'X\(//\)[^/]' \| \
  12865. X"$as_dir" : 'X\(//\)$' \| \
  12866. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12867. $as_echo X"$as_dir" |
  12868. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12869. s//\1/
  12870. q
  12871. }
  12872. /^X\(\/\/\)[^/].*/{
  12873. s//\1/
  12874. q
  12875. }
  12876. /^X\(\/\/\)$/{
  12877. s//\1/
  12878. q
  12879. }
  12880. /^X\(\/\).*/{
  12881. s//\1/
  12882. q
  12883. }
  12884. s/.*/./; q'`
  12885. test -d "$as_dir" && break
  12886. done
  12887. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12888. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12889. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12890. { (exit 1); exit 1; }; }; }
  12891. # echo "creating $dirpart/$file"
  12892. echo '# dummy' > "$dirpart/$file"
  12893. done
  12894. done
  12895. ;;
  12896. esac
  12897. done # for ac_tag
  12898. { (exit 0); exit 0; }
  12899. _ACEOF
  12900. chmod +x $CONFIG_STATUS
  12901. ac_clean_files=$ac_clean_files_save
  12902. test $ac_write_fail = 0 ||
  12903. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  12904. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  12905. { (exit 1); exit 1; }; }
  12906. # configure is writing to config.log, and then calls config.status.
  12907. # config.status does its own redirection, appending to config.log.
  12908. # Unfortunately, on DOS this fails, as config.log is still kept open
  12909. # by configure, so config.status won't be able to write to it; its
  12910. # output is simply discarded. So we exec the FD to /dev/null,
  12911. # effectively closing config.log, so it can be properly (re)opened and
  12912. # appended to by config.status. When coming back to configure, we
  12913. # need to make the FD available again.
  12914. if test "$no_create" != yes; then
  12915. ac_cs_success=:
  12916. ac_config_status_args=
  12917. test "$silent" = yes &&
  12918. ac_config_status_args="$ac_config_status_args --quiet"
  12919. exec 5>/dev/null
  12920. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12921. exec 5>>config.log
  12922. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12923. # would make configure fail if this is the last instruction.
  12924. $ac_cs_success || { (exit 1); exit 1; }
  12925. fi
  12926. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12927. { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
  12928. $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
  12929. fi