configure 338 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xkbprint 1.0.4.
  4. #
  5. # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
  253. $0: about your system, including any error possibly output
  254. $0: before this message. Then install a modern shell, or
  255. $0: manually run the script under such a shell if you do
  256. $0: have one."
  257. fi
  258. exit 1
  259. fi
  260. fi
  261. fi
  262. SHELL=${CONFIG_SHELL-/bin/sh}
  263. export SHELL
  264. # Unset more variables known to interfere with behavior of common tools.
  265. CLICOLOR_FORCE= GREP_OPTIONS=
  266. unset CLICOLOR_FORCE GREP_OPTIONS
  267. ## --------------------- ##
  268. ## M4sh Shell Functions. ##
  269. ## --------------------- ##
  270. # as_fn_unset VAR
  271. # ---------------
  272. # Portably unset VAR.
  273. as_fn_unset ()
  274. {
  275. { eval $1=; unset $1;}
  276. }
  277. as_unset=as_fn_unset
  278. # as_fn_set_status STATUS
  279. # -----------------------
  280. # Set $? to STATUS, without forking.
  281. as_fn_set_status ()
  282. {
  283. return $1
  284. } # as_fn_set_status
  285. # as_fn_exit STATUS
  286. # -----------------
  287. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  288. as_fn_exit ()
  289. {
  290. set +e
  291. as_fn_set_status $1
  292. exit $1
  293. } # as_fn_exit
  294. # as_fn_mkdir_p
  295. # -------------
  296. # Create "$as_dir" as a directory, including parents if necessary.
  297. as_fn_mkdir_p ()
  298. {
  299. case $as_dir in #(
  300. -*) as_dir=./$as_dir;;
  301. esac
  302. test -d "$as_dir" || eval $as_mkdir_p || {
  303. as_dirs=
  304. while :; do
  305. case $as_dir in #(
  306. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  307. *) as_qdir=$as_dir;;
  308. esac
  309. as_dirs="'$as_qdir' $as_dirs"
  310. as_dir=`$as_dirname -- "$as_dir" ||
  311. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  312. X"$as_dir" : 'X\(//\)[^/]' \| \
  313. X"$as_dir" : 'X\(//\)$' \| \
  314. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  315. $as_echo X"$as_dir" |
  316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)[^/].*/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\/\)$/{
  325. s//\1/
  326. q
  327. }
  328. /^X\(\/\).*/{
  329. s//\1/
  330. q
  331. }
  332. s/.*/./; q'`
  333. test -d "$as_dir" && break
  334. done
  335. test -z "$as_dirs" || eval "mkdir $as_dirs"
  336. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  337. } # as_fn_mkdir_p
  338. # as_fn_executable_p FILE
  339. # -----------------------
  340. # Test if FILE is an executable regular file.
  341. as_fn_executable_p ()
  342. {
  343. test -f "$1" && test -x "$1"
  344. } # as_fn_executable_p
  345. # as_fn_append VAR VALUE
  346. # ----------------------
  347. # Append the text in VALUE to the end of the definition contained in VAR. Take
  348. # advantage of any shell optimizations that allow amortized linear growth over
  349. # repeated appends, instead of the typical quadratic growth present in naive
  350. # implementations.
  351. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  352. eval 'as_fn_append ()
  353. {
  354. eval $1+=\$2
  355. }'
  356. else
  357. as_fn_append ()
  358. {
  359. eval $1=\$$1\$2
  360. }
  361. fi # as_fn_append
  362. # as_fn_arith ARG...
  363. # ------------------
  364. # Perform arithmetic evaluation on the ARGs, and store the result in the
  365. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  366. # must be portable across $(()) and expr.
  367. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  368. eval 'as_fn_arith ()
  369. {
  370. as_val=$(( $* ))
  371. }'
  372. else
  373. as_fn_arith ()
  374. {
  375. as_val=`expr "$@" || test $? -eq 1`
  376. }
  377. fi # as_fn_arith
  378. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  379. # ----------------------------------------
  380. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  381. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  382. # script with STATUS, using 1 if that was 0.
  383. as_fn_error ()
  384. {
  385. as_status=$1; test $as_status -eq 0 && as_status=1
  386. if test "$4"; then
  387. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  388. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  389. fi
  390. $as_echo "$as_me: error: $2" >&2
  391. as_fn_exit $as_status
  392. } # as_fn_error
  393. if expr a : '\(a\)' >/dev/null 2>&1 &&
  394. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  395. as_expr=expr
  396. else
  397. as_expr=false
  398. fi
  399. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  400. as_basename=basename
  401. else
  402. as_basename=false
  403. fi
  404. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  405. as_dirname=dirname
  406. else
  407. as_dirname=false
  408. fi
  409. as_me=`$as_basename -- "$0" ||
  410. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  411. X"$0" : 'X\(//\)$' \| \
  412. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  413. $as_echo X/"$0" |
  414. sed '/^.*\/\([^/][^/]*\)\/*$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\/\)$/{
  419. s//\1/
  420. q
  421. }
  422. /^X\/\(\/\).*/{
  423. s//\1/
  424. q
  425. }
  426. s/.*/./; q'`
  427. # Avoid depending upon Character Ranges.
  428. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  429. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  430. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  431. as_cr_digits='0123456789'
  432. as_cr_alnum=$as_cr_Letters$as_cr_digits
  433. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  434. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  435. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  436. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  437. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  438. sed -n '
  439. p
  440. /[$]LINENO/=
  441. ' <$as_myself |
  442. sed '
  443. s/[$]LINENO.*/&-/
  444. t lineno
  445. b
  446. :lineno
  447. N
  448. :loop
  449. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  450. t loop
  451. s/-\n.*//
  452. ' >$as_me.lineno &&
  453. chmod +x "$as_me.lineno" ||
  454. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  455. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  456. # already done that, so ensure we don't try to do so again and fall
  457. # in an infinite loop. This has already happened in practice.
  458. _as_can_reexec=no; export _as_can_reexec
  459. # Don't try to exec as it changes $[0], causing all sort of problems
  460. # (the dirname of $[0] is not the place where we might find the
  461. # original and so on. Autoconf is especially sensitive to this).
  462. . "./$as_me.lineno"
  463. # Exit status is that of the last command.
  464. exit
  465. }
  466. ECHO_C= ECHO_N= ECHO_T=
  467. case `echo -n x` in #(((((
  468. -n*)
  469. case `echo 'xy\c'` in
  470. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  471. xy) ECHO_C='\c';;
  472. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  473. ECHO_T=' ';;
  474. esac;;
  475. *)
  476. ECHO_N='-n';;
  477. esac
  478. rm -f conf$$ conf$$.exe conf$$.file
  479. if test -d conf$$.dir; then
  480. rm -f conf$$.dir/conf$$.file
  481. else
  482. rm -f conf$$.dir
  483. mkdir conf$$.dir 2>/dev/null
  484. fi
  485. if (echo >conf$$.file) 2>/dev/null; then
  486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  487. as_ln_s='ln -s'
  488. # ... but there are two gotchas:
  489. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  490. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  491. # In both cases, we have to default to `cp -pR'.
  492. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  493. as_ln_s='cp -pR'
  494. elif ln conf$$.file conf$$ 2>/dev/null; then
  495. as_ln_s=ln
  496. else
  497. as_ln_s='cp -pR'
  498. fi
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  503. rmdir conf$$.dir 2>/dev/null
  504. if mkdir -p . 2>/dev/null; then
  505. as_mkdir_p='mkdir -p "$as_dir"'
  506. else
  507. test -d ./-p && rmdir ./-p
  508. as_mkdir_p=false
  509. fi
  510. as_test_x='test -x'
  511. as_executable_p=as_fn_executable_p
  512. # Sed expression to map a string onto a valid CPP name.
  513. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  514. # Sed expression to map a string onto a valid variable name.
  515. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  516. test -n "$DJDIR" || exec 7<&0 </dev/null
  517. exec 6>&1
  518. # Name of the host.
  519. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  520. # so uname gets run too.
  521. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  522. #
  523. # Initializations.
  524. #
  525. ac_default_prefix=/usr/local
  526. ac_clean_files=
  527. ac_config_libobj_dir=.
  528. LIBOBJS=
  529. cross_compiling=no
  530. subdirs=
  531. MFLAGS=
  532. MAKEFLAGS=
  533. # Identity of this package.
  534. PACKAGE_NAME='xkbprint'
  535. PACKAGE_TARNAME='xkbprint'
  536. PACKAGE_VERSION='1.0.4'
  537. PACKAGE_STRING='xkbprint 1.0.4'
  538. PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
  539. PACKAGE_URL=''
  540. ac_unique_file="Makefile.am"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_subst_vars='am__EXEEXT_FALSE
  577. am__EXEEXT_TRUE
  578. LTLIBOBJS
  579. LIBOBJS
  580. XKBPRINT_LIBS
  581. XKBPRINT_CFLAGS
  582. AM_BACKSLASH
  583. AM_DEFAULT_VERBOSITY
  584. AM_DEFAULT_V
  585. AM_V
  586. MAN_SUBSTS
  587. XORG_MAN_PAGE
  588. ADMIN_MAN_DIR
  589. DRIVER_MAN_DIR
  590. MISC_MAN_DIR
  591. FILE_MAN_DIR
  592. LIB_MAN_DIR
  593. APP_MAN_DIR
  594. ADMIN_MAN_SUFFIX
  595. DRIVER_MAN_SUFFIX
  596. MISC_MAN_SUFFIX
  597. FILE_MAN_SUFFIX
  598. LIB_MAN_SUFFIX
  599. APP_MAN_SUFFIX
  600. SED
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. INSTALL_CMD
  610. PKG_CONFIG_LIBDIR
  611. PKG_CONFIG_PATH
  612. PKG_CONFIG
  613. CHANGELOG_CMD
  614. STRICT_CFLAGS
  615. CWARNFLAGS
  616. BASE_CFLAGS
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. am__untar
  628. am__tar
  629. AMTAR
  630. am__leading_dot
  631. SET_MAKE
  632. AWK
  633. mkdir_p
  634. MKDIR_P
  635. INSTALL_STRIP_PROGRAM
  636. STRIP
  637. install_sh
  638. MAKEINFO
  639. AUTOHEADER
  640. AUTOMAKE
  641. AUTOCONF
  642. ACLOCAL
  643. VERSION
  644. PACKAGE
  645. CYGPATH_W
  646. am__isrc
  647. INSTALL_DATA
  648. INSTALL_SCRIPT
  649. INSTALL_PROGRAM
  650. EGREP
  651. GREP
  652. CPP
  653. OBJEXT
  654. EXEEXT
  655. ac_ct_CC
  656. CPPFLAGS
  657. LDFLAGS
  658. CFLAGS
  659. CC
  660. target_alias
  661. host_alias
  662. build_alias
  663. LIBS
  664. ECHO_T
  665. ECHO_N
  666. ECHO_C
  667. DEFS
  668. mandir
  669. localedir
  670. libdir
  671. psdir
  672. pdfdir
  673. dvidir
  674. htmldir
  675. infodir
  676. docdir
  677. oldincludedir
  678. includedir
  679. localstatedir
  680. sharedstatedir
  681. sysconfdir
  682. datadir
  683. datarootdir
  684. libexecdir
  685. sbindir
  686. bindir
  687. program_transform_name
  688. prefix
  689. exec_prefix
  690. PACKAGE_URL
  691. PACKAGE_BUGREPORT
  692. PACKAGE_STRING
  693. PACKAGE_VERSION
  694. PACKAGE_TARNAME
  695. PACKAGE_NAME
  696. PATH_SEPARATOR
  697. SHELL'
  698. ac_subst_files=''
  699. ac_user_opts='
  700. enable_option_checking
  701. enable_dependency_tracking
  702. enable_selective_werror
  703. enable_strict_compilation
  704. enable_silent_rules
  705. '
  706. ac_precious_vars='build_alias
  707. host_alias
  708. target_alias
  709. CC
  710. CFLAGS
  711. LDFLAGS
  712. LIBS
  713. CPPFLAGS
  714. CPP
  715. PKG_CONFIG
  716. PKG_CONFIG_PATH
  717. PKG_CONFIG_LIBDIR
  718. XKBPRINT_CFLAGS
  719. XKBPRINT_LIBS'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures xkbprint 1.0.4 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/xkbprint]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of xkbprint 1.0.4:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dependency-tracking
  1257. do not reject slow dependency extractors
  1258. --disable-dependency-tracking
  1259. speeds up one-time build
  1260. --disable-selective-werror
  1261. Turn off selective compiler errors. (default:
  1262. enabled)
  1263. --enable-strict-compilation
  1264. Enable all warnings from compiler and make them
  1265. errors (default: disabled)
  1266. --enable-silent-rules less verbose build output (undo: "make V=1")
  1267. --disable-silent-rules verbose build output (undo: "make V=0")
  1268. Some influential environment variables:
  1269. CC C compiler command
  1270. CFLAGS C compiler flags
  1271. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1272. nonstandard directory <lib dir>
  1273. LIBS libraries to pass to the linker, e.g. -l<library>
  1274. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1275. you have headers in a nonstandard directory <include dir>
  1276. CPP C preprocessor
  1277. PKG_CONFIG path to pkg-config utility
  1278. PKG_CONFIG_PATH
  1279. directories to add to pkg-config's search path
  1280. PKG_CONFIG_LIBDIR
  1281. path overriding pkg-config's built-in search path
  1282. XKBPRINT_CFLAGS
  1283. C compiler flags for XKBPRINT, overriding pkg-config
  1284. XKBPRINT_LIBS
  1285. linker flags for XKBPRINT, overriding pkg-config
  1286. Use these variables to override the choices made by `configure' or to help
  1287. it to find libraries and programs with nonstandard names/locations.
  1288. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1289. _ACEOF
  1290. ac_status=$?
  1291. fi
  1292. if test "$ac_init_help" = "recursive"; then
  1293. # If there are subdirs, report their specific --help.
  1294. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1295. test -d "$ac_dir" ||
  1296. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1297. continue
  1298. ac_builddir=.
  1299. case "$ac_dir" in
  1300. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *)
  1302. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1303. # A ".." for each directory in $ac_dir_suffix.
  1304. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1305. case $ac_top_builddir_sub in
  1306. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1308. esac ;;
  1309. esac
  1310. ac_abs_top_builddir=$ac_pwd
  1311. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1312. # for backward compatibility:
  1313. ac_top_builddir=$ac_top_build_prefix
  1314. case $srcdir in
  1315. .) # We are building in place.
  1316. ac_srcdir=.
  1317. ac_top_srcdir=$ac_top_builddir_sub
  1318. ac_abs_top_srcdir=$ac_pwd ;;
  1319. [\\/]* | ?:[\\/]* ) # Absolute name.
  1320. ac_srcdir=$srcdir$ac_dir_suffix;
  1321. ac_top_srcdir=$srcdir
  1322. ac_abs_top_srcdir=$srcdir ;;
  1323. *) # Relative name.
  1324. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1325. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1326. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1327. esac
  1328. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1329. cd "$ac_dir" || { ac_status=$?; continue; }
  1330. # Check for guested configure.
  1331. if test -f "$ac_srcdir/configure.gnu"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1334. elif test -f "$ac_srcdir/configure"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure" --help=recursive
  1337. else
  1338. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1339. fi || ac_status=$?
  1340. cd "$ac_pwd" || { ac_status=$?; break; }
  1341. done
  1342. fi
  1343. test -n "$ac_init_help" && exit $ac_status
  1344. if $ac_init_version; then
  1345. cat <<\_ACEOF
  1346. xkbprint configure 1.0.4
  1347. generated by GNU Autoconf 2.69
  1348. Copyright (C) 2012 Free Software Foundation, Inc.
  1349. This configure script is free software; the Free Software Foundation
  1350. gives unlimited permission to copy, distribute and modify it.
  1351. _ACEOF
  1352. exit
  1353. fi
  1354. ## ------------------------ ##
  1355. ## Autoconf initialization. ##
  1356. ## ------------------------ ##
  1357. # ac_fn_c_try_compile LINENO
  1358. # --------------------------
  1359. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1360. ac_fn_c_try_compile ()
  1361. {
  1362. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1363. rm -f conftest.$ac_objext
  1364. if { { ac_try="$ac_compile"
  1365. case "(($ac_try" in
  1366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1367. *) ac_try_echo=$ac_try;;
  1368. esac
  1369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1370. $as_echo "$ac_try_echo"; } >&5
  1371. (eval "$ac_compile") 2>conftest.err
  1372. ac_status=$?
  1373. if test -s conftest.err; then
  1374. grep -v '^ *+' conftest.err >conftest.er1
  1375. cat conftest.er1 >&5
  1376. mv -f conftest.er1 conftest.err
  1377. fi
  1378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1379. test $ac_status = 0; } && {
  1380. test -z "$ac_c_werror_flag" ||
  1381. test ! -s conftest.err
  1382. } && test -s conftest.$ac_objext; then :
  1383. ac_retval=0
  1384. else
  1385. $as_echo "$as_me: failed program was:" >&5
  1386. sed 's/^/| /' conftest.$ac_ext >&5
  1387. ac_retval=1
  1388. fi
  1389. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1390. as_fn_set_status $ac_retval
  1391. } # ac_fn_c_try_compile
  1392. # ac_fn_c_try_cpp LINENO
  1393. # ----------------------
  1394. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1395. ac_fn_c_try_cpp ()
  1396. {
  1397. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1398. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1399. case "(($ac_try" in
  1400. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1401. *) ac_try_echo=$ac_try;;
  1402. esac
  1403. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1404. $as_echo "$ac_try_echo"; } >&5
  1405. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1406. ac_status=$?
  1407. if test -s conftest.err; then
  1408. grep -v '^ *+' conftest.err >conftest.er1
  1409. cat conftest.er1 >&5
  1410. mv -f conftest.er1 conftest.err
  1411. fi
  1412. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1413. test $ac_status = 0; } > conftest.i && {
  1414. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1415. test ! -s conftest.err
  1416. }; then :
  1417. ac_retval=0
  1418. else
  1419. $as_echo "$as_me: failed program was:" >&5
  1420. sed 's/^/| /' conftest.$ac_ext >&5
  1421. ac_retval=1
  1422. fi
  1423. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1424. as_fn_set_status $ac_retval
  1425. } # ac_fn_c_try_cpp
  1426. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1427. # -------------------------------------------------------
  1428. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1429. # the include files in INCLUDES and setting the cache variable VAR
  1430. # accordingly.
  1431. ac_fn_c_check_header_mongrel ()
  1432. {
  1433. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1434. if eval \${$3+:} false; then :
  1435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1436. $as_echo_n "checking for $2... " >&6; }
  1437. if eval \${$3+:} false; then :
  1438. $as_echo_n "(cached) " >&6
  1439. fi
  1440. eval ac_res=\$$3
  1441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1442. $as_echo "$ac_res" >&6; }
  1443. else
  1444. # Is the header compilable?
  1445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1446. $as_echo_n "checking $2 usability... " >&6; }
  1447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1448. /* end confdefs.h. */
  1449. $4
  1450. #include <$2>
  1451. _ACEOF
  1452. if ac_fn_c_try_compile "$LINENO"; then :
  1453. ac_header_compiler=yes
  1454. else
  1455. ac_header_compiler=no
  1456. fi
  1457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1459. $as_echo "$ac_header_compiler" >&6; }
  1460. # Is the header present?
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1462. $as_echo_n "checking $2 presence... " >&6; }
  1463. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1464. /* end confdefs.h. */
  1465. #include <$2>
  1466. _ACEOF
  1467. if ac_fn_c_try_cpp "$LINENO"; then :
  1468. ac_header_preproc=yes
  1469. else
  1470. ac_header_preproc=no
  1471. fi
  1472. rm -f conftest.err conftest.i conftest.$ac_ext
  1473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1474. $as_echo "$ac_header_preproc" >&6; }
  1475. # So? What about this header?
  1476. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1477. yes:no: )
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1479. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1480. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1481. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1482. ;;
  1483. no:yes:* )
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1485. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1487. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1488. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1489. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1491. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1493. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1494. ( $as_echo "## ---------------------------------------------------------------------- ##
  1495. ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
  1496. ## ---------------------------------------------------------------------- ##"
  1497. ) | sed "s/^/$as_me: WARNING: /" >&2
  1498. ;;
  1499. esac
  1500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1501. $as_echo_n "checking for $2... " >&6; }
  1502. if eval \${$3+:} false; then :
  1503. $as_echo_n "(cached) " >&6
  1504. else
  1505. eval "$3=\$ac_header_compiler"
  1506. fi
  1507. eval ac_res=\$$3
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1509. $as_echo "$ac_res" >&6; }
  1510. fi
  1511. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1512. } # ac_fn_c_check_header_mongrel
  1513. # ac_fn_c_try_run LINENO
  1514. # ----------------------
  1515. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1516. # that executables *can* be run.
  1517. ac_fn_c_try_run ()
  1518. {
  1519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1520. if { { ac_try="$ac_link"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_link") 2>&5
  1528. ac_status=$?
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1531. { { case "(($ac_try" in
  1532. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1533. *) ac_try_echo=$ac_try;;
  1534. esac
  1535. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1536. $as_echo "$ac_try_echo"; } >&5
  1537. (eval "$ac_try") 2>&5
  1538. ac_status=$?
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; }; }; then :
  1541. ac_retval=0
  1542. else
  1543. $as_echo "$as_me: program exited with status $ac_status" >&5
  1544. $as_echo "$as_me: failed program was:" >&5
  1545. sed 's/^/| /' conftest.$ac_ext >&5
  1546. ac_retval=$ac_status
  1547. fi
  1548. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1549. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1550. as_fn_set_status $ac_retval
  1551. } # ac_fn_c_try_run
  1552. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1553. # -------------------------------------------------------
  1554. # Tests whether HEADER exists and can be compiled using the include files in
  1555. # INCLUDES, setting the cache variable VAR accordingly.
  1556. ac_fn_c_check_header_compile ()
  1557. {
  1558. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1560. $as_echo_n "checking for $2... " >&6; }
  1561. if eval \${$3+:} false; then :
  1562. $as_echo_n "(cached) " >&6
  1563. else
  1564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1565. /* end confdefs.h. */
  1566. $4
  1567. #include <$2>
  1568. _ACEOF
  1569. if ac_fn_c_try_compile "$LINENO"; then :
  1570. eval "$3=yes"
  1571. else
  1572. eval "$3=no"
  1573. fi
  1574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1575. fi
  1576. eval ac_res=\$$3
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1578. $as_echo "$ac_res" >&6; }
  1579. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1580. } # ac_fn_c_check_header_compile
  1581. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1582. # ---------------------------------------------
  1583. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1584. # accordingly.
  1585. ac_fn_c_check_decl ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1589. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1591. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1592. if eval \${$3+:} false; then :
  1593. $as_echo_n "(cached) " >&6
  1594. else
  1595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1596. /* end confdefs.h. */
  1597. $4
  1598. int
  1599. main ()
  1600. {
  1601. #ifndef $as_decl_name
  1602. #ifdef __cplusplus
  1603. (void) $as_decl_use;
  1604. #else
  1605. (void) $as_decl_name;
  1606. #endif
  1607. #endif
  1608. ;
  1609. return 0;
  1610. }
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613. eval "$3=yes"
  1614. else
  1615. eval "$3=no"
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. fi
  1619. eval ac_res=\$$3
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1621. $as_echo "$ac_res" >&6; }
  1622. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1623. } # ac_fn_c_check_decl
  1624. # ac_fn_c_try_link LINENO
  1625. # -----------------------
  1626. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1627. ac_fn_c_try_link ()
  1628. {
  1629. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1630. rm -f conftest.$ac_objext conftest$ac_exeext
  1631. if { { ac_try="$ac_link"
  1632. case "(($ac_try" in
  1633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1634. *) ac_try_echo=$ac_try;;
  1635. esac
  1636. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1637. $as_echo "$ac_try_echo"; } >&5
  1638. (eval "$ac_link") 2>conftest.err
  1639. ac_status=$?
  1640. if test -s conftest.err; then
  1641. grep -v '^ *+' conftest.err >conftest.er1
  1642. cat conftest.er1 >&5
  1643. mv -f conftest.er1 conftest.err
  1644. fi
  1645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1646. test $ac_status = 0; } && {
  1647. test -z "$ac_c_werror_flag" ||
  1648. test ! -s conftest.err
  1649. } && test -s conftest$ac_exeext && {
  1650. test "$cross_compiling" = yes ||
  1651. test -x conftest$ac_exeext
  1652. }; then :
  1653. ac_retval=0
  1654. else
  1655. $as_echo "$as_me: failed program was:" >&5
  1656. sed 's/^/| /' conftest.$ac_ext >&5
  1657. ac_retval=1
  1658. fi
  1659. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1660. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1661. # interfere with the next link command; also delete a directory that is
  1662. # left behind by Apple's compiler. We do this before executing the actions.
  1663. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1664. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1665. as_fn_set_status $ac_retval
  1666. } # ac_fn_c_try_link
  1667. # ac_fn_c_check_func LINENO FUNC VAR
  1668. # ----------------------------------
  1669. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1670. ac_fn_c_check_func ()
  1671. {
  1672. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1674. $as_echo_n "checking for $2... " >&6; }
  1675. if eval \${$3+:} false; then :
  1676. $as_echo_n "(cached) " >&6
  1677. else
  1678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1679. /* end confdefs.h. */
  1680. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1681. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1682. #define $2 innocuous_$2
  1683. /* System header to define __stub macros and hopefully few prototypes,
  1684. which can conflict with char $2 (); below.
  1685. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1686. <limits.h> exists even on freestanding compilers. */
  1687. #ifdef __STDC__
  1688. # include <limits.h>
  1689. #else
  1690. # include <assert.h>
  1691. #endif
  1692. #undef $2
  1693. /* Override any GCC internal prototype to avoid an error.
  1694. Use char because int might match the return type of a GCC
  1695. builtin and then its argument prototype would still apply. */
  1696. #ifdef __cplusplus
  1697. extern "C"
  1698. #endif
  1699. char $2 ();
  1700. /* The GNU C library defines this for functions which it implements
  1701. to always fail with ENOSYS. Some functions are actually named
  1702. something starting with __ and the normal name is an alias. */
  1703. #if defined __stub_$2 || defined __stub___$2
  1704. choke me
  1705. #endif
  1706. int
  1707. main ()
  1708. {
  1709. return $2 ();
  1710. ;
  1711. return 0;
  1712. }
  1713. _ACEOF
  1714. if ac_fn_c_try_link "$LINENO"; then :
  1715. eval "$3=yes"
  1716. else
  1717. eval "$3=no"
  1718. fi
  1719. rm -f core conftest.err conftest.$ac_objext \
  1720. conftest$ac_exeext conftest.$ac_ext
  1721. fi
  1722. eval ac_res=\$$3
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1724. $as_echo "$ac_res" >&6; }
  1725. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1726. } # ac_fn_c_check_func
  1727. cat >config.log <<_ACEOF
  1728. This file contains any messages produced by compilers while
  1729. running configure, to aid debugging if configure makes a mistake.
  1730. It was created by xkbprint $as_me 1.0.4, which was
  1731. generated by GNU Autoconf 2.69. Invocation command line was
  1732. $ $0 $@
  1733. _ACEOF
  1734. exec 5>>config.log
  1735. {
  1736. cat <<_ASUNAME
  1737. ## --------- ##
  1738. ## Platform. ##
  1739. ## --------- ##
  1740. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1741. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1742. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1743. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1744. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1745. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1746. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1747. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1748. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1749. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1750. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1751. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1752. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1753. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1754. _ASUNAME
  1755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1756. for as_dir in $PATH
  1757. do
  1758. IFS=$as_save_IFS
  1759. test -z "$as_dir" && as_dir=.
  1760. $as_echo "PATH: $as_dir"
  1761. done
  1762. IFS=$as_save_IFS
  1763. } >&5
  1764. cat >&5 <<_ACEOF
  1765. ## ----------- ##
  1766. ## Core tests. ##
  1767. ## ----------- ##
  1768. _ACEOF
  1769. # Keep a trace of the command line.
  1770. # Strip out --no-create and --no-recursion so they do not pile up.
  1771. # Strip out --silent because we don't want to record it for future runs.
  1772. # Also quote any args containing shell meta-characters.
  1773. # Make two passes to allow for proper duplicate-argument suppression.
  1774. ac_configure_args=
  1775. ac_configure_args0=
  1776. ac_configure_args1=
  1777. ac_must_keep_next=false
  1778. for ac_pass in 1 2
  1779. do
  1780. for ac_arg
  1781. do
  1782. case $ac_arg in
  1783. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1784. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1785. | -silent | --silent | --silen | --sile | --sil)
  1786. continue ;;
  1787. *\'*)
  1788. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1789. esac
  1790. case $ac_pass in
  1791. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1792. 2)
  1793. as_fn_append ac_configure_args1 " '$ac_arg'"
  1794. if test $ac_must_keep_next = true; then
  1795. ac_must_keep_next=false # Got value, back to normal.
  1796. else
  1797. case $ac_arg in
  1798. *=* | --config-cache | -C | -disable-* | --disable-* \
  1799. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1800. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1801. | -with-* | --with-* | -without-* | --without-* | --x)
  1802. case "$ac_configure_args0 " in
  1803. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1804. esac
  1805. ;;
  1806. -* ) ac_must_keep_next=true ;;
  1807. esac
  1808. fi
  1809. as_fn_append ac_configure_args " '$ac_arg'"
  1810. ;;
  1811. esac
  1812. done
  1813. done
  1814. { ac_configure_args0=; unset ac_configure_args0;}
  1815. { ac_configure_args1=; unset ac_configure_args1;}
  1816. # When interrupted or exit'd, cleanup temporary files, and complete
  1817. # config.log. We remove comments because anyway the quotes in there
  1818. # would cause problems or look ugly.
  1819. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1820. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1821. trap 'exit_status=$?
  1822. # Save into config.log some information that might help in debugging.
  1823. {
  1824. echo
  1825. $as_echo "## ---------------- ##
  1826. ## Cache variables. ##
  1827. ## ---------------- ##"
  1828. echo
  1829. # The following way of writing the cache mishandles newlines in values,
  1830. (
  1831. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1832. eval ac_val=\$$ac_var
  1833. case $ac_val in #(
  1834. *${as_nl}*)
  1835. case $ac_var in #(
  1836. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1837. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1838. esac
  1839. case $ac_var in #(
  1840. _ | IFS | as_nl) ;; #(
  1841. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1842. *) { eval $ac_var=; unset $ac_var;} ;;
  1843. esac ;;
  1844. esac
  1845. done
  1846. (set) 2>&1 |
  1847. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1848. *${as_nl}ac_space=\ *)
  1849. sed -n \
  1850. "s/'\''/'\''\\\\'\'''\''/g;
  1851. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1852. ;; #(
  1853. *)
  1854. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1855. ;;
  1856. esac |
  1857. sort
  1858. )
  1859. echo
  1860. $as_echo "## ----------------- ##
  1861. ## Output variables. ##
  1862. ## ----------------- ##"
  1863. echo
  1864. for ac_var in $ac_subst_vars
  1865. do
  1866. eval ac_val=\$$ac_var
  1867. case $ac_val in
  1868. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1869. esac
  1870. $as_echo "$ac_var='\''$ac_val'\''"
  1871. done | sort
  1872. echo
  1873. if test -n "$ac_subst_files"; then
  1874. $as_echo "## ------------------- ##
  1875. ## File substitutions. ##
  1876. ## ------------------- ##"
  1877. echo
  1878. for ac_var in $ac_subst_files
  1879. do
  1880. eval ac_val=\$$ac_var
  1881. case $ac_val in
  1882. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1883. esac
  1884. $as_echo "$ac_var='\''$ac_val'\''"
  1885. done | sort
  1886. echo
  1887. fi
  1888. if test -s confdefs.h; then
  1889. $as_echo "## ----------- ##
  1890. ## confdefs.h. ##
  1891. ## ----------- ##"
  1892. echo
  1893. cat confdefs.h
  1894. echo
  1895. fi
  1896. test "$ac_signal" != 0 &&
  1897. $as_echo "$as_me: caught signal $ac_signal"
  1898. $as_echo "$as_me: exit $exit_status"
  1899. } >&5
  1900. rm -f core *.core core.conftest.* &&
  1901. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1902. exit $exit_status
  1903. ' 0
  1904. for ac_signal in 1 2 13 15; do
  1905. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1906. done
  1907. ac_signal=0
  1908. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1909. rm -f -r conftest* confdefs.h
  1910. $as_echo "/* confdefs.h */" > confdefs.h
  1911. # Predefined preprocessor variables.
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_NAME "$PACKAGE_NAME"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_STRING "$PACKAGE_STRING"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1926. _ACEOF
  1927. cat >>confdefs.h <<_ACEOF
  1928. #define PACKAGE_URL "$PACKAGE_URL"
  1929. _ACEOF
  1930. # Let the site file select an alternate cache file if it wants to.
  1931. # Prefer an explicitly selected file to automatically selected ones.
  1932. ac_site_file1=NONE
  1933. ac_site_file2=NONE
  1934. if test -n "$CONFIG_SITE"; then
  1935. # We do not want a PATH search for config.site.
  1936. case $CONFIG_SITE in #((
  1937. -*) ac_site_file1=./$CONFIG_SITE;;
  1938. */*) ac_site_file1=$CONFIG_SITE;;
  1939. *) ac_site_file1=./$CONFIG_SITE;;
  1940. esac
  1941. elif test "x$prefix" != xNONE; then
  1942. ac_site_file1=$prefix/share/config.site
  1943. ac_site_file2=$prefix/etc/config.site
  1944. else
  1945. ac_site_file1=$ac_default_prefix/share/config.site
  1946. ac_site_file2=$ac_default_prefix/etc/config.site
  1947. fi
  1948. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1949. do
  1950. test "x$ac_site_file" = xNONE && continue
  1951. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1953. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1954. sed 's/^/| /' "$ac_site_file" >&5
  1955. . "$ac_site_file" \
  1956. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1957. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1958. as_fn_error $? "failed to load site script $ac_site_file
  1959. See \`config.log' for more details" "$LINENO" 5; }
  1960. fi
  1961. done
  1962. if test -r "$cache_file"; then
  1963. # Some versions of bash will fail to source /dev/null (special files
  1964. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1965. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1967. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1968. case $cache_file in
  1969. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1970. *) . "./$cache_file";;
  1971. esac
  1972. fi
  1973. else
  1974. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1975. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1976. >$cache_file
  1977. fi
  1978. # Check that the precious variables saved in the cache have kept the same
  1979. # value.
  1980. ac_cache_corrupted=false
  1981. for ac_var in $ac_precious_vars; do
  1982. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1983. eval ac_new_set=\$ac_env_${ac_var}_set
  1984. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1985. eval ac_new_val=\$ac_env_${ac_var}_value
  1986. case $ac_old_set,$ac_new_set in
  1987. set,)
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1989. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1990. ac_cache_corrupted=: ;;
  1991. ,set)
  1992. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1993. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1994. ac_cache_corrupted=: ;;
  1995. ,);;
  1996. *)
  1997. if test "x$ac_old_val" != "x$ac_new_val"; then
  1998. # differences in whitespace do not lead to failure.
  1999. ac_old_val_w=`echo x $ac_old_val`
  2000. ac_new_val_w=`echo x $ac_new_val`
  2001. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2003. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2004. ac_cache_corrupted=:
  2005. else
  2006. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2007. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2008. eval $ac_var=\$ac_old_val
  2009. fi
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2011. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2012. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2013. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2014. fi;;
  2015. esac
  2016. # Pass precious variables to config.status.
  2017. if test "$ac_new_set" = set; then
  2018. case $ac_new_val in
  2019. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2020. *) ac_arg=$ac_var=$ac_new_val ;;
  2021. esac
  2022. case " $ac_configure_args " in
  2023. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2024. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2025. esac
  2026. fi
  2027. done
  2028. if $ac_cache_corrupted; then
  2029. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2030. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2032. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2033. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2034. fi
  2035. ## -------------------- ##
  2036. ## Main body of script. ##
  2037. ## -------------------- ##
  2038. ac_ext=c
  2039. ac_cpp='$CPP $CPPFLAGS'
  2040. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2041. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2042. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2043. ac_config_headers="$ac_config_headers config.h"
  2044. # Needed for asprintf on GNU libc
  2045. ac_ext=c
  2046. ac_cpp='$CPP $CPPFLAGS'
  2047. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2048. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2049. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2050. if test -n "$ac_tool_prefix"; then
  2051. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2052. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2054. $as_echo_n "checking for $ac_word... " >&6; }
  2055. if ${ac_cv_prog_CC+:} false; then :
  2056. $as_echo_n "(cached) " >&6
  2057. else
  2058. if test -n "$CC"; then
  2059. ac_cv_prog_CC="$CC" # Let the user override the test.
  2060. else
  2061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2062. for as_dir in $PATH
  2063. do
  2064. IFS=$as_save_IFS
  2065. test -z "$as_dir" && as_dir=.
  2066. for ac_exec_ext in '' $ac_executable_extensions; do
  2067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2068. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2070. break 2
  2071. fi
  2072. done
  2073. done
  2074. IFS=$as_save_IFS
  2075. fi
  2076. fi
  2077. CC=$ac_cv_prog_CC
  2078. if test -n "$CC"; then
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2080. $as_echo "$CC" >&6; }
  2081. else
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2083. $as_echo "no" >&6; }
  2084. fi
  2085. fi
  2086. if test -z "$ac_cv_prog_CC"; then
  2087. ac_ct_CC=$CC
  2088. # Extract the first word of "gcc", so it can be a program name with args.
  2089. set dummy gcc; ac_word=$2
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2091. $as_echo_n "checking for $ac_word... " >&6; }
  2092. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2093. $as_echo_n "(cached) " >&6
  2094. else
  2095. if test -n "$ac_ct_CC"; then
  2096. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2097. else
  2098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2099. for as_dir in $PATH
  2100. do
  2101. IFS=$as_save_IFS
  2102. test -z "$as_dir" && as_dir=.
  2103. for ac_exec_ext in '' $ac_executable_extensions; do
  2104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2105. ac_cv_prog_ac_ct_CC="gcc"
  2106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2107. break 2
  2108. fi
  2109. done
  2110. done
  2111. IFS=$as_save_IFS
  2112. fi
  2113. fi
  2114. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2115. if test -n "$ac_ct_CC"; then
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2117. $as_echo "$ac_ct_CC" >&6; }
  2118. else
  2119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2120. $as_echo "no" >&6; }
  2121. fi
  2122. if test "x$ac_ct_CC" = x; then
  2123. CC=""
  2124. else
  2125. case $cross_compiling:$ac_tool_warned in
  2126. yes:)
  2127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2129. ac_tool_warned=yes ;;
  2130. esac
  2131. CC=$ac_ct_CC
  2132. fi
  2133. else
  2134. CC="$ac_cv_prog_CC"
  2135. fi
  2136. if test -z "$CC"; then
  2137. if test -n "$ac_tool_prefix"; then
  2138. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2139. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2141. $as_echo_n "checking for $ac_word... " >&6; }
  2142. if ${ac_cv_prog_CC+:} false; then :
  2143. $as_echo_n "(cached) " >&6
  2144. else
  2145. if test -n "$CC"; then
  2146. ac_cv_prog_CC="$CC" # Let the user override the test.
  2147. else
  2148. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2149. for as_dir in $PATH
  2150. do
  2151. IFS=$as_save_IFS
  2152. test -z "$as_dir" && as_dir=.
  2153. for ac_exec_ext in '' $ac_executable_extensions; do
  2154. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2155. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2156. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2157. break 2
  2158. fi
  2159. done
  2160. done
  2161. IFS=$as_save_IFS
  2162. fi
  2163. fi
  2164. CC=$ac_cv_prog_CC
  2165. if test -n "$CC"; then
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2167. $as_echo "$CC" >&6; }
  2168. else
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2170. $as_echo "no" >&6; }
  2171. fi
  2172. fi
  2173. fi
  2174. if test -z "$CC"; then
  2175. # Extract the first word of "cc", so it can be a program name with args.
  2176. set dummy cc; ac_word=$2
  2177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2178. $as_echo_n "checking for $ac_word... " >&6; }
  2179. if ${ac_cv_prog_CC+:} false; then :
  2180. $as_echo_n "(cached) " >&6
  2181. else
  2182. if test -n "$CC"; then
  2183. ac_cv_prog_CC="$CC" # Let the user override the test.
  2184. else
  2185. ac_prog_rejected=no
  2186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2187. for as_dir in $PATH
  2188. do
  2189. IFS=$as_save_IFS
  2190. test -z "$as_dir" && as_dir=.
  2191. for ac_exec_ext in '' $ac_executable_extensions; do
  2192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2193. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2194. ac_prog_rejected=yes
  2195. continue
  2196. fi
  2197. ac_cv_prog_CC="cc"
  2198. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2199. break 2
  2200. fi
  2201. done
  2202. done
  2203. IFS=$as_save_IFS
  2204. if test $ac_prog_rejected = yes; then
  2205. # We found a bogon in the path, so make sure we never use it.
  2206. set dummy $ac_cv_prog_CC
  2207. shift
  2208. if test $# != 0; then
  2209. # We chose a different compiler from the bogus one.
  2210. # However, it has the same basename, so the bogon will be chosen
  2211. # first if we set CC to just the basename; use the full file name.
  2212. shift
  2213. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2214. fi
  2215. fi
  2216. fi
  2217. fi
  2218. CC=$ac_cv_prog_CC
  2219. if test -n "$CC"; then
  2220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2221. $as_echo "$CC" >&6; }
  2222. else
  2223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2224. $as_echo "no" >&6; }
  2225. fi
  2226. fi
  2227. if test -z "$CC"; then
  2228. if test -n "$ac_tool_prefix"; then
  2229. for ac_prog in cl.exe
  2230. do
  2231. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2232. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2234. $as_echo_n "checking for $ac_word... " >&6; }
  2235. if ${ac_cv_prog_CC+:} false; then :
  2236. $as_echo_n "(cached) " >&6
  2237. else
  2238. if test -n "$CC"; then
  2239. ac_cv_prog_CC="$CC" # Let the user override the test.
  2240. else
  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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2248. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2249. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2250. break 2
  2251. fi
  2252. done
  2253. done
  2254. IFS=$as_save_IFS
  2255. fi
  2256. fi
  2257. CC=$ac_cv_prog_CC
  2258. if test -n "$CC"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2260. $as_echo "$CC" >&6; }
  2261. else
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2263. $as_echo "no" >&6; }
  2264. fi
  2265. test -n "$CC" && break
  2266. done
  2267. fi
  2268. if test -z "$CC"; then
  2269. ac_ct_CC=$CC
  2270. for ac_prog in cl.exe
  2271. do
  2272. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2273. set dummy $ac_prog; ac_word=$2
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2275. $as_echo_n "checking for $ac_word... " >&6; }
  2276. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2277. $as_echo_n "(cached) " >&6
  2278. else
  2279. if test -n "$ac_ct_CC"; then
  2280. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2281. else
  2282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2283. for as_dir in $PATH
  2284. do
  2285. IFS=$as_save_IFS
  2286. test -z "$as_dir" && as_dir=.
  2287. for ac_exec_ext in '' $ac_executable_extensions; do
  2288. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2289. ac_cv_prog_ac_ct_CC="$ac_prog"
  2290. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2291. break 2
  2292. fi
  2293. done
  2294. done
  2295. IFS=$as_save_IFS
  2296. fi
  2297. fi
  2298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2299. if test -n "$ac_ct_CC"; then
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2301. $as_echo "$ac_ct_CC" >&6; }
  2302. else
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2304. $as_echo "no" >&6; }
  2305. fi
  2306. test -n "$ac_ct_CC" && break
  2307. done
  2308. if test "x$ac_ct_CC" = x; then
  2309. CC=""
  2310. else
  2311. case $cross_compiling:$ac_tool_warned in
  2312. yes:)
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2314. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2315. ac_tool_warned=yes ;;
  2316. esac
  2317. CC=$ac_ct_CC
  2318. fi
  2319. fi
  2320. fi
  2321. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2322. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2323. as_fn_error $? "no acceptable C compiler found in \$PATH
  2324. See \`config.log' for more details" "$LINENO" 5; }
  2325. # Provide some information about the compiler.
  2326. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2327. set X $ac_compile
  2328. ac_compiler=$2
  2329. for ac_option in --version -v -V -qversion; do
  2330. { { ac_try="$ac_compiler $ac_option >&5"
  2331. case "(($ac_try" in
  2332. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2333. *) ac_try_echo=$ac_try;;
  2334. esac
  2335. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2336. $as_echo "$ac_try_echo"; } >&5
  2337. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2338. ac_status=$?
  2339. if test -s conftest.err; then
  2340. sed '10a\
  2341. ... rest of stderr output deleted ...
  2342. 10q' conftest.err >conftest.er1
  2343. cat conftest.er1 >&5
  2344. fi
  2345. rm -f conftest.er1 conftest.err
  2346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2347. test $ac_status = 0; }
  2348. done
  2349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2350. /* end confdefs.h. */
  2351. int
  2352. main ()
  2353. {
  2354. ;
  2355. return 0;
  2356. }
  2357. _ACEOF
  2358. ac_clean_files_save=$ac_clean_files
  2359. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2360. # Try to create an executable without -o first, disregard a.out.
  2361. # It will help us diagnose broken compilers, and finding out an intuition
  2362. # of exeext.
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2364. $as_echo_n "checking whether the C compiler works... " >&6; }
  2365. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2366. # The possible output files:
  2367. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2368. ac_rmfiles=
  2369. for ac_file in $ac_files
  2370. do
  2371. case $ac_file in
  2372. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2373. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2374. esac
  2375. done
  2376. rm -f $ac_rmfiles
  2377. if { { ac_try="$ac_link_default"
  2378. case "(($ac_try" in
  2379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2380. *) ac_try_echo=$ac_try;;
  2381. esac
  2382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2383. $as_echo "$ac_try_echo"; } >&5
  2384. (eval "$ac_link_default") 2>&5
  2385. ac_status=$?
  2386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2387. test $ac_status = 0; }; then :
  2388. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2389. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2390. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2391. # so that the user can short-circuit this test for compilers unknown to
  2392. # Autoconf.
  2393. for ac_file in $ac_files ''
  2394. do
  2395. test -f "$ac_file" || continue
  2396. case $ac_file in
  2397. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2398. ;;
  2399. [ab].out )
  2400. # We found the default executable, but exeext='' is most
  2401. # certainly right.
  2402. break;;
  2403. *.* )
  2404. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2405. then :; else
  2406. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2407. fi
  2408. # We set ac_cv_exeext here because the later test for it is not
  2409. # safe: cross compilers may not add the suffix if given an `-o'
  2410. # argument, so we may need to know it at that point already.
  2411. # Even if this section looks crufty: it has the advantage of
  2412. # actually working.
  2413. break;;
  2414. * )
  2415. break;;
  2416. esac
  2417. done
  2418. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2419. else
  2420. ac_file=''
  2421. fi
  2422. if test -z "$ac_file"; then :
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2424. $as_echo "no" >&6; }
  2425. $as_echo "$as_me: failed program was:" >&5
  2426. sed 's/^/| /' conftest.$ac_ext >&5
  2427. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2428. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2429. as_fn_error 77 "C compiler cannot create executables
  2430. See \`config.log' for more details" "$LINENO" 5; }
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2433. $as_echo "yes" >&6; }
  2434. fi
  2435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2436. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2438. $as_echo "$ac_file" >&6; }
  2439. ac_exeext=$ac_cv_exeext
  2440. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2441. ac_clean_files=$ac_clean_files_save
  2442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2443. $as_echo_n "checking for suffix of executables... " >&6; }
  2444. if { { ac_try="$ac_link"
  2445. case "(($ac_try" in
  2446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2447. *) ac_try_echo=$ac_try;;
  2448. esac
  2449. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2450. $as_echo "$ac_try_echo"; } >&5
  2451. (eval "$ac_link") 2>&5
  2452. ac_status=$?
  2453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2454. test $ac_status = 0; }; then :
  2455. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2456. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2457. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2458. # `rm'.
  2459. for ac_file in conftest.exe conftest conftest.*; do
  2460. test -f "$ac_file" || continue
  2461. case $ac_file in
  2462. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2463. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2464. break;;
  2465. * ) break;;
  2466. esac
  2467. done
  2468. else
  2469. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2470. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2471. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2472. See \`config.log' for more details" "$LINENO" 5; }
  2473. fi
  2474. rm -f conftest conftest$ac_cv_exeext
  2475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2476. $as_echo "$ac_cv_exeext" >&6; }
  2477. rm -f conftest.$ac_ext
  2478. EXEEXT=$ac_cv_exeext
  2479. ac_exeext=$EXEEXT
  2480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2481. /* end confdefs.h. */
  2482. #include <stdio.h>
  2483. int
  2484. main ()
  2485. {
  2486. FILE *f = fopen ("conftest.out", "w");
  2487. return ferror (f) || fclose (f) != 0;
  2488. ;
  2489. return 0;
  2490. }
  2491. _ACEOF
  2492. ac_clean_files="$ac_clean_files conftest.out"
  2493. # Check that the compiler produces executables we can run. If not, either
  2494. # the compiler is broken, or we cross compile.
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2496. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2497. if test "$cross_compiling" != yes; then
  2498. { { ac_try="$ac_link"
  2499. case "(($ac_try" in
  2500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2501. *) ac_try_echo=$ac_try;;
  2502. esac
  2503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2504. $as_echo "$ac_try_echo"; } >&5
  2505. (eval "$ac_link") 2>&5
  2506. ac_status=$?
  2507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2508. test $ac_status = 0; }
  2509. if { ac_try='./conftest$ac_cv_exeext'
  2510. { { case "(($ac_try" in
  2511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2512. *) ac_try_echo=$ac_try;;
  2513. esac
  2514. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2515. $as_echo "$ac_try_echo"; } >&5
  2516. (eval "$ac_try") 2>&5
  2517. ac_status=$?
  2518. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2519. test $ac_status = 0; }; }; then
  2520. cross_compiling=no
  2521. else
  2522. if test "$cross_compiling" = maybe; then
  2523. cross_compiling=yes
  2524. else
  2525. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2526. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2527. as_fn_error $? "cannot run C compiled programs.
  2528. If you meant to cross compile, use \`--host'.
  2529. See \`config.log' for more details" "$LINENO" 5; }
  2530. fi
  2531. fi
  2532. fi
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2534. $as_echo "$cross_compiling" >&6; }
  2535. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2536. ac_clean_files=$ac_clean_files_save
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2538. $as_echo_n "checking for suffix of object files... " >&6; }
  2539. if ${ac_cv_objext+:} false; then :
  2540. $as_echo_n "(cached) " >&6
  2541. else
  2542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2543. /* end confdefs.h. */
  2544. int
  2545. main ()
  2546. {
  2547. ;
  2548. return 0;
  2549. }
  2550. _ACEOF
  2551. rm -f conftest.o conftest.obj
  2552. if { { ac_try="$ac_compile"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2558. $as_echo "$ac_try_echo"; } >&5
  2559. (eval "$ac_compile") 2>&5
  2560. ac_status=$?
  2561. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2562. test $ac_status = 0; }; then :
  2563. for ac_file in conftest.o conftest.obj conftest.*; do
  2564. test -f "$ac_file" || continue;
  2565. case $ac_file in
  2566. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2567. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2568. break;;
  2569. esac
  2570. done
  2571. else
  2572. $as_echo "$as_me: failed program was:" >&5
  2573. sed 's/^/| /' conftest.$ac_ext >&5
  2574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2576. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2577. See \`config.log' for more details" "$LINENO" 5; }
  2578. fi
  2579. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2580. fi
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2582. $as_echo "$ac_cv_objext" >&6; }
  2583. OBJEXT=$ac_cv_objext
  2584. ac_objext=$OBJEXT
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2586. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2587. if ${ac_cv_c_compiler_gnu+:} false; then :
  2588. $as_echo_n "(cached) " >&6
  2589. else
  2590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2591. /* end confdefs.h. */
  2592. int
  2593. main ()
  2594. {
  2595. #ifndef __GNUC__
  2596. choke me
  2597. #endif
  2598. ;
  2599. return 0;
  2600. }
  2601. _ACEOF
  2602. if ac_fn_c_try_compile "$LINENO"; then :
  2603. ac_compiler_gnu=yes
  2604. else
  2605. ac_compiler_gnu=no
  2606. fi
  2607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2608. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2609. fi
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2611. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2612. if test $ac_compiler_gnu = yes; then
  2613. GCC=yes
  2614. else
  2615. GCC=
  2616. fi
  2617. ac_test_CFLAGS=${CFLAGS+set}
  2618. ac_save_CFLAGS=$CFLAGS
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2620. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2621. if ${ac_cv_prog_cc_g+:} false; then :
  2622. $as_echo_n "(cached) " >&6
  2623. else
  2624. ac_save_c_werror_flag=$ac_c_werror_flag
  2625. ac_c_werror_flag=yes
  2626. ac_cv_prog_cc_g=no
  2627. CFLAGS="-g"
  2628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2629. /* end confdefs.h. */
  2630. int
  2631. main ()
  2632. {
  2633. ;
  2634. return 0;
  2635. }
  2636. _ACEOF
  2637. if ac_fn_c_try_compile "$LINENO"; then :
  2638. ac_cv_prog_cc_g=yes
  2639. else
  2640. CFLAGS=""
  2641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2642. /* end confdefs.h. */
  2643. int
  2644. main ()
  2645. {
  2646. ;
  2647. return 0;
  2648. }
  2649. _ACEOF
  2650. if ac_fn_c_try_compile "$LINENO"; then :
  2651. else
  2652. ac_c_werror_flag=$ac_save_c_werror_flag
  2653. CFLAGS="-g"
  2654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2655. /* end confdefs.h. */
  2656. int
  2657. main ()
  2658. {
  2659. ;
  2660. return 0;
  2661. }
  2662. _ACEOF
  2663. if ac_fn_c_try_compile "$LINENO"; then :
  2664. ac_cv_prog_cc_g=yes
  2665. fi
  2666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2667. fi
  2668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2669. fi
  2670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. ac_c_werror_flag=$ac_save_c_werror_flag
  2672. fi
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2674. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2675. if test "$ac_test_CFLAGS" = set; then
  2676. CFLAGS=$ac_save_CFLAGS
  2677. elif test $ac_cv_prog_cc_g = yes; then
  2678. if test "$GCC" = yes; then
  2679. CFLAGS="-g -O2"
  2680. else
  2681. CFLAGS="-g"
  2682. fi
  2683. else
  2684. if test "$GCC" = yes; then
  2685. CFLAGS="-O2"
  2686. else
  2687. CFLAGS=
  2688. fi
  2689. fi
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2691. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2692. if ${ac_cv_prog_cc_c89+:} false; then :
  2693. $as_echo_n "(cached) " >&6
  2694. else
  2695. ac_cv_prog_cc_c89=no
  2696. ac_save_CC=$CC
  2697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2698. /* end confdefs.h. */
  2699. #include <stdarg.h>
  2700. #include <stdio.h>
  2701. struct stat;
  2702. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2703. struct buf { int x; };
  2704. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2705. static char *e (p, i)
  2706. char **p;
  2707. int i;
  2708. {
  2709. return p[i];
  2710. }
  2711. static char *f (char * (*g) (char **, int), char **p, ...)
  2712. {
  2713. char *s;
  2714. va_list v;
  2715. va_start (v,p);
  2716. s = g (p, va_arg (v,int));
  2717. va_end (v);
  2718. return s;
  2719. }
  2720. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2721. function prototypes and stuff, but not '\xHH' hex character constants.
  2722. These don't provoke an error unfortunately, instead are silently treated
  2723. as 'x'. The following induces an error, until -std is added to get
  2724. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2725. array size at least. It's necessary to write '\x00'==0 to get something
  2726. that's true only with -std. */
  2727. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2728. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2729. inside strings and character constants. */
  2730. #define FOO(x) 'x'
  2731. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2732. int test (int i, double x);
  2733. struct s1 {int (*f) (int a);};
  2734. struct s2 {int (*f) (double a);};
  2735. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2736. int argc;
  2737. char **argv;
  2738. int
  2739. main ()
  2740. {
  2741. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2742. ;
  2743. return 0;
  2744. }
  2745. _ACEOF
  2746. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2747. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2748. do
  2749. CC="$ac_save_CC $ac_arg"
  2750. if ac_fn_c_try_compile "$LINENO"; then :
  2751. ac_cv_prog_cc_c89=$ac_arg
  2752. fi
  2753. rm -f core conftest.err conftest.$ac_objext
  2754. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2755. done
  2756. rm -f conftest.$ac_ext
  2757. CC=$ac_save_CC
  2758. fi
  2759. # AC_CACHE_VAL
  2760. case "x$ac_cv_prog_cc_c89" in
  2761. x)
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2763. $as_echo "none needed" >&6; } ;;
  2764. xno)
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2766. $as_echo "unsupported" >&6; } ;;
  2767. *)
  2768. CC="$CC $ac_cv_prog_cc_c89"
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2770. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2771. esac
  2772. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2773. fi
  2774. ac_ext=c
  2775. ac_cpp='$CPP $CPPFLAGS'
  2776. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2777. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2778. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2779. ac_ext=c
  2780. ac_cpp='$CPP $CPPFLAGS'
  2781. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2782. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2783. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2785. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2786. # On Suns, sometimes $CPP names a directory.
  2787. if test -n "$CPP" && test -d "$CPP"; then
  2788. CPP=
  2789. fi
  2790. if test -z "$CPP"; then
  2791. if ${ac_cv_prog_CPP+:} false; then :
  2792. $as_echo_n "(cached) " >&6
  2793. else
  2794. # Double quotes because CPP needs to be expanded
  2795. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2796. do
  2797. ac_preproc_ok=false
  2798. for ac_c_preproc_warn_flag in '' yes
  2799. do
  2800. # Use a header file that comes with gcc, so configuring glibc
  2801. # with a fresh cross-compiler works.
  2802. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2803. # <limits.h> exists even on freestanding compilers.
  2804. # On the NeXT, cc -E runs the code through the compiler's parser,
  2805. # not just through cpp. "Syntax error" is here to catch this case.
  2806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2807. /* end confdefs.h. */
  2808. #ifdef __STDC__
  2809. # include <limits.h>
  2810. #else
  2811. # include <assert.h>
  2812. #endif
  2813. Syntax error
  2814. _ACEOF
  2815. if ac_fn_c_try_cpp "$LINENO"; then :
  2816. else
  2817. # Broken: fails on valid input.
  2818. continue
  2819. fi
  2820. rm -f conftest.err conftest.i conftest.$ac_ext
  2821. # OK, works on sane cases. Now check whether nonexistent headers
  2822. # can be detected and how.
  2823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2824. /* end confdefs.h. */
  2825. #include <ac_nonexistent.h>
  2826. _ACEOF
  2827. if ac_fn_c_try_cpp "$LINENO"; then :
  2828. # Broken: success on invalid input.
  2829. continue
  2830. else
  2831. # Passes both tests.
  2832. ac_preproc_ok=:
  2833. break
  2834. fi
  2835. rm -f conftest.err conftest.i conftest.$ac_ext
  2836. done
  2837. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2838. rm -f conftest.i conftest.err conftest.$ac_ext
  2839. if $ac_preproc_ok; then :
  2840. break
  2841. fi
  2842. done
  2843. ac_cv_prog_CPP=$CPP
  2844. fi
  2845. CPP=$ac_cv_prog_CPP
  2846. else
  2847. ac_cv_prog_CPP=$CPP
  2848. fi
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2850. $as_echo "$CPP" >&6; }
  2851. ac_preproc_ok=false
  2852. for ac_c_preproc_warn_flag in '' yes
  2853. do
  2854. # Use a header file that comes with gcc, so configuring glibc
  2855. # with a fresh cross-compiler works.
  2856. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2857. # <limits.h> exists even on freestanding compilers.
  2858. # On the NeXT, cc -E runs the code through the compiler's parser,
  2859. # not just through cpp. "Syntax error" is here to catch this case.
  2860. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2861. /* end confdefs.h. */
  2862. #ifdef __STDC__
  2863. # include <limits.h>
  2864. #else
  2865. # include <assert.h>
  2866. #endif
  2867. Syntax error
  2868. _ACEOF
  2869. if ac_fn_c_try_cpp "$LINENO"; then :
  2870. else
  2871. # Broken: fails on valid input.
  2872. continue
  2873. fi
  2874. rm -f conftest.err conftest.i conftest.$ac_ext
  2875. # OK, works on sane cases. Now check whether nonexistent headers
  2876. # can be detected and how.
  2877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. #include <ac_nonexistent.h>
  2880. _ACEOF
  2881. if ac_fn_c_try_cpp "$LINENO"; then :
  2882. # Broken: success on invalid input.
  2883. continue
  2884. else
  2885. # Passes both tests.
  2886. ac_preproc_ok=:
  2887. break
  2888. fi
  2889. rm -f conftest.err conftest.i conftest.$ac_ext
  2890. done
  2891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2892. rm -f conftest.i conftest.err conftest.$ac_ext
  2893. if $ac_preproc_ok; then :
  2894. else
  2895. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2896. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2897. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2898. See \`config.log' for more details" "$LINENO" 5; }
  2899. fi
  2900. ac_ext=c
  2901. ac_cpp='$CPP $CPPFLAGS'
  2902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2906. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2907. if ${ac_cv_path_GREP+:} false; then :
  2908. $as_echo_n "(cached) " >&6
  2909. else
  2910. if test -z "$GREP"; then
  2911. ac_path_GREP_found=false
  2912. # Loop through the user's path and test for each of PROGNAME-LIST
  2913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2914. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2915. do
  2916. IFS=$as_save_IFS
  2917. test -z "$as_dir" && as_dir=.
  2918. for ac_prog in grep ggrep; do
  2919. for ac_exec_ext in '' $ac_executable_extensions; do
  2920. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2921. as_fn_executable_p "$ac_path_GREP" || continue
  2922. # Check for GNU ac_path_GREP and select it if it is found.
  2923. # Check for GNU $ac_path_GREP
  2924. case `"$ac_path_GREP" --version 2>&1` in
  2925. *GNU*)
  2926. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2927. *)
  2928. ac_count=0
  2929. $as_echo_n 0123456789 >"conftest.in"
  2930. while :
  2931. do
  2932. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2933. mv "conftest.tmp" "conftest.in"
  2934. cp "conftest.in" "conftest.nl"
  2935. $as_echo 'GREP' >> "conftest.nl"
  2936. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2937. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2938. as_fn_arith $ac_count + 1 && ac_count=$as_val
  2939. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2940. # Best one so far, save it but keep looking for a better one
  2941. ac_cv_path_GREP="$ac_path_GREP"
  2942. ac_path_GREP_max=$ac_count
  2943. fi
  2944. # 10*(2^10) chars as input seems more than enough
  2945. test $ac_count -gt 10 && break
  2946. done
  2947. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2948. esac
  2949. $ac_path_GREP_found && break 3
  2950. done
  2951. done
  2952. done
  2953. IFS=$as_save_IFS
  2954. if test -z "$ac_cv_path_GREP"; then
  2955. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  2956. fi
  2957. else
  2958. ac_cv_path_GREP=$GREP
  2959. fi
  2960. fi
  2961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  2962. $as_echo "$ac_cv_path_GREP" >&6; }
  2963. GREP="$ac_cv_path_GREP"
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  2965. $as_echo_n "checking for egrep... " >&6; }
  2966. if ${ac_cv_path_EGREP+:} false; then :
  2967. $as_echo_n "(cached) " >&6
  2968. else
  2969. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2970. then ac_cv_path_EGREP="$GREP -E"
  2971. else
  2972. if test -z "$EGREP"; then
  2973. ac_path_EGREP_found=false
  2974. # Loop through the user's path and test for each of PROGNAME-LIST
  2975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2976. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2977. do
  2978. IFS=$as_save_IFS
  2979. test -z "$as_dir" && as_dir=.
  2980. for ac_prog in egrep; do
  2981. for ac_exec_ext in '' $ac_executable_extensions; do
  2982. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2983. as_fn_executable_p "$ac_path_EGREP" || continue
  2984. # Check for GNU ac_path_EGREP and select it if it is found.
  2985. # Check for GNU $ac_path_EGREP
  2986. case `"$ac_path_EGREP" --version 2>&1` in
  2987. *GNU*)
  2988. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2989. *)
  2990. ac_count=0
  2991. $as_echo_n 0123456789 >"conftest.in"
  2992. while :
  2993. do
  2994. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2995. mv "conftest.tmp" "conftest.in"
  2996. cp "conftest.in" "conftest.nl"
  2997. $as_echo 'EGREP' >> "conftest.nl"
  2998. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2999. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3000. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3001. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3002. # Best one so far, save it but keep looking for a better one
  3003. ac_cv_path_EGREP="$ac_path_EGREP"
  3004. ac_path_EGREP_max=$ac_count
  3005. fi
  3006. # 10*(2^10) chars as input seems more than enough
  3007. test $ac_count -gt 10 && break
  3008. done
  3009. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3010. esac
  3011. $ac_path_EGREP_found && break 3
  3012. done
  3013. done
  3014. done
  3015. IFS=$as_save_IFS
  3016. if test -z "$ac_cv_path_EGREP"; then
  3017. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3018. fi
  3019. else
  3020. ac_cv_path_EGREP=$EGREP
  3021. fi
  3022. fi
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3025. $as_echo "$ac_cv_path_EGREP" >&6; }
  3026. EGREP="$ac_cv_path_EGREP"
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3028. $as_echo_n "checking for ANSI C header files... " >&6; }
  3029. if ${ac_cv_header_stdc+:} false; then :
  3030. $as_echo_n "(cached) " >&6
  3031. else
  3032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. /* end confdefs.h. */
  3034. #include <stdlib.h>
  3035. #include <stdarg.h>
  3036. #include <string.h>
  3037. #include <float.h>
  3038. int
  3039. main ()
  3040. {
  3041. ;
  3042. return 0;
  3043. }
  3044. _ACEOF
  3045. if ac_fn_c_try_compile "$LINENO"; then :
  3046. ac_cv_header_stdc=yes
  3047. else
  3048. ac_cv_header_stdc=no
  3049. fi
  3050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3051. if test $ac_cv_header_stdc = yes; then
  3052. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3054. /* end confdefs.h. */
  3055. #include <string.h>
  3056. _ACEOF
  3057. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3058. $EGREP "memchr" >/dev/null 2>&1; then :
  3059. else
  3060. ac_cv_header_stdc=no
  3061. fi
  3062. rm -f conftest*
  3063. fi
  3064. if test $ac_cv_header_stdc = yes; then
  3065. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3067. /* end confdefs.h. */
  3068. #include <stdlib.h>
  3069. _ACEOF
  3070. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3071. $EGREP "free" >/dev/null 2>&1; then :
  3072. else
  3073. ac_cv_header_stdc=no
  3074. fi
  3075. rm -f conftest*
  3076. fi
  3077. if test $ac_cv_header_stdc = yes; then
  3078. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3079. if test "$cross_compiling" = yes; then :
  3080. :
  3081. else
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. #include <ctype.h>
  3085. #include <stdlib.h>
  3086. #if ((' ' & 0x0FF) == 0x020)
  3087. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3088. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3089. #else
  3090. # define ISLOWER(c) \
  3091. (('a' <= (c) && (c) <= 'i') \
  3092. || ('j' <= (c) && (c) <= 'r') \
  3093. || ('s' <= (c) && (c) <= 'z'))
  3094. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3095. #endif
  3096. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3097. int
  3098. main ()
  3099. {
  3100. int i;
  3101. for (i = 0; i < 256; i++)
  3102. if (XOR (islower (i), ISLOWER (i))
  3103. || toupper (i) != TOUPPER (i))
  3104. return 2;
  3105. return 0;
  3106. }
  3107. _ACEOF
  3108. if ac_fn_c_try_run "$LINENO"; then :
  3109. else
  3110. ac_cv_header_stdc=no
  3111. fi
  3112. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3113. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3114. fi
  3115. fi
  3116. fi
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3118. $as_echo "$ac_cv_header_stdc" >&6; }
  3119. if test $ac_cv_header_stdc = yes; then
  3120. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3121. fi
  3122. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3123. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3124. inttypes.h stdint.h unistd.h
  3125. do :
  3126. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3127. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3128. "
  3129. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3130. cat >>confdefs.h <<_ACEOF
  3131. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3132. _ACEOF
  3133. fi
  3134. done
  3135. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3136. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3137. MINIX=yes
  3138. else
  3139. MINIX=
  3140. fi
  3141. if test "$MINIX" = yes; then
  3142. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3143. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3144. $as_echo "#define _MINIX 1" >>confdefs.h
  3145. fi
  3146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3147. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3148. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3149. $as_echo_n "(cached) " >&6
  3150. else
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. # define __EXTENSIONS__ 1
  3154. $ac_includes_default
  3155. int
  3156. main ()
  3157. {
  3158. ;
  3159. return 0;
  3160. }
  3161. _ACEOF
  3162. if ac_fn_c_try_compile "$LINENO"; then :
  3163. ac_cv_safe_to_define___extensions__=yes
  3164. else
  3165. ac_cv_safe_to_define___extensions__=no
  3166. fi
  3167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3170. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3171. test $ac_cv_safe_to_define___extensions__ = yes &&
  3172. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3173. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3174. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3175. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3176. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3177. # Initialize Automake
  3178. am__api_version='1.12'
  3179. ac_aux_dir=
  3180. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3181. if test -f "$ac_dir/install-sh"; then
  3182. ac_aux_dir=$ac_dir
  3183. ac_install_sh="$ac_aux_dir/install-sh -c"
  3184. break
  3185. elif test -f "$ac_dir/install.sh"; then
  3186. ac_aux_dir=$ac_dir
  3187. ac_install_sh="$ac_aux_dir/install.sh -c"
  3188. break
  3189. elif test -f "$ac_dir/shtool"; then
  3190. ac_aux_dir=$ac_dir
  3191. ac_install_sh="$ac_aux_dir/shtool install -c"
  3192. break
  3193. fi
  3194. done
  3195. if test -z "$ac_aux_dir"; then
  3196. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3197. fi
  3198. # These three variables are undocumented and unsupported,
  3199. # and are intended to be withdrawn in a future Autoconf release.
  3200. # They can cause serious problems if a builder's source tree is in a directory
  3201. # whose full name contains unusual characters.
  3202. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  3203. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  3204. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  3205. # Find a good install program. We prefer a C program (faster),
  3206. # so one script is as good as another. But avoid the broken or
  3207. # incompatible versions:
  3208. # SysV /etc/install, /usr/sbin/install
  3209. # SunOS /usr/etc/install
  3210. # IRIX /sbin/install
  3211. # AIX /bin/install
  3212. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3213. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3214. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3215. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3216. # OS/2's system install, which has a completely different semantic
  3217. # ./install, which can be erroneously created by make from ./install.sh.
  3218. # Reject install programs that cannot install multiple files.
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  3220. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  3221. if test -z "$INSTALL"; then
  3222. if ${ac_cv_path_install+:} false; then :
  3223. $as_echo_n "(cached) " >&6
  3224. else
  3225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3226. for as_dir in $PATH
  3227. do
  3228. IFS=$as_save_IFS
  3229. test -z "$as_dir" && as_dir=.
  3230. # Account for people who put trailing slashes in PATH elements.
  3231. case $as_dir/ in #((
  3232. ./ | .// | /[cC]/* | \
  3233. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3234. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  3235. /usr/ucb/* ) ;;
  3236. *)
  3237. # OSF1 and SCO ODT 3.0 have their own names for install.
  3238. # Don't use installbsd from OSF since it installs stuff as root
  3239. # by default.
  3240. for ac_prog in ginstall scoinst install; do
  3241. for ac_exec_ext in '' $ac_executable_extensions; do
  3242. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3243. if test $ac_prog = install &&
  3244. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3245. # AIX install. It has an incompatible calling convention.
  3246. :
  3247. elif test $ac_prog = install &&
  3248. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3249. # program-specific install script used by HP pwplus--don't use.
  3250. :
  3251. else
  3252. rm -rf conftest.one conftest.two conftest.dir
  3253. echo one > conftest.one
  3254. echo two > conftest.two
  3255. mkdir conftest.dir
  3256. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  3257. test -s conftest.one && test -s conftest.two &&
  3258. test -s conftest.dir/conftest.one &&
  3259. test -s conftest.dir/conftest.two
  3260. then
  3261. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3262. break 3
  3263. fi
  3264. fi
  3265. fi
  3266. done
  3267. done
  3268. ;;
  3269. esac
  3270. done
  3271. IFS=$as_save_IFS
  3272. rm -rf conftest.one conftest.two conftest.dir
  3273. fi
  3274. if test "${ac_cv_path_install+set}" = set; then
  3275. INSTALL=$ac_cv_path_install
  3276. else
  3277. # As a last resort, use the slow shell script. Don't cache a
  3278. # value for INSTALL within a source directory, because that will
  3279. # break other packages using the cache if that directory is
  3280. # removed, or if the value is a relative name.
  3281. INSTALL=$ac_install_sh
  3282. fi
  3283. fi
  3284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  3285. $as_echo "$INSTALL" >&6; }
  3286. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3287. # It thinks the first close brace ends the variable substitution.
  3288. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3289. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3290. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  3292. $as_echo_n "checking whether build environment is sane... " >&6; }
  3293. # Reject unsafe characters in $srcdir or the absolute working directory
  3294. # name. Accept space and tab only in the latter.
  3295. am_lf='
  3296. '
  3297. case `pwd` in
  3298. *[\\\"\#\$\&\'\`$am_lf]*)
  3299. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  3300. esac
  3301. case $srcdir in
  3302. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  3303. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  3304. esac
  3305. # Do 'set' in a subshell so we don't clobber the current shell's
  3306. # arguments. Must try -L first in case configure is actually a
  3307. # symlink; some systems play weird games with the mod time of symlinks
  3308. # (eg FreeBSD returns the mod time of the symlink's containing
  3309. # directory).
  3310. if (
  3311. am_has_slept=no
  3312. for am_try in 1 2; do
  3313. echo "timestamp, slept: $am_has_slept" > conftest.file
  3314. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  3315. if test "$*" = "X"; then
  3316. # -L didn't work.
  3317. set X `ls -t "$srcdir/configure" conftest.file`
  3318. fi
  3319. if test "$*" != "X $srcdir/configure conftest.file" \
  3320. && test "$*" != "X conftest.file $srcdir/configure"; then
  3321. # If neither matched, then we have a broken ls. This can happen
  3322. # if, for instance, CONFIG_SHELL is bash and it inherits a
  3323. # broken ls alias from the environment. This has actually
  3324. # happened. Such a system could not be considered "sane".
  3325. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  3326. alias in your environment" "$LINENO" 5
  3327. fi
  3328. if test "$2" = conftest.file || test $am_try -eq 2; then
  3329. break
  3330. fi
  3331. # Just in case.
  3332. sleep 1
  3333. am_has_slept=yes
  3334. done
  3335. test "$2" = conftest.file
  3336. )
  3337. then
  3338. # Ok.
  3339. :
  3340. else
  3341. as_fn_error $? "newly created file is older than distributed files!
  3342. Check your system clock" "$LINENO" 5
  3343. fi
  3344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3345. $as_echo "yes" >&6; }
  3346. # If we didn't sleep, we still need to ensure time stamps of config.status and
  3347. # generated files are strictly newer.
  3348. am_sleep_pid=
  3349. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  3350. ( sleep 1 ) &
  3351. am_sleep_pid=$!
  3352. fi
  3353. rm -f conftest.file
  3354. test "$program_prefix" != NONE &&
  3355. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  3356. # Use a double $ so make ignores it.
  3357. test "$program_suffix" != NONE &&
  3358. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  3359. # Double any \ or $.
  3360. # By default was `s,x,x', remove it if useless.
  3361. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  3362. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  3363. # expand $ac_aux_dir to an absolute path
  3364. am_aux_dir=`cd $ac_aux_dir && pwd`
  3365. if test x"${MISSING+set}" != xset; then
  3366. case $am_aux_dir in
  3367. *\ * | *\ *)
  3368. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  3369. *)
  3370. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  3371. esac
  3372. fi
  3373. # Use eval to expand $SHELL
  3374. if eval "$MISSING --run true"; then
  3375. am_missing_run="$MISSING --run "
  3376. else
  3377. am_missing_run=
  3378. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  3379. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  3380. fi
  3381. if test x"${install_sh}" != xset; then
  3382. case $am_aux_dir in
  3383. *\ * | *\ *)
  3384. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  3385. *)
  3386. install_sh="\${SHELL} $am_aux_dir/install-sh"
  3387. esac
  3388. fi
  3389. # Installed binaries are usually stripped using 'strip' when the user
  3390. # run "make install-strip". However 'strip' might not be the right
  3391. # tool to use in cross-compilation environments, therefore Automake
  3392. # will honor the 'STRIP' environment variable to overrule this program.
  3393. if test "$cross_compiling" != no; then
  3394. if test -n "$ac_tool_prefix"; then
  3395. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  3396. set dummy ${ac_tool_prefix}strip; ac_word=$2
  3397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3398. $as_echo_n "checking for $ac_word... " >&6; }
  3399. if ${ac_cv_prog_STRIP+:} false; then :
  3400. $as_echo_n "(cached) " >&6
  3401. else
  3402. if test -n "$STRIP"; then
  3403. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3404. else
  3405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3406. for as_dir in $PATH
  3407. do
  3408. IFS=$as_save_IFS
  3409. test -z "$as_dir" && as_dir=.
  3410. for ac_exec_ext in '' $ac_executable_extensions; do
  3411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3412. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  3413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3414. break 2
  3415. fi
  3416. done
  3417. done
  3418. IFS=$as_save_IFS
  3419. fi
  3420. fi
  3421. STRIP=$ac_cv_prog_STRIP
  3422. if test -n "$STRIP"; then
  3423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  3424. $as_echo "$STRIP" >&6; }
  3425. else
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3427. $as_echo "no" >&6; }
  3428. fi
  3429. fi
  3430. if test -z "$ac_cv_prog_STRIP"; then
  3431. ac_ct_STRIP=$STRIP
  3432. # Extract the first word of "strip", so it can be a program name with args.
  3433. set dummy strip; ac_word=$2
  3434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3435. $as_echo_n "checking for $ac_word... " >&6; }
  3436. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  3437. $as_echo_n "(cached) " >&6
  3438. else
  3439. if test -n "$ac_ct_STRIP"; then
  3440. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  3441. else
  3442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3443. for as_dir in $PATH
  3444. do
  3445. IFS=$as_save_IFS
  3446. test -z "$as_dir" && as_dir=.
  3447. for ac_exec_ext in '' $ac_executable_extensions; do
  3448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3449. ac_cv_prog_ac_ct_STRIP="strip"
  3450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3451. break 2
  3452. fi
  3453. done
  3454. done
  3455. IFS=$as_save_IFS
  3456. fi
  3457. fi
  3458. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  3459. if test -n "$ac_ct_STRIP"; then
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  3461. $as_echo "$ac_ct_STRIP" >&6; }
  3462. else
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3464. $as_echo "no" >&6; }
  3465. fi
  3466. if test "x$ac_ct_STRIP" = x; then
  3467. STRIP=":"
  3468. else
  3469. case $cross_compiling:$ac_tool_warned in
  3470. yes:)
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3473. ac_tool_warned=yes ;;
  3474. esac
  3475. STRIP=$ac_ct_STRIP
  3476. fi
  3477. else
  3478. STRIP="$ac_cv_prog_STRIP"
  3479. fi
  3480. fi
  3481. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  3482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  3483. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  3484. if test -z "$MKDIR_P"; then
  3485. if ${ac_cv_path_mkdir+:} false; then :
  3486. $as_echo_n "(cached) " >&6
  3487. else
  3488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3489. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3490. do
  3491. IFS=$as_save_IFS
  3492. test -z "$as_dir" && as_dir=.
  3493. for ac_prog in mkdir gmkdir; do
  3494. for ac_exec_ext in '' $ac_executable_extensions; do
  3495. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  3496. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3497. 'mkdir (GNU coreutils) '* | \
  3498. 'mkdir (coreutils) '* | \
  3499. 'mkdir (fileutils) '4.1*)
  3500. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3501. break 3;;
  3502. esac
  3503. done
  3504. done
  3505. done
  3506. IFS=$as_save_IFS
  3507. fi
  3508. test -d ./--version && rmdir ./--version
  3509. if test "${ac_cv_path_mkdir+set}" = set; then
  3510. MKDIR_P="$ac_cv_path_mkdir -p"
  3511. else
  3512. # As a last resort, use the slow shell script. Don't cache a
  3513. # value for MKDIR_P within a source directory, because that will
  3514. # break other packages using the cache if that directory is
  3515. # removed, or if the value is a relative name.
  3516. MKDIR_P="$ac_install_sh -d"
  3517. fi
  3518. fi
  3519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  3520. $as_echo "$MKDIR_P" >&6; }
  3521. for ac_prog in gawk mawk nawk awk
  3522. do
  3523. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3524. set dummy $ac_prog; ac_word=$2
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3526. $as_echo_n "checking for $ac_word... " >&6; }
  3527. if ${ac_cv_prog_AWK+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. if test -n "$AWK"; then
  3531. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3532. else
  3533. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3534. for as_dir in $PATH
  3535. do
  3536. IFS=$as_save_IFS
  3537. test -z "$as_dir" && as_dir=.
  3538. for ac_exec_ext in '' $ac_executable_extensions; do
  3539. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3540. ac_cv_prog_AWK="$ac_prog"
  3541. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3542. break 2
  3543. fi
  3544. done
  3545. done
  3546. IFS=$as_save_IFS
  3547. fi
  3548. fi
  3549. AWK=$ac_cv_prog_AWK
  3550. if test -n "$AWK"; then
  3551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  3552. $as_echo "$AWK" >&6; }
  3553. else
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3555. $as_echo "no" >&6; }
  3556. fi
  3557. test -n "$AWK" && break
  3558. done
  3559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3560. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  3561. set x ${MAKE-make}
  3562. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3563. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. cat >conftest.make <<\_ACEOF
  3567. SHELL = /bin/sh
  3568. all:
  3569. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3570. _ACEOF
  3571. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  3572. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3573. *@@@%%%=?*=@@@%%%*)
  3574. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3575. *)
  3576. eval ac_cv_prog_make_${ac_make}_set=no;;
  3577. esac
  3578. rm -f conftest.make
  3579. fi
  3580. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3582. $as_echo "yes" >&6; }
  3583. SET_MAKE=
  3584. else
  3585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3586. $as_echo "no" >&6; }
  3587. SET_MAKE="MAKE=${MAKE-make}"
  3588. fi
  3589. rm -rf .tst 2>/dev/null
  3590. mkdir .tst 2>/dev/null
  3591. if test -d .tst; then
  3592. am__leading_dot=.
  3593. else
  3594. am__leading_dot=_
  3595. fi
  3596. rmdir .tst 2>/dev/null
  3597. DEPDIR="${am__leading_dot}deps"
  3598. ac_config_commands="$ac_config_commands depfiles"
  3599. am_make=${MAKE-make}
  3600. cat > confinc << 'END'
  3601. am__doit:
  3602. @echo this is the am__doit target
  3603. .PHONY: am__doit
  3604. END
  3605. # If we don't find an include directive, just comment out the code.
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3607. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3608. am__include="#"
  3609. am__quote=
  3610. _am_result=none
  3611. # First try GNU make style include.
  3612. echo "include confinc" > confmf
  3613. # Ignore all kinds of additional output from 'make'.
  3614. case `$am_make -s -f confmf 2> /dev/null` in #(
  3615. *the\ am__doit\ target*)
  3616. am__include=include
  3617. am__quote=
  3618. _am_result=GNU
  3619. ;;
  3620. esac
  3621. # Now try BSD make style include.
  3622. if test "$am__include" = "#"; then
  3623. echo '.include "confinc"' > confmf
  3624. case `$am_make -s -f confmf 2> /dev/null` in #(
  3625. *the\ am__doit\ target*)
  3626. am__include=.include
  3627. am__quote="\""
  3628. _am_result=BSD
  3629. ;;
  3630. esac
  3631. fi
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3633. $as_echo "$_am_result" >&6; }
  3634. rm -f confinc confmf
  3635. # Check whether --enable-dependency-tracking was given.
  3636. if test "${enable_dependency_tracking+set}" = set; then :
  3637. enableval=$enable_dependency_tracking;
  3638. fi
  3639. if test "x$enable_dependency_tracking" != xno; then
  3640. am_depcomp="$ac_aux_dir/depcomp"
  3641. AMDEPBACKSLASH='\'
  3642. am__nodep='_no'
  3643. fi
  3644. if test "x$enable_dependency_tracking" != xno; then
  3645. AMDEP_TRUE=
  3646. AMDEP_FALSE='#'
  3647. else
  3648. AMDEP_TRUE='#'
  3649. AMDEP_FALSE=
  3650. fi
  3651. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  3652. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  3653. # is not polluted with repeated "-I."
  3654. am__isrc=' -I$(srcdir)'
  3655. # test to see if srcdir already configured
  3656. if test -f $srcdir/config.status; then
  3657. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  3658. fi
  3659. fi
  3660. # test whether we have cygpath
  3661. if test -z "$CYGPATH_W"; then
  3662. if (cygpath --version) >/dev/null 2>/dev/null; then
  3663. CYGPATH_W='cygpath -w'
  3664. else
  3665. CYGPATH_W=echo
  3666. fi
  3667. fi
  3668. # Define the identity of the package.
  3669. PACKAGE='xkbprint'
  3670. VERSION='1.0.4'
  3671. cat >>confdefs.h <<_ACEOF
  3672. #define PACKAGE "$PACKAGE"
  3673. _ACEOF
  3674. cat >>confdefs.h <<_ACEOF
  3675. #define VERSION "$VERSION"
  3676. _ACEOF
  3677. # Some tools Automake needs.
  3678. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3679. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3680. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3681. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3682. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3683. # For better backward compatibility. To be removed once Automake 1.9.x
  3684. # dies out for good. For more background, see:
  3685. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  3686. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  3687. mkdir_p='$(MKDIR_P)'
  3688. # We need awk for the "check" target. The system "awk" is bad on
  3689. # some platforms.
  3690. # Always define AMTAR for backward compatibility. Yes, it's still used
  3691. # in the wild :-( We should find a proper way to deprecate it ...
  3692. AMTAR='$${TAR-tar}'
  3693. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3694. depcc="$CC" am_compiler_list=
  3695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3696. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3697. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3698. $as_echo_n "(cached) " >&6
  3699. else
  3700. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3701. # We make a subdir and do the tests there. Otherwise we can end up
  3702. # making bogus files that we don't know about and never remove. For
  3703. # instance it was reported that on HP-UX the gcc test will end up
  3704. # making a dummy file named 'D' -- because '-MD' means "put the output
  3705. # in D".
  3706. rm -rf conftest.dir
  3707. mkdir conftest.dir
  3708. # Copy depcomp to subdir because otherwise we won't find it if we're
  3709. # using a relative directory.
  3710. cp "$am_depcomp" conftest.dir
  3711. cd conftest.dir
  3712. # We will build objects and dependencies in a subdirectory because
  3713. # it helps to detect inapplicable dependency modes. For instance
  3714. # both Tru64's cc and ICC support -MD to output dependencies as a
  3715. # side effect of compilation, but ICC will put the dependencies in
  3716. # the current directory while Tru64 will put them in the object
  3717. # directory.
  3718. mkdir sub
  3719. am_cv_CC_dependencies_compiler_type=none
  3720. if test "$am_compiler_list" = ""; then
  3721. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3722. fi
  3723. am__universal=false
  3724. case " $depcc " in #(
  3725. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3726. esac
  3727. for depmode in $am_compiler_list; do
  3728. # Setup a source with many dependencies, because some compilers
  3729. # like to wrap large dependency lists on column 80 (with \), and
  3730. # we should not choose a depcomp mode which is confused by this.
  3731. #
  3732. # We need to recreate these files for each test, as the compiler may
  3733. # overwrite some of them when testing with obscure command lines.
  3734. # This happens at least with the AIX C compiler.
  3735. : > sub/conftest.c
  3736. for i in 1 2 3 4 5 6; do
  3737. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3738. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3739. # Solaris 10 /bin/sh.
  3740. echo '/* dummy */' > sub/conftst$i.h
  3741. done
  3742. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3743. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3744. # mode. It turns out that the SunPro C++ compiler does not properly
  3745. # handle '-M -o', and we need to detect this. Also, some Intel
  3746. # versions had trouble with output in subdirs.
  3747. am__obj=sub/conftest.${OBJEXT-o}
  3748. am__minus_obj="-o $am__obj"
  3749. case $depmode in
  3750. gcc)
  3751. # This depmode causes a compiler race in universal mode.
  3752. test "$am__universal" = false || continue
  3753. ;;
  3754. nosideeffect)
  3755. # After this tag, mechanisms are not by side-effect, so they'll
  3756. # only be used when explicitly requested.
  3757. if test "x$enable_dependency_tracking" = xyes; then
  3758. continue
  3759. else
  3760. break
  3761. fi
  3762. ;;
  3763. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3764. # This compiler won't grok '-c -o', but also, the minuso test has
  3765. # not run yet. These depmodes are late enough in the game, and
  3766. # so weak that their functioning should not be impacted.
  3767. am__obj=conftest.${OBJEXT-o}
  3768. am__minus_obj=
  3769. ;;
  3770. none) break ;;
  3771. esac
  3772. if depmode=$depmode \
  3773. source=sub/conftest.c object=$am__obj \
  3774. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3775. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3776. >/dev/null 2>conftest.err &&
  3777. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3778. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3779. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3780. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3781. # icc doesn't choke on unknown options, it will just issue warnings
  3782. # or remarks (even with -Werror). So we grep stderr for any message
  3783. # that says an option was ignored or not supported.
  3784. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3785. # icc: Command line warning: ignoring option '-M'; no argument required
  3786. # The diagnosis changed in icc 8.0:
  3787. # icc: Command line remark: option '-MP' not supported
  3788. if (grep 'ignoring option' conftest.err ||
  3789. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3790. am_cv_CC_dependencies_compiler_type=$depmode
  3791. break
  3792. fi
  3793. fi
  3794. done
  3795. cd ..
  3796. rm -rf conftest.dir
  3797. else
  3798. am_cv_CC_dependencies_compiler_type=none
  3799. fi
  3800. fi
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3802. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3803. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3804. if
  3805. test "x$enable_dependency_tracking" != xno \
  3806. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3807. am__fastdepCC_TRUE=
  3808. am__fastdepCC_FALSE='#'
  3809. else
  3810. am__fastdepCC_TRUE='#'
  3811. am__fastdepCC_FALSE=
  3812. fi
  3813. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  3814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3815. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3816. if ${ac_cv_prog_cc_c99+:} false; then :
  3817. $as_echo_n "(cached) " >&6
  3818. else
  3819. ac_cv_prog_cc_c99=no
  3820. ac_save_CC=$CC
  3821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3822. /* end confdefs.h. */
  3823. #include <stdarg.h>
  3824. #include <stdbool.h>
  3825. #include <stdlib.h>
  3826. #include <wchar.h>
  3827. #include <stdio.h>
  3828. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3829. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3830. #define showlist(...) puts (#__VA_ARGS__)
  3831. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3832. static void
  3833. test_varargs_macros (void)
  3834. {
  3835. int x = 1234;
  3836. int y = 5678;
  3837. debug ("Flag");
  3838. debug ("X = %d\n", x);
  3839. showlist (The first, second, and third items.);
  3840. report (x>y, "x is %d but y is %d", x, y);
  3841. }
  3842. // Check long long types.
  3843. #define BIG64 18446744073709551615ull
  3844. #define BIG32 4294967295ul
  3845. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3846. #if !BIG_OK
  3847. your preprocessor is broken;
  3848. #endif
  3849. #if BIG_OK
  3850. #else
  3851. your preprocessor is broken;
  3852. #endif
  3853. static long long int bignum = -9223372036854775807LL;
  3854. static unsigned long long int ubignum = BIG64;
  3855. struct incomplete_array
  3856. {
  3857. int datasize;
  3858. double data[];
  3859. };
  3860. struct named_init {
  3861. int number;
  3862. const wchar_t *name;
  3863. double average;
  3864. };
  3865. typedef const char *ccp;
  3866. static inline int
  3867. test_restrict (ccp restrict text)
  3868. {
  3869. // See if C++-style comments work.
  3870. // Iterate through items via the restricted pointer.
  3871. // Also check for declarations in for loops.
  3872. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3873. continue;
  3874. return 0;
  3875. }
  3876. // Check varargs and va_copy.
  3877. static void
  3878. test_varargs (const char *format, ...)
  3879. {
  3880. va_list args;
  3881. va_start (args, format);
  3882. va_list args_copy;
  3883. va_copy (args_copy, args);
  3884. const char *str;
  3885. int number;
  3886. float fnumber;
  3887. while (*format)
  3888. {
  3889. switch (*format++)
  3890. {
  3891. case 's': // string
  3892. str = va_arg (args_copy, const char *);
  3893. break;
  3894. case 'd': // int
  3895. number = va_arg (args_copy, int);
  3896. break;
  3897. case 'f': // float
  3898. fnumber = va_arg (args_copy, double);
  3899. break;
  3900. default:
  3901. break;
  3902. }
  3903. }
  3904. va_end (args_copy);
  3905. va_end (args);
  3906. }
  3907. int
  3908. main ()
  3909. {
  3910. // Check bool.
  3911. _Bool success = false;
  3912. // Check restrict.
  3913. if (test_restrict ("String literal") == 0)
  3914. success = true;
  3915. char *restrict newvar = "Another string";
  3916. // Check varargs.
  3917. test_varargs ("s, d' f .", "string", 65, 34.234);
  3918. test_varargs_macros ();
  3919. // Check flexible array members.
  3920. struct incomplete_array *ia =
  3921. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3922. ia->datasize = 10;
  3923. for (int i = 0; i < ia->datasize; ++i)
  3924. ia->data[i] = i * 1.234;
  3925. // Check named initializers.
  3926. struct named_init ni = {
  3927. .number = 34,
  3928. .name = L"Test wide string",
  3929. .average = 543.34343,
  3930. };
  3931. ni.number = 58;
  3932. int dynamic_array[ni.number];
  3933. dynamic_array[ni.number - 1] = 543;
  3934. // work around unused variable warnings
  3935. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3936. || dynamic_array[ni.number - 1] != 543);
  3937. ;
  3938. return 0;
  3939. }
  3940. _ACEOF
  3941. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3942. do
  3943. CC="$ac_save_CC $ac_arg"
  3944. if ac_fn_c_try_compile "$LINENO"; then :
  3945. ac_cv_prog_cc_c99=$ac_arg
  3946. fi
  3947. rm -f core conftest.err conftest.$ac_objext
  3948. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3949. done
  3950. rm -f conftest.$ac_ext
  3951. CC=$ac_save_CC
  3952. fi
  3953. # AC_CACHE_VAL
  3954. case "x$ac_cv_prog_cc_c99" in
  3955. x)
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3957. $as_echo "none needed" >&6; } ;;
  3958. xno)
  3959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3960. $as_echo "unsupported" >&6; } ;;
  3961. *)
  3962. CC="$CC $ac_cv_prog_cc_c99"
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3964. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3965. esac
  3966. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3967. fi
  3968. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3969. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3970. CLANGCC="yes"
  3971. else
  3972. CLANGCC="no"
  3973. fi
  3974. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3975. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3976. INTELCC="yes"
  3977. else
  3978. INTELCC="no"
  3979. fi
  3980. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3981. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3982. SUNCC="yes"
  3983. else
  3984. SUNCC="no"
  3985. fi
  3986. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3987. if test -n "$ac_tool_prefix"; then
  3988. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3989. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3991. $as_echo_n "checking for $ac_word... " >&6; }
  3992. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3993. $as_echo_n "(cached) " >&6
  3994. else
  3995. case $PKG_CONFIG in
  3996. [\\/]* | ?:[\\/]*)
  3997. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3998. ;;
  3999. *)
  4000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4001. for as_dir in $PATH
  4002. do
  4003. IFS=$as_save_IFS
  4004. test -z "$as_dir" && as_dir=.
  4005. for ac_exec_ext in '' $ac_executable_extensions; do
  4006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4007. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4009. break 2
  4010. fi
  4011. done
  4012. done
  4013. IFS=$as_save_IFS
  4014. ;;
  4015. esac
  4016. fi
  4017. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  4018. if test -n "$PKG_CONFIG"; then
  4019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  4020. $as_echo "$PKG_CONFIG" >&6; }
  4021. else
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4023. $as_echo "no" >&6; }
  4024. fi
  4025. fi
  4026. if test -z "$ac_cv_path_PKG_CONFIG"; then
  4027. ac_pt_PKG_CONFIG=$PKG_CONFIG
  4028. # Extract the first word of "pkg-config", so it can be a program name with args.
  4029. set dummy pkg-config; ac_word=$2
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4031. $as_echo_n "checking for $ac_word... " >&6; }
  4032. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  4033. $as_echo_n "(cached) " >&6
  4034. else
  4035. case $ac_pt_PKG_CONFIG in
  4036. [\\/]* | ?:[\\/]*)
  4037. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  4038. ;;
  4039. *)
  4040. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4041. for as_dir in $PATH
  4042. do
  4043. IFS=$as_save_IFS
  4044. test -z "$as_dir" && as_dir=.
  4045. for ac_exec_ext in '' $ac_executable_extensions; do
  4046. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4047. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4048. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4049. break 2
  4050. fi
  4051. done
  4052. done
  4053. IFS=$as_save_IFS
  4054. ;;
  4055. esac
  4056. fi
  4057. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  4058. if test -n "$ac_pt_PKG_CONFIG"; then
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  4060. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  4061. else
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4063. $as_echo "no" >&6; }
  4064. fi
  4065. if test "x$ac_pt_PKG_CONFIG" = x; then
  4066. PKG_CONFIG=""
  4067. else
  4068. case $cross_compiling:$ac_tool_warned in
  4069. yes:)
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4072. ac_tool_warned=yes ;;
  4073. esac
  4074. PKG_CONFIG=$ac_pt_PKG_CONFIG
  4075. fi
  4076. else
  4077. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  4078. fi
  4079. fi
  4080. if test -n "$PKG_CONFIG"; then
  4081. _pkg_min_version=0.9.0
  4082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  4083. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  4084. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4086. $as_echo "yes" >&6; }
  4087. else
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4089. $as_echo "no" >&6; }
  4090. PKG_CONFIG=""
  4091. fi
  4092. fi
  4093. # Make sure we can run config.sub.
  4094. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4095. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4097. $as_echo_n "checking build system type... " >&6; }
  4098. if ${ac_cv_build+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. ac_build_alias=$build_alias
  4102. test "x$ac_build_alias" = x &&
  4103. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4104. test "x$ac_build_alias" = x &&
  4105. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4106. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4107. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4108. fi
  4109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4110. $as_echo "$ac_cv_build" >&6; }
  4111. case $ac_cv_build in
  4112. *-*-*) ;;
  4113. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4114. esac
  4115. build=$ac_cv_build
  4116. ac_save_IFS=$IFS; IFS='-'
  4117. set x $ac_cv_build
  4118. shift
  4119. build_cpu=$1
  4120. build_vendor=$2
  4121. shift; shift
  4122. # Remember, the first character of IFS is used to create $*,
  4123. # except with old shells:
  4124. build_os=$*
  4125. IFS=$ac_save_IFS
  4126. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4128. $as_echo_n "checking host system type... " >&6; }
  4129. if ${ac_cv_host+:} false; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. if test "x$host_alias" = x; then
  4133. ac_cv_host=$ac_cv_build
  4134. else
  4135. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4136. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4137. fi
  4138. fi
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4140. $as_echo "$ac_cv_host" >&6; }
  4141. case $ac_cv_host in
  4142. *-*-*) ;;
  4143. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4144. esac
  4145. host=$ac_cv_host
  4146. ac_save_IFS=$IFS; IFS='-'
  4147. set x $ac_cv_host
  4148. shift
  4149. host_cpu=$1
  4150. host_vendor=$2
  4151. shift; shift
  4152. # Remember, the first character of IFS is used to create $*,
  4153. # except with old shells:
  4154. host_os=$*
  4155. IFS=$ac_save_IFS
  4156. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4158. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4159. if ${ac_cv_path_SED+:} false; then :
  4160. $as_echo_n "(cached) " >&6
  4161. else
  4162. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4163. for ac_i in 1 2 3 4 5 6 7; do
  4164. ac_script="$ac_script$as_nl$ac_script"
  4165. done
  4166. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4167. { ac_script=; unset ac_script;}
  4168. if test -z "$SED"; then
  4169. ac_path_SED_found=false
  4170. # Loop through the user's path and test for each of PROGNAME-LIST
  4171. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4172. for as_dir in $PATH
  4173. do
  4174. IFS=$as_save_IFS
  4175. test -z "$as_dir" && as_dir=.
  4176. for ac_prog in sed gsed; do
  4177. for ac_exec_ext in '' $ac_executable_extensions; do
  4178. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4179. as_fn_executable_p "$ac_path_SED" || continue
  4180. # Check for GNU ac_path_SED and select it if it is found.
  4181. # Check for GNU $ac_path_SED
  4182. case `"$ac_path_SED" --version 2>&1` in
  4183. *GNU*)
  4184. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4185. *)
  4186. ac_count=0
  4187. $as_echo_n 0123456789 >"conftest.in"
  4188. while :
  4189. do
  4190. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4191. mv "conftest.tmp" "conftest.in"
  4192. cp "conftest.in" "conftest.nl"
  4193. $as_echo '' >> "conftest.nl"
  4194. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4195. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4196. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4197. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4198. # Best one so far, save it but keep looking for a better one
  4199. ac_cv_path_SED="$ac_path_SED"
  4200. ac_path_SED_max=$ac_count
  4201. fi
  4202. # 10*(2^10) chars as input seems more than enough
  4203. test $ac_count -gt 10 && break
  4204. done
  4205. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4206. esac
  4207. $ac_path_SED_found && break 3
  4208. done
  4209. done
  4210. done
  4211. IFS=$as_save_IFS
  4212. if test -z "$ac_cv_path_SED"; then
  4213. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4214. fi
  4215. else
  4216. ac_cv_path_SED=$SED
  4217. fi
  4218. fi
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4220. $as_echo "$ac_cv_path_SED" >&6; }
  4221. SED="$ac_cv_path_SED"
  4222. rm -f conftest.sed
  4223. # Check whether --enable-selective-werror was given.
  4224. if test "${enable_selective_werror+set}" = set; then :
  4225. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4226. else
  4227. SELECTIVE_WERROR=yes
  4228. fi
  4229. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4230. if test "x$SUNCC" = "xyes"; then
  4231. BASE_CFLAGS="-v"
  4232. else
  4233. BASE_CFLAGS=""
  4234. fi
  4235. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4236. xorg_testset_save_CFLAGS="$CFLAGS"
  4237. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4238. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4240. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4241. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4242. $as_echo_n "(cached) " >&6
  4243. else
  4244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4245. /* end confdefs.h. */
  4246. int i;
  4247. _ACEOF
  4248. if ac_fn_c_try_compile "$LINENO"; then :
  4249. xorg_cv_cc_flag_unknown_warning_option=yes
  4250. else
  4251. xorg_cv_cc_flag_unknown_warning_option=no
  4252. fi
  4253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4254. fi
  4255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4256. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4257. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4258. CFLAGS="$xorg_testset_save_CFLAGS"
  4259. fi
  4260. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4261. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4262. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4263. fi
  4264. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4266. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4267. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4271. /* end confdefs.h. */
  4272. int i;
  4273. _ACEOF
  4274. if ac_fn_c_try_compile "$LINENO"; then :
  4275. xorg_cv_cc_flag_unused_command_line_argument=yes
  4276. else
  4277. xorg_cv_cc_flag_unused_command_line_argument=no
  4278. fi
  4279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4280. fi
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4282. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4283. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4284. CFLAGS="$xorg_testset_save_CFLAGS"
  4285. fi
  4286. found="no"
  4287. if test $found = "no" ; then
  4288. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4289. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4290. fi
  4291. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4292. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4293. fi
  4294. CFLAGS="$CFLAGS -Wall"
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4296. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4297. cacheid=xorg_cv_cc_flag__Wall
  4298. if eval \${$cacheid+:} false; then :
  4299. $as_echo_n "(cached) " >&6
  4300. else
  4301. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4302. /* end confdefs.h. */
  4303. int i;
  4304. int
  4305. main ()
  4306. {
  4307. ;
  4308. return 0;
  4309. }
  4310. _ACEOF
  4311. if ac_fn_c_try_link "$LINENO"; then :
  4312. eval $cacheid=yes
  4313. else
  4314. eval $cacheid=no
  4315. fi
  4316. rm -f core conftest.err conftest.$ac_objext \
  4317. conftest$ac_exeext conftest.$ac_ext
  4318. fi
  4319. CFLAGS="$xorg_testset_save_CFLAGS"
  4320. eval supported=\$$cacheid
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4322. $as_echo "$supported" >&6; }
  4323. if test "$supported" = "yes" ; then
  4324. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4325. found="yes"
  4326. fi
  4327. fi
  4328. xorg_testset_save_CFLAGS="$CFLAGS"
  4329. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4330. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4332. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4333. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4334. $as_echo_n "(cached) " >&6
  4335. else
  4336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4337. /* end confdefs.h. */
  4338. int i;
  4339. _ACEOF
  4340. if ac_fn_c_try_compile "$LINENO"; then :
  4341. xorg_cv_cc_flag_unknown_warning_option=yes
  4342. else
  4343. xorg_cv_cc_flag_unknown_warning_option=no
  4344. fi
  4345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4346. fi
  4347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4348. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4349. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4350. CFLAGS="$xorg_testset_save_CFLAGS"
  4351. fi
  4352. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4353. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4354. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4355. fi
  4356. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4358. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4359. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4360. $as_echo_n "(cached) " >&6
  4361. else
  4362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4363. /* end confdefs.h. */
  4364. int i;
  4365. _ACEOF
  4366. if ac_fn_c_try_compile "$LINENO"; then :
  4367. xorg_cv_cc_flag_unused_command_line_argument=yes
  4368. else
  4369. xorg_cv_cc_flag_unused_command_line_argument=no
  4370. fi
  4371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4372. fi
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4374. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4375. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4376. CFLAGS="$xorg_testset_save_CFLAGS"
  4377. fi
  4378. found="no"
  4379. if test $found = "no" ; then
  4380. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4381. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4382. fi
  4383. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4384. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4385. fi
  4386. CFLAGS="$CFLAGS -Wpointer-arith"
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4388. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4389. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4390. if eval \${$cacheid+:} false; then :
  4391. $as_echo_n "(cached) " >&6
  4392. else
  4393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4394. /* end confdefs.h. */
  4395. int i;
  4396. int
  4397. main ()
  4398. {
  4399. ;
  4400. return 0;
  4401. }
  4402. _ACEOF
  4403. if ac_fn_c_try_link "$LINENO"; then :
  4404. eval $cacheid=yes
  4405. else
  4406. eval $cacheid=no
  4407. fi
  4408. rm -f core conftest.err conftest.$ac_objext \
  4409. conftest$ac_exeext conftest.$ac_ext
  4410. fi
  4411. CFLAGS="$xorg_testset_save_CFLAGS"
  4412. eval supported=\$$cacheid
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4414. $as_echo "$supported" >&6; }
  4415. if test "$supported" = "yes" ; then
  4416. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4417. found="yes"
  4418. fi
  4419. fi
  4420. xorg_testset_save_CFLAGS="$CFLAGS"
  4421. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4422. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4424. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4425. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4429. /* end confdefs.h. */
  4430. int i;
  4431. _ACEOF
  4432. if ac_fn_c_try_compile "$LINENO"; then :
  4433. xorg_cv_cc_flag_unknown_warning_option=yes
  4434. else
  4435. xorg_cv_cc_flag_unknown_warning_option=no
  4436. fi
  4437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4438. fi
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4440. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4441. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4442. CFLAGS="$xorg_testset_save_CFLAGS"
  4443. fi
  4444. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4445. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4446. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4447. fi
  4448. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4450. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4451. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4452. $as_echo_n "(cached) " >&6
  4453. else
  4454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4455. /* end confdefs.h. */
  4456. int i;
  4457. _ACEOF
  4458. if ac_fn_c_try_compile "$LINENO"; then :
  4459. xorg_cv_cc_flag_unused_command_line_argument=yes
  4460. else
  4461. xorg_cv_cc_flag_unused_command_line_argument=no
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4464. fi
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4466. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4467. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4468. CFLAGS="$xorg_testset_save_CFLAGS"
  4469. fi
  4470. found="no"
  4471. if test $found = "no" ; then
  4472. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4473. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4474. fi
  4475. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4476. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4477. fi
  4478. CFLAGS="$CFLAGS -Wmissing-declarations"
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4480. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4481. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4482. if eval \${$cacheid+:} false; then :
  4483. $as_echo_n "(cached) " >&6
  4484. else
  4485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4486. /* end confdefs.h. */
  4487. int i;
  4488. int
  4489. main ()
  4490. {
  4491. ;
  4492. return 0;
  4493. }
  4494. _ACEOF
  4495. if ac_fn_c_try_link "$LINENO"; then :
  4496. eval $cacheid=yes
  4497. else
  4498. eval $cacheid=no
  4499. fi
  4500. rm -f core conftest.err conftest.$ac_objext \
  4501. conftest$ac_exeext conftest.$ac_ext
  4502. fi
  4503. CFLAGS="$xorg_testset_save_CFLAGS"
  4504. eval supported=\$$cacheid
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4506. $as_echo "$supported" >&6; }
  4507. if test "$supported" = "yes" ; then
  4508. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4509. found="yes"
  4510. fi
  4511. fi
  4512. xorg_testset_save_CFLAGS="$CFLAGS"
  4513. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4514. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4516. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4517. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4518. $as_echo_n "(cached) " >&6
  4519. else
  4520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4521. /* end confdefs.h. */
  4522. int i;
  4523. _ACEOF
  4524. if ac_fn_c_try_compile "$LINENO"; then :
  4525. xorg_cv_cc_flag_unknown_warning_option=yes
  4526. else
  4527. xorg_cv_cc_flag_unknown_warning_option=no
  4528. fi
  4529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4532. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4533. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4534. CFLAGS="$xorg_testset_save_CFLAGS"
  4535. fi
  4536. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4537. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4538. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4539. fi
  4540. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4541. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4542. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4543. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4544. $as_echo_n "(cached) " >&6
  4545. else
  4546. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4547. /* end confdefs.h. */
  4548. int i;
  4549. _ACEOF
  4550. if ac_fn_c_try_compile "$LINENO"; then :
  4551. xorg_cv_cc_flag_unused_command_line_argument=yes
  4552. else
  4553. xorg_cv_cc_flag_unused_command_line_argument=no
  4554. fi
  4555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4556. fi
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4558. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4559. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4560. CFLAGS="$xorg_testset_save_CFLAGS"
  4561. fi
  4562. found="no"
  4563. if test $found = "no" ; then
  4564. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4565. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4566. fi
  4567. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4568. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4569. fi
  4570. CFLAGS="$CFLAGS -Wformat=2"
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4572. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4573. cacheid=xorg_cv_cc_flag__Wformat_2
  4574. if eval \${$cacheid+:} false; then :
  4575. $as_echo_n "(cached) " >&6
  4576. else
  4577. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4578. /* end confdefs.h. */
  4579. int i;
  4580. int
  4581. main ()
  4582. {
  4583. ;
  4584. return 0;
  4585. }
  4586. _ACEOF
  4587. if ac_fn_c_try_link "$LINENO"; then :
  4588. eval $cacheid=yes
  4589. else
  4590. eval $cacheid=no
  4591. fi
  4592. rm -f core conftest.err conftest.$ac_objext \
  4593. conftest$ac_exeext conftest.$ac_ext
  4594. fi
  4595. CFLAGS="$xorg_testset_save_CFLAGS"
  4596. eval supported=\$$cacheid
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4598. $as_echo "$supported" >&6; }
  4599. if test "$supported" = "yes" ; then
  4600. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4601. found="yes"
  4602. fi
  4603. fi
  4604. if test $found = "no" ; then
  4605. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4606. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4607. fi
  4608. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4609. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4610. fi
  4611. CFLAGS="$CFLAGS -Wformat"
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4613. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4614. cacheid=xorg_cv_cc_flag__Wformat
  4615. if eval \${$cacheid+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4619. /* end confdefs.h. */
  4620. int i;
  4621. int
  4622. main ()
  4623. {
  4624. ;
  4625. return 0;
  4626. }
  4627. _ACEOF
  4628. if ac_fn_c_try_link "$LINENO"; then :
  4629. eval $cacheid=yes
  4630. else
  4631. eval $cacheid=no
  4632. fi
  4633. rm -f core conftest.err conftest.$ac_objext \
  4634. conftest$ac_exeext conftest.$ac_ext
  4635. fi
  4636. CFLAGS="$xorg_testset_save_CFLAGS"
  4637. eval supported=\$$cacheid
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4639. $as_echo "$supported" >&6; }
  4640. if test "$supported" = "yes" ; then
  4641. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4642. found="yes"
  4643. fi
  4644. fi
  4645. xorg_testset_save_CFLAGS="$CFLAGS"
  4646. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4647. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4649. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4650. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4651. $as_echo_n "(cached) " >&6
  4652. else
  4653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4654. /* end confdefs.h. */
  4655. int i;
  4656. _ACEOF
  4657. if ac_fn_c_try_compile "$LINENO"; then :
  4658. xorg_cv_cc_flag_unknown_warning_option=yes
  4659. else
  4660. xorg_cv_cc_flag_unknown_warning_option=no
  4661. fi
  4662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4663. fi
  4664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4665. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4666. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4667. CFLAGS="$xorg_testset_save_CFLAGS"
  4668. fi
  4669. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4670. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4671. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4672. fi
  4673. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4675. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4676. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4677. $as_echo_n "(cached) " >&6
  4678. else
  4679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4680. /* end confdefs.h. */
  4681. int i;
  4682. _ACEOF
  4683. if ac_fn_c_try_compile "$LINENO"; then :
  4684. xorg_cv_cc_flag_unused_command_line_argument=yes
  4685. else
  4686. xorg_cv_cc_flag_unused_command_line_argument=no
  4687. fi
  4688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4689. fi
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4691. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4692. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4693. CFLAGS="$xorg_testset_save_CFLAGS"
  4694. fi
  4695. found="no"
  4696. if test $found = "no" ; then
  4697. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4698. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4699. fi
  4700. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4701. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4702. fi
  4703. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4705. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4706. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4707. if eval \${$cacheid+:} false; then :
  4708. $as_echo_n "(cached) " >&6
  4709. else
  4710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4711. /* end confdefs.h. */
  4712. int i;
  4713. int
  4714. main ()
  4715. {
  4716. ;
  4717. return 0;
  4718. }
  4719. _ACEOF
  4720. if ac_fn_c_try_link "$LINENO"; then :
  4721. eval $cacheid=yes
  4722. else
  4723. eval $cacheid=no
  4724. fi
  4725. rm -f core conftest.err conftest.$ac_objext \
  4726. conftest$ac_exeext conftest.$ac_ext
  4727. fi
  4728. CFLAGS="$xorg_testset_save_CFLAGS"
  4729. eval supported=\$$cacheid
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4731. $as_echo "$supported" >&6; }
  4732. if test "$supported" = "yes" ; then
  4733. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4734. found="yes"
  4735. fi
  4736. fi
  4737. xorg_testset_save_CFLAGS="$CFLAGS"
  4738. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4739. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4741. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4742. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4743. $as_echo_n "(cached) " >&6
  4744. else
  4745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4746. /* end confdefs.h. */
  4747. int i;
  4748. _ACEOF
  4749. if ac_fn_c_try_compile "$LINENO"; then :
  4750. xorg_cv_cc_flag_unknown_warning_option=yes
  4751. else
  4752. xorg_cv_cc_flag_unknown_warning_option=no
  4753. fi
  4754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4755. fi
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4757. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4758. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4759. CFLAGS="$xorg_testset_save_CFLAGS"
  4760. fi
  4761. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4762. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4763. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4764. fi
  4765. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4767. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4768. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4769. $as_echo_n "(cached) " >&6
  4770. else
  4771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4772. /* end confdefs.h. */
  4773. int i;
  4774. _ACEOF
  4775. if ac_fn_c_try_compile "$LINENO"; then :
  4776. xorg_cv_cc_flag_unused_command_line_argument=yes
  4777. else
  4778. xorg_cv_cc_flag_unused_command_line_argument=no
  4779. fi
  4780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4781. fi
  4782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4783. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4784. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4785. CFLAGS="$xorg_testset_save_CFLAGS"
  4786. fi
  4787. found="no"
  4788. if test $found = "no" ; then
  4789. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4790. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4791. fi
  4792. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4793. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4794. fi
  4795. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4797. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4798. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4799. if eval \${$cacheid+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4803. /* end confdefs.h. */
  4804. int i;
  4805. int
  4806. main ()
  4807. {
  4808. ;
  4809. return 0;
  4810. }
  4811. _ACEOF
  4812. if ac_fn_c_try_link "$LINENO"; then :
  4813. eval $cacheid=yes
  4814. else
  4815. eval $cacheid=no
  4816. fi
  4817. rm -f core conftest.err conftest.$ac_objext \
  4818. conftest$ac_exeext conftest.$ac_ext
  4819. fi
  4820. CFLAGS="$xorg_testset_save_CFLAGS"
  4821. eval supported=\$$cacheid
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4823. $as_echo "$supported" >&6; }
  4824. if test "$supported" = "yes" ; then
  4825. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4826. found="yes"
  4827. fi
  4828. fi
  4829. xorg_testset_save_CFLAGS="$CFLAGS"
  4830. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4831. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4833. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4834. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4835. $as_echo_n "(cached) " >&6
  4836. else
  4837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4838. /* end confdefs.h. */
  4839. int i;
  4840. _ACEOF
  4841. if ac_fn_c_try_compile "$LINENO"; then :
  4842. xorg_cv_cc_flag_unknown_warning_option=yes
  4843. else
  4844. xorg_cv_cc_flag_unknown_warning_option=no
  4845. fi
  4846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4847. fi
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4849. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4850. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4851. CFLAGS="$xorg_testset_save_CFLAGS"
  4852. fi
  4853. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4854. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4855. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4856. fi
  4857. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4859. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4860. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4861. $as_echo_n "(cached) " >&6
  4862. else
  4863. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4864. /* end confdefs.h. */
  4865. int i;
  4866. _ACEOF
  4867. if ac_fn_c_try_compile "$LINENO"; then :
  4868. xorg_cv_cc_flag_unused_command_line_argument=yes
  4869. else
  4870. xorg_cv_cc_flag_unused_command_line_argument=no
  4871. fi
  4872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4873. fi
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4875. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4876. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4877. CFLAGS="$xorg_testset_save_CFLAGS"
  4878. fi
  4879. found="no"
  4880. if test $found = "no" ; then
  4881. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4882. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4883. fi
  4884. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4885. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4886. fi
  4887. CFLAGS="$CFLAGS -Wnested-externs"
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4889. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4890. cacheid=xorg_cv_cc_flag__Wnested_externs
  4891. if eval \${$cacheid+:} false; then :
  4892. $as_echo_n "(cached) " >&6
  4893. else
  4894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4895. /* end confdefs.h. */
  4896. int i;
  4897. int
  4898. main ()
  4899. {
  4900. ;
  4901. return 0;
  4902. }
  4903. _ACEOF
  4904. if ac_fn_c_try_link "$LINENO"; then :
  4905. eval $cacheid=yes
  4906. else
  4907. eval $cacheid=no
  4908. fi
  4909. rm -f core conftest.err conftest.$ac_objext \
  4910. conftest$ac_exeext conftest.$ac_ext
  4911. fi
  4912. CFLAGS="$xorg_testset_save_CFLAGS"
  4913. eval supported=\$$cacheid
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4915. $as_echo "$supported" >&6; }
  4916. if test "$supported" = "yes" ; then
  4917. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4918. found="yes"
  4919. fi
  4920. fi
  4921. xorg_testset_save_CFLAGS="$CFLAGS"
  4922. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4923. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4925. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4926. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4927. $as_echo_n "(cached) " >&6
  4928. else
  4929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4930. /* end confdefs.h. */
  4931. int i;
  4932. _ACEOF
  4933. if ac_fn_c_try_compile "$LINENO"; then :
  4934. xorg_cv_cc_flag_unknown_warning_option=yes
  4935. else
  4936. xorg_cv_cc_flag_unknown_warning_option=no
  4937. fi
  4938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4939. fi
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4941. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4942. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4943. CFLAGS="$xorg_testset_save_CFLAGS"
  4944. fi
  4945. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4946. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4947. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4948. fi
  4949. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4951. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4952. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4956. /* end confdefs.h. */
  4957. int i;
  4958. _ACEOF
  4959. if ac_fn_c_try_compile "$LINENO"; then :
  4960. xorg_cv_cc_flag_unused_command_line_argument=yes
  4961. else
  4962. xorg_cv_cc_flag_unused_command_line_argument=no
  4963. fi
  4964. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4965. fi
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4967. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4968. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4969. CFLAGS="$xorg_testset_save_CFLAGS"
  4970. fi
  4971. found="no"
  4972. if test $found = "no" ; then
  4973. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4974. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4975. fi
  4976. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4977. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4978. fi
  4979. CFLAGS="$CFLAGS -Wbad-function-cast"
  4980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4981. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4982. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4983. if eval \${$cacheid+:} false; then :
  4984. $as_echo_n "(cached) " >&6
  4985. else
  4986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4987. /* end confdefs.h. */
  4988. int i;
  4989. int
  4990. main ()
  4991. {
  4992. ;
  4993. return 0;
  4994. }
  4995. _ACEOF
  4996. if ac_fn_c_try_link "$LINENO"; then :
  4997. eval $cacheid=yes
  4998. else
  4999. eval $cacheid=no
  5000. fi
  5001. rm -f core conftest.err conftest.$ac_objext \
  5002. conftest$ac_exeext conftest.$ac_ext
  5003. fi
  5004. CFLAGS="$xorg_testset_save_CFLAGS"
  5005. eval supported=\$$cacheid
  5006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5007. $as_echo "$supported" >&6; }
  5008. if test "$supported" = "yes" ; then
  5009. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  5010. found="yes"
  5011. fi
  5012. fi
  5013. xorg_testset_save_CFLAGS="$CFLAGS"
  5014. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5015. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5017. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5018. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5019. $as_echo_n "(cached) " >&6
  5020. else
  5021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5022. /* end confdefs.h. */
  5023. int i;
  5024. _ACEOF
  5025. if ac_fn_c_try_compile "$LINENO"; then :
  5026. xorg_cv_cc_flag_unknown_warning_option=yes
  5027. else
  5028. xorg_cv_cc_flag_unknown_warning_option=no
  5029. fi
  5030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5031. fi
  5032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5033. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5034. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5035. CFLAGS="$xorg_testset_save_CFLAGS"
  5036. fi
  5037. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5038. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5039. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5040. fi
  5041. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5043. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5044. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5045. $as_echo_n "(cached) " >&6
  5046. else
  5047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5048. /* end confdefs.h. */
  5049. int i;
  5050. _ACEOF
  5051. if ac_fn_c_try_compile "$LINENO"; then :
  5052. xorg_cv_cc_flag_unused_command_line_argument=yes
  5053. else
  5054. xorg_cv_cc_flag_unused_command_line_argument=no
  5055. fi
  5056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5057. fi
  5058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5059. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5060. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5061. CFLAGS="$xorg_testset_save_CFLAGS"
  5062. fi
  5063. found="no"
  5064. if test $found = "no" ; then
  5065. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5066. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5067. fi
  5068. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5069. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5070. fi
  5071. CFLAGS="$CFLAGS -Wold-style-definition"
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  5073. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  5074. cacheid=xorg_cv_cc_flag__Wold_style_definition
  5075. if eval \${$cacheid+:} false; then :
  5076. $as_echo_n "(cached) " >&6
  5077. else
  5078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5079. /* end confdefs.h. */
  5080. int i;
  5081. int
  5082. main ()
  5083. {
  5084. ;
  5085. return 0;
  5086. }
  5087. _ACEOF
  5088. if ac_fn_c_try_link "$LINENO"; then :
  5089. eval $cacheid=yes
  5090. else
  5091. eval $cacheid=no
  5092. fi
  5093. rm -f core conftest.err conftest.$ac_objext \
  5094. conftest$ac_exeext conftest.$ac_ext
  5095. fi
  5096. CFLAGS="$xorg_testset_save_CFLAGS"
  5097. eval supported=\$$cacheid
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5099. $as_echo "$supported" >&6; }
  5100. if test "$supported" = "yes" ; then
  5101. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  5102. found="yes"
  5103. fi
  5104. fi
  5105. if test $found = "no" ; then
  5106. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5107. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5108. fi
  5109. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5110. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5111. fi
  5112. CFLAGS="$CFLAGS -fd"
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  5114. $as_echo_n "checking if $CC supports -fd... " >&6; }
  5115. cacheid=xorg_cv_cc_flag__fd
  5116. if eval \${$cacheid+:} false; then :
  5117. $as_echo_n "(cached) " >&6
  5118. else
  5119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5120. /* end confdefs.h. */
  5121. int i;
  5122. int
  5123. main ()
  5124. {
  5125. ;
  5126. return 0;
  5127. }
  5128. _ACEOF
  5129. if ac_fn_c_try_link "$LINENO"; then :
  5130. eval $cacheid=yes
  5131. else
  5132. eval $cacheid=no
  5133. fi
  5134. rm -f core conftest.err conftest.$ac_objext \
  5135. conftest$ac_exeext conftest.$ac_ext
  5136. fi
  5137. CFLAGS="$xorg_testset_save_CFLAGS"
  5138. eval supported=\$$cacheid
  5139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5140. $as_echo "$supported" >&6; }
  5141. if test "$supported" = "yes" ; then
  5142. BASE_CFLAGS="$BASE_CFLAGS -fd"
  5143. found="yes"
  5144. fi
  5145. fi
  5146. xorg_testset_save_CFLAGS="$CFLAGS"
  5147. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5148. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5150. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5151. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5152. $as_echo_n "(cached) " >&6
  5153. else
  5154. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5155. /* end confdefs.h. */
  5156. int i;
  5157. _ACEOF
  5158. if ac_fn_c_try_compile "$LINENO"; then :
  5159. xorg_cv_cc_flag_unknown_warning_option=yes
  5160. else
  5161. xorg_cv_cc_flag_unknown_warning_option=no
  5162. fi
  5163. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5164. fi
  5165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5166. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5167. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5168. CFLAGS="$xorg_testset_save_CFLAGS"
  5169. fi
  5170. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5171. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5172. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5173. fi
  5174. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5176. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5177. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5178. $as_echo_n "(cached) " >&6
  5179. else
  5180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5181. /* end confdefs.h. */
  5182. int i;
  5183. _ACEOF
  5184. if ac_fn_c_try_compile "$LINENO"; then :
  5185. xorg_cv_cc_flag_unused_command_line_argument=yes
  5186. else
  5187. xorg_cv_cc_flag_unused_command_line_argument=no
  5188. fi
  5189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5190. fi
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5192. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5193. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5194. CFLAGS="$xorg_testset_save_CFLAGS"
  5195. fi
  5196. found="no"
  5197. if test $found = "no" ; then
  5198. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5199. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5200. fi
  5201. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5202. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5203. fi
  5204. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5206. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5207. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5208. if eval \${$cacheid+:} false; then :
  5209. $as_echo_n "(cached) " >&6
  5210. else
  5211. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5212. /* end confdefs.h. */
  5213. int i;
  5214. int
  5215. main ()
  5216. {
  5217. ;
  5218. return 0;
  5219. }
  5220. _ACEOF
  5221. if ac_fn_c_try_link "$LINENO"; then :
  5222. eval $cacheid=yes
  5223. else
  5224. eval $cacheid=no
  5225. fi
  5226. rm -f core conftest.err conftest.$ac_objext \
  5227. conftest$ac_exeext conftest.$ac_ext
  5228. fi
  5229. CFLAGS="$xorg_testset_save_CFLAGS"
  5230. eval supported=\$$cacheid
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5232. $as_echo "$supported" >&6; }
  5233. if test "$supported" = "yes" ; then
  5234. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5235. found="yes"
  5236. fi
  5237. fi
  5238. # This chunk adds additional warnings that could catch undesired effects.
  5239. xorg_testset_save_CFLAGS="$CFLAGS"
  5240. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5241. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5243. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5244. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5245. $as_echo_n "(cached) " >&6
  5246. else
  5247. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5248. /* end confdefs.h. */
  5249. int i;
  5250. _ACEOF
  5251. if ac_fn_c_try_compile "$LINENO"; then :
  5252. xorg_cv_cc_flag_unknown_warning_option=yes
  5253. else
  5254. xorg_cv_cc_flag_unknown_warning_option=no
  5255. fi
  5256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5257. fi
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5259. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5260. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5261. CFLAGS="$xorg_testset_save_CFLAGS"
  5262. fi
  5263. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5264. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5265. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5266. fi
  5267. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5269. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5270. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5271. $as_echo_n "(cached) " >&6
  5272. else
  5273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5274. /* end confdefs.h. */
  5275. int i;
  5276. _ACEOF
  5277. if ac_fn_c_try_compile "$LINENO"; then :
  5278. xorg_cv_cc_flag_unused_command_line_argument=yes
  5279. else
  5280. xorg_cv_cc_flag_unused_command_line_argument=no
  5281. fi
  5282. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5283. fi
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5285. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5286. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5287. CFLAGS="$xorg_testset_save_CFLAGS"
  5288. fi
  5289. found="no"
  5290. if test $found = "no" ; then
  5291. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5292. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5293. fi
  5294. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5295. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5296. fi
  5297. CFLAGS="$CFLAGS -Wunused"
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5299. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5300. cacheid=xorg_cv_cc_flag__Wunused
  5301. if eval \${$cacheid+:} false; then :
  5302. $as_echo_n "(cached) " >&6
  5303. else
  5304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5305. /* end confdefs.h. */
  5306. int i;
  5307. int
  5308. main ()
  5309. {
  5310. ;
  5311. return 0;
  5312. }
  5313. _ACEOF
  5314. if ac_fn_c_try_link "$LINENO"; then :
  5315. eval $cacheid=yes
  5316. else
  5317. eval $cacheid=no
  5318. fi
  5319. rm -f core conftest.err conftest.$ac_objext \
  5320. conftest$ac_exeext conftest.$ac_ext
  5321. fi
  5322. CFLAGS="$xorg_testset_save_CFLAGS"
  5323. eval supported=\$$cacheid
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5325. $as_echo "$supported" >&6; }
  5326. if test "$supported" = "yes" ; then
  5327. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5328. found="yes"
  5329. fi
  5330. fi
  5331. xorg_testset_save_CFLAGS="$CFLAGS"
  5332. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5333. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5335. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5336. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5340. /* end confdefs.h. */
  5341. int i;
  5342. _ACEOF
  5343. if ac_fn_c_try_compile "$LINENO"; then :
  5344. xorg_cv_cc_flag_unknown_warning_option=yes
  5345. else
  5346. xorg_cv_cc_flag_unknown_warning_option=no
  5347. fi
  5348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5349. fi
  5350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5351. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5352. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5353. CFLAGS="$xorg_testset_save_CFLAGS"
  5354. fi
  5355. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5356. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5357. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5358. fi
  5359. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5361. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5362. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5363. $as_echo_n "(cached) " >&6
  5364. else
  5365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5366. /* end confdefs.h. */
  5367. int i;
  5368. _ACEOF
  5369. if ac_fn_c_try_compile "$LINENO"; then :
  5370. xorg_cv_cc_flag_unused_command_line_argument=yes
  5371. else
  5372. xorg_cv_cc_flag_unused_command_line_argument=no
  5373. fi
  5374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5377. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5378. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5379. CFLAGS="$xorg_testset_save_CFLAGS"
  5380. fi
  5381. found="no"
  5382. if test $found = "no" ; then
  5383. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5384. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5385. fi
  5386. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5387. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5388. fi
  5389. CFLAGS="$CFLAGS -Wuninitialized"
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5391. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5392. cacheid=xorg_cv_cc_flag__Wuninitialized
  5393. if eval \${$cacheid+:} false; then :
  5394. $as_echo_n "(cached) " >&6
  5395. else
  5396. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5397. /* end confdefs.h. */
  5398. int i;
  5399. int
  5400. main ()
  5401. {
  5402. ;
  5403. return 0;
  5404. }
  5405. _ACEOF
  5406. if ac_fn_c_try_link "$LINENO"; then :
  5407. eval $cacheid=yes
  5408. else
  5409. eval $cacheid=no
  5410. fi
  5411. rm -f core conftest.err conftest.$ac_objext \
  5412. conftest$ac_exeext conftest.$ac_ext
  5413. fi
  5414. CFLAGS="$xorg_testset_save_CFLAGS"
  5415. eval supported=\$$cacheid
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5417. $as_echo "$supported" >&6; }
  5418. if test "$supported" = "yes" ; then
  5419. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5420. found="yes"
  5421. fi
  5422. fi
  5423. xorg_testset_save_CFLAGS="$CFLAGS"
  5424. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5425. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5427. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5428. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5432. /* end confdefs.h. */
  5433. int i;
  5434. _ACEOF
  5435. if ac_fn_c_try_compile "$LINENO"; then :
  5436. xorg_cv_cc_flag_unknown_warning_option=yes
  5437. else
  5438. xorg_cv_cc_flag_unknown_warning_option=no
  5439. fi
  5440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5441. fi
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5443. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5444. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5445. CFLAGS="$xorg_testset_save_CFLAGS"
  5446. fi
  5447. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5448. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5449. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5450. fi
  5451. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5453. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5454. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5455. $as_echo_n "(cached) " >&6
  5456. else
  5457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5458. /* end confdefs.h. */
  5459. int i;
  5460. _ACEOF
  5461. if ac_fn_c_try_compile "$LINENO"; then :
  5462. xorg_cv_cc_flag_unused_command_line_argument=yes
  5463. else
  5464. xorg_cv_cc_flag_unused_command_line_argument=no
  5465. fi
  5466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5467. fi
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5469. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5470. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5471. CFLAGS="$xorg_testset_save_CFLAGS"
  5472. fi
  5473. found="no"
  5474. if test $found = "no" ; then
  5475. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5476. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5477. fi
  5478. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5479. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5480. fi
  5481. CFLAGS="$CFLAGS -Wshadow"
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5483. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5484. cacheid=xorg_cv_cc_flag__Wshadow
  5485. if eval \${$cacheid+:} false; then :
  5486. $as_echo_n "(cached) " >&6
  5487. else
  5488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5489. /* end confdefs.h. */
  5490. int i;
  5491. int
  5492. main ()
  5493. {
  5494. ;
  5495. return 0;
  5496. }
  5497. _ACEOF
  5498. if ac_fn_c_try_link "$LINENO"; then :
  5499. eval $cacheid=yes
  5500. else
  5501. eval $cacheid=no
  5502. fi
  5503. rm -f core conftest.err conftest.$ac_objext \
  5504. conftest$ac_exeext conftest.$ac_ext
  5505. fi
  5506. CFLAGS="$xorg_testset_save_CFLAGS"
  5507. eval supported=\$$cacheid
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5509. $as_echo "$supported" >&6; }
  5510. if test "$supported" = "yes" ; then
  5511. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5512. found="yes"
  5513. fi
  5514. fi
  5515. xorg_testset_save_CFLAGS="$CFLAGS"
  5516. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5517. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5519. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5520. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5521. $as_echo_n "(cached) " >&6
  5522. else
  5523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5524. /* end confdefs.h. */
  5525. int i;
  5526. _ACEOF
  5527. if ac_fn_c_try_compile "$LINENO"; then :
  5528. xorg_cv_cc_flag_unknown_warning_option=yes
  5529. else
  5530. xorg_cv_cc_flag_unknown_warning_option=no
  5531. fi
  5532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5533. fi
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5535. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5536. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5537. CFLAGS="$xorg_testset_save_CFLAGS"
  5538. fi
  5539. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5540. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5541. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5542. fi
  5543. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5545. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5546. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5547. $as_echo_n "(cached) " >&6
  5548. else
  5549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5550. /* end confdefs.h. */
  5551. int i;
  5552. _ACEOF
  5553. if ac_fn_c_try_compile "$LINENO"; then :
  5554. xorg_cv_cc_flag_unused_command_line_argument=yes
  5555. else
  5556. xorg_cv_cc_flag_unused_command_line_argument=no
  5557. fi
  5558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5559. fi
  5560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5561. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5562. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5563. CFLAGS="$xorg_testset_save_CFLAGS"
  5564. fi
  5565. found="no"
  5566. if test $found = "no" ; then
  5567. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5568. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5569. fi
  5570. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5571. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5572. fi
  5573. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5575. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5576. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5577. if eval \${$cacheid+:} false; then :
  5578. $as_echo_n "(cached) " >&6
  5579. else
  5580. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5581. /* end confdefs.h. */
  5582. int i;
  5583. int
  5584. main ()
  5585. {
  5586. ;
  5587. return 0;
  5588. }
  5589. _ACEOF
  5590. if ac_fn_c_try_link "$LINENO"; then :
  5591. eval $cacheid=yes
  5592. else
  5593. eval $cacheid=no
  5594. fi
  5595. rm -f core conftest.err conftest.$ac_objext \
  5596. conftest$ac_exeext conftest.$ac_ext
  5597. fi
  5598. CFLAGS="$xorg_testset_save_CFLAGS"
  5599. eval supported=\$$cacheid
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5601. $as_echo "$supported" >&6; }
  5602. if test "$supported" = "yes" ; then
  5603. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5604. found="yes"
  5605. fi
  5606. fi
  5607. xorg_testset_save_CFLAGS="$CFLAGS"
  5608. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5609. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5611. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5612. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5616. /* end confdefs.h. */
  5617. int i;
  5618. _ACEOF
  5619. if ac_fn_c_try_compile "$LINENO"; then :
  5620. xorg_cv_cc_flag_unknown_warning_option=yes
  5621. else
  5622. xorg_cv_cc_flag_unknown_warning_option=no
  5623. fi
  5624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5625. fi
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5627. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5628. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5629. CFLAGS="$xorg_testset_save_CFLAGS"
  5630. fi
  5631. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5632. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5633. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5634. fi
  5635. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5637. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5638. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5642. /* end confdefs.h. */
  5643. int i;
  5644. _ACEOF
  5645. if ac_fn_c_try_compile "$LINENO"; then :
  5646. xorg_cv_cc_flag_unused_command_line_argument=yes
  5647. else
  5648. xorg_cv_cc_flag_unused_command_line_argument=no
  5649. fi
  5650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5651. fi
  5652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5653. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5654. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5655. CFLAGS="$xorg_testset_save_CFLAGS"
  5656. fi
  5657. found="no"
  5658. if test $found = "no" ; then
  5659. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5660. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5661. fi
  5662. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5663. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5664. fi
  5665. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5667. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5668. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5669. if eval \${$cacheid+:} false; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5673. /* end confdefs.h. */
  5674. int i;
  5675. int
  5676. main ()
  5677. {
  5678. ;
  5679. return 0;
  5680. }
  5681. _ACEOF
  5682. if ac_fn_c_try_link "$LINENO"; then :
  5683. eval $cacheid=yes
  5684. else
  5685. eval $cacheid=no
  5686. fi
  5687. rm -f core conftest.err conftest.$ac_objext \
  5688. conftest$ac_exeext conftest.$ac_ext
  5689. fi
  5690. CFLAGS="$xorg_testset_save_CFLAGS"
  5691. eval supported=\$$cacheid
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5693. $as_echo "$supported" >&6; }
  5694. if test "$supported" = "yes" ; then
  5695. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5696. found="yes"
  5697. fi
  5698. fi
  5699. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5700. xorg_testset_save_CFLAGS="$CFLAGS"
  5701. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5702. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5704. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5705. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5709. /* end confdefs.h. */
  5710. int i;
  5711. _ACEOF
  5712. if ac_fn_c_try_compile "$LINENO"; then :
  5713. xorg_cv_cc_flag_unknown_warning_option=yes
  5714. else
  5715. xorg_cv_cc_flag_unknown_warning_option=no
  5716. fi
  5717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5718. fi
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5720. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5721. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5722. CFLAGS="$xorg_testset_save_CFLAGS"
  5723. fi
  5724. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5725. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5726. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5727. fi
  5728. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5730. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5731. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5732. $as_echo_n "(cached) " >&6
  5733. else
  5734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5735. /* end confdefs.h. */
  5736. int i;
  5737. _ACEOF
  5738. if ac_fn_c_try_compile "$LINENO"; then :
  5739. xorg_cv_cc_flag_unused_command_line_argument=yes
  5740. else
  5741. xorg_cv_cc_flag_unused_command_line_argument=no
  5742. fi
  5743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5744. fi
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5746. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5747. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5748. CFLAGS="$xorg_testset_save_CFLAGS"
  5749. fi
  5750. found="no"
  5751. if test $found = "no" ; then
  5752. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5753. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5754. fi
  5755. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5756. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5757. fi
  5758. CFLAGS="$CFLAGS -Wlogical-op"
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5760. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5761. cacheid=xorg_cv_cc_flag__Wlogical_op
  5762. if eval \${$cacheid+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5766. /* end confdefs.h. */
  5767. int i;
  5768. int
  5769. main ()
  5770. {
  5771. ;
  5772. return 0;
  5773. }
  5774. _ACEOF
  5775. if ac_fn_c_try_link "$LINENO"; then :
  5776. eval $cacheid=yes
  5777. else
  5778. eval $cacheid=no
  5779. fi
  5780. rm -f core conftest.err conftest.$ac_objext \
  5781. conftest$ac_exeext conftest.$ac_ext
  5782. fi
  5783. CFLAGS="$xorg_testset_save_CFLAGS"
  5784. eval supported=\$$cacheid
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5786. $as_echo "$supported" >&6; }
  5787. if test "$supported" = "yes" ; then
  5788. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5789. found="yes"
  5790. fi
  5791. fi
  5792. # These are currently disabled because they are noisy. They will be enabled
  5793. # in the future once the codebase is sufficiently modernized to silence
  5794. # them. For now, I don't want them to drown out the other warnings.
  5795. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5796. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5797. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5798. # Turn some warnings into errors, so we don't accidently get successful builds
  5799. # when there are problems that should be fixed.
  5800. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5801. xorg_testset_save_CFLAGS="$CFLAGS"
  5802. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5803. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5805. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5806. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5807. $as_echo_n "(cached) " >&6
  5808. else
  5809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5810. /* end confdefs.h. */
  5811. int i;
  5812. _ACEOF
  5813. if ac_fn_c_try_compile "$LINENO"; then :
  5814. xorg_cv_cc_flag_unknown_warning_option=yes
  5815. else
  5816. xorg_cv_cc_flag_unknown_warning_option=no
  5817. fi
  5818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5819. fi
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5821. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5822. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5823. CFLAGS="$xorg_testset_save_CFLAGS"
  5824. fi
  5825. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5826. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5827. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5828. fi
  5829. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5831. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5832. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5833. $as_echo_n "(cached) " >&6
  5834. else
  5835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5836. /* end confdefs.h. */
  5837. int i;
  5838. _ACEOF
  5839. if ac_fn_c_try_compile "$LINENO"; then :
  5840. xorg_cv_cc_flag_unused_command_line_argument=yes
  5841. else
  5842. xorg_cv_cc_flag_unused_command_line_argument=no
  5843. fi
  5844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5845. fi
  5846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5847. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5848. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5849. CFLAGS="$xorg_testset_save_CFLAGS"
  5850. fi
  5851. found="no"
  5852. if test $found = "no" ; then
  5853. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5854. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5855. fi
  5856. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5857. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5858. fi
  5859. CFLAGS="$CFLAGS -Werror=implicit"
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5861. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5862. cacheid=xorg_cv_cc_flag__Werror_implicit
  5863. if eval \${$cacheid+:} false; then :
  5864. $as_echo_n "(cached) " >&6
  5865. else
  5866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5867. /* end confdefs.h. */
  5868. int i;
  5869. int
  5870. main ()
  5871. {
  5872. ;
  5873. return 0;
  5874. }
  5875. _ACEOF
  5876. if ac_fn_c_try_link "$LINENO"; then :
  5877. eval $cacheid=yes
  5878. else
  5879. eval $cacheid=no
  5880. fi
  5881. rm -f core conftest.err conftest.$ac_objext \
  5882. conftest$ac_exeext conftest.$ac_ext
  5883. fi
  5884. CFLAGS="$xorg_testset_save_CFLAGS"
  5885. eval supported=\$$cacheid
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5887. $as_echo "$supported" >&6; }
  5888. if test "$supported" = "yes" ; then
  5889. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5890. found="yes"
  5891. fi
  5892. fi
  5893. if test $found = "no" ; then
  5894. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5895. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5896. fi
  5897. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5898. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5899. fi
  5900. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5902. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5903. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5904. if eval \${$cacheid+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5908. /* end confdefs.h. */
  5909. int i;
  5910. int
  5911. main ()
  5912. {
  5913. ;
  5914. return 0;
  5915. }
  5916. _ACEOF
  5917. if ac_fn_c_try_link "$LINENO"; then :
  5918. eval $cacheid=yes
  5919. else
  5920. eval $cacheid=no
  5921. fi
  5922. rm -f core conftest.err conftest.$ac_objext \
  5923. conftest$ac_exeext conftest.$ac_ext
  5924. fi
  5925. CFLAGS="$xorg_testset_save_CFLAGS"
  5926. eval supported=\$$cacheid
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5928. $as_echo "$supported" >&6; }
  5929. if test "$supported" = "yes" ; then
  5930. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5931. found="yes"
  5932. fi
  5933. fi
  5934. xorg_testset_save_CFLAGS="$CFLAGS"
  5935. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5936. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5938. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5939. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5940. $as_echo_n "(cached) " >&6
  5941. else
  5942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5943. /* end confdefs.h. */
  5944. int i;
  5945. _ACEOF
  5946. if ac_fn_c_try_compile "$LINENO"; then :
  5947. xorg_cv_cc_flag_unknown_warning_option=yes
  5948. else
  5949. xorg_cv_cc_flag_unknown_warning_option=no
  5950. fi
  5951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5952. fi
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5954. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5955. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5956. CFLAGS="$xorg_testset_save_CFLAGS"
  5957. fi
  5958. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5959. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5960. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5961. fi
  5962. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5964. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5965. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5966. $as_echo_n "(cached) " >&6
  5967. else
  5968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5969. /* end confdefs.h. */
  5970. int i;
  5971. _ACEOF
  5972. if ac_fn_c_try_compile "$LINENO"; then :
  5973. xorg_cv_cc_flag_unused_command_line_argument=yes
  5974. else
  5975. xorg_cv_cc_flag_unused_command_line_argument=no
  5976. fi
  5977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5978. fi
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5980. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5981. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5982. CFLAGS="$xorg_testset_save_CFLAGS"
  5983. fi
  5984. found="no"
  5985. if test $found = "no" ; then
  5986. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5987. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5988. fi
  5989. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5990. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5991. fi
  5992. CFLAGS="$CFLAGS -Werror=nonnull"
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5994. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5995. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5996. if eval \${$cacheid+:} false; then :
  5997. $as_echo_n "(cached) " >&6
  5998. else
  5999. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6000. /* end confdefs.h. */
  6001. int i;
  6002. int
  6003. main ()
  6004. {
  6005. ;
  6006. return 0;
  6007. }
  6008. _ACEOF
  6009. if ac_fn_c_try_link "$LINENO"; then :
  6010. eval $cacheid=yes
  6011. else
  6012. eval $cacheid=no
  6013. fi
  6014. rm -f core conftest.err conftest.$ac_objext \
  6015. conftest$ac_exeext conftest.$ac_ext
  6016. fi
  6017. CFLAGS="$xorg_testset_save_CFLAGS"
  6018. eval supported=\$$cacheid
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6020. $as_echo "$supported" >&6; }
  6021. if test "$supported" = "yes" ; then
  6022. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  6023. found="yes"
  6024. fi
  6025. fi
  6026. xorg_testset_save_CFLAGS="$CFLAGS"
  6027. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6028. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6030. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6031. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6032. $as_echo_n "(cached) " >&6
  6033. else
  6034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6035. /* end confdefs.h. */
  6036. int i;
  6037. _ACEOF
  6038. if ac_fn_c_try_compile "$LINENO"; then :
  6039. xorg_cv_cc_flag_unknown_warning_option=yes
  6040. else
  6041. xorg_cv_cc_flag_unknown_warning_option=no
  6042. fi
  6043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6044. fi
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6046. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6047. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6048. CFLAGS="$xorg_testset_save_CFLAGS"
  6049. fi
  6050. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6051. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6052. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6053. fi
  6054. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6056. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6057. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6058. $as_echo_n "(cached) " >&6
  6059. else
  6060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6061. /* end confdefs.h. */
  6062. int i;
  6063. _ACEOF
  6064. if ac_fn_c_try_compile "$LINENO"; then :
  6065. xorg_cv_cc_flag_unused_command_line_argument=yes
  6066. else
  6067. xorg_cv_cc_flag_unused_command_line_argument=no
  6068. fi
  6069. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6072. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6073. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6074. CFLAGS="$xorg_testset_save_CFLAGS"
  6075. fi
  6076. found="no"
  6077. if test $found = "no" ; then
  6078. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6079. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6080. fi
  6081. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6082. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6083. fi
  6084. CFLAGS="$CFLAGS -Werror=init-self"
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  6086. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  6087. cacheid=xorg_cv_cc_flag__Werror_init_self
  6088. if eval \${$cacheid+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6092. /* end confdefs.h. */
  6093. int i;
  6094. int
  6095. main ()
  6096. {
  6097. ;
  6098. return 0;
  6099. }
  6100. _ACEOF
  6101. if ac_fn_c_try_link "$LINENO"; then :
  6102. eval $cacheid=yes
  6103. else
  6104. eval $cacheid=no
  6105. fi
  6106. rm -f core conftest.err conftest.$ac_objext \
  6107. conftest$ac_exeext conftest.$ac_ext
  6108. fi
  6109. CFLAGS="$xorg_testset_save_CFLAGS"
  6110. eval supported=\$$cacheid
  6111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6112. $as_echo "$supported" >&6; }
  6113. if test "$supported" = "yes" ; then
  6114. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  6115. found="yes"
  6116. fi
  6117. fi
  6118. xorg_testset_save_CFLAGS="$CFLAGS"
  6119. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6120. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6122. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6123. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6124. $as_echo_n "(cached) " >&6
  6125. else
  6126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6127. /* end confdefs.h. */
  6128. int i;
  6129. _ACEOF
  6130. if ac_fn_c_try_compile "$LINENO"; then :
  6131. xorg_cv_cc_flag_unknown_warning_option=yes
  6132. else
  6133. xorg_cv_cc_flag_unknown_warning_option=no
  6134. fi
  6135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6136. fi
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6138. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6139. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6140. CFLAGS="$xorg_testset_save_CFLAGS"
  6141. fi
  6142. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6143. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6144. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6145. fi
  6146. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6148. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6149. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6153. /* end confdefs.h. */
  6154. int i;
  6155. _ACEOF
  6156. if ac_fn_c_try_compile "$LINENO"; then :
  6157. xorg_cv_cc_flag_unused_command_line_argument=yes
  6158. else
  6159. xorg_cv_cc_flag_unused_command_line_argument=no
  6160. fi
  6161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6162. fi
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6164. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6165. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6166. CFLAGS="$xorg_testset_save_CFLAGS"
  6167. fi
  6168. found="no"
  6169. if test $found = "no" ; then
  6170. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6171. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6172. fi
  6173. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6174. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6175. fi
  6176. CFLAGS="$CFLAGS -Werror=main"
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6178. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6179. cacheid=xorg_cv_cc_flag__Werror_main
  6180. if eval \${$cacheid+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6184. /* end confdefs.h. */
  6185. int i;
  6186. int
  6187. main ()
  6188. {
  6189. ;
  6190. return 0;
  6191. }
  6192. _ACEOF
  6193. if ac_fn_c_try_link "$LINENO"; then :
  6194. eval $cacheid=yes
  6195. else
  6196. eval $cacheid=no
  6197. fi
  6198. rm -f core conftest.err conftest.$ac_objext \
  6199. conftest$ac_exeext conftest.$ac_ext
  6200. fi
  6201. CFLAGS="$xorg_testset_save_CFLAGS"
  6202. eval supported=\$$cacheid
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6204. $as_echo "$supported" >&6; }
  6205. if test "$supported" = "yes" ; then
  6206. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6207. found="yes"
  6208. fi
  6209. fi
  6210. xorg_testset_save_CFLAGS="$CFLAGS"
  6211. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6212. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6214. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6215. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6216. $as_echo_n "(cached) " >&6
  6217. else
  6218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6219. /* end confdefs.h. */
  6220. int i;
  6221. _ACEOF
  6222. if ac_fn_c_try_compile "$LINENO"; then :
  6223. xorg_cv_cc_flag_unknown_warning_option=yes
  6224. else
  6225. xorg_cv_cc_flag_unknown_warning_option=no
  6226. fi
  6227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6228. fi
  6229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6230. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6231. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6232. CFLAGS="$xorg_testset_save_CFLAGS"
  6233. fi
  6234. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6235. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6236. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6237. fi
  6238. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6240. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6241. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6242. $as_echo_n "(cached) " >&6
  6243. else
  6244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6245. /* end confdefs.h. */
  6246. int i;
  6247. _ACEOF
  6248. if ac_fn_c_try_compile "$LINENO"; then :
  6249. xorg_cv_cc_flag_unused_command_line_argument=yes
  6250. else
  6251. xorg_cv_cc_flag_unused_command_line_argument=no
  6252. fi
  6253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6254. fi
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6256. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6257. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6258. CFLAGS="$xorg_testset_save_CFLAGS"
  6259. fi
  6260. found="no"
  6261. if test $found = "no" ; then
  6262. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6263. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6264. fi
  6265. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6266. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6267. fi
  6268. CFLAGS="$CFLAGS -Werror=missing-braces"
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6270. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6271. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6272. if eval \${$cacheid+:} false; then :
  6273. $as_echo_n "(cached) " >&6
  6274. else
  6275. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6276. /* end confdefs.h. */
  6277. int i;
  6278. int
  6279. main ()
  6280. {
  6281. ;
  6282. return 0;
  6283. }
  6284. _ACEOF
  6285. if ac_fn_c_try_link "$LINENO"; then :
  6286. eval $cacheid=yes
  6287. else
  6288. eval $cacheid=no
  6289. fi
  6290. rm -f core conftest.err conftest.$ac_objext \
  6291. conftest$ac_exeext conftest.$ac_ext
  6292. fi
  6293. CFLAGS="$xorg_testset_save_CFLAGS"
  6294. eval supported=\$$cacheid
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6296. $as_echo "$supported" >&6; }
  6297. if test "$supported" = "yes" ; then
  6298. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6299. found="yes"
  6300. fi
  6301. fi
  6302. xorg_testset_save_CFLAGS="$CFLAGS"
  6303. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6304. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6306. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6307. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6311. /* end confdefs.h. */
  6312. int i;
  6313. _ACEOF
  6314. if ac_fn_c_try_compile "$LINENO"; then :
  6315. xorg_cv_cc_flag_unknown_warning_option=yes
  6316. else
  6317. xorg_cv_cc_flag_unknown_warning_option=no
  6318. fi
  6319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6320. fi
  6321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6322. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6323. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6324. CFLAGS="$xorg_testset_save_CFLAGS"
  6325. fi
  6326. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6327. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6328. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6329. fi
  6330. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6332. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6333. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6334. $as_echo_n "(cached) " >&6
  6335. else
  6336. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6337. /* end confdefs.h. */
  6338. int i;
  6339. _ACEOF
  6340. if ac_fn_c_try_compile "$LINENO"; then :
  6341. xorg_cv_cc_flag_unused_command_line_argument=yes
  6342. else
  6343. xorg_cv_cc_flag_unused_command_line_argument=no
  6344. fi
  6345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6346. fi
  6347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6348. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6349. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6350. CFLAGS="$xorg_testset_save_CFLAGS"
  6351. fi
  6352. found="no"
  6353. if test $found = "no" ; then
  6354. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6355. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6356. fi
  6357. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6358. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6359. fi
  6360. CFLAGS="$CFLAGS -Werror=sequence-point"
  6361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6362. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6363. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6364. if eval \${$cacheid+:} false; then :
  6365. $as_echo_n "(cached) " >&6
  6366. else
  6367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6368. /* end confdefs.h. */
  6369. int i;
  6370. int
  6371. main ()
  6372. {
  6373. ;
  6374. return 0;
  6375. }
  6376. _ACEOF
  6377. if ac_fn_c_try_link "$LINENO"; then :
  6378. eval $cacheid=yes
  6379. else
  6380. eval $cacheid=no
  6381. fi
  6382. rm -f core conftest.err conftest.$ac_objext \
  6383. conftest$ac_exeext conftest.$ac_ext
  6384. fi
  6385. CFLAGS="$xorg_testset_save_CFLAGS"
  6386. eval supported=\$$cacheid
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6388. $as_echo "$supported" >&6; }
  6389. if test "$supported" = "yes" ; then
  6390. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6391. found="yes"
  6392. fi
  6393. fi
  6394. xorg_testset_save_CFLAGS="$CFLAGS"
  6395. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6396. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6398. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6399. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6400. $as_echo_n "(cached) " >&6
  6401. else
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. int i;
  6405. _ACEOF
  6406. if ac_fn_c_try_compile "$LINENO"; then :
  6407. xorg_cv_cc_flag_unknown_warning_option=yes
  6408. else
  6409. xorg_cv_cc_flag_unknown_warning_option=no
  6410. fi
  6411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6412. fi
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6414. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6415. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6416. CFLAGS="$xorg_testset_save_CFLAGS"
  6417. fi
  6418. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6419. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6420. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6421. fi
  6422. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6424. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6425. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6426. $as_echo_n "(cached) " >&6
  6427. else
  6428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6429. /* end confdefs.h. */
  6430. int i;
  6431. _ACEOF
  6432. if ac_fn_c_try_compile "$LINENO"; then :
  6433. xorg_cv_cc_flag_unused_command_line_argument=yes
  6434. else
  6435. xorg_cv_cc_flag_unused_command_line_argument=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6438. fi
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6440. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6441. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6442. CFLAGS="$xorg_testset_save_CFLAGS"
  6443. fi
  6444. found="no"
  6445. if test $found = "no" ; then
  6446. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6447. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6448. fi
  6449. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6450. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6451. fi
  6452. CFLAGS="$CFLAGS -Werror=return-type"
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6454. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6455. cacheid=xorg_cv_cc_flag__Werror_return_type
  6456. if eval \${$cacheid+:} false; then :
  6457. $as_echo_n "(cached) " >&6
  6458. else
  6459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6460. /* end confdefs.h. */
  6461. int i;
  6462. int
  6463. main ()
  6464. {
  6465. ;
  6466. return 0;
  6467. }
  6468. _ACEOF
  6469. if ac_fn_c_try_link "$LINENO"; then :
  6470. eval $cacheid=yes
  6471. else
  6472. eval $cacheid=no
  6473. fi
  6474. rm -f core conftest.err conftest.$ac_objext \
  6475. conftest$ac_exeext conftest.$ac_ext
  6476. fi
  6477. CFLAGS="$xorg_testset_save_CFLAGS"
  6478. eval supported=\$$cacheid
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6480. $as_echo "$supported" >&6; }
  6481. if test "$supported" = "yes" ; then
  6482. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6483. found="yes"
  6484. fi
  6485. fi
  6486. if test $found = "no" ; then
  6487. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6488. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6489. fi
  6490. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6491. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6492. fi
  6493. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6495. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6496. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6497. if eval \${$cacheid+:} false; then :
  6498. $as_echo_n "(cached) " >&6
  6499. else
  6500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6501. /* end confdefs.h. */
  6502. int i;
  6503. int
  6504. main ()
  6505. {
  6506. ;
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. if ac_fn_c_try_link "$LINENO"; then :
  6511. eval $cacheid=yes
  6512. else
  6513. eval $cacheid=no
  6514. fi
  6515. rm -f core conftest.err conftest.$ac_objext \
  6516. conftest$ac_exeext conftest.$ac_ext
  6517. fi
  6518. CFLAGS="$xorg_testset_save_CFLAGS"
  6519. eval supported=\$$cacheid
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6521. $as_echo "$supported" >&6; }
  6522. if test "$supported" = "yes" ; then
  6523. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6524. found="yes"
  6525. fi
  6526. fi
  6527. xorg_testset_save_CFLAGS="$CFLAGS"
  6528. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6529. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6531. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6532. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6533. $as_echo_n "(cached) " >&6
  6534. else
  6535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6536. /* end confdefs.h. */
  6537. int i;
  6538. _ACEOF
  6539. if ac_fn_c_try_compile "$LINENO"; then :
  6540. xorg_cv_cc_flag_unknown_warning_option=yes
  6541. else
  6542. xorg_cv_cc_flag_unknown_warning_option=no
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6545. fi
  6546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6547. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6548. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6549. CFLAGS="$xorg_testset_save_CFLAGS"
  6550. fi
  6551. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6552. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6553. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6554. fi
  6555. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6557. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6558. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6562. /* end confdefs.h. */
  6563. int i;
  6564. _ACEOF
  6565. if ac_fn_c_try_compile "$LINENO"; then :
  6566. xorg_cv_cc_flag_unused_command_line_argument=yes
  6567. else
  6568. xorg_cv_cc_flag_unused_command_line_argument=no
  6569. fi
  6570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6571. fi
  6572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6573. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6574. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6575. CFLAGS="$xorg_testset_save_CFLAGS"
  6576. fi
  6577. found="no"
  6578. if test $found = "no" ; then
  6579. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6580. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6581. fi
  6582. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6583. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6584. fi
  6585. CFLAGS="$CFLAGS -Werror=trigraphs"
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6587. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6588. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6589. if eval \${$cacheid+:} false; then :
  6590. $as_echo_n "(cached) " >&6
  6591. else
  6592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6593. /* end confdefs.h. */
  6594. int i;
  6595. int
  6596. main ()
  6597. {
  6598. ;
  6599. return 0;
  6600. }
  6601. _ACEOF
  6602. if ac_fn_c_try_link "$LINENO"; then :
  6603. eval $cacheid=yes
  6604. else
  6605. eval $cacheid=no
  6606. fi
  6607. rm -f core conftest.err conftest.$ac_objext \
  6608. conftest$ac_exeext conftest.$ac_ext
  6609. fi
  6610. CFLAGS="$xorg_testset_save_CFLAGS"
  6611. eval supported=\$$cacheid
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6613. $as_echo "$supported" >&6; }
  6614. if test "$supported" = "yes" ; then
  6615. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6616. found="yes"
  6617. fi
  6618. fi
  6619. xorg_testset_save_CFLAGS="$CFLAGS"
  6620. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6621. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6623. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6624. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6628. /* end confdefs.h. */
  6629. int i;
  6630. _ACEOF
  6631. if ac_fn_c_try_compile "$LINENO"; then :
  6632. xorg_cv_cc_flag_unknown_warning_option=yes
  6633. else
  6634. xorg_cv_cc_flag_unknown_warning_option=no
  6635. fi
  6636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6637. fi
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6639. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6640. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6641. CFLAGS="$xorg_testset_save_CFLAGS"
  6642. fi
  6643. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6644. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6645. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6646. fi
  6647. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6649. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6650. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6651. $as_echo_n "(cached) " >&6
  6652. else
  6653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6654. /* end confdefs.h. */
  6655. int i;
  6656. _ACEOF
  6657. if ac_fn_c_try_compile "$LINENO"; then :
  6658. xorg_cv_cc_flag_unused_command_line_argument=yes
  6659. else
  6660. xorg_cv_cc_flag_unused_command_line_argument=no
  6661. fi
  6662. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6665. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6666. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6667. CFLAGS="$xorg_testset_save_CFLAGS"
  6668. fi
  6669. found="no"
  6670. if test $found = "no" ; then
  6671. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6672. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6673. fi
  6674. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6675. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6676. fi
  6677. CFLAGS="$CFLAGS -Werror=array-bounds"
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6679. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6680. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6681. if eval \${$cacheid+:} false; then :
  6682. $as_echo_n "(cached) " >&6
  6683. else
  6684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6685. /* end confdefs.h. */
  6686. int i;
  6687. int
  6688. main ()
  6689. {
  6690. ;
  6691. return 0;
  6692. }
  6693. _ACEOF
  6694. if ac_fn_c_try_link "$LINENO"; then :
  6695. eval $cacheid=yes
  6696. else
  6697. eval $cacheid=no
  6698. fi
  6699. rm -f core conftest.err conftest.$ac_objext \
  6700. conftest$ac_exeext conftest.$ac_ext
  6701. fi
  6702. CFLAGS="$xorg_testset_save_CFLAGS"
  6703. eval supported=\$$cacheid
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6705. $as_echo "$supported" >&6; }
  6706. if test "$supported" = "yes" ; then
  6707. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6708. found="yes"
  6709. fi
  6710. fi
  6711. xorg_testset_save_CFLAGS="$CFLAGS"
  6712. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6713. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6715. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6716. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6717. $as_echo_n "(cached) " >&6
  6718. else
  6719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6720. /* end confdefs.h. */
  6721. int i;
  6722. _ACEOF
  6723. if ac_fn_c_try_compile "$LINENO"; then :
  6724. xorg_cv_cc_flag_unknown_warning_option=yes
  6725. else
  6726. xorg_cv_cc_flag_unknown_warning_option=no
  6727. fi
  6728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6729. fi
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6731. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6732. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6733. CFLAGS="$xorg_testset_save_CFLAGS"
  6734. fi
  6735. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6736. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6737. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6738. fi
  6739. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6741. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6742. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6743. $as_echo_n "(cached) " >&6
  6744. else
  6745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6746. /* end confdefs.h. */
  6747. int i;
  6748. _ACEOF
  6749. if ac_fn_c_try_compile "$LINENO"; then :
  6750. xorg_cv_cc_flag_unused_command_line_argument=yes
  6751. else
  6752. xorg_cv_cc_flag_unused_command_line_argument=no
  6753. fi
  6754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6757. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6758. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6759. CFLAGS="$xorg_testset_save_CFLAGS"
  6760. fi
  6761. found="no"
  6762. if test $found = "no" ; then
  6763. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6764. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6765. fi
  6766. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6767. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6768. fi
  6769. CFLAGS="$CFLAGS -Werror=write-strings"
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6771. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6772. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6773. if eval \${$cacheid+:} false; then :
  6774. $as_echo_n "(cached) " >&6
  6775. else
  6776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6777. /* end confdefs.h. */
  6778. int i;
  6779. int
  6780. main ()
  6781. {
  6782. ;
  6783. return 0;
  6784. }
  6785. _ACEOF
  6786. if ac_fn_c_try_link "$LINENO"; then :
  6787. eval $cacheid=yes
  6788. else
  6789. eval $cacheid=no
  6790. fi
  6791. rm -f core conftest.err conftest.$ac_objext \
  6792. conftest$ac_exeext conftest.$ac_ext
  6793. fi
  6794. CFLAGS="$xorg_testset_save_CFLAGS"
  6795. eval supported=\$$cacheid
  6796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6797. $as_echo "$supported" >&6; }
  6798. if test "$supported" = "yes" ; then
  6799. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6800. found="yes"
  6801. fi
  6802. fi
  6803. xorg_testset_save_CFLAGS="$CFLAGS"
  6804. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6805. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6807. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6808. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6812. /* end confdefs.h. */
  6813. int i;
  6814. _ACEOF
  6815. if ac_fn_c_try_compile "$LINENO"; then :
  6816. xorg_cv_cc_flag_unknown_warning_option=yes
  6817. else
  6818. xorg_cv_cc_flag_unknown_warning_option=no
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6821. fi
  6822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6823. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6824. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6825. CFLAGS="$xorg_testset_save_CFLAGS"
  6826. fi
  6827. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6828. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6829. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6830. fi
  6831. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6833. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6834. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6835. $as_echo_n "(cached) " >&6
  6836. else
  6837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6838. /* end confdefs.h. */
  6839. int i;
  6840. _ACEOF
  6841. if ac_fn_c_try_compile "$LINENO"; then :
  6842. xorg_cv_cc_flag_unused_command_line_argument=yes
  6843. else
  6844. xorg_cv_cc_flag_unused_command_line_argument=no
  6845. fi
  6846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6847. fi
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6849. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6850. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6851. CFLAGS="$xorg_testset_save_CFLAGS"
  6852. fi
  6853. found="no"
  6854. if test $found = "no" ; then
  6855. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6856. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6857. fi
  6858. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6859. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6860. fi
  6861. CFLAGS="$CFLAGS -Werror=address"
  6862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6863. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6864. cacheid=xorg_cv_cc_flag__Werror_address
  6865. if eval \${$cacheid+:} false; then :
  6866. $as_echo_n "(cached) " >&6
  6867. else
  6868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6869. /* end confdefs.h. */
  6870. int i;
  6871. int
  6872. main ()
  6873. {
  6874. ;
  6875. return 0;
  6876. }
  6877. _ACEOF
  6878. if ac_fn_c_try_link "$LINENO"; then :
  6879. eval $cacheid=yes
  6880. else
  6881. eval $cacheid=no
  6882. fi
  6883. rm -f core conftest.err conftest.$ac_objext \
  6884. conftest$ac_exeext conftest.$ac_ext
  6885. fi
  6886. CFLAGS="$xorg_testset_save_CFLAGS"
  6887. eval supported=\$$cacheid
  6888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6889. $as_echo "$supported" >&6; }
  6890. if test "$supported" = "yes" ; then
  6891. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6892. found="yes"
  6893. fi
  6894. fi
  6895. xorg_testset_save_CFLAGS="$CFLAGS"
  6896. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6897. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6899. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6900. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6901. $as_echo_n "(cached) " >&6
  6902. else
  6903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6904. /* end confdefs.h. */
  6905. int i;
  6906. _ACEOF
  6907. if ac_fn_c_try_compile "$LINENO"; then :
  6908. xorg_cv_cc_flag_unknown_warning_option=yes
  6909. else
  6910. xorg_cv_cc_flag_unknown_warning_option=no
  6911. fi
  6912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6913. fi
  6914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6915. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6916. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6917. CFLAGS="$xorg_testset_save_CFLAGS"
  6918. fi
  6919. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6920. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6921. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6922. fi
  6923. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6925. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6926. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6930. /* end confdefs.h. */
  6931. int i;
  6932. _ACEOF
  6933. if ac_fn_c_try_compile "$LINENO"; then :
  6934. xorg_cv_cc_flag_unused_command_line_argument=yes
  6935. else
  6936. xorg_cv_cc_flag_unused_command_line_argument=no
  6937. fi
  6938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6939. fi
  6940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6941. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6942. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6943. CFLAGS="$xorg_testset_save_CFLAGS"
  6944. fi
  6945. found="no"
  6946. if test $found = "no" ; then
  6947. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6948. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6949. fi
  6950. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6951. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6952. fi
  6953. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6955. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6956. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6957. if eval \${$cacheid+:} false; then :
  6958. $as_echo_n "(cached) " >&6
  6959. else
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. int i;
  6963. int
  6964. main ()
  6965. {
  6966. ;
  6967. return 0;
  6968. }
  6969. _ACEOF
  6970. if ac_fn_c_try_link "$LINENO"; then :
  6971. eval $cacheid=yes
  6972. else
  6973. eval $cacheid=no
  6974. fi
  6975. rm -f core conftest.err conftest.$ac_objext \
  6976. conftest$ac_exeext conftest.$ac_ext
  6977. fi
  6978. CFLAGS="$xorg_testset_save_CFLAGS"
  6979. eval supported=\$$cacheid
  6980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6981. $as_echo "$supported" >&6; }
  6982. if test "$supported" = "yes" ; then
  6983. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6984. found="yes"
  6985. fi
  6986. fi
  6987. if test $found = "no" ; then
  6988. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6989. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6990. fi
  6991. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6992. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6993. fi
  6994. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6996. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6997. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6998. if eval \${$cacheid+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7002. /* end confdefs.h. */
  7003. int i;
  7004. int
  7005. main ()
  7006. {
  7007. ;
  7008. return 0;
  7009. }
  7010. _ACEOF
  7011. if ac_fn_c_try_link "$LINENO"; then :
  7012. eval $cacheid=yes
  7013. else
  7014. eval $cacheid=no
  7015. fi
  7016. rm -f core conftest.err conftest.$ac_objext \
  7017. conftest$ac_exeext conftest.$ac_ext
  7018. fi
  7019. CFLAGS="$xorg_testset_save_CFLAGS"
  7020. eval supported=\$$cacheid
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7022. $as_echo "$supported" >&6; }
  7023. if test "$supported" = "yes" ; then
  7024. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  7025. found="yes"
  7026. fi
  7027. fi
  7028. xorg_testset_save_CFLAGS="$CFLAGS"
  7029. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7030. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7032. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7033. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7034. $as_echo_n "(cached) " >&6
  7035. else
  7036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7037. /* end confdefs.h. */
  7038. int i;
  7039. _ACEOF
  7040. if ac_fn_c_try_compile "$LINENO"; then :
  7041. xorg_cv_cc_flag_unknown_warning_option=yes
  7042. else
  7043. xorg_cv_cc_flag_unknown_warning_option=no
  7044. fi
  7045. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7046. fi
  7047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7048. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7049. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7050. CFLAGS="$xorg_testset_save_CFLAGS"
  7051. fi
  7052. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7053. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7054. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7055. fi
  7056. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7058. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7059. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7060. $as_echo_n "(cached) " >&6
  7061. else
  7062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7063. /* end confdefs.h. */
  7064. int i;
  7065. _ACEOF
  7066. if ac_fn_c_try_compile "$LINENO"; then :
  7067. xorg_cv_cc_flag_unused_command_line_argument=yes
  7068. else
  7069. xorg_cv_cc_flag_unused_command_line_argument=no
  7070. fi
  7071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7072. fi
  7073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7074. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7075. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7076. CFLAGS="$xorg_testset_save_CFLAGS"
  7077. fi
  7078. found="no"
  7079. if test $found = "no" ; then
  7080. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7081. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7082. fi
  7083. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7084. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7085. fi
  7086. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  7087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  7088. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  7089. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  7090. if eval \${$cacheid+:} false; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7094. /* end confdefs.h. */
  7095. int i;
  7096. int
  7097. main ()
  7098. {
  7099. ;
  7100. return 0;
  7101. }
  7102. _ACEOF
  7103. if ac_fn_c_try_link "$LINENO"; then :
  7104. eval $cacheid=yes
  7105. else
  7106. eval $cacheid=no
  7107. fi
  7108. rm -f core conftest.err conftest.$ac_objext \
  7109. conftest$ac_exeext conftest.$ac_ext
  7110. fi
  7111. CFLAGS="$xorg_testset_save_CFLAGS"
  7112. eval supported=\$$cacheid
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7114. $as_echo "$supported" >&6; }
  7115. if test "$supported" = "yes" ; then
  7116. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  7117. found="yes"
  7118. fi
  7119. fi
  7120. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  7121. else
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
  7123. $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;}
  7124. xorg_testset_save_CFLAGS="$CFLAGS"
  7125. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7126. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7128. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7129. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7130. $as_echo_n "(cached) " >&6
  7131. else
  7132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7133. /* end confdefs.h. */
  7134. int i;
  7135. _ACEOF
  7136. if ac_fn_c_try_compile "$LINENO"; then :
  7137. xorg_cv_cc_flag_unknown_warning_option=yes
  7138. else
  7139. xorg_cv_cc_flag_unknown_warning_option=no
  7140. fi
  7141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7142. fi
  7143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7144. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7145. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7146. CFLAGS="$xorg_testset_save_CFLAGS"
  7147. fi
  7148. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7149. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7150. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7151. fi
  7152. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7154. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7155. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7156. $as_echo_n "(cached) " >&6
  7157. else
  7158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7159. /* end confdefs.h. */
  7160. int i;
  7161. _ACEOF
  7162. if ac_fn_c_try_compile "$LINENO"; then :
  7163. xorg_cv_cc_flag_unused_command_line_argument=yes
  7164. else
  7165. xorg_cv_cc_flag_unused_command_line_argument=no
  7166. fi
  7167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7168. fi
  7169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7170. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7171. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7172. CFLAGS="$xorg_testset_save_CFLAGS"
  7173. fi
  7174. found="no"
  7175. if test $found = "no" ; then
  7176. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7177. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7178. fi
  7179. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7180. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7181. fi
  7182. CFLAGS="$CFLAGS -Wimplicit"
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7184. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7185. cacheid=xorg_cv_cc_flag__Wimplicit
  7186. if eval \${$cacheid+:} false; then :
  7187. $as_echo_n "(cached) " >&6
  7188. else
  7189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7190. /* end confdefs.h. */
  7191. int i;
  7192. int
  7193. main ()
  7194. {
  7195. ;
  7196. return 0;
  7197. }
  7198. _ACEOF
  7199. if ac_fn_c_try_link "$LINENO"; then :
  7200. eval $cacheid=yes
  7201. else
  7202. eval $cacheid=no
  7203. fi
  7204. rm -f core conftest.err conftest.$ac_objext \
  7205. conftest$ac_exeext conftest.$ac_ext
  7206. fi
  7207. CFLAGS="$xorg_testset_save_CFLAGS"
  7208. eval supported=\$$cacheid
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7210. $as_echo "$supported" >&6; }
  7211. if test "$supported" = "yes" ; then
  7212. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7213. found="yes"
  7214. fi
  7215. fi
  7216. xorg_testset_save_CFLAGS="$CFLAGS"
  7217. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7218. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7220. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7221. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7225. /* end confdefs.h. */
  7226. int i;
  7227. _ACEOF
  7228. if ac_fn_c_try_compile "$LINENO"; then :
  7229. xorg_cv_cc_flag_unknown_warning_option=yes
  7230. else
  7231. xorg_cv_cc_flag_unknown_warning_option=no
  7232. fi
  7233. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7236. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7237. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7238. CFLAGS="$xorg_testset_save_CFLAGS"
  7239. fi
  7240. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7241. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7242. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7243. fi
  7244. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7246. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7247. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7248. $as_echo_n "(cached) " >&6
  7249. else
  7250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7251. /* end confdefs.h. */
  7252. int i;
  7253. _ACEOF
  7254. if ac_fn_c_try_compile "$LINENO"; then :
  7255. xorg_cv_cc_flag_unused_command_line_argument=yes
  7256. else
  7257. xorg_cv_cc_flag_unused_command_line_argument=no
  7258. fi
  7259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7260. fi
  7261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7262. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7263. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7264. CFLAGS="$xorg_testset_save_CFLAGS"
  7265. fi
  7266. found="no"
  7267. if test $found = "no" ; then
  7268. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7269. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7270. fi
  7271. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7272. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7273. fi
  7274. CFLAGS="$CFLAGS -Wnonnull"
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7276. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7277. cacheid=xorg_cv_cc_flag__Wnonnull
  7278. if eval \${$cacheid+:} false; then :
  7279. $as_echo_n "(cached) " >&6
  7280. else
  7281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7282. /* end confdefs.h. */
  7283. int i;
  7284. int
  7285. main ()
  7286. {
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. if ac_fn_c_try_link "$LINENO"; then :
  7292. eval $cacheid=yes
  7293. else
  7294. eval $cacheid=no
  7295. fi
  7296. rm -f core conftest.err conftest.$ac_objext \
  7297. conftest$ac_exeext conftest.$ac_ext
  7298. fi
  7299. CFLAGS="$xorg_testset_save_CFLAGS"
  7300. eval supported=\$$cacheid
  7301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7302. $as_echo "$supported" >&6; }
  7303. if test "$supported" = "yes" ; then
  7304. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7305. found="yes"
  7306. fi
  7307. fi
  7308. xorg_testset_save_CFLAGS="$CFLAGS"
  7309. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7310. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7312. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7313. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7314. $as_echo_n "(cached) " >&6
  7315. else
  7316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7317. /* end confdefs.h. */
  7318. int i;
  7319. _ACEOF
  7320. if ac_fn_c_try_compile "$LINENO"; then :
  7321. xorg_cv_cc_flag_unknown_warning_option=yes
  7322. else
  7323. xorg_cv_cc_flag_unknown_warning_option=no
  7324. fi
  7325. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7326. fi
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7328. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7329. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7330. CFLAGS="$xorg_testset_save_CFLAGS"
  7331. fi
  7332. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7333. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7334. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7335. fi
  7336. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7338. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7339. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7340. $as_echo_n "(cached) " >&6
  7341. else
  7342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7343. /* end confdefs.h. */
  7344. int i;
  7345. _ACEOF
  7346. if ac_fn_c_try_compile "$LINENO"; then :
  7347. xorg_cv_cc_flag_unused_command_line_argument=yes
  7348. else
  7349. xorg_cv_cc_flag_unused_command_line_argument=no
  7350. fi
  7351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7352. fi
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7354. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7355. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7356. CFLAGS="$xorg_testset_save_CFLAGS"
  7357. fi
  7358. found="no"
  7359. if test $found = "no" ; then
  7360. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7361. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7362. fi
  7363. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7364. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7365. fi
  7366. CFLAGS="$CFLAGS -Winit-self"
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7368. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7369. cacheid=xorg_cv_cc_flag__Winit_self
  7370. if eval \${$cacheid+:} false; then :
  7371. $as_echo_n "(cached) " >&6
  7372. else
  7373. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7374. /* end confdefs.h. */
  7375. int i;
  7376. int
  7377. main ()
  7378. {
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. if ac_fn_c_try_link "$LINENO"; then :
  7384. eval $cacheid=yes
  7385. else
  7386. eval $cacheid=no
  7387. fi
  7388. rm -f core conftest.err conftest.$ac_objext \
  7389. conftest$ac_exeext conftest.$ac_ext
  7390. fi
  7391. CFLAGS="$xorg_testset_save_CFLAGS"
  7392. eval supported=\$$cacheid
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7394. $as_echo "$supported" >&6; }
  7395. if test "$supported" = "yes" ; then
  7396. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7397. found="yes"
  7398. fi
  7399. fi
  7400. xorg_testset_save_CFLAGS="$CFLAGS"
  7401. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7402. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7404. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7405. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7406. $as_echo_n "(cached) " >&6
  7407. else
  7408. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7409. /* end confdefs.h. */
  7410. int i;
  7411. _ACEOF
  7412. if ac_fn_c_try_compile "$LINENO"; then :
  7413. xorg_cv_cc_flag_unknown_warning_option=yes
  7414. else
  7415. xorg_cv_cc_flag_unknown_warning_option=no
  7416. fi
  7417. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7420. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7421. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7422. CFLAGS="$xorg_testset_save_CFLAGS"
  7423. fi
  7424. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7425. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7426. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7427. fi
  7428. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7430. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7431. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7432. $as_echo_n "(cached) " >&6
  7433. else
  7434. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7435. /* end confdefs.h. */
  7436. int i;
  7437. _ACEOF
  7438. if ac_fn_c_try_compile "$LINENO"; then :
  7439. xorg_cv_cc_flag_unused_command_line_argument=yes
  7440. else
  7441. xorg_cv_cc_flag_unused_command_line_argument=no
  7442. fi
  7443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7446. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7447. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7448. CFLAGS="$xorg_testset_save_CFLAGS"
  7449. fi
  7450. found="no"
  7451. if test $found = "no" ; then
  7452. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7453. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7454. fi
  7455. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7456. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7457. fi
  7458. CFLAGS="$CFLAGS -Wmain"
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7460. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7461. cacheid=xorg_cv_cc_flag__Wmain
  7462. if eval \${$cacheid+:} false; then :
  7463. $as_echo_n "(cached) " >&6
  7464. else
  7465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7466. /* end confdefs.h. */
  7467. int i;
  7468. int
  7469. main ()
  7470. {
  7471. ;
  7472. return 0;
  7473. }
  7474. _ACEOF
  7475. if ac_fn_c_try_link "$LINENO"; then :
  7476. eval $cacheid=yes
  7477. else
  7478. eval $cacheid=no
  7479. fi
  7480. rm -f core conftest.err conftest.$ac_objext \
  7481. conftest$ac_exeext conftest.$ac_ext
  7482. fi
  7483. CFLAGS="$xorg_testset_save_CFLAGS"
  7484. eval supported=\$$cacheid
  7485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7486. $as_echo "$supported" >&6; }
  7487. if test "$supported" = "yes" ; then
  7488. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7489. found="yes"
  7490. fi
  7491. fi
  7492. xorg_testset_save_CFLAGS="$CFLAGS"
  7493. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7494. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7496. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7497. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7498. $as_echo_n "(cached) " >&6
  7499. else
  7500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7501. /* end confdefs.h. */
  7502. int i;
  7503. _ACEOF
  7504. if ac_fn_c_try_compile "$LINENO"; then :
  7505. xorg_cv_cc_flag_unknown_warning_option=yes
  7506. else
  7507. xorg_cv_cc_flag_unknown_warning_option=no
  7508. fi
  7509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7510. fi
  7511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7512. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7513. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7514. CFLAGS="$xorg_testset_save_CFLAGS"
  7515. fi
  7516. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7517. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7518. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7519. fi
  7520. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7522. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7523. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7524. $as_echo_n "(cached) " >&6
  7525. else
  7526. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7527. /* end confdefs.h. */
  7528. int i;
  7529. _ACEOF
  7530. if ac_fn_c_try_compile "$LINENO"; then :
  7531. xorg_cv_cc_flag_unused_command_line_argument=yes
  7532. else
  7533. xorg_cv_cc_flag_unused_command_line_argument=no
  7534. fi
  7535. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7536. fi
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7538. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7539. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7540. CFLAGS="$xorg_testset_save_CFLAGS"
  7541. fi
  7542. found="no"
  7543. if test $found = "no" ; then
  7544. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7545. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7546. fi
  7547. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7548. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7549. fi
  7550. CFLAGS="$CFLAGS -Wmissing-braces"
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7552. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7553. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7554. if eval \${$cacheid+:} false; then :
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7558. /* end confdefs.h. */
  7559. int i;
  7560. int
  7561. main ()
  7562. {
  7563. ;
  7564. return 0;
  7565. }
  7566. _ACEOF
  7567. if ac_fn_c_try_link "$LINENO"; then :
  7568. eval $cacheid=yes
  7569. else
  7570. eval $cacheid=no
  7571. fi
  7572. rm -f core conftest.err conftest.$ac_objext \
  7573. conftest$ac_exeext conftest.$ac_ext
  7574. fi
  7575. CFLAGS="$xorg_testset_save_CFLAGS"
  7576. eval supported=\$$cacheid
  7577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7578. $as_echo "$supported" >&6; }
  7579. if test "$supported" = "yes" ; then
  7580. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7581. found="yes"
  7582. fi
  7583. fi
  7584. xorg_testset_save_CFLAGS="$CFLAGS"
  7585. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7586. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7588. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7589. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7590. $as_echo_n "(cached) " >&6
  7591. else
  7592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7593. /* end confdefs.h. */
  7594. int i;
  7595. _ACEOF
  7596. if ac_fn_c_try_compile "$LINENO"; then :
  7597. xorg_cv_cc_flag_unknown_warning_option=yes
  7598. else
  7599. xorg_cv_cc_flag_unknown_warning_option=no
  7600. fi
  7601. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7602. fi
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7604. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7605. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7606. CFLAGS="$xorg_testset_save_CFLAGS"
  7607. fi
  7608. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7609. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7610. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7611. fi
  7612. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7614. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7615. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7616. $as_echo_n "(cached) " >&6
  7617. else
  7618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7619. /* end confdefs.h. */
  7620. int i;
  7621. _ACEOF
  7622. if ac_fn_c_try_compile "$LINENO"; then :
  7623. xorg_cv_cc_flag_unused_command_line_argument=yes
  7624. else
  7625. xorg_cv_cc_flag_unused_command_line_argument=no
  7626. fi
  7627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7628. fi
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7630. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7631. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7632. CFLAGS="$xorg_testset_save_CFLAGS"
  7633. fi
  7634. found="no"
  7635. if test $found = "no" ; then
  7636. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7637. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7638. fi
  7639. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7640. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7641. fi
  7642. CFLAGS="$CFLAGS -Wsequence-point"
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7644. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7645. cacheid=xorg_cv_cc_flag__Wsequence_point
  7646. if eval \${$cacheid+:} false; then :
  7647. $as_echo_n "(cached) " >&6
  7648. else
  7649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7650. /* end confdefs.h. */
  7651. int i;
  7652. int
  7653. main ()
  7654. {
  7655. ;
  7656. return 0;
  7657. }
  7658. _ACEOF
  7659. if ac_fn_c_try_link "$LINENO"; then :
  7660. eval $cacheid=yes
  7661. else
  7662. eval $cacheid=no
  7663. fi
  7664. rm -f core conftest.err conftest.$ac_objext \
  7665. conftest$ac_exeext conftest.$ac_ext
  7666. fi
  7667. CFLAGS="$xorg_testset_save_CFLAGS"
  7668. eval supported=\$$cacheid
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7670. $as_echo "$supported" >&6; }
  7671. if test "$supported" = "yes" ; then
  7672. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7673. found="yes"
  7674. fi
  7675. fi
  7676. xorg_testset_save_CFLAGS="$CFLAGS"
  7677. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7678. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7680. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7681. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7682. $as_echo_n "(cached) " >&6
  7683. else
  7684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7685. /* end confdefs.h. */
  7686. int i;
  7687. _ACEOF
  7688. if ac_fn_c_try_compile "$LINENO"; then :
  7689. xorg_cv_cc_flag_unknown_warning_option=yes
  7690. else
  7691. xorg_cv_cc_flag_unknown_warning_option=no
  7692. fi
  7693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7696. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7697. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7698. CFLAGS="$xorg_testset_save_CFLAGS"
  7699. fi
  7700. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7701. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7702. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7703. fi
  7704. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7706. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7707. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7708. $as_echo_n "(cached) " >&6
  7709. else
  7710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7711. /* end confdefs.h. */
  7712. int i;
  7713. _ACEOF
  7714. if ac_fn_c_try_compile "$LINENO"; then :
  7715. xorg_cv_cc_flag_unused_command_line_argument=yes
  7716. else
  7717. xorg_cv_cc_flag_unused_command_line_argument=no
  7718. fi
  7719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7720. fi
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7722. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7723. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7724. CFLAGS="$xorg_testset_save_CFLAGS"
  7725. fi
  7726. found="no"
  7727. if test $found = "no" ; then
  7728. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7729. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7730. fi
  7731. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7732. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7733. fi
  7734. CFLAGS="$CFLAGS -Wreturn-type"
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7736. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7737. cacheid=xorg_cv_cc_flag__Wreturn_type
  7738. if eval \${$cacheid+:} false; then :
  7739. $as_echo_n "(cached) " >&6
  7740. else
  7741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7742. /* end confdefs.h. */
  7743. int i;
  7744. int
  7745. main ()
  7746. {
  7747. ;
  7748. return 0;
  7749. }
  7750. _ACEOF
  7751. if ac_fn_c_try_link "$LINENO"; then :
  7752. eval $cacheid=yes
  7753. else
  7754. eval $cacheid=no
  7755. fi
  7756. rm -f core conftest.err conftest.$ac_objext \
  7757. conftest$ac_exeext conftest.$ac_ext
  7758. fi
  7759. CFLAGS="$xorg_testset_save_CFLAGS"
  7760. eval supported=\$$cacheid
  7761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7762. $as_echo "$supported" >&6; }
  7763. if test "$supported" = "yes" ; then
  7764. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7765. found="yes"
  7766. fi
  7767. fi
  7768. xorg_testset_save_CFLAGS="$CFLAGS"
  7769. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7770. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7772. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7773. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7777. /* end confdefs.h. */
  7778. int i;
  7779. _ACEOF
  7780. if ac_fn_c_try_compile "$LINENO"; then :
  7781. xorg_cv_cc_flag_unknown_warning_option=yes
  7782. else
  7783. xorg_cv_cc_flag_unknown_warning_option=no
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7788. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7789. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7790. CFLAGS="$xorg_testset_save_CFLAGS"
  7791. fi
  7792. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7793. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7794. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7795. fi
  7796. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7798. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7799. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7800. $as_echo_n "(cached) " >&6
  7801. else
  7802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7803. /* end confdefs.h. */
  7804. int i;
  7805. _ACEOF
  7806. if ac_fn_c_try_compile "$LINENO"; then :
  7807. xorg_cv_cc_flag_unused_command_line_argument=yes
  7808. else
  7809. xorg_cv_cc_flag_unused_command_line_argument=no
  7810. fi
  7811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7812. fi
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7814. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7815. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7816. CFLAGS="$xorg_testset_save_CFLAGS"
  7817. fi
  7818. found="no"
  7819. if test $found = "no" ; then
  7820. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7821. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7822. fi
  7823. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7824. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7825. fi
  7826. CFLAGS="$CFLAGS -Wtrigraphs"
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7828. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7829. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7830. if eval \${$cacheid+:} false; then :
  7831. $as_echo_n "(cached) " >&6
  7832. else
  7833. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7834. /* end confdefs.h. */
  7835. int i;
  7836. int
  7837. main ()
  7838. {
  7839. ;
  7840. return 0;
  7841. }
  7842. _ACEOF
  7843. if ac_fn_c_try_link "$LINENO"; then :
  7844. eval $cacheid=yes
  7845. else
  7846. eval $cacheid=no
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext \
  7849. conftest$ac_exeext conftest.$ac_ext
  7850. fi
  7851. CFLAGS="$xorg_testset_save_CFLAGS"
  7852. eval supported=\$$cacheid
  7853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7854. $as_echo "$supported" >&6; }
  7855. if test "$supported" = "yes" ; then
  7856. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7857. found="yes"
  7858. fi
  7859. fi
  7860. xorg_testset_save_CFLAGS="$CFLAGS"
  7861. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7862. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7864. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7865. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7866. $as_echo_n "(cached) " >&6
  7867. else
  7868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7869. /* end confdefs.h. */
  7870. int i;
  7871. _ACEOF
  7872. if ac_fn_c_try_compile "$LINENO"; then :
  7873. xorg_cv_cc_flag_unknown_warning_option=yes
  7874. else
  7875. xorg_cv_cc_flag_unknown_warning_option=no
  7876. fi
  7877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7878. fi
  7879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7880. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7881. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7882. CFLAGS="$xorg_testset_save_CFLAGS"
  7883. fi
  7884. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7885. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7886. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7887. fi
  7888. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7890. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7891. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7892. $as_echo_n "(cached) " >&6
  7893. else
  7894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7895. /* end confdefs.h. */
  7896. int i;
  7897. _ACEOF
  7898. if ac_fn_c_try_compile "$LINENO"; then :
  7899. xorg_cv_cc_flag_unused_command_line_argument=yes
  7900. else
  7901. xorg_cv_cc_flag_unused_command_line_argument=no
  7902. fi
  7903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7904. fi
  7905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7906. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7907. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7908. CFLAGS="$xorg_testset_save_CFLAGS"
  7909. fi
  7910. found="no"
  7911. if test $found = "no" ; then
  7912. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7913. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7914. fi
  7915. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7916. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7917. fi
  7918. CFLAGS="$CFLAGS -Warray-bounds"
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7920. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7921. cacheid=xorg_cv_cc_flag__Warray_bounds
  7922. if eval \${$cacheid+:} false; then :
  7923. $as_echo_n "(cached) " >&6
  7924. else
  7925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7926. /* end confdefs.h. */
  7927. int i;
  7928. int
  7929. main ()
  7930. {
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. if ac_fn_c_try_link "$LINENO"; then :
  7936. eval $cacheid=yes
  7937. else
  7938. eval $cacheid=no
  7939. fi
  7940. rm -f core conftest.err conftest.$ac_objext \
  7941. conftest$ac_exeext conftest.$ac_ext
  7942. fi
  7943. CFLAGS="$xorg_testset_save_CFLAGS"
  7944. eval supported=\$$cacheid
  7945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7946. $as_echo "$supported" >&6; }
  7947. if test "$supported" = "yes" ; then
  7948. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7949. found="yes"
  7950. fi
  7951. fi
  7952. xorg_testset_save_CFLAGS="$CFLAGS"
  7953. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7954. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7956. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7957. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7958. $as_echo_n "(cached) " >&6
  7959. else
  7960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7961. /* end confdefs.h. */
  7962. int i;
  7963. _ACEOF
  7964. if ac_fn_c_try_compile "$LINENO"; then :
  7965. xorg_cv_cc_flag_unknown_warning_option=yes
  7966. else
  7967. xorg_cv_cc_flag_unknown_warning_option=no
  7968. fi
  7969. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7970. fi
  7971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7972. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7973. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7974. CFLAGS="$xorg_testset_save_CFLAGS"
  7975. fi
  7976. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7977. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7978. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7979. fi
  7980. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7982. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7983. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7984. $as_echo_n "(cached) " >&6
  7985. else
  7986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7987. /* end confdefs.h. */
  7988. int i;
  7989. _ACEOF
  7990. if ac_fn_c_try_compile "$LINENO"; then :
  7991. xorg_cv_cc_flag_unused_command_line_argument=yes
  7992. else
  7993. xorg_cv_cc_flag_unused_command_line_argument=no
  7994. fi
  7995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7996. fi
  7997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7998. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7999. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8000. CFLAGS="$xorg_testset_save_CFLAGS"
  8001. fi
  8002. found="no"
  8003. if test $found = "no" ; then
  8004. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8005. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8006. fi
  8007. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8008. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8009. fi
  8010. CFLAGS="$CFLAGS -Wwrite-strings"
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  8012. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  8013. cacheid=xorg_cv_cc_flag__Wwrite_strings
  8014. if eval \${$cacheid+:} false; then :
  8015. $as_echo_n "(cached) " >&6
  8016. else
  8017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8018. /* end confdefs.h. */
  8019. int i;
  8020. int
  8021. main ()
  8022. {
  8023. ;
  8024. return 0;
  8025. }
  8026. _ACEOF
  8027. if ac_fn_c_try_link "$LINENO"; then :
  8028. eval $cacheid=yes
  8029. else
  8030. eval $cacheid=no
  8031. fi
  8032. rm -f core conftest.err conftest.$ac_objext \
  8033. conftest$ac_exeext conftest.$ac_ext
  8034. fi
  8035. CFLAGS="$xorg_testset_save_CFLAGS"
  8036. eval supported=\$$cacheid
  8037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8038. $as_echo "$supported" >&6; }
  8039. if test "$supported" = "yes" ; then
  8040. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  8041. found="yes"
  8042. fi
  8043. fi
  8044. xorg_testset_save_CFLAGS="$CFLAGS"
  8045. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8046. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8048. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8049. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8050. $as_echo_n "(cached) " >&6
  8051. else
  8052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8053. /* end confdefs.h. */
  8054. int i;
  8055. _ACEOF
  8056. if ac_fn_c_try_compile "$LINENO"; then :
  8057. xorg_cv_cc_flag_unknown_warning_option=yes
  8058. else
  8059. xorg_cv_cc_flag_unknown_warning_option=no
  8060. fi
  8061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8062. fi
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8064. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8065. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8066. CFLAGS="$xorg_testset_save_CFLAGS"
  8067. fi
  8068. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8069. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8070. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8071. fi
  8072. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8074. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8075. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8076. $as_echo_n "(cached) " >&6
  8077. else
  8078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8079. /* end confdefs.h. */
  8080. int i;
  8081. _ACEOF
  8082. if ac_fn_c_try_compile "$LINENO"; then :
  8083. xorg_cv_cc_flag_unused_command_line_argument=yes
  8084. else
  8085. xorg_cv_cc_flag_unused_command_line_argument=no
  8086. fi
  8087. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8088. fi
  8089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8090. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8091. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8092. CFLAGS="$xorg_testset_save_CFLAGS"
  8093. fi
  8094. found="no"
  8095. if test $found = "no" ; then
  8096. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8097. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8098. fi
  8099. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8100. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8101. fi
  8102. CFLAGS="$CFLAGS -Waddress"
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  8104. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  8105. cacheid=xorg_cv_cc_flag__Waddress
  8106. if eval \${$cacheid+:} false; then :
  8107. $as_echo_n "(cached) " >&6
  8108. else
  8109. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8110. /* end confdefs.h. */
  8111. int i;
  8112. int
  8113. main ()
  8114. {
  8115. ;
  8116. return 0;
  8117. }
  8118. _ACEOF
  8119. if ac_fn_c_try_link "$LINENO"; then :
  8120. eval $cacheid=yes
  8121. else
  8122. eval $cacheid=no
  8123. fi
  8124. rm -f core conftest.err conftest.$ac_objext \
  8125. conftest$ac_exeext conftest.$ac_ext
  8126. fi
  8127. CFLAGS="$xorg_testset_save_CFLAGS"
  8128. eval supported=\$$cacheid
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8130. $as_echo "$supported" >&6; }
  8131. if test "$supported" = "yes" ; then
  8132. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  8133. found="yes"
  8134. fi
  8135. fi
  8136. xorg_testset_save_CFLAGS="$CFLAGS"
  8137. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8138. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8140. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8141. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8142. $as_echo_n "(cached) " >&6
  8143. else
  8144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8145. /* end confdefs.h. */
  8146. int i;
  8147. _ACEOF
  8148. if ac_fn_c_try_compile "$LINENO"; then :
  8149. xorg_cv_cc_flag_unknown_warning_option=yes
  8150. else
  8151. xorg_cv_cc_flag_unknown_warning_option=no
  8152. fi
  8153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8154. fi
  8155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8156. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8157. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8158. CFLAGS="$xorg_testset_save_CFLAGS"
  8159. fi
  8160. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8161. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8162. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8163. fi
  8164. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8166. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8167. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8168. $as_echo_n "(cached) " >&6
  8169. else
  8170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8171. /* end confdefs.h. */
  8172. int i;
  8173. _ACEOF
  8174. if ac_fn_c_try_compile "$LINENO"; then :
  8175. xorg_cv_cc_flag_unused_command_line_argument=yes
  8176. else
  8177. xorg_cv_cc_flag_unused_command_line_argument=no
  8178. fi
  8179. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8180. fi
  8181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8182. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8183. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8184. CFLAGS="$xorg_testset_save_CFLAGS"
  8185. fi
  8186. found="no"
  8187. if test $found = "no" ; then
  8188. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8189. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8190. fi
  8191. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8192. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8193. fi
  8194. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8196. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8197. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8198. if eval \${$cacheid+:} false; then :
  8199. $as_echo_n "(cached) " >&6
  8200. else
  8201. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8202. /* end confdefs.h. */
  8203. int i;
  8204. int
  8205. main ()
  8206. {
  8207. ;
  8208. return 0;
  8209. }
  8210. _ACEOF
  8211. if ac_fn_c_try_link "$LINENO"; then :
  8212. eval $cacheid=yes
  8213. else
  8214. eval $cacheid=no
  8215. fi
  8216. rm -f core conftest.err conftest.$ac_objext \
  8217. conftest$ac_exeext conftest.$ac_ext
  8218. fi
  8219. CFLAGS="$xorg_testset_save_CFLAGS"
  8220. eval supported=\$$cacheid
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8222. $as_echo "$supported" >&6; }
  8223. if test "$supported" = "yes" ; then
  8224. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8225. found="yes"
  8226. fi
  8227. fi
  8228. xorg_testset_save_CFLAGS="$CFLAGS"
  8229. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8230. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8232. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8233. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8234. $as_echo_n "(cached) " >&6
  8235. else
  8236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8237. /* end confdefs.h. */
  8238. int i;
  8239. _ACEOF
  8240. if ac_fn_c_try_compile "$LINENO"; then :
  8241. xorg_cv_cc_flag_unknown_warning_option=yes
  8242. else
  8243. xorg_cv_cc_flag_unknown_warning_option=no
  8244. fi
  8245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8246. fi
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8248. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8249. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8250. CFLAGS="$xorg_testset_save_CFLAGS"
  8251. fi
  8252. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8253. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8254. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8255. fi
  8256. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8258. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8259. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8260. $as_echo_n "(cached) " >&6
  8261. else
  8262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8263. /* end confdefs.h. */
  8264. int i;
  8265. _ACEOF
  8266. if ac_fn_c_try_compile "$LINENO"; then :
  8267. xorg_cv_cc_flag_unused_command_line_argument=yes
  8268. else
  8269. xorg_cv_cc_flag_unused_command_line_argument=no
  8270. fi
  8271. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8272. fi
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8274. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8275. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8276. CFLAGS="$xorg_testset_save_CFLAGS"
  8277. fi
  8278. found="no"
  8279. if test $found = "no" ; then
  8280. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8281. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8282. fi
  8283. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8284. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8285. fi
  8286. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8288. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8289. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8290. if eval \${$cacheid+:} false; then :
  8291. $as_echo_n "(cached) " >&6
  8292. else
  8293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8294. /* end confdefs.h. */
  8295. int i;
  8296. int
  8297. main ()
  8298. {
  8299. ;
  8300. return 0;
  8301. }
  8302. _ACEOF
  8303. if ac_fn_c_try_link "$LINENO"; then :
  8304. eval $cacheid=yes
  8305. else
  8306. eval $cacheid=no
  8307. fi
  8308. rm -f core conftest.err conftest.$ac_objext \
  8309. conftest$ac_exeext conftest.$ac_ext
  8310. fi
  8311. CFLAGS="$xorg_testset_save_CFLAGS"
  8312. eval supported=\$$cacheid
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8314. $as_echo "$supported" >&6; }
  8315. if test "$supported" = "yes" ; then
  8316. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8317. found="yes"
  8318. fi
  8319. fi
  8320. fi
  8321. CWARNFLAGS="$BASE_CFLAGS"
  8322. if test "x$GCC" = xyes ; then
  8323. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8324. fi
  8325. # Check whether --enable-strict-compilation was given.
  8326. if test "${enable_strict_compilation+set}" = set; then :
  8327. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8328. else
  8329. STRICT_COMPILE=no
  8330. fi
  8331. STRICT_CFLAGS=""
  8332. xorg_testset_save_CFLAGS="$CFLAGS"
  8333. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8334. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8336. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8337. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8338. $as_echo_n "(cached) " >&6
  8339. else
  8340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8341. /* end confdefs.h. */
  8342. int i;
  8343. _ACEOF
  8344. if ac_fn_c_try_compile "$LINENO"; then :
  8345. xorg_cv_cc_flag_unknown_warning_option=yes
  8346. else
  8347. xorg_cv_cc_flag_unknown_warning_option=no
  8348. fi
  8349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8350. fi
  8351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8352. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8353. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8354. CFLAGS="$xorg_testset_save_CFLAGS"
  8355. fi
  8356. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8357. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8358. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8359. fi
  8360. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8362. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8363. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8364. $as_echo_n "(cached) " >&6
  8365. else
  8366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8367. /* end confdefs.h. */
  8368. int i;
  8369. _ACEOF
  8370. if ac_fn_c_try_compile "$LINENO"; then :
  8371. xorg_cv_cc_flag_unused_command_line_argument=yes
  8372. else
  8373. xorg_cv_cc_flag_unused_command_line_argument=no
  8374. fi
  8375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8376. fi
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8378. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8379. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8380. CFLAGS="$xorg_testset_save_CFLAGS"
  8381. fi
  8382. found="no"
  8383. if test $found = "no" ; then
  8384. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8385. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8386. fi
  8387. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8388. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8389. fi
  8390. CFLAGS="$CFLAGS -pedantic"
  8391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8392. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8393. cacheid=xorg_cv_cc_flag__pedantic
  8394. if eval \${$cacheid+:} false; then :
  8395. $as_echo_n "(cached) " >&6
  8396. else
  8397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8398. /* end confdefs.h. */
  8399. int i;
  8400. int
  8401. main ()
  8402. {
  8403. ;
  8404. return 0;
  8405. }
  8406. _ACEOF
  8407. if ac_fn_c_try_link "$LINENO"; then :
  8408. eval $cacheid=yes
  8409. else
  8410. eval $cacheid=no
  8411. fi
  8412. rm -f core conftest.err conftest.$ac_objext \
  8413. conftest$ac_exeext conftest.$ac_ext
  8414. fi
  8415. CFLAGS="$xorg_testset_save_CFLAGS"
  8416. eval supported=\$$cacheid
  8417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8418. $as_echo "$supported" >&6; }
  8419. if test "$supported" = "yes" ; then
  8420. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8421. found="yes"
  8422. fi
  8423. fi
  8424. xorg_testset_save_CFLAGS="$CFLAGS"
  8425. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8426. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8428. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8429. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8430. $as_echo_n "(cached) " >&6
  8431. else
  8432. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8433. /* end confdefs.h. */
  8434. int i;
  8435. _ACEOF
  8436. if ac_fn_c_try_compile "$LINENO"; then :
  8437. xorg_cv_cc_flag_unknown_warning_option=yes
  8438. else
  8439. xorg_cv_cc_flag_unknown_warning_option=no
  8440. fi
  8441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8442. fi
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8444. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8445. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8446. CFLAGS="$xorg_testset_save_CFLAGS"
  8447. fi
  8448. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8449. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8450. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8451. fi
  8452. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8454. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8455. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8456. $as_echo_n "(cached) " >&6
  8457. else
  8458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8459. /* end confdefs.h. */
  8460. int i;
  8461. _ACEOF
  8462. if ac_fn_c_try_compile "$LINENO"; then :
  8463. xorg_cv_cc_flag_unused_command_line_argument=yes
  8464. else
  8465. xorg_cv_cc_flag_unused_command_line_argument=no
  8466. fi
  8467. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8468. fi
  8469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8470. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8471. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8472. CFLAGS="$xorg_testset_save_CFLAGS"
  8473. fi
  8474. found="no"
  8475. if test $found = "no" ; then
  8476. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8477. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8478. fi
  8479. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8480. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8481. fi
  8482. CFLAGS="$CFLAGS -Werror"
  8483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8484. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8485. cacheid=xorg_cv_cc_flag__Werror
  8486. if eval \${$cacheid+:} false; then :
  8487. $as_echo_n "(cached) " >&6
  8488. else
  8489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8490. /* end confdefs.h. */
  8491. int i;
  8492. int
  8493. main ()
  8494. {
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. if ac_fn_c_try_link "$LINENO"; then :
  8500. eval $cacheid=yes
  8501. else
  8502. eval $cacheid=no
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext \
  8505. conftest$ac_exeext conftest.$ac_ext
  8506. fi
  8507. CFLAGS="$xorg_testset_save_CFLAGS"
  8508. eval supported=\$$cacheid
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8510. $as_echo "$supported" >&6; }
  8511. if test "$supported" = "yes" ; then
  8512. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8513. found="yes"
  8514. fi
  8515. fi
  8516. if test $found = "no" ; then
  8517. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8518. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8519. fi
  8520. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8521. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8522. fi
  8523. CFLAGS="$CFLAGS -errwarn"
  8524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8525. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8526. cacheid=xorg_cv_cc_flag__errwarn
  8527. if eval \${$cacheid+:} false; then :
  8528. $as_echo_n "(cached) " >&6
  8529. else
  8530. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8531. /* end confdefs.h. */
  8532. int i;
  8533. int
  8534. main ()
  8535. {
  8536. ;
  8537. return 0;
  8538. }
  8539. _ACEOF
  8540. if ac_fn_c_try_link "$LINENO"; then :
  8541. eval $cacheid=yes
  8542. else
  8543. eval $cacheid=no
  8544. fi
  8545. rm -f core conftest.err conftest.$ac_objext \
  8546. conftest$ac_exeext conftest.$ac_ext
  8547. fi
  8548. CFLAGS="$xorg_testset_save_CFLAGS"
  8549. eval supported=\$$cacheid
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8551. $as_echo "$supported" >&6; }
  8552. if test "$supported" = "yes" ; then
  8553. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8554. found="yes"
  8555. fi
  8556. fi
  8557. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8558. # activate it with -Werror, so we add it here explicitly.
  8559. xorg_testset_save_CFLAGS="$CFLAGS"
  8560. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8561. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8563. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8564. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8565. $as_echo_n "(cached) " >&6
  8566. else
  8567. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8568. /* end confdefs.h. */
  8569. int i;
  8570. _ACEOF
  8571. if ac_fn_c_try_compile "$LINENO"; then :
  8572. xorg_cv_cc_flag_unknown_warning_option=yes
  8573. else
  8574. xorg_cv_cc_flag_unknown_warning_option=no
  8575. fi
  8576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8577. fi
  8578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8579. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8580. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8581. CFLAGS="$xorg_testset_save_CFLAGS"
  8582. fi
  8583. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8584. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8585. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8586. fi
  8587. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8589. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8590. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8594. /* end confdefs.h. */
  8595. int i;
  8596. _ACEOF
  8597. if ac_fn_c_try_compile "$LINENO"; then :
  8598. xorg_cv_cc_flag_unused_command_line_argument=yes
  8599. else
  8600. xorg_cv_cc_flag_unused_command_line_argument=no
  8601. fi
  8602. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8603. fi
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8605. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8606. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8607. CFLAGS="$xorg_testset_save_CFLAGS"
  8608. fi
  8609. found="no"
  8610. if test $found = "no" ; then
  8611. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8612. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8613. fi
  8614. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8615. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8616. fi
  8617. CFLAGS="$CFLAGS -Werror=attributes"
  8618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8619. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8620. cacheid=xorg_cv_cc_flag__Werror_attributes
  8621. if eval \${$cacheid+:} false; then :
  8622. $as_echo_n "(cached) " >&6
  8623. else
  8624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8625. /* end confdefs.h. */
  8626. int i;
  8627. int
  8628. main ()
  8629. {
  8630. ;
  8631. return 0;
  8632. }
  8633. _ACEOF
  8634. if ac_fn_c_try_link "$LINENO"; then :
  8635. eval $cacheid=yes
  8636. else
  8637. eval $cacheid=no
  8638. fi
  8639. rm -f core conftest.err conftest.$ac_objext \
  8640. conftest$ac_exeext conftest.$ac_ext
  8641. fi
  8642. CFLAGS="$xorg_testset_save_CFLAGS"
  8643. eval supported=\$$cacheid
  8644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8645. $as_echo "$supported" >&6; }
  8646. if test "$supported" = "yes" ; then
  8647. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8648. found="yes"
  8649. fi
  8650. fi
  8651. if test "x$STRICT_COMPILE" = "xyes"; then
  8652. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8653. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8654. fi
  8655. cat >>confdefs.h <<_ACEOF
  8656. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8657. _ACEOF
  8658. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8659. if test "x$PVM" = "x"; then
  8660. PVM="0"
  8661. fi
  8662. cat >>confdefs.h <<_ACEOF
  8663. #define PACKAGE_VERSION_MINOR $PVM
  8664. _ACEOF
  8665. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8666. if test "x$PVP" = "x"; then
  8667. PVP="0"
  8668. fi
  8669. cat >>confdefs.h <<_ACEOF
  8670. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8671. _ACEOF
  8672. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8673. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8674. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8675. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8676. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8677. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8678. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8679. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8680. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8681. if test x$APP_MAN_SUFFIX = x ; then
  8682. APP_MAN_SUFFIX=1
  8683. fi
  8684. if test x$APP_MAN_DIR = x ; then
  8685. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8686. fi
  8687. if test x$LIB_MAN_SUFFIX = x ; then
  8688. LIB_MAN_SUFFIX=3
  8689. fi
  8690. if test x$LIB_MAN_DIR = x ; then
  8691. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8692. fi
  8693. if test x$FILE_MAN_SUFFIX = x ; then
  8694. case $host_os in
  8695. solaris*) FILE_MAN_SUFFIX=4 ;;
  8696. *) FILE_MAN_SUFFIX=5 ;;
  8697. esac
  8698. fi
  8699. if test x$FILE_MAN_DIR = x ; then
  8700. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8701. fi
  8702. if test x$MISC_MAN_SUFFIX = x ; then
  8703. case $host_os in
  8704. solaris*) MISC_MAN_SUFFIX=5 ;;
  8705. *) MISC_MAN_SUFFIX=7 ;;
  8706. esac
  8707. fi
  8708. if test x$MISC_MAN_DIR = x ; then
  8709. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8710. fi
  8711. if test x$DRIVER_MAN_SUFFIX = x ; then
  8712. case $host_os in
  8713. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8714. *) DRIVER_MAN_SUFFIX=4 ;;
  8715. esac
  8716. fi
  8717. if test x$DRIVER_MAN_DIR = x ; then
  8718. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8719. fi
  8720. if test x$ADMIN_MAN_SUFFIX = x ; then
  8721. case $host_os in
  8722. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8723. *) ADMIN_MAN_SUFFIX=8 ;;
  8724. esac
  8725. fi
  8726. if test x$ADMIN_MAN_DIR = x ; then
  8727. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8728. fi
  8729. XORG_MAN_PAGE="X Version 11"
  8730. MAN_SUBSTS="\
  8731. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8732. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8733. -e 's|__xservername__|Xorg|g' \
  8734. -e 's|__xconfigfile__|xorg.conf|g' \
  8735. -e 's|__projectroot__|\$(prefix)|g' \
  8736. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8737. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8738. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8739. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8740. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8741. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8742. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8743. # Check whether --enable-silent-rules was given.
  8744. if test "${enable_silent_rules+set}" = set; then :
  8745. enableval=$enable_silent_rules;
  8746. fi
  8747. case $enable_silent_rules in # (((
  8748. yes) AM_DEFAULT_VERBOSITY=0;;
  8749. no) AM_DEFAULT_VERBOSITY=1;;
  8750. *) AM_DEFAULT_VERBOSITY=0;;
  8751. esac
  8752. am_make=${MAKE-make}
  8753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8754. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8755. if ${am_cv_make_support_nested_variables+:} false; then :
  8756. $as_echo_n "(cached) " >&6
  8757. else
  8758. if $as_echo 'TRUE=$(BAR$(V))
  8759. BAR0=false
  8760. BAR1=true
  8761. V=1
  8762. am__doit:
  8763. @$(TRUE)
  8764. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8765. am_cv_make_support_nested_variables=yes
  8766. else
  8767. am_cv_make_support_nested_variables=no
  8768. fi
  8769. fi
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8771. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8772. if test $am_cv_make_support_nested_variables = yes; then
  8773. AM_V='$(V)'
  8774. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8775. else
  8776. AM_V=$AM_DEFAULT_VERBOSITY
  8777. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8778. fi
  8779. AM_BACKSLASH='\'
  8780. for ac_func in asprintf
  8781. do :
  8782. ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
  8783. if test "x$ac_cv_func_asprintf" = xyes; then :
  8784. cat >>confdefs.h <<_ACEOF
  8785. #define HAVE_ASPRINTF 1
  8786. _ACEOF
  8787. fi
  8788. done
  8789. # Checks for pkg-config packages
  8790. pkg_failed=no
  8791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBPRINT" >&5
  8792. $as_echo_n "checking for XKBPRINT... " >&6; }
  8793. if test -n "$XKBPRINT_CFLAGS"; then
  8794. pkg_cv_XKBPRINT_CFLAGS="$XKBPRINT_CFLAGS"
  8795. elif test -n "$PKG_CONFIG"; then
  8796. if test -n "$PKG_CONFIG" && \
  8797. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
  8798. ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
  8799. ac_status=$?
  8800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8801. test $ac_status = 0; }; then
  8802. pkg_cv_XKBPRINT_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
  8803. test "x$?" != "x0" && pkg_failed=yes
  8804. else
  8805. pkg_failed=yes
  8806. fi
  8807. else
  8808. pkg_failed=untried
  8809. fi
  8810. if test -n "$XKBPRINT_LIBS"; then
  8811. pkg_cv_XKBPRINT_LIBS="$XKBPRINT_LIBS"
  8812. elif test -n "$PKG_CONFIG"; then
  8813. if test -n "$PKG_CONFIG" && \
  8814. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11 xproto >= 7.0.17\""; } >&5
  8815. ($PKG_CONFIG --exists --print-errors "xkbfile x11 xproto >= 7.0.17") 2>&5
  8816. ac_status=$?
  8817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8818. test $ac_status = 0; }; then
  8819. pkg_cv_XKBPRINT_LIBS=`$PKG_CONFIG --libs "xkbfile x11 xproto >= 7.0.17" 2>/dev/null`
  8820. test "x$?" != "x0" && pkg_failed=yes
  8821. else
  8822. pkg_failed=yes
  8823. fi
  8824. else
  8825. pkg_failed=untried
  8826. fi
  8827. if test $pkg_failed = yes; then
  8828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8829. $as_echo "no" >&6; }
  8830. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8831. _pkg_short_errors_supported=yes
  8832. else
  8833. _pkg_short_errors_supported=no
  8834. fi
  8835. if test $_pkg_short_errors_supported = yes; then
  8836. XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
  8837. else
  8838. XKBPRINT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xkbfile x11 xproto >= 7.0.17" 2>&1`
  8839. fi
  8840. # Put the nasty error message in config.log where it belongs
  8841. echo "$XKBPRINT_PKG_ERRORS" >&5
  8842. as_fn_error $? "Package requirements (xkbfile x11 xproto >= 7.0.17) were not met:
  8843. $XKBPRINT_PKG_ERRORS
  8844. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8845. installed software in a non-standard prefix.
  8846. Alternatively, you may set the environment variables XKBPRINT_CFLAGS
  8847. and XKBPRINT_LIBS to avoid the need to call pkg-config.
  8848. See the pkg-config man page for more details." "$LINENO" 5
  8849. elif test $pkg_failed = untried; then
  8850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8851. $as_echo "no" >&6; }
  8852. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8853. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8854. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8855. is in your PATH or set the PKG_CONFIG environment variable to the full
  8856. path to pkg-config.
  8857. Alternatively, you may set the environment variables XKBPRINT_CFLAGS
  8858. and XKBPRINT_LIBS to avoid the need to call pkg-config.
  8859. See the pkg-config man page for more details.
  8860. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8861. See \`config.log' for more details" "$LINENO" 5; }
  8862. else
  8863. XKBPRINT_CFLAGS=$pkg_cv_XKBPRINT_CFLAGS
  8864. XKBPRINT_LIBS=$pkg_cv_XKBPRINT_LIBS
  8865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8866. $as_echo "yes" >&6; }
  8867. fi
  8868. ac_config_files="$ac_config_files Makefile man/Makefile"
  8869. cat >confcache <<\_ACEOF
  8870. # This file is a shell script that caches the results of configure
  8871. # tests run on this system so they can be shared between configure
  8872. # scripts and configure runs, see configure's option --config-cache.
  8873. # It is not useful on other systems. If it contains results you don't
  8874. # want to keep, you may remove or edit it.
  8875. #
  8876. # config.status only pays attention to the cache file if you give it
  8877. # the --recheck option to rerun configure.
  8878. #
  8879. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8880. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8881. # following values.
  8882. _ACEOF
  8883. # The following way of writing the cache mishandles newlines in values,
  8884. # but we know of no workaround that is simple, portable, and efficient.
  8885. # So, we kill variables containing newlines.
  8886. # Ultrix sh set writes to stderr and can't be redirected directly,
  8887. # and sets the high bit in the cache file unless we assign to the vars.
  8888. (
  8889. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8890. eval ac_val=\$$ac_var
  8891. case $ac_val in #(
  8892. *${as_nl}*)
  8893. case $ac_var in #(
  8894. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8895. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8896. esac
  8897. case $ac_var in #(
  8898. _ | IFS | as_nl) ;; #(
  8899. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8900. *) { eval $ac_var=; unset $ac_var;} ;;
  8901. esac ;;
  8902. esac
  8903. done
  8904. (set) 2>&1 |
  8905. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8906. *${as_nl}ac_space=\ *)
  8907. # `set' does not quote correctly, so add quotes: double-quote
  8908. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8909. sed -n \
  8910. "s/'/'\\\\''/g;
  8911. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8912. ;; #(
  8913. *)
  8914. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8915. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8916. ;;
  8917. esac |
  8918. sort
  8919. ) |
  8920. sed '
  8921. /^ac_cv_env_/b end
  8922. t clear
  8923. :clear
  8924. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8925. t end
  8926. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8927. :end' >>confcache
  8928. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8929. if test -w "$cache_file"; then
  8930. if test "x$cache_file" != "x/dev/null"; then
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8932. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8933. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8934. cat confcache >"$cache_file"
  8935. else
  8936. case $cache_file in #(
  8937. */* | ?:*)
  8938. mv -f confcache "$cache_file"$$ &&
  8939. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8940. *)
  8941. mv -f confcache "$cache_file" ;;
  8942. esac
  8943. fi
  8944. fi
  8945. else
  8946. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8947. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8948. fi
  8949. fi
  8950. rm -f confcache
  8951. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8952. # Let make expand exec_prefix.
  8953. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8954. DEFS=-DHAVE_CONFIG_H
  8955. ac_libobjs=
  8956. ac_ltlibobjs=
  8957. U=
  8958. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8959. # 1. Remove the extension, and $U if already installed.
  8960. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8961. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8962. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8963. # will be set to the directory where LIBOBJS objects are built.
  8964. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8965. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8966. done
  8967. LIBOBJS=$ac_libobjs
  8968. LTLIBOBJS=$ac_ltlibobjs
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  8970. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  8971. if test -n "$am_sleep_pid"; then
  8972. # Hide warnings about reused PIDs.
  8973. wait $am_sleep_pid 2>/dev/null
  8974. fi
  8975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  8976. $as_echo "done" >&6; }
  8977. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  8978. as_fn_error $? "conditional \"AMDEP\" was never defined.
  8979. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8980. fi
  8981. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  8982. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  8983. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  8984. fi
  8985. if test -n "$EXEEXT"; then
  8986. am__EXEEXT_TRUE=
  8987. am__EXEEXT_FALSE='#'
  8988. else
  8989. am__EXEEXT_TRUE='#'
  8990. am__EXEEXT_FALSE=
  8991. fi
  8992. : "${CONFIG_STATUS=./config.status}"
  8993. ac_write_fail=0
  8994. ac_clean_files_save=$ac_clean_files
  8995. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8996. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8997. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8998. as_write_fail=0
  8999. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9000. #! $SHELL
  9001. # Generated by $as_me.
  9002. # Run this file to recreate the current configuration.
  9003. # Compiler output produced by configure, useful for debugging
  9004. # configure, is in config.log if it exists.
  9005. debug=false
  9006. ac_cs_recheck=false
  9007. ac_cs_silent=false
  9008. SHELL=\${CONFIG_SHELL-$SHELL}
  9009. export SHELL
  9010. _ASEOF
  9011. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9012. ## -------------------- ##
  9013. ## M4sh Initialization. ##
  9014. ## -------------------- ##
  9015. # Be more Bourne compatible
  9016. DUALCASE=1; export DUALCASE # for MKS sh
  9017. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9018. emulate sh
  9019. NULLCMD=:
  9020. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9021. # is contrary to our usage. Disable this feature.
  9022. alias -g '${1+"$@"}'='"$@"'
  9023. setopt NO_GLOB_SUBST
  9024. else
  9025. case `(set -o) 2>/dev/null` in #(
  9026. *posix*) :
  9027. set -o posix ;; #(
  9028. *) :
  9029. ;;
  9030. esac
  9031. fi
  9032. as_nl='
  9033. '
  9034. export as_nl
  9035. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9036. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9037. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9038. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9039. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9040. # but without wasting forks for bash or zsh.
  9041. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9042. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9043. as_echo='print -r --'
  9044. as_echo_n='print -rn --'
  9045. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9046. as_echo='printf %s\n'
  9047. as_echo_n='printf %s'
  9048. else
  9049. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9050. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9051. as_echo_n='/usr/ucb/echo -n'
  9052. else
  9053. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9054. as_echo_n_body='eval
  9055. arg=$1;
  9056. case $arg in #(
  9057. *"$as_nl"*)
  9058. expr "X$arg" : "X\\(.*\\)$as_nl";
  9059. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9060. esac;
  9061. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9062. '
  9063. export as_echo_n_body
  9064. as_echo_n='sh -c $as_echo_n_body as_echo'
  9065. fi
  9066. export as_echo_body
  9067. as_echo='sh -c $as_echo_body as_echo'
  9068. fi
  9069. # The user is always right.
  9070. if test "${PATH_SEPARATOR+set}" != set; then
  9071. PATH_SEPARATOR=:
  9072. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9073. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9074. PATH_SEPARATOR=';'
  9075. }
  9076. fi
  9077. # IFS
  9078. # We need space, tab and new line, in precisely that order. Quoting is
  9079. # there to prevent editors from complaining about space-tab.
  9080. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9081. # splitting by setting IFS to empty value.)
  9082. IFS=" "" $as_nl"
  9083. # Find who we are. Look in the path if we contain no directory separator.
  9084. as_myself=
  9085. case $0 in #((
  9086. *[\\/]* ) as_myself=$0 ;;
  9087. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9088. for as_dir in $PATH
  9089. do
  9090. IFS=$as_save_IFS
  9091. test -z "$as_dir" && as_dir=.
  9092. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9093. done
  9094. IFS=$as_save_IFS
  9095. ;;
  9096. esac
  9097. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9098. # in which case we are not to be found in the path.
  9099. if test "x$as_myself" = x; then
  9100. as_myself=$0
  9101. fi
  9102. if test ! -f "$as_myself"; then
  9103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9104. exit 1
  9105. fi
  9106. # Unset variables that we do not need and which cause bugs (e.g. in
  9107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9108. # suppresses any "Segmentation fault" message there. '((' could
  9109. # trigger a bug in pdksh 5.2.14.
  9110. for as_var in BASH_ENV ENV MAIL MAILPATH
  9111. do eval test x\${$as_var+set} = xset \
  9112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9113. done
  9114. PS1='$ '
  9115. PS2='> '
  9116. PS4='+ '
  9117. # NLS nuisances.
  9118. LC_ALL=C
  9119. export LC_ALL
  9120. LANGUAGE=C
  9121. export LANGUAGE
  9122. # CDPATH.
  9123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9124. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9125. # ----------------------------------------
  9126. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9127. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9128. # script with STATUS, using 1 if that was 0.
  9129. as_fn_error ()
  9130. {
  9131. as_status=$1; test $as_status -eq 0 && as_status=1
  9132. if test "$4"; then
  9133. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9134. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9135. fi
  9136. $as_echo "$as_me: error: $2" >&2
  9137. as_fn_exit $as_status
  9138. } # as_fn_error
  9139. # as_fn_set_status STATUS
  9140. # -----------------------
  9141. # Set $? to STATUS, without forking.
  9142. as_fn_set_status ()
  9143. {
  9144. return $1
  9145. } # as_fn_set_status
  9146. # as_fn_exit STATUS
  9147. # -----------------
  9148. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9149. as_fn_exit ()
  9150. {
  9151. set +e
  9152. as_fn_set_status $1
  9153. exit $1
  9154. } # as_fn_exit
  9155. # as_fn_unset VAR
  9156. # ---------------
  9157. # Portably unset VAR.
  9158. as_fn_unset ()
  9159. {
  9160. { eval $1=; unset $1;}
  9161. }
  9162. as_unset=as_fn_unset
  9163. # as_fn_append VAR VALUE
  9164. # ----------------------
  9165. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9166. # advantage of any shell optimizations that allow amortized linear growth over
  9167. # repeated appends, instead of the typical quadratic growth present in naive
  9168. # implementations.
  9169. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9170. eval 'as_fn_append ()
  9171. {
  9172. eval $1+=\$2
  9173. }'
  9174. else
  9175. as_fn_append ()
  9176. {
  9177. eval $1=\$$1\$2
  9178. }
  9179. fi # as_fn_append
  9180. # as_fn_arith ARG...
  9181. # ------------------
  9182. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9183. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9184. # must be portable across $(()) and expr.
  9185. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9186. eval 'as_fn_arith ()
  9187. {
  9188. as_val=$(( $* ))
  9189. }'
  9190. else
  9191. as_fn_arith ()
  9192. {
  9193. as_val=`expr "$@" || test $? -eq 1`
  9194. }
  9195. fi # as_fn_arith
  9196. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9197. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9198. as_expr=expr
  9199. else
  9200. as_expr=false
  9201. fi
  9202. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9203. as_basename=basename
  9204. else
  9205. as_basename=false
  9206. fi
  9207. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9208. as_dirname=dirname
  9209. else
  9210. as_dirname=false
  9211. fi
  9212. as_me=`$as_basename -- "$0" ||
  9213. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9214. X"$0" : 'X\(//\)$' \| \
  9215. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9216. $as_echo X/"$0" |
  9217. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9218. s//\1/
  9219. q
  9220. }
  9221. /^X\/\(\/\/\)$/{
  9222. s//\1/
  9223. q
  9224. }
  9225. /^X\/\(\/\).*/{
  9226. s//\1/
  9227. q
  9228. }
  9229. s/.*/./; q'`
  9230. # Avoid depending upon Character Ranges.
  9231. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9232. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9233. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9234. as_cr_digits='0123456789'
  9235. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9236. ECHO_C= ECHO_N= ECHO_T=
  9237. case `echo -n x` in #(((((
  9238. -n*)
  9239. case `echo 'xy\c'` in
  9240. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9241. xy) ECHO_C='\c';;
  9242. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9243. ECHO_T=' ';;
  9244. esac;;
  9245. *)
  9246. ECHO_N='-n';;
  9247. esac
  9248. rm -f conf$$ conf$$.exe conf$$.file
  9249. if test -d conf$$.dir; then
  9250. rm -f conf$$.dir/conf$$.file
  9251. else
  9252. rm -f conf$$.dir
  9253. mkdir conf$$.dir 2>/dev/null
  9254. fi
  9255. if (echo >conf$$.file) 2>/dev/null; then
  9256. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9257. as_ln_s='ln -s'
  9258. # ... but there are two gotchas:
  9259. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9260. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9261. # In both cases, we have to default to `cp -pR'.
  9262. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9263. as_ln_s='cp -pR'
  9264. elif ln conf$$.file conf$$ 2>/dev/null; then
  9265. as_ln_s=ln
  9266. else
  9267. as_ln_s='cp -pR'
  9268. fi
  9269. else
  9270. as_ln_s='cp -pR'
  9271. fi
  9272. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9273. rmdir conf$$.dir 2>/dev/null
  9274. # as_fn_mkdir_p
  9275. # -------------
  9276. # Create "$as_dir" as a directory, including parents if necessary.
  9277. as_fn_mkdir_p ()
  9278. {
  9279. case $as_dir in #(
  9280. -*) as_dir=./$as_dir;;
  9281. esac
  9282. test -d "$as_dir" || eval $as_mkdir_p || {
  9283. as_dirs=
  9284. while :; do
  9285. case $as_dir in #(
  9286. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9287. *) as_qdir=$as_dir;;
  9288. esac
  9289. as_dirs="'$as_qdir' $as_dirs"
  9290. as_dir=`$as_dirname -- "$as_dir" ||
  9291. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9292. X"$as_dir" : 'X\(//\)[^/]' \| \
  9293. X"$as_dir" : 'X\(//\)$' \| \
  9294. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9295. $as_echo X"$as_dir" |
  9296. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9297. s//\1/
  9298. q
  9299. }
  9300. /^X\(\/\/\)[^/].*/{
  9301. s//\1/
  9302. q
  9303. }
  9304. /^X\(\/\/\)$/{
  9305. s//\1/
  9306. q
  9307. }
  9308. /^X\(\/\).*/{
  9309. s//\1/
  9310. q
  9311. }
  9312. s/.*/./; q'`
  9313. test -d "$as_dir" && break
  9314. done
  9315. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9316. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9317. } # as_fn_mkdir_p
  9318. if mkdir -p . 2>/dev/null; then
  9319. as_mkdir_p='mkdir -p "$as_dir"'
  9320. else
  9321. test -d ./-p && rmdir ./-p
  9322. as_mkdir_p=false
  9323. fi
  9324. # as_fn_executable_p FILE
  9325. # -----------------------
  9326. # Test if FILE is an executable regular file.
  9327. as_fn_executable_p ()
  9328. {
  9329. test -f "$1" && test -x "$1"
  9330. } # as_fn_executable_p
  9331. as_test_x='test -x'
  9332. as_executable_p=as_fn_executable_p
  9333. # Sed expression to map a string onto a valid CPP name.
  9334. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9335. # Sed expression to map a string onto a valid variable name.
  9336. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9337. exec 6>&1
  9338. ## ----------------------------------- ##
  9339. ## Main body of $CONFIG_STATUS script. ##
  9340. ## ----------------------------------- ##
  9341. _ASEOF
  9342. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9344. # Save the log message, to keep $0 and so on meaningful, and to
  9345. # report actual input values of CONFIG_FILES etc. instead of their
  9346. # values after options handling.
  9347. ac_log="
  9348. This file was extended by xkbprint $as_me 1.0.4, which was
  9349. generated by GNU Autoconf 2.69. Invocation command line was
  9350. CONFIG_FILES = $CONFIG_FILES
  9351. CONFIG_HEADERS = $CONFIG_HEADERS
  9352. CONFIG_LINKS = $CONFIG_LINKS
  9353. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9354. $ $0 $@
  9355. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9356. "
  9357. _ACEOF
  9358. case $ac_config_files in *"
  9359. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9360. esac
  9361. case $ac_config_headers in *"
  9362. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9363. esac
  9364. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9365. # Files that config.status was made for.
  9366. config_files="$ac_config_files"
  9367. config_headers="$ac_config_headers"
  9368. config_commands="$ac_config_commands"
  9369. _ACEOF
  9370. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9371. ac_cs_usage="\
  9372. \`$as_me' instantiates files and other configuration actions
  9373. from templates according to the current configuration. Unless the files
  9374. and actions are specified as TAGs, all are instantiated by default.
  9375. Usage: $0 [OPTION]... [TAG]...
  9376. -h, --help print this help, then exit
  9377. -V, --version print version number and configuration settings, then exit
  9378. --config print configuration, then exit
  9379. -q, --quiet, --silent
  9380. do not print progress messages
  9381. -d, --debug don't remove temporary files
  9382. --recheck update $as_me by reconfiguring in the same conditions
  9383. --file=FILE[:TEMPLATE]
  9384. instantiate the configuration file FILE
  9385. --header=FILE[:TEMPLATE]
  9386. instantiate the configuration header FILE
  9387. Configuration files:
  9388. $config_files
  9389. Configuration headers:
  9390. $config_headers
  9391. Configuration commands:
  9392. $config_commands
  9393. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9394. _ACEOF
  9395. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9396. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9397. ac_cs_version="\\
  9398. xkbprint config.status 1.0.4
  9399. configured by $0, generated by GNU Autoconf 2.69,
  9400. with options \\"\$ac_cs_config\\"
  9401. Copyright (C) 2012 Free Software Foundation, Inc.
  9402. This config.status script is free software; the Free Software Foundation
  9403. gives unlimited permission to copy, distribute and modify it."
  9404. ac_pwd='$ac_pwd'
  9405. srcdir='$srcdir'
  9406. INSTALL='$INSTALL'
  9407. MKDIR_P='$MKDIR_P'
  9408. AWK='$AWK'
  9409. test -n "\$AWK" || AWK=awk
  9410. _ACEOF
  9411. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9412. # The default lists apply if the user does not specify any file.
  9413. ac_need_defaults=:
  9414. while test $# != 0
  9415. do
  9416. case $1 in
  9417. --*=?*)
  9418. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9419. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9420. ac_shift=:
  9421. ;;
  9422. --*=)
  9423. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9424. ac_optarg=
  9425. ac_shift=:
  9426. ;;
  9427. *)
  9428. ac_option=$1
  9429. ac_optarg=$2
  9430. ac_shift=shift
  9431. ;;
  9432. esac
  9433. case $ac_option in
  9434. # Handling of the options.
  9435. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9436. ac_cs_recheck=: ;;
  9437. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9438. $as_echo "$ac_cs_version"; exit ;;
  9439. --config | --confi | --conf | --con | --co | --c )
  9440. $as_echo "$ac_cs_config"; exit ;;
  9441. --debug | --debu | --deb | --de | --d | -d )
  9442. debug=: ;;
  9443. --file | --fil | --fi | --f )
  9444. $ac_shift
  9445. case $ac_optarg in
  9446. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9447. '') as_fn_error $? "missing file argument" ;;
  9448. esac
  9449. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9450. ac_need_defaults=false;;
  9451. --header | --heade | --head | --hea )
  9452. $ac_shift
  9453. case $ac_optarg in
  9454. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9455. esac
  9456. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9457. ac_need_defaults=false;;
  9458. --he | --h)
  9459. # Conflict between --help and --header
  9460. as_fn_error $? "ambiguous option: \`$1'
  9461. Try \`$0 --help' for more information.";;
  9462. --help | --hel | -h )
  9463. $as_echo "$ac_cs_usage"; exit ;;
  9464. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9465. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9466. ac_cs_silent=: ;;
  9467. # This is an error.
  9468. -*) as_fn_error $? "unrecognized option: \`$1'
  9469. Try \`$0 --help' for more information." ;;
  9470. *) as_fn_append ac_config_targets " $1"
  9471. ac_need_defaults=false ;;
  9472. esac
  9473. shift
  9474. done
  9475. ac_configure_extra_args=
  9476. if $ac_cs_silent; then
  9477. exec 6>/dev/null
  9478. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9479. fi
  9480. _ACEOF
  9481. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9482. if \$ac_cs_recheck; then
  9483. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9484. shift
  9485. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9486. CONFIG_SHELL='$SHELL'
  9487. export CONFIG_SHELL
  9488. exec "\$@"
  9489. fi
  9490. _ACEOF
  9491. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9492. exec 5>>config.log
  9493. {
  9494. echo
  9495. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9496. ## Running $as_me. ##
  9497. _ASBOX
  9498. $as_echo "$ac_log"
  9499. } >&5
  9500. _ACEOF
  9501. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9502. #
  9503. # INIT-COMMANDS
  9504. #
  9505. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9506. _ACEOF
  9507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9508. # Handling of arguments.
  9509. for ac_config_target in $ac_config_targets
  9510. do
  9511. case $ac_config_target in
  9512. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9513. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9514. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9515. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9516. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9517. esac
  9518. done
  9519. # If the user did not use the arguments to specify the items to instantiate,
  9520. # then the envvar interface is used. Set only those that are not.
  9521. # We use the long form for the default assignment because of an extremely
  9522. # bizarre bug on SunOS 4.1.3.
  9523. if $ac_need_defaults; then
  9524. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9525. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9526. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9527. fi
  9528. # Have a temporary directory for convenience. Make it in the build tree
  9529. # simply because there is no reason against having it here, and in addition,
  9530. # creating and moving files from /tmp can sometimes cause problems.
  9531. # Hook for its removal unless debugging.
  9532. # Note that there is a small window in which the directory will not be cleaned:
  9533. # after its creation but before its name has been assigned to `$tmp'.
  9534. $debug ||
  9535. {
  9536. tmp= ac_tmp=
  9537. trap 'exit_status=$?
  9538. : "${ac_tmp:=$tmp}"
  9539. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9540. ' 0
  9541. trap 'as_fn_exit 1' 1 2 13 15
  9542. }
  9543. # Create a (secure) tmp directory for tmp files.
  9544. {
  9545. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9546. test -d "$tmp"
  9547. } ||
  9548. {
  9549. tmp=./conf$$-$RANDOM
  9550. (umask 077 && mkdir "$tmp")
  9551. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9552. ac_tmp=$tmp
  9553. # Set up the scripts for CONFIG_FILES section.
  9554. # No need to generate them if there are no CONFIG_FILES.
  9555. # This happens for instance with `./config.status config.h'.
  9556. if test -n "$CONFIG_FILES"; then
  9557. ac_cr=`echo X | tr X '\015'`
  9558. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9559. # But we know of no other shell where ac_cr would be empty at this
  9560. # point, so we can use a bashism as a fallback.
  9561. if test "x$ac_cr" = x; then
  9562. eval ac_cr=\$\'\\r\'
  9563. fi
  9564. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9565. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9566. ac_cs_awk_cr='\\r'
  9567. else
  9568. ac_cs_awk_cr=$ac_cr
  9569. fi
  9570. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9571. _ACEOF
  9572. {
  9573. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9574. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9575. echo "_ACEOF"
  9576. } >conf$$subs.sh ||
  9577. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9578. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9579. ac_delim='%!_!# '
  9580. for ac_last_try in false false false false false :; do
  9581. . ./conf$$subs.sh ||
  9582. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9583. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9584. if test $ac_delim_n = $ac_delim_num; then
  9585. break
  9586. elif $ac_last_try; then
  9587. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9588. else
  9589. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9590. fi
  9591. done
  9592. rm -f conf$$subs.sh
  9593. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9594. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9595. _ACEOF
  9596. sed -n '
  9597. h
  9598. s/^/S["/; s/!.*/"]=/
  9599. p
  9600. g
  9601. s/^[^!]*!//
  9602. :repl
  9603. t repl
  9604. s/'"$ac_delim"'$//
  9605. t delim
  9606. :nl
  9607. h
  9608. s/\(.\{148\}\)..*/\1/
  9609. t more1
  9610. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9611. p
  9612. n
  9613. b repl
  9614. :more1
  9615. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9616. p
  9617. g
  9618. s/.\{148\}//
  9619. t nl
  9620. :delim
  9621. h
  9622. s/\(.\{148\}\)..*/\1/
  9623. t more2
  9624. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9625. p
  9626. b
  9627. :more2
  9628. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9629. p
  9630. g
  9631. s/.\{148\}//
  9632. t delim
  9633. ' <conf$$subs.awk | sed '
  9634. /^[^""]/{
  9635. N
  9636. s/\n//
  9637. }
  9638. ' >>$CONFIG_STATUS || ac_write_fail=1
  9639. rm -f conf$$subs.awk
  9640. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9641. _ACAWK
  9642. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9643. for (key in S) S_is_set[key] = 1
  9644. FS = ""
  9645. }
  9646. {
  9647. line = $ 0
  9648. nfields = split(line, field, "@")
  9649. substed = 0
  9650. len = length(field[1])
  9651. for (i = 2; i < nfields; i++) {
  9652. key = field[i]
  9653. keylen = length(key)
  9654. if (S_is_set[key]) {
  9655. value = S[key]
  9656. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9657. len += length(value) + length(field[++i])
  9658. substed = 1
  9659. } else
  9660. len += 1 + keylen
  9661. }
  9662. print line
  9663. }
  9664. _ACAWK
  9665. _ACEOF
  9666. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9667. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9668. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9669. else
  9670. cat
  9671. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9672. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9673. _ACEOF
  9674. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9675. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9676. # trailing colons and then remove the whole line if VPATH becomes empty
  9677. # (actually we leave an empty line to preserve line numbers).
  9678. if test "x$srcdir" = x.; then
  9679. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9680. h
  9681. s///
  9682. s/^/:/
  9683. s/[ ]*$/:/
  9684. s/:\$(srcdir):/:/g
  9685. s/:\${srcdir}:/:/g
  9686. s/:@srcdir@:/:/g
  9687. s/^:*//
  9688. s/:*$//
  9689. x
  9690. s/\(=[ ]*\).*/\1/
  9691. G
  9692. s/\n//
  9693. s/^[^=]*=[ ]*$//
  9694. }'
  9695. fi
  9696. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9697. fi # test -n "$CONFIG_FILES"
  9698. # Set up the scripts for CONFIG_HEADERS section.
  9699. # No need to generate them if there are no CONFIG_HEADERS.
  9700. # This happens for instance with `./config.status Makefile'.
  9701. if test -n "$CONFIG_HEADERS"; then
  9702. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9703. BEGIN {
  9704. _ACEOF
  9705. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9706. # here-document in config.status, that substitutes the proper values into
  9707. # config.h.in to produce config.h.
  9708. # Create a delimiter string that does not exist in confdefs.h, to ease
  9709. # handling of long lines.
  9710. ac_delim='%!_!# '
  9711. for ac_last_try in false false :; do
  9712. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9713. if test -z "$ac_tt"; then
  9714. break
  9715. elif $ac_last_try; then
  9716. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9717. else
  9718. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9719. fi
  9720. done
  9721. # For the awk script, D is an array of macro values keyed by name,
  9722. # likewise P contains macro parameters if any. Preserve backslash
  9723. # newline sequences.
  9724. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9725. sed -n '
  9726. s/.\{148\}/&'"$ac_delim"'/g
  9727. t rset
  9728. :rset
  9729. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9730. t def
  9731. d
  9732. :def
  9733. s/\\$//
  9734. t bsnl
  9735. s/["\\]/\\&/g
  9736. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9737. D["\1"]=" \3"/p
  9738. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9739. d
  9740. :bsnl
  9741. s/["\\]/\\&/g
  9742. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9743. D["\1"]=" \3\\\\\\n"\\/p
  9744. t cont
  9745. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9746. t cont
  9747. d
  9748. :cont
  9749. n
  9750. s/.\{148\}/&'"$ac_delim"'/g
  9751. t clear
  9752. :clear
  9753. s/\\$//
  9754. t bsnlc
  9755. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9756. d
  9757. :bsnlc
  9758. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9759. b cont
  9760. ' <confdefs.h | sed '
  9761. s/'"$ac_delim"'/"\\\
  9762. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9763. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9764. for (key in D) D_is_set[key] = 1
  9765. FS = ""
  9766. }
  9767. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9768. line = \$ 0
  9769. split(line, arg, " ")
  9770. if (arg[1] == "#") {
  9771. defundef = arg[2]
  9772. mac1 = arg[3]
  9773. } else {
  9774. defundef = substr(arg[1], 2)
  9775. mac1 = arg[2]
  9776. }
  9777. split(mac1, mac2, "(") #)
  9778. macro = mac2[1]
  9779. prefix = substr(line, 1, index(line, defundef) - 1)
  9780. if (D_is_set[macro]) {
  9781. # Preserve the white space surrounding the "#".
  9782. print prefix "define", macro P[macro] D[macro]
  9783. next
  9784. } else {
  9785. # Replace #undef with comments. This is necessary, for example,
  9786. # in the case of _POSIX_SOURCE, which is predefined and required
  9787. # on some systems where configure will not decide to define it.
  9788. if (defundef == "undef") {
  9789. print "/*", prefix defundef, macro, "*/"
  9790. next
  9791. }
  9792. }
  9793. }
  9794. { print }
  9795. _ACAWK
  9796. _ACEOF
  9797. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9798. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9799. fi # test -n "$CONFIG_HEADERS"
  9800. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9801. shift
  9802. for ac_tag
  9803. do
  9804. case $ac_tag in
  9805. :[FHLC]) ac_mode=$ac_tag; continue;;
  9806. esac
  9807. case $ac_mode$ac_tag in
  9808. :[FHL]*:*);;
  9809. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9810. :[FH]-) ac_tag=-:-;;
  9811. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9812. esac
  9813. ac_save_IFS=$IFS
  9814. IFS=:
  9815. set x $ac_tag
  9816. IFS=$ac_save_IFS
  9817. shift
  9818. ac_file=$1
  9819. shift
  9820. case $ac_mode in
  9821. :L) ac_source=$1;;
  9822. :[FH])
  9823. ac_file_inputs=
  9824. for ac_f
  9825. do
  9826. case $ac_f in
  9827. -) ac_f="$ac_tmp/stdin";;
  9828. *) # Look for the file first in the build tree, then in the source tree
  9829. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9830. # because $ac_f cannot contain `:'.
  9831. test -f "$ac_f" ||
  9832. case $ac_f in
  9833. [\\/$]*) false;;
  9834. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9835. esac ||
  9836. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9837. esac
  9838. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9839. as_fn_append ac_file_inputs " '$ac_f'"
  9840. done
  9841. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9842. # use $as_me), people would be surprised to read:
  9843. # /* config.h. Generated by config.status. */
  9844. configure_input='Generated from '`
  9845. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9846. `' by configure.'
  9847. if test x"$ac_file" != x-; then
  9848. configure_input="$ac_file. $configure_input"
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9850. $as_echo "$as_me: creating $ac_file" >&6;}
  9851. fi
  9852. # Neutralize special characters interpreted by sed in replacement strings.
  9853. case $configure_input in #(
  9854. *\&* | *\|* | *\\* )
  9855. ac_sed_conf_input=`$as_echo "$configure_input" |
  9856. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9857. *) ac_sed_conf_input=$configure_input;;
  9858. esac
  9859. case $ac_tag in
  9860. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9861. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9862. esac
  9863. ;;
  9864. esac
  9865. ac_dir=`$as_dirname -- "$ac_file" ||
  9866. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9867. X"$ac_file" : 'X\(//\)[^/]' \| \
  9868. X"$ac_file" : 'X\(//\)$' \| \
  9869. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9870. $as_echo X"$ac_file" |
  9871. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9872. s//\1/
  9873. q
  9874. }
  9875. /^X\(\/\/\)[^/].*/{
  9876. s//\1/
  9877. q
  9878. }
  9879. /^X\(\/\/\)$/{
  9880. s//\1/
  9881. q
  9882. }
  9883. /^X\(\/\).*/{
  9884. s//\1/
  9885. q
  9886. }
  9887. s/.*/./; q'`
  9888. as_dir="$ac_dir"; as_fn_mkdir_p
  9889. ac_builddir=.
  9890. case "$ac_dir" in
  9891. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9892. *)
  9893. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9894. # A ".." for each directory in $ac_dir_suffix.
  9895. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9896. case $ac_top_builddir_sub in
  9897. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9898. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9899. esac ;;
  9900. esac
  9901. ac_abs_top_builddir=$ac_pwd
  9902. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9903. # for backward compatibility:
  9904. ac_top_builddir=$ac_top_build_prefix
  9905. case $srcdir in
  9906. .) # We are building in place.
  9907. ac_srcdir=.
  9908. ac_top_srcdir=$ac_top_builddir_sub
  9909. ac_abs_top_srcdir=$ac_pwd ;;
  9910. [\\/]* | ?:[\\/]* ) # Absolute name.
  9911. ac_srcdir=$srcdir$ac_dir_suffix;
  9912. ac_top_srcdir=$srcdir
  9913. ac_abs_top_srcdir=$srcdir ;;
  9914. *) # Relative name.
  9915. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9916. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9917. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9918. esac
  9919. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9920. case $ac_mode in
  9921. :F)
  9922. #
  9923. # CONFIG_FILE
  9924. #
  9925. case $INSTALL in
  9926. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9927. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9928. esac
  9929. ac_MKDIR_P=$MKDIR_P
  9930. case $MKDIR_P in
  9931. [\\/$]* | ?:[\\/]* ) ;;
  9932. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9933. esac
  9934. _ACEOF
  9935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9936. # If the template does not know about datarootdir, expand it.
  9937. # FIXME: This hack should be removed a few years after 2.60.
  9938. ac_datarootdir_hack=; ac_datarootdir_seen=
  9939. ac_sed_dataroot='
  9940. /datarootdir/ {
  9941. p
  9942. q
  9943. }
  9944. /@datadir@/p
  9945. /@docdir@/p
  9946. /@infodir@/p
  9947. /@localedir@/p
  9948. /@mandir@/p'
  9949. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9950. *datarootdir*) ac_datarootdir_seen=yes;;
  9951. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9953. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9954. _ACEOF
  9955. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9956. ac_datarootdir_hack='
  9957. s&@datadir@&$datadir&g
  9958. s&@docdir@&$docdir&g
  9959. s&@infodir@&$infodir&g
  9960. s&@localedir@&$localedir&g
  9961. s&@mandir@&$mandir&g
  9962. s&\\\${datarootdir}&$datarootdir&g' ;;
  9963. esac
  9964. _ACEOF
  9965. # Neutralize VPATH when `$srcdir' = `.'.
  9966. # Shell code in configure.ac might set extrasub.
  9967. # FIXME: do we really want to maintain this feature?
  9968. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9969. ac_sed_extra="$ac_vpsub
  9970. $extrasub
  9971. _ACEOF
  9972. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9973. :t
  9974. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9975. s|@configure_input@|$ac_sed_conf_input|;t t
  9976. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9977. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9978. s&@srcdir@&$ac_srcdir&;t t
  9979. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9980. s&@top_srcdir@&$ac_top_srcdir&;t t
  9981. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9982. s&@builddir@&$ac_builddir&;t t
  9983. s&@abs_builddir@&$ac_abs_builddir&;t t
  9984. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9985. s&@INSTALL@&$ac_INSTALL&;t t
  9986. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  9987. $ac_datarootdir_hack
  9988. "
  9989. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9990. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9991. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9992. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9993. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9994. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9996. which seems to be undefined. Please make sure it is defined" >&5
  9997. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9998. which seems to be undefined. Please make sure it is defined" >&2;}
  9999. rm -f "$ac_tmp/stdin"
  10000. case $ac_file in
  10001. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10002. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10003. esac \
  10004. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10005. ;;
  10006. :H)
  10007. #
  10008. # CONFIG_HEADER
  10009. #
  10010. if test x"$ac_file" != x-; then
  10011. {
  10012. $as_echo "/* $configure_input */" \
  10013. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10014. } >"$ac_tmp/config.h" \
  10015. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10016. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10017. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10018. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10019. else
  10020. rm -f "$ac_file"
  10021. mv "$ac_tmp/config.h" "$ac_file" \
  10022. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10023. fi
  10024. else
  10025. $as_echo "/* $configure_input */" \
  10026. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10027. || as_fn_error $? "could not create -" "$LINENO" 5
  10028. fi
  10029. # Compute "$ac_file"'s index in $config_headers.
  10030. _am_arg="$ac_file"
  10031. _am_stamp_count=1
  10032. for _am_header in $config_headers :; do
  10033. case $_am_header in
  10034. $_am_arg | $_am_arg:* )
  10035. break ;;
  10036. * )
  10037. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10038. esac
  10039. done
  10040. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10041. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10042. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10043. X"$_am_arg" : 'X\(//\)$' \| \
  10044. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10045. $as_echo X"$_am_arg" |
  10046. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10047. s//\1/
  10048. q
  10049. }
  10050. /^X\(\/\/\)[^/].*/{
  10051. s//\1/
  10052. q
  10053. }
  10054. /^X\(\/\/\)$/{
  10055. s//\1/
  10056. q
  10057. }
  10058. /^X\(\/\).*/{
  10059. s//\1/
  10060. q
  10061. }
  10062. s/.*/./; q'`/stamp-h$_am_stamp_count
  10063. ;;
  10064. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10065. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10066. ;;
  10067. esac
  10068. case $ac_file$ac_mode in
  10069. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10070. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10071. # are listed without --file. Let's play safe and only enable the eval
  10072. # if we detect the quoting.
  10073. case $CONFIG_FILES in
  10074. *\'*) eval set x "$CONFIG_FILES" ;;
  10075. *) set x $CONFIG_FILES ;;
  10076. esac
  10077. shift
  10078. for mf
  10079. do
  10080. # Strip MF so we end up with the name of the file.
  10081. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10082. # Check whether this is an Automake generated Makefile or not.
  10083. # We used to match only the files named 'Makefile.in', but
  10084. # some people rename them; so instead we look at the file content.
  10085. # Grep'ing the first line is not enough: some people post-process
  10086. # each Makefile.in and add a new line on top of each file to say so.
  10087. # Grep'ing the whole file is not good either: AIX grep has a line
  10088. # limit of 2048, but all sed's we know have understand at least 4000.
  10089. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10090. dirpart=`$as_dirname -- "$mf" ||
  10091. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10092. X"$mf" : 'X\(//\)[^/]' \| \
  10093. X"$mf" : 'X\(//\)$' \| \
  10094. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10095. $as_echo X"$mf" |
  10096. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10097. s//\1/
  10098. q
  10099. }
  10100. /^X\(\/\/\)[^/].*/{
  10101. s//\1/
  10102. q
  10103. }
  10104. /^X\(\/\/\)$/{
  10105. s//\1/
  10106. q
  10107. }
  10108. /^X\(\/\).*/{
  10109. s//\1/
  10110. q
  10111. }
  10112. s/.*/./; q'`
  10113. else
  10114. continue
  10115. fi
  10116. # Extract the definition of DEPDIR, am__include, and am__quote
  10117. # from the Makefile without running 'make'.
  10118. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10119. test -z "$DEPDIR" && continue
  10120. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10121. test -z "am__include" && continue
  10122. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10123. # Find all dependency output files, they are included files with
  10124. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10125. # simplest approach to changing $(DEPDIR) to its actual value in the
  10126. # expansion.
  10127. for file in `sed -n "
  10128. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10129. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10130. # Make sure the directory exists.
  10131. test -f "$dirpart/$file" && continue
  10132. fdir=`$as_dirname -- "$file" ||
  10133. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10134. X"$file" : 'X\(//\)[^/]' \| \
  10135. X"$file" : 'X\(//\)$' \| \
  10136. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10137. $as_echo X"$file" |
  10138. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10139. s//\1/
  10140. q
  10141. }
  10142. /^X\(\/\/\)[^/].*/{
  10143. s//\1/
  10144. q
  10145. }
  10146. /^X\(\/\/\)$/{
  10147. s//\1/
  10148. q
  10149. }
  10150. /^X\(\/\).*/{
  10151. s//\1/
  10152. q
  10153. }
  10154. s/.*/./; q'`
  10155. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10156. # echo "creating $dirpart/$file"
  10157. echo '# dummy' > "$dirpart/$file"
  10158. done
  10159. done
  10160. }
  10161. ;;
  10162. esac
  10163. done # for ac_tag
  10164. as_fn_exit 0
  10165. _ACEOF
  10166. ac_clean_files=$ac_clean_files_save
  10167. test $ac_write_fail = 0 ||
  10168. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10169. # configure is writing to config.log, and then calls config.status.
  10170. # config.status does its own redirection, appending to config.log.
  10171. # Unfortunately, on DOS this fails, as config.log is still kept open
  10172. # by configure, so config.status won't be able to write to it; its
  10173. # output is simply discarded. So we exec the FD to /dev/null,
  10174. # effectively closing config.log, so it can be properly (re)opened and
  10175. # appended to by config.status. When coming back to configure, we
  10176. # need to make the FD available again.
  10177. if test "$no_create" != yes; then
  10178. ac_cs_success=:
  10179. ac_config_status_args=
  10180. test "$silent" = yes &&
  10181. ac_config_status_args="$ac_config_status_args --quiet"
  10182. exec 5>/dev/null
  10183. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10184. exec 5>>config.log
  10185. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10186. # would make configure fail if this is the last instruction.
  10187. $ac_cs_success || as_fn_exit 1
  10188. fi
  10189. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10191. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10192. fi