configure 338 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for xgc 1.0.5.
  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='xgc'
  535. PACKAGE_TARNAME='xgc'
  536. PACKAGE_VERSION='1.0.5'
  537. PACKAGE_STRING='xgc 1.0.5'
  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. appdefaultdir
  581. XGC_LIBS
  582. XGC_CFLAGS
  583. YACC_INST
  584. YFLAGS
  585. YACC
  586. LEXLIB
  587. LEX_OUTPUT_ROOT
  588. LEX
  589. AM_BACKSLASH
  590. AM_DEFAULT_VERBOSITY
  591. AM_DEFAULT_V
  592. AM_V
  593. MAN_SUBSTS
  594. XORG_MAN_PAGE
  595. ADMIN_MAN_DIR
  596. DRIVER_MAN_DIR
  597. MISC_MAN_DIR
  598. FILE_MAN_DIR
  599. LIB_MAN_DIR
  600. APP_MAN_DIR
  601. ADMIN_MAN_SUFFIX
  602. DRIVER_MAN_SUFFIX
  603. MISC_MAN_SUFFIX
  604. FILE_MAN_SUFFIX
  605. LIB_MAN_SUFFIX
  606. APP_MAN_SUFFIX
  607. SED
  608. host_os
  609. host_vendor
  610. host_cpu
  611. host
  612. build_os
  613. build_vendor
  614. build_cpu
  615. build
  616. INSTALL_CMD
  617. PKG_CONFIG_LIBDIR
  618. PKG_CONFIG_PATH
  619. PKG_CONFIG
  620. CHANGELOG_CMD
  621. STRICT_CFLAGS
  622. CWARNFLAGS
  623. BASE_CFLAGS
  624. EGREP
  625. GREP
  626. CPP
  627. am__fastdepCC_FALSE
  628. am__fastdepCC_TRUE
  629. CCDEPMODE
  630. am__nodep
  631. AMDEPBACKSLASH
  632. AMDEP_FALSE
  633. AMDEP_TRUE
  634. am__quote
  635. am__include
  636. DEPDIR
  637. OBJEXT
  638. EXEEXT
  639. ac_ct_CC
  640. CPPFLAGS
  641. LDFLAGS
  642. CFLAGS
  643. CC
  644. am__untar
  645. am__tar
  646. AMTAR
  647. am__leading_dot
  648. SET_MAKE
  649. AWK
  650. mkdir_p
  651. MKDIR_P
  652. INSTALL_STRIP_PROGRAM
  653. STRIP
  654. install_sh
  655. MAKEINFO
  656. AUTOHEADER
  657. AUTOMAKE
  658. AUTOCONF
  659. ACLOCAL
  660. VERSION
  661. PACKAGE
  662. CYGPATH_W
  663. am__isrc
  664. INSTALL_DATA
  665. INSTALL_SCRIPT
  666. INSTALL_PROGRAM
  667. target_alias
  668. host_alias
  669. build_alias
  670. LIBS
  671. ECHO_T
  672. ECHO_N
  673. ECHO_C
  674. DEFS
  675. mandir
  676. localedir
  677. libdir
  678. psdir
  679. pdfdir
  680. dvidir
  681. htmldir
  682. infodir
  683. docdir
  684. oldincludedir
  685. includedir
  686. localstatedir
  687. sharedstatedir
  688. sysconfdir
  689. datadir
  690. datarootdir
  691. libexecdir
  692. sbindir
  693. bindir
  694. program_transform_name
  695. prefix
  696. exec_prefix
  697. PACKAGE_URL
  698. PACKAGE_BUGREPORT
  699. PACKAGE_STRING
  700. PACKAGE_VERSION
  701. PACKAGE_TARNAME
  702. PACKAGE_NAME
  703. PATH_SEPARATOR
  704. SHELL'
  705. ac_subst_files=''
  706. ac_user_opts='
  707. enable_option_checking
  708. enable_dependency_tracking
  709. enable_selective_werror
  710. enable_strict_compilation
  711. enable_silent_rules
  712. with_appdefaultdir
  713. '
  714. ac_precious_vars='build_alias
  715. host_alias
  716. target_alias
  717. CC
  718. CFLAGS
  719. LDFLAGS
  720. LIBS
  721. CPPFLAGS
  722. CPP
  723. PKG_CONFIG
  724. PKG_CONFIG_PATH
  725. PKG_CONFIG_LIBDIR
  726. YACC
  727. YFLAGS
  728. XGC_CFLAGS
  729. XGC_LIBS'
  730. # Initialize some variables set by options.
  731. ac_init_help=
  732. ac_init_version=false
  733. ac_unrecognized_opts=
  734. ac_unrecognized_sep=
  735. # The variables have the same names as the options, with
  736. # dashes changed to underlines.
  737. cache_file=/dev/null
  738. exec_prefix=NONE
  739. no_create=
  740. no_recursion=
  741. prefix=NONE
  742. program_prefix=NONE
  743. program_suffix=NONE
  744. program_transform_name=s,x,x,
  745. silent=
  746. site=
  747. srcdir=
  748. verbose=
  749. x_includes=NONE
  750. x_libraries=NONE
  751. # Installation directory options.
  752. # These are left unexpanded so users can "make install exec_prefix=/foo"
  753. # and all the variables that are supposed to be based on exec_prefix
  754. # by default will actually change.
  755. # Use braces instead of parens because sh, perl, etc. also accept them.
  756. # (The list follows the same order as the GNU Coding Standards.)
  757. bindir='${exec_prefix}/bin'
  758. sbindir='${exec_prefix}/sbin'
  759. libexecdir='${exec_prefix}/libexec'
  760. datarootdir='${prefix}/share'
  761. datadir='${datarootdir}'
  762. sysconfdir='${prefix}/etc'
  763. sharedstatedir='${prefix}/com'
  764. localstatedir='${prefix}/var'
  765. includedir='${prefix}/include'
  766. oldincludedir='/usr/include'
  767. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  768. infodir='${datarootdir}/info'
  769. htmldir='${docdir}'
  770. dvidir='${docdir}'
  771. pdfdir='${docdir}'
  772. psdir='${docdir}'
  773. libdir='${exec_prefix}/lib'
  774. localedir='${datarootdir}/locale'
  775. mandir='${datarootdir}/man'
  776. ac_prev=
  777. ac_dashdash=
  778. for ac_option
  779. do
  780. # If the previous option needs an argument, assign it.
  781. if test -n "$ac_prev"; then
  782. eval $ac_prev=\$ac_option
  783. ac_prev=
  784. continue
  785. fi
  786. case $ac_option in
  787. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  788. *=) ac_optarg= ;;
  789. *) ac_optarg=yes ;;
  790. esac
  791. # Accept the important Cygnus configure options, so we can diagnose typos.
  792. case $ac_dashdash$ac_option in
  793. --)
  794. ac_dashdash=yes ;;
  795. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  796. ac_prev=bindir ;;
  797. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  798. bindir=$ac_optarg ;;
  799. -build | --build | --buil | --bui | --bu)
  800. ac_prev=build_alias ;;
  801. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  802. build_alias=$ac_optarg ;;
  803. -cache-file | --cache-file | --cache-fil | --cache-fi \
  804. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  805. ac_prev=cache_file ;;
  806. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  807. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  808. cache_file=$ac_optarg ;;
  809. --config-cache | -C)
  810. cache_file=config.cache ;;
  811. -datadir | --datadir | --datadi | --datad)
  812. ac_prev=datadir ;;
  813. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  814. datadir=$ac_optarg ;;
  815. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  816. | --dataroo | --dataro | --datar)
  817. ac_prev=datarootdir ;;
  818. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  819. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  820. datarootdir=$ac_optarg ;;
  821. -disable-* | --disable-*)
  822. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  823. # Reject names that are not valid shell variable names.
  824. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  825. as_fn_error $? "invalid feature name: $ac_useropt"
  826. ac_useropt_orig=$ac_useropt
  827. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  828. case $ac_user_opts in
  829. *"
  830. "enable_$ac_useropt"
  831. "*) ;;
  832. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  833. ac_unrecognized_sep=', ';;
  834. esac
  835. eval enable_$ac_useropt=no ;;
  836. -docdir | --docdir | --docdi | --doc | --do)
  837. ac_prev=docdir ;;
  838. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  839. docdir=$ac_optarg ;;
  840. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  841. ac_prev=dvidir ;;
  842. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  843. dvidir=$ac_optarg ;;
  844. -enable-* | --enable-*)
  845. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  846. # Reject names that are not valid shell variable names.
  847. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  848. as_fn_error $? "invalid feature name: $ac_useropt"
  849. ac_useropt_orig=$ac_useropt
  850. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  851. case $ac_user_opts in
  852. *"
  853. "enable_$ac_useropt"
  854. "*) ;;
  855. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  856. ac_unrecognized_sep=', ';;
  857. esac
  858. eval enable_$ac_useropt=\$ac_optarg ;;
  859. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  860. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  861. | --exec | --exe | --ex)
  862. ac_prev=exec_prefix ;;
  863. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  864. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  865. | --exec=* | --exe=* | --ex=*)
  866. exec_prefix=$ac_optarg ;;
  867. -gas | --gas | --ga | --g)
  868. # Obsolete; use --with-gas.
  869. with_gas=yes ;;
  870. -help | --help | --hel | --he | -h)
  871. ac_init_help=long ;;
  872. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  873. ac_init_help=recursive ;;
  874. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  875. ac_init_help=short ;;
  876. -host | --host | --hos | --ho)
  877. ac_prev=host_alias ;;
  878. -host=* | --host=* | --hos=* | --ho=*)
  879. host_alias=$ac_optarg ;;
  880. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  881. ac_prev=htmldir ;;
  882. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  883. | --ht=*)
  884. htmldir=$ac_optarg ;;
  885. -includedir | --includedir | --includedi | --included | --include \
  886. | --includ | --inclu | --incl | --inc)
  887. ac_prev=includedir ;;
  888. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  889. | --includ=* | --inclu=* | --incl=* | --inc=*)
  890. includedir=$ac_optarg ;;
  891. -infodir | --infodir | --infodi | --infod | --info | --inf)
  892. ac_prev=infodir ;;
  893. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  894. infodir=$ac_optarg ;;
  895. -libdir | --libdir | --libdi | --libd)
  896. ac_prev=libdir ;;
  897. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  898. libdir=$ac_optarg ;;
  899. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  900. | --libexe | --libex | --libe)
  901. ac_prev=libexecdir ;;
  902. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  903. | --libexe=* | --libex=* | --libe=*)
  904. libexecdir=$ac_optarg ;;
  905. -localedir | --localedir | --localedi | --localed | --locale)
  906. ac_prev=localedir ;;
  907. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  908. localedir=$ac_optarg ;;
  909. -localstatedir | --localstatedir | --localstatedi | --localstated \
  910. | --localstate | --localstat | --localsta | --localst | --locals)
  911. ac_prev=localstatedir ;;
  912. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  913. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  914. localstatedir=$ac_optarg ;;
  915. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  916. ac_prev=mandir ;;
  917. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  918. mandir=$ac_optarg ;;
  919. -nfp | --nfp | --nf)
  920. # Obsolete; use --without-fp.
  921. with_fp=no ;;
  922. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  923. | --no-cr | --no-c | -n)
  924. no_create=yes ;;
  925. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  926. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  927. no_recursion=yes ;;
  928. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  929. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  930. | --oldin | --oldi | --old | --ol | --o)
  931. ac_prev=oldincludedir ;;
  932. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  933. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  934. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  935. oldincludedir=$ac_optarg ;;
  936. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  937. ac_prev=prefix ;;
  938. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  939. prefix=$ac_optarg ;;
  940. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  941. | --program-pre | --program-pr | --program-p)
  942. ac_prev=program_prefix ;;
  943. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  944. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  945. program_prefix=$ac_optarg ;;
  946. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  947. | --program-suf | --program-su | --program-s)
  948. ac_prev=program_suffix ;;
  949. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  950. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  951. program_suffix=$ac_optarg ;;
  952. -program-transform-name | --program-transform-name \
  953. | --program-transform-nam | --program-transform-na \
  954. | --program-transform-n | --program-transform- \
  955. | --program-transform | --program-transfor \
  956. | --program-transfo | --program-transf \
  957. | --program-trans | --program-tran \
  958. | --progr-tra | --program-tr | --program-t)
  959. ac_prev=program_transform_name ;;
  960. -program-transform-name=* | --program-transform-name=* \
  961. | --program-transform-nam=* | --program-transform-na=* \
  962. | --program-transform-n=* | --program-transform-=* \
  963. | --program-transform=* | --program-transfor=* \
  964. | --program-transfo=* | --program-transf=* \
  965. | --program-trans=* | --program-tran=* \
  966. | --progr-tra=* | --program-tr=* | --program-t=*)
  967. program_transform_name=$ac_optarg ;;
  968. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  969. ac_prev=pdfdir ;;
  970. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  971. pdfdir=$ac_optarg ;;
  972. -psdir | --psdir | --psdi | --psd | --ps)
  973. ac_prev=psdir ;;
  974. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  975. psdir=$ac_optarg ;;
  976. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  977. | -silent | --silent | --silen | --sile | --sil)
  978. silent=yes ;;
  979. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  980. ac_prev=sbindir ;;
  981. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  982. | --sbi=* | --sb=*)
  983. sbindir=$ac_optarg ;;
  984. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  985. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  986. | --sharedst | --shareds | --shared | --share | --shar \
  987. | --sha | --sh)
  988. ac_prev=sharedstatedir ;;
  989. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  990. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  991. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  992. | --sha=* | --sh=*)
  993. sharedstatedir=$ac_optarg ;;
  994. -site | --site | --sit)
  995. ac_prev=site ;;
  996. -site=* | --site=* | --sit=*)
  997. site=$ac_optarg ;;
  998. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  999. ac_prev=srcdir ;;
  1000. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1001. srcdir=$ac_optarg ;;
  1002. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1003. | --syscon | --sysco | --sysc | --sys | --sy)
  1004. ac_prev=sysconfdir ;;
  1005. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1006. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1007. sysconfdir=$ac_optarg ;;
  1008. -target | --target | --targe | --targ | --tar | --ta | --t)
  1009. ac_prev=target_alias ;;
  1010. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1011. target_alias=$ac_optarg ;;
  1012. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1013. verbose=yes ;;
  1014. -version | --version | --versio | --versi | --vers | -V)
  1015. ac_init_version=: ;;
  1016. -with-* | --with-*)
  1017. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1018. # Reject names that are not valid shell variable names.
  1019. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1020. as_fn_error $? "invalid package name: $ac_useropt"
  1021. ac_useropt_orig=$ac_useropt
  1022. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1023. case $ac_user_opts in
  1024. *"
  1025. "with_$ac_useropt"
  1026. "*) ;;
  1027. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1028. ac_unrecognized_sep=', ';;
  1029. esac
  1030. eval with_$ac_useropt=\$ac_optarg ;;
  1031. -without-* | --without-*)
  1032. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1033. # Reject names that are not valid shell variable names.
  1034. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1035. as_fn_error $? "invalid package name: $ac_useropt"
  1036. ac_useropt_orig=$ac_useropt
  1037. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1038. case $ac_user_opts in
  1039. *"
  1040. "with_$ac_useropt"
  1041. "*) ;;
  1042. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1043. ac_unrecognized_sep=', ';;
  1044. esac
  1045. eval with_$ac_useropt=no ;;
  1046. --x)
  1047. # Obsolete; use --with-x.
  1048. with_x=yes ;;
  1049. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1050. | --x-incl | --x-inc | --x-in | --x-i)
  1051. ac_prev=x_includes ;;
  1052. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1053. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1054. x_includes=$ac_optarg ;;
  1055. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1056. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1057. ac_prev=x_libraries ;;
  1058. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1059. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1060. x_libraries=$ac_optarg ;;
  1061. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1062. Try \`$0 --help' for more information"
  1063. ;;
  1064. *=*)
  1065. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1066. # Reject names that are not valid shell variable names.
  1067. case $ac_envvar in #(
  1068. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1069. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1070. esac
  1071. eval $ac_envvar=\$ac_optarg
  1072. export $ac_envvar ;;
  1073. *)
  1074. # FIXME: should be removed in autoconf 3.0.
  1075. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1076. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1077. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1078. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1079. ;;
  1080. esac
  1081. done
  1082. if test -n "$ac_prev"; then
  1083. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1084. as_fn_error $? "missing argument to $ac_option"
  1085. fi
  1086. if test -n "$ac_unrecognized_opts"; then
  1087. case $enable_option_checking in
  1088. no) ;;
  1089. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1090. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1091. esac
  1092. fi
  1093. # Check all directory arguments for consistency.
  1094. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1095. datadir sysconfdir sharedstatedir localstatedir includedir \
  1096. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1097. libdir localedir mandir
  1098. do
  1099. eval ac_val=\$$ac_var
  1100. # Remove trailing slashes.
  1101. case $ac_val in
  1102. */ )
  1103. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1104. eval $ac_var=\$ac_val;;
  1105. esac
  1106. # Be sure to have absolute directory names.
  1107. case $ac_val in
  1108. [\\/$]* | ?:[\\/]* ) continue;;
  1109. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1110. esac
  1111. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1112. done
  1113. # There might be people who depend on the old broken behavior: `$host'
  1114. # used to hold the argument of --host etc.
  1115. # FIXME: To remove some day.
  1116. build=$build_alias
  1117. host=$host_alias
  1118. target=$target_alias
  1119. # FIXME: To remove some day.
  1120. if test "x$host_alias" != x; then
  1121. if test "x$build_alias" = x; then
  1122. cross_compiling=maybe
  1123. elif test "x$build_alias" != "x$host_alias"; then
  1124. cross_compiling=yes
  1125. fi
  1126. fi
  1127. ac_tool_prefix=
  1128. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1129. test "$silent" = yes && exec 6>/dev/null
  1130. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1131. ac_ls_di=`ls -di .` &&
  1132. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1133. as_fn_error $? "working directory cannot be determined"
  1134. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1135. as_fn_error $? "pwd does not report name of working directory"
  1136. # Find the source files, if location was not specified.
  1137. if test -z "$srcdir"; then
  1138. ac_srcdir_defaulted=yes
  1139. # Try the directory containing this script, then the parent directory.
  1140. ac_confdir=`$as_dirname -- "$as_myself" ||
  1141. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1142. X"$as_myself" : 'X\(//\)[^/]' \| \
  1143. X"$as_myself" : 'X\(//\)$' \| \
  1144. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1145. $as_echo X"$as_myself" |
  1146. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)[^/].*/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\/\)$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\).*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. s/.*/./; q'`
  1163. srcdir=$ac_confdir
  1164. if test ! -r "$srcdir/$ac_unique_file"; then
  1165. srcdir=..
  1166. fi
  1167. else
  1168. ac_srcdir_defaulted=no
  1169. fi
  1170. if test ! -r "$srcdir/$ac_unique_file"; then
  1171. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1172. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1173. fi
  1174. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1175. ac_abs_confdir=`(
  1176. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1177. pwd)`
  1178. # When building in place, set srcdir=.
  1179. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1180. srcdir=.
  1181. fi
  1182. # Remove unnecessary trailing slashes from srcdir.
  1183. # Double slashes in file names in object file debugging info
  1184. # mess up M-x gdb in Emacs.
  1185. case $srcdir in
  1186. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1187. esac
  1188. for ac_var in $ac_precious_vars; do
  1189. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_env_${ac_var}_value=\$${ac_var}
  1191. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1192. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1193. done
  1194. #
  1195. # Report the --help message.
  1196. #
  1197. if test "$ac_init_help" = "long"; then
  1198. # Omit some internal or obsolete options to make the list less imposing.
  1199. # This message is too long to be a string in the A/UX 3.1 sh.
  1200. cat <<_ACEOF
  1201. \`configure' configures xgc 1.0.5 to adapt to many kinds of systems.
  1202. Usage: $0 [OPTION]... [VAR=VALUE]...
  1203. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1204. VAR=VALUE. See below for descriptions of some of the useful variables.
  1205. Defaults for the options are specified in brackets.
  1206. Configuration:
  1207. -h, --help display this help and exit
  1208. --help=short display options specific to this package
  1209. --help=recursive display the short help of all the included packages
  1210. -V, --version display version information and exit
  1211. -q, --quiet, --silent do not print \`checking ...' messages
  1212. --cache-file=FILE cache test results in FILE [disabled]
  1213. -C, --config-cache alias for \`--cache-file=config.cache'
  1214. -n, --no-create do not create output files
  1215. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1216. Installation directories:
  1217. --prefix=PREFIX install architecture-independent files in PREFIX
  1218. [$ac_default_prefix]
  1219. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1220. [PREFIX]
  1221. By default, \`make install' will install all the files in
  1222. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1223. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1224. for instance \`--prefix=\$HOME'.
  1225. For better control, use the options below.
  1226. Fine tuning of the installation directories:
  1227. --bindir=DIR user executables [EPREFIX/bin]
  1228. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1229. --libexecdir=DIR program executables [EPREFIX/libexec]
  1230. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1231. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1232. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1233. --libdir=DIR object code libraries [EPREFIX/lib]
  1234. --includedir=DIR C header files [PREFIX/include]
  1235. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1236. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1237. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1238. --infodir=DIR info documentation [DATAROOTDIR/info]
  1239. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1240. --mandir=DIR man documentation [DATAROOTDIR/man]
  1241. --docdir=DIR documentation root [DATAROOTDIR/doc/xgc]
  1242. --htmldir=DIR html documentation [DOCDIR]
  1243. --dvidir=DIR dvi documentation [DOCDIR]
  1244. --pdfdir=DIR pdf documentation [DOCDIR]
  1245. --psdir=DIR ps documentation [DOCDIR]
  1246. _ACEOF
  1247. cat <<\_ACEOF
  1248. Program names:
  1249. --program-prefix=PREFIX prepend PREFIX to installed program names
  1250. --program-suffix=SUFFIX append SUFFIX to installed program names
  1251. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1252. System types:
  1253. --build=BUILD configure for building on BUILD [guessed]
  1254. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1255. _ACEOF
  1256. fi
  1257. if test -n "$ac_init_help"; then
  1258. case $ac_init_help in
  1259. short | recursive ) echo "Configuration of xgc 1.0.5:";;
  1260. esac
  1261. cat <<\_ACEOF
  1262. Optional Features:
  1263. --disable-option-checking ignore unrecognized --enable/--with options
  1264. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1265. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1266. --enable-dependency-tracking
  1267. do not reject slow dependency extractors
  1268. --disable-dependency-tracking
  1269. speeds up one-time build
  1270. --disable-selective-werror
  1271. Turn off selective compiler errors. (default:
  1272. enabled)
  1273. --enable-strict-compilation
  1274. Enable all warnings from compiler and make them
  1275. errors (default: disabled)
  1276. --enable-silent-rules less verbose build output (undo: "make V=1")
  1277. --disable-silent-rules verbose build output (undo: "make V=0")
  1278. Optional Packages:
  1279. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1280. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1281. --with-appdefaultdir=<pathname>
  1282. specify directory for app-defaults files (default is
  1283. autodetected)
  1284. Some influential environment variables:
  1285. CC C compiler command
  1286. CFLAGS C compiler flags
  1287. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1288. nonstandard directory <lib dir>
  1289. LIBS libraries to pass to the linker, e.g. -l<library>
  1290. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1291. you have headers in a nonstandard directory <include dir>
  1292. CPP C preprocessor
  1293. PKG_CONFIG path to pkg-config utility
  1294. PKG_CONFIG_PATH
  1295. directories to add to pkg-config's search path
  1296. PKG_CONFIG_LIBDIR
  1297. path overriding pkg-config's built-in search path
  1298. YACC The `Yet Another Compiler Compiler' implementation to use.
  1299. Defaults to the first program found out of: `bison -y', `byacc',
  1300. `yacc'.
  1301. YFLAGS The list of arguments that will be passed by default to $YACC.
  1302. This script will default YFLAGS to the empty string to avoid a
  1303. default value of `-d' given by some make applications.
  1304. XGC_CFLAGS C compiler flags for XGC, overriding pkg-config
  1305. XGC_LIBS linker flags for XGC, overriding pkg-config
  1306. Use these variables to override the choices made by `configure' or to help
  1307. it to find libraries and programs with nonstandard names/locations.
  1308. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
  1309. _ACEOF
  1310. ac_status=$?
  1311. fi
  1312. if test "$ac_init_help" = "recursive"; then
  1313. # If there are subdirs, report their specific --help.
  1314. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1315. test -d "$ac_dir" ||
  1316. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1317. continue
  1318. ac_builddir=.
  1319. case "$ac_dir" in
  1320. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1321. *)
  1322. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1323. # A ".." for each directory in $ac_dir_suffix.
  1324. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1325. case $ac_top_builddir_sub in
  1326. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1327. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1328. esac ;;
  1329. esac
  1330. ac_abs_top_builddir=$ac_pwd
  1331. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1332. # for backward compatibility:
  1333. ac_top_builddir=$ac_top_build_prefix
  1334. case $srcdir in
  1335. .) # We are building in place.
  1336. ac_srcdir=.
  1337. ac_top_srcdir=$ac_top_builddir_sub
  1338. ac_abs_top_srcdir=$ac_pwd ;;
  1339. [\\/]* | ?:[\\/]* ) # Absolute name.
  1340. ac_srcdir=$srcdir$ac_dir_suffix;
  1341. ac_top_srcdir=$srcdir
  1342. ac_abs_top_srcdir=$srcdir ;;
  1343. *) # Relative name.
  1344. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1345. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1346. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1347. esac
  1348. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1349. cd "$ac_dir" || { ac_status=$?; continue; }
  1350. # Check for guested configure.
  1351. if test -f "$ac_srcdir/configure.gnu"; then
  1352. echo &&
  1353. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1354. elif test -f "$ac_srcdir/configure"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure" --help=recursive
  1357. else
  1358. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1359. fi || ac_status=$?
  1360. cd "$ac_pwd" || { ac_status=$?; break; }
  1361. done
  1362. fi
  1363. test -n "$ac_init_help" && exit $ac_status
  1364. if $ac_init_version; then
  1365. cat <<\_ACEOF
  1366. xgc configure 1.0.5
  1367. generated by GNU Autoconf 2.69
  1368. Copyright (C) 2012 Free Software Foundation, Inc.
  1369. This configure script is free software; the Free Software Foundation
  1370. gives unlimited permission to copy, distribute and modify it.
  1371. _ACEOF
  1372. exit
  1373. fi
  1374. ## ------------------------ ##
  1375. ## Autoconf initialization. ##
  1376. ## ------------------------ ##
  1377. # ac_fn_c_try_compile LINENO
  1378. # --------------------------
  1379. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1380. ac_fn_c_try_compile ()
  1381. {
  1382. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1383. rm -f conftest.$ac_objext
  1384. if { { ac_try="$ac_compile"
  1385. case "(($ac_try" in
  1386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1387. *) ac_try_echo=$ac_try;;
  1388. esac
  1389. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1390. $as_echo "$ac_try_echo"; } >&5
  1391. (eval "$ac_compile") 2>conftest.err
  1392. ac_status=$?
  1393. if test -s conftest.err; then
  1394. grep -v '^ *+' conftest.err >conftest.er1
  1395. cat conftest.er1 >&5
  1396. mv -f conftest.er1 conftest.err
  1397. fi
  1398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1399. test $ac_status = 0; } && {
  1400. test -z "$ac_c_werror_flag" ||
  1401. test ! -s conftest.err
  1402. } && test -s conftest.$ac_objext; then :
  1403. ac_retval=0
  1404. else
  1405. $as_echo "$as_me: failed program was:" >&5
  1406. sed 's/^/| /' conftest.$ac_ext >&5
  1407. ac_retval=1
  1408. fi
  1409. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1410. as_fn_set_status $ac_retval
  1411. } # ac_fn_c_try_compile
  1412. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1413. # ---------------------------------------------
  1414. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1415. # accordingly.
  1416. ac_fn_c_check_decl ()
  1417. {
  1418. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1419. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1420. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1422. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1423. if eval \${$3+:} false; then :
  1424. $as_echo_n "(cached) " >&6
  1425. else
  1426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1427. /* end confdefs.h. */
  1428. $4
  1429. int
  1430. main ()
  1431. {
  1432. #ifndef $as_decl_name
  1433. #ifdef __cplusplus
  1434. (void) $as_decl_use;
  1435. #else
  1436. (void) $as_decl_name;
  1437. #endif
  1438. #endif
  1439. ;
  1440. return 0;
  1441. }
  1442. _ACEOF
  1443. if ac_fn_c_try_compile "$LINENO"; then :
  1444. eval "$3=yes"
  1445. else
  1446. eval "$3=no"
  1447. fi
  1448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1449. fi
  1450. eval ac_res=\$$3
  1451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1452. $as_echo "$ac_res" >&6; }
  1453. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1454. } # ac_fn_c_check_decl
  1455. # ac_fn_c_try_cpp LINENO
  1456. # ----------------------
  1457. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1458. ac_fn_c_try_cpp ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } > conftest.i && {
  1477. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. }; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_cpp
  1489. # ac_fn_c_try_run LINENO
  1490. # ----------------------
  1491. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1492. # that executables *can* be run.
  1493. ac_fn_c_try_run ()
  1494. {
  1495. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>&5
  1504. ac_status=$?
  1505. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1506. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1507. { { case "(($ac_try" in
  1508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1509. *) ac_try_echo=$ac_try;;
  1510. esac
  1511. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1512. $as_echo "$ac_try_echo"; } >&5
  1513. (eval "$ac_try") 2>&5
  1514. ac_status=$?
  1515. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1516. test $ac_status = 0; }; }; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: program exited with status $ac_status" >&5
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=$ac_status
  1523. fi
  1524. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1525. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1526. as_fn_set_status $ac_retval
  1527. } # ac_fn_c_try_run
  1528. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1529. # -------------------------------------------------------
  1530. # Tests whether HEADER exists and can be compiled using the include files in
  1531. # INCLUDES, setting the cache variable VAR accordingly.
  1532. ac_fn_c_check_header_compile ()
  1533. {
  1534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1536. $as_echo_n "checking for $2... " >&6; }
  1537. if eval \${$3+:} false; then :
  1538. $as_echo_n "(cached) " >&6
  1539. else
  1540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1541. /* end confdefs.h. */
  1542. $4
  1543. #include <$2>
  1544. _ACEOF
  1545. if ac_fn_c_try_compile "$LINENO"; then :
  1546. eval "$3=yes"
  1547. else
  1548. eval "$3=no"
  1549. fi
  1550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1551. fi
  1552. eval ac_res=\$$3
  1553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1554. $as_echo "$ac_res" >&6; }
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. } # ac_fn_c_check_header_compile
  1557. # ac_fn_c_try_link LINENO
  1558. # -----------------------
  1559. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1560. ac_fn_c_try_link ()
  1561. {
  1562. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1563. rm -f conftest.$ac_objext conftest$ac_exeext
  1564. if { { ac_try="$ac_link"
  1565. case "(($ac_try" in
  1566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1567. *) ac_try_echo=$ac_try;;
  1568. esac
  1569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1570. $as_echo "$ac_try_echo"; } >&5
  1571. (eval "$ac_link") 2>conftest.err
  1572. ac_status=$?
  1573. if test -s conftest.err; then
  1574. grep -v '^ *+' conftest.err >conftest.er1
  1575. cat conftest.er1 >&5
  1576. mv -f conftest.er1 conftest.err
  1577. fi
  1578. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1579. test $ac_status = 0; } && {
  1580. test -z "$ac_c_werror_flag" ||
  1581. test ! -s conftest.err
  1582. } && test -s conftest$ac_exeext && {
  1583. test "$cross_compiling" = yes ||
  1584. test -x conftest$ac_exeext
  1585. }; then :
  1586. ac_retval=0
  1587. else
  1588. $as_echo "$as_me: failed program was:" >&5
  1589. sed 's/^/| /' conftest.$ac_ext >&5
  1590. ac_retval=1
  1591. fi
  1592. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1593. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1594. # interfere with the next link command; also delete a directory that is
  1595. # left behind by Apple's compiler. We do this before executing the actions.
  1596. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. as_fn_set_status $ac_retval
  1599. } # ac_fn_c_try_link
  1600. cat >config.log <<_ACEOF
  1601. This file contains any messages produced by compilers while
  1602. running configure, to aid debugging if configure makes a mistake.
  1603. It was created by xgc $as_me 1.0.5, which was
  1604. generated by GNU Autoconf 2.69. Invocation command line was
  1605. $ $0 $@
  1606. _ACEOF
  1607. exec 5>>config.log
  1608. {
  1609. cat <<_ASUNAME
  1610. ## --------- ##
  1611. ## Platform. ##
  1612. ## --------- ##
  1613. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1614. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1615. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1616. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1617. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1618. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1619. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1620. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1621. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1622. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1623. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1624. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1625. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1626. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1627. _ASUNAME
  1628. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1629. for as_dir in $PATH
  1630. do
  1631. IFS=$as_save_IFS
  1632. test -z "$as_dir" && as_dir=.
  1633. $as_echo "PATH: $as_dir"
  1634. done
  1635. IFS=$as_save_IFS
  1636. } >&5
  1637. cat >&5 <<_ACEOF
  1638. ## ----------- ##
  1639. ## Core tests. ##
  1640. ## ----------- ##
  1641. _ACEOF
  1642. # Keep a trace of the command line.
  1643. # Strip out --no-create and --no-recursion so they do not pile up.
  1644. # Strip out --silent because we don't want to record it for future runs.
  1645. # Also quote any args containing shell meta-characters.
  1646. # Make two passes to allow for proper duplicate-argument suppression.
  1647. ac_configure_args=
  1648. ac_configure_args0=
  1649. ac_configure_args1=
  1650. ac_must_keep_next=false
  1651. for ac_pass in 1 2
  1652. do
  1653. for ac_arg
  1654. do
  1655. case $ac_arg in
  1656. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1657. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1658. | -silent | --silent | --silen | --sile | --sil)
  1659. continue ;;
  1660. *\'*)
  1661. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1662. esac
  1663. case $ac_pass in
  1664. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1665. 2)
  1666. as_fn_append ac_configure_args1 " '$ac_arg'"
  1667. if test $ac_must_keep_next = true; then
  1668. ac_must_keep_next=false # Got value, back to normal.
  1669. else
  1670. case $ac_arg in
  1671. *=* | --config-cache | -C | -disable-* | --disable-* \
  1672. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1673. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1674. | -with-* | --with-* | -without-* | --without-* | --x)
  1675. case "$ac_configure_args0 " in
  1676. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1677. esac
  1678. ;;
  1679. -* ) ac_must_keep_next=true ;;
  1680. esac
  1681. fi
  1682. as_fn_append ac_configure_args " '$ac_arg'"
  1683. ;;
  1684. esac
  1685. done
  1686. done
  1687. { ac_configure_args0=; unset ac_configure_args0;}
  1688. { ac_configure_args1=; unset ac_configure_args1;}
  1689. # When interrupted or exit'd, cleanup temporary files, and complete
  1690. # config.log. We remove comments because anyway the quotes in there
  1691. # would cause problems or look ugly.
  1692. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1693. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1694. trap 'exit_status=$?
  1695. # Save into config.log some information that might help in debugging.
  1696. {
  1697. echo
  1698. $as_echo "## ---------------- ##
  1699. ## Cache variables. ##
  1700. ## ---------------- ##"
  1701. echo
  1702. # The following way of writing the cache mishandles newlines in values,
  1703. (
  1704. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1705. eval ac_val=\$$ac_var
  1706. case $ac_val in #(
  1707. *${as_nl}*)
  1708. case $ac_var in #(
  1709. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1710. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1711. esac
  1712. case $ac_var in #(
  1713. _ | IFS | as_nl) ;; #(
  1714. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1715. *) { eval $ac_var=; unset $ac_var;} ;;
  1716. esac ;;
  1717. esac
  1718. done
  1719. (set) 2>&1 |
  1720. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1721. *${as_nl}ac_space=\ *)
  1722. sed -n \
  1723. "s/'\''/'\''\\\\'\'''\''/g;
  1724. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1725. ;; #(
  1726. *)
  1727. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1728. ;;
  1729. esac |
  1730. sort
  1731. )
  1732. echo
  1733. $as_echo "## ----------------- ##
  1734. ## Output variables. ##
  1735. ## ----------------- ##"
  1736. echo
  1737. for ac_var in $ac_subst_vars
  1738. do
  1739. eval ac_val=\$$ac_var
  1740. case $ac_val in
  1741. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1742. esac
  1743. $as_echo "$ac_var='\''$ac_val'\''"
  1744. done | sort
  1745. echo
  1746. if test -n "$ac_subst_files"; then
  1747. $as_echo "## ------------------- ##
  1748. ## File substitutions. ##
  1749. ## ------------------- ##"
  1750. echo
  1751. for ac_var in $ac_subst_files
  1752. do
  1753. eval ac_val=\$$ac_var
  1754. case $ac_val in
  1755. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1756. esac
  1757. $as_echo "$ac_var='\''$ac_val'\''"
  1758. done | sort
  1759. echo
  1760. fi
  1761. if test -s confdefs.h; then
  1762. $as_echo "## ----------- ##
  1763. ## confdefs.h. ##
  1764. ## ----------- ##"
  1765. echo
  1766. cat confdefs.h
  1767. echo
  1768. fi
  1769. test "$ac_signal" != 0 &&
  1770. $as_echo "$as_me: caught signal $ac_signal"
  1771. $as_echo "$as_me: exit $exit_status"
  1772. } >&5
  1773. rm -f core *.core core.conftest.* &&
  1774. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1775. exit $exit_status
  1776. ' 0
  1777. for ac_signal in 1 2 13 15; do
  1778. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1779. done
  1780. ac_signal=0
  1781. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1782. rm -f -r conftest* confdefs.h
  1783. $as_echo "/* confdefs.h */" > confdefs.h
  1784. # Predefined preprocessor variables.
  1785. cat >>confdefs.h <<_ACEOF
  1786. #define PACKAGE_NAME "$PACKAGE_NAME"
  1787. _ACEOF
  1788. cat >>confdefs.h <<_ACEOF
  1789. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1790. _ACEOF
  1791. cat >>confdefs.h <<_ACEOF
  1792. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1793. _ACEOF
  1794. cat >>confdefs.h <<_ACEOF
  1795. #define PACKAGE_STRING "$PACKAGE_STRING"
  1796. _ACEOF
  1797. cat >>confdefs.h <<_ACEOF
  1798. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1799. _ACEOF
  1800. cat >>confdefs.h <<_ACEOF
  1801. #define PACKAGE_URL "$PACKAGE_URL"
  1802. _ACEOF
  1803. # Let the site file select an alternate cache file if it wants to.
  1804. # Prefer an explicitly selected file to automatically selected ones.
  1805. ac_site_file1=NONE
  1806. ac_site_file2=NONE
  1807. if test -n "$CONFIG_SITE"; then
  1808. # We do not want a PATH search for config.site.
  1809. case $CONFIG_SITE in #((
  1810. -*) ac_site_file1=./$CONFIG_SITE;;
  1811. */*) ac_site_file1=$CONFIG_SITE;;
  1812. *) ac_site_file1=./$CONFIG_SITE;;
  1813. esac
  1814. elif test "x$prefix" != xNONE; then
  1815. ac_site_file1=$prefix/share/config.site
  1816. ac_site_file2=$prefix/etc/config.site
  1817. else
  1818. ac_site_file1=$ac_default_prefix/share/config.site
  1819. ac_site_file2=$ac_default_prefix/etc/config.site
  1820. fi
  1821. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1822. do
  1823. test "x$ac_site_file" = xNONE && continue
  1824. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1825. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1826. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1827. sed 's/^/| /' "$ac_site_file" >&5
  1828. . "$ac_site_file" \
  1829. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1830. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1831. as_fn_error $? "failed to load site script $ac_site_file
  1832. See \`config.log' for more details" "$LINENO" 5; }
  1833. fi
  1834. done
  1835. if test -r "$cache_file"; then
  1836. # Some versions of bash will fail to source /dev/null (special files
  1837. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1838. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1840. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1841. case $cache_file in
  1842. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1843. *) . "./$cache_file";;
  1844. esac
  1845. fi
  1846. else
  1847. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1848. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1849. >$cache_file
  1850. fi
  1851. # Check that the precious variables saved in the cache have kept the same
  1852. # value.
  1853. ac_cache_corrupted=false
  1854. for ac_var in $ac_precious_vars; do
  1855. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1856. eval ac_new_set=\$ac_env_${ac_var}_set
  1857. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1858. eval ac_new_val=\$ac_env_${ac_var}_value
  1859. case $ac_old_set,$ac_new_set in
  1860. set,)
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1862. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1863. ac_cache_corrupted=: ;;
  1864. ,set)
  1865. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1866. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1867. ac_cache_corrupted=: ;;
  1868. ,);;
  1869. *)
  1870. if test "x$ac_old_val" != "x$ac_new_val"; then
  1871. # differences in whitespace do not lead to failure.
  1872. ac_old_val_w=`echo x $ac_old_val`
  1873. ac_new_val_w=`echo x $ac_new_val`
  1874. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1875. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1876. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1877. ac_cache_corrupted=:
  1878. else
  1879. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1880. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1881. eval $ac_var=\$ac_old_val
  1882. fi
  1883. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1884. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1885. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1886. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1887. fi;;
  1888. esac
  1889. # Pass precious variables to config.status.
  1890. if test "$ac_new_set" = set; then
  1891. case $ac_new_val in
  1892. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1893. *) ac_arg=$ac_var=$ac_new_val ;;
  1894. esac
  1895. case " $ac_configure_args " in
  1896. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1897. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1898. esac
  1899. fi
  1900. done
  1901. if $ac_cache_corrupted; then
  1902. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1904. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1905. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1906. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1907. fi
  1908. ## -------------------- ##
  1909. ## Main body of script. ##
  1910. ## -------------------- ##
  1911. ac_ext=c
  1912. ac_cpp='$CPP $CPPFLAGS'
  1913. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1914. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1915. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1916. ac_config_headers="$ac_config_headers config.h"
  1917. # Initialize Automake
  1918. am__api_version='1.12'
  1919. ac_aux_dir=
  1920. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1921. if test -f "$ac_dir/install-sh"; then
  1922. ac_aux_dir=$ac_dir
  1923. ac_install_sh="$ac_aux_dir/install-sh -c"
  1924. break
  1925. elif test -f "$ac_dir/install.sh"; then
  1926. ac_aux_dir=$ac_dir
  1927. ac_install_sh="$ac_aux_dir/install.sh -c"
  1928. break
  1929. elif test -f "$ac_dir/shtool"; then
  1930. ac_aux_dir=$ac_dir
  1931. ac_install_sh="$ac_aux_dir/shtool install -c"
  1932. break
  1933. fi
  1934. done
  1935. if test -z "$ac_aux_dir"; then
  1936. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1937. fi
  1938. # These three variables are undocumented and unsupported,
  1939. # and are intended to be withdrawn in a future Autoconf release.
  1940. # They can cause serious problems if a builder's source tree is in a directory
  1941. # whose full name contains unusual characters.
  1942. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1943. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1944. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1945. # Find a good install program. We prefer a C program (faster),
  1946. # so one script is as good as another. But avoid the broken or
  1947. # incompatible versions:
  1948. # SysV /etc/install, /usr/sbin/install
  1949. # SunOS /usr/etc/install
  1950. # IRIX /sbin/install
  1951. # AIX /bin/install
  1952. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1953. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1954. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1955. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1956. # OS/2's system install, which has a completely different semantic
  1957. # ./install, which can be erroneously created by make from ./install.sh.
  1958. # Reject install programs that cannot install multiple files.
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1960. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1961. if test -z "$INSTALL"; then
  1962. if ${ac_cv_path_install+:} false; then :
  1963. $as_echo_n "(cached) " >&6
  1964. else
  1965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1966. for as_dir in $PATH
  1967. do
  1968. IFS=$as_save_IFS
  1969. test -z "$as_dir" && as_dir=.
  1970. # Account for people who put trailing slashes in PATH elements.
  1971. case $as_dir/ in #((
  1972. ./ | .// | /[cC]/* | \
  1973. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1974. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1975. /usr/ucb/* ) ;;
  1976. *)
  1977. # OSF1 and SCO ODT 3.0 have their own names for install.
  1978. # Don't use installbsd from OSF since it installs stuff as root
  1979. # by default.
  1980. for ac_prog in ginstall scoinst install; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1983. if test $ac_prog = install &&
  1984. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1985. # AIX install. It has an incompatible calling convention.
  1986. :
  1987. elif test $ac_prog = install &&
  1988. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1989. # program-specific install script used by HP pwplus--don't use.
  1990. :
  1991. else
  1992. rm -rf conftest.one conftest.two conftest.dir
  1993. echo one > conftest.one
  1994. echo two > conftest.two
  1995. mkdir conftest.dir
  1996. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1997. test -s conftest.one && test -s conftest.two &&
  1998. test -s conftest.dir/conftest.one &&
  1999. test -s conftest.dir/conftest.two
  2000. then
  2001. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2002. break 3
  2003. fi
  2004. fi
  2005. fi
  2006. done
  2007. done
  2008. ;;
  2009. esac
  2010. done
  2011. IFS=$as_save_IFS
  2012. rm -rf conftest.one conftest.two conftest.dir
  2013. fi
  2014. if test "${ac_cv_path_install+set}" = set; then
  2015. INSTALL=$ac_cv_path_install
  2016. else
  2017. # As a last resort, use the slow shell script. Don't cache a
  2018. # value for INSTALL within a source directory, because that will
  2019. # break other packages using the cache if that directory is
  2020. # removed, or if the value is a relative name.
  2021. INSTALL=$ac_install_sh
  2022. fi
  2023. fi
  2024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2025. $as_echo "$INSTALL" >&6; }
  2026. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2027. # It thinks the first close brace ends the variable substitution.
  2028. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2029. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2030. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2032. $as_echo_n "checking whether build environment is sane... " >&6; }
  2033. # Reject unsafe characters in $srcdir or the absolute working directory
  2034. # name. Accept space and tab only in the latter.
  2035. am_lf='
  2036. '
  2037. case `pwd` in
  2038. *[\\\"\#\$\&\'\`$am_lf]*)
  2039. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2040. esac
  2041. case $srcdir in
  2042. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2043. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2044. esac
  2045. # Do 'set' in a subshell so we don't clobber the current shell's
  2046. # arguments. Must try -L first in case configure is actually a
  2047. # symlink; some systems play weird games with the mod time of symlinks
  2048. # (eg FreeBSD returns the mod time of the symlink's containing
  2049. # directory).
  2050. if (
  2051. am_has_slept=no
  2052. for am_try in 1 2; do
  2053. echo "timestamp, slept: $am_has_slept" > conftest.file
  2054. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2055. if test "$*" = "X"; then
  2056. # -L didn't work.
  2057. set X `ls -t "$srcdir/configure" conftest.file`
  2058. fi
  2059. if test "$*" != "X $srcdir/configure conftest.file" \
  2060. && test "$*" != "X conftest.file $srcdir/configure"; then
  2061. # If neither matched, then we have a broken ls. This can happen
  2062. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2063. # broken ls alias from the environment. This has actually
  2064. # happened. Such a system could not be considered "sane".
  2065. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2066. alias in your environment" "$LINENO" 5
  2067. fi
  2068. if test "$2" = conftest.file || test $am_try -eq 2; then
  2069. break
  2070. fi
  2071. # Just in case.
  2072. sleep 1
  2073. am_has_slept=yes
  2074. done
  2075. test "$2" = conftest.file
  2076. )
  2077. then
  2078. # Ok.
  2079. :
  2080. else
  2081. as_fn_error $? "newly created file is older than distributed files!
  2082. Check your system clock" "$LINENO" 5
  2083. fi
  2084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2085. $as_echo "yes" >&6; }
  2086. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2087. # generated files are strictly newer.
  2088. am_sleep_pid=
  2089. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2090. ( sleep 1 ) &
  2091. am_sleep_pid=$!
  2092. fi
  2093. rm -f conftest.file
  2094. test "$program_prefix" != NONE &&
  2095. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2096. # Use a double $ so make ignores it.
  2097. test "$program_suffix" != NONE &&
  2098. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2099. # Double any \ or $.
  2100. # By default was `s,x,x', remove it if useless.
  2101. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2102. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2103. # expand $ac_aux_dir to an absolute path
  2104. am_aux_dir=`cd $ac_aux_dir && pwd`
  2105. if test x"${MISSING+set}" != xset; then
  2106. case $am_aux_dir in
  2107. *\ * | *\ *)
  2108. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2109. *)
  2110. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2111. esac
  2112. fi
  2113. # Use eval to expand $SHELL
  2114. if eval "$MISSING --run true"; then
  2115. am_missing_run="$MISSING --run "
  2116. else
  2117. am_missing_run=
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2119. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2120. fi
  2121. if test x"${install_sh}" != xset; then
  2122. case $am_aux_dir in
  2123. *\ * | *\ *)
  2124. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2125. *)
  2126. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2127. esac
  2128. fi
  2129. # Installed binaries are usually stripped using 'strip' when the user
  2130. # run "make install-strip". However 'strip' might not be the right
  2131. # tool to use in cross-compilation environments, therefore Automake
  2132. # will honor the 'STRIP' environment variable to overrule this program.
  2133. if test "$cross_compiling" != no; then
  2134. if test -n "$ac_tool_prefix"; then
  2135. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2136. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2138. $as_echo_n "checking for $ac_word... " >&6; }
  2139. if ${ac_cv_prog_STRIP+:} false; then :
  2140. $as_echo_n "(cached) " >&6
  2141. else
  2142. if test -n "$STRIP"; then
  2143. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2144. else
  2145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2146. for as_dir in $PATH
  2147. do
  2148. IFS=$as_save_IFS
  2149. test -z "$as_dir" && as_dir=.
  2150. for ac_exec_ext in '' $ac_executable_extensions; do
  2151. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2152. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2154. break 2
  2155. fi
  2156. done
  2157. done
  2158. IFS=$as_save_IFS
  2159. fi
  2160. fi
  2161. STRIP=$ac_cv_prog_STRIP
  2162. if test -n "$STRIP"; then
  2163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2164. $as_echo "$STRIP" >&6; }
  2165. else
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2167. $as_echo "no" >&6; }
  2168. fi
  2169. fi
  2170. if test -z "$ac_cv_prog_STRIP"; then
  2171. ac_ct_STRIP=$STRIP
  2172. # Extract the first word of "strip", so it can be a program name with args.
  2173. set dummy strip; ac_word=$2
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2175. $as_echo_n "checking for $ac_word... " >&6; }
  2176. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2177. $as_echo_n "(cached) " >&6
  2178. else
  2179. if test -n "$ac_ct_STRIP"; then
  2180. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2181. else
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2189. ac_cv_prog_ac_ct_STRIP="strip"
  2190. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. fi
  2197. fi
  2198. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2199. if test -n "$ac_ct_STRIP"; then
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2201. $as_echo "$ac_ct_STRIP" >&6; }
  2202. else
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2204. $as_echo "no" >&6; }
  2205. fi
  2206. if test "x$ac_ct_STRIP" = x; then
  2207. STRIP=":"
  2208. else
  2209. case $cross_compiling:$ac_tool_warned in
  2210. yes:)
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2212. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2213. ac_tool_warned=yes ;;
  2214. esac
  2215. STRIP=$ac_ct_STRIP
  2216. fi
  2217. else
  2218. STRIP="$ac_cv_prog_STRIP"
  2219. fi
  2220. fi
  2221. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2223. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2224. if test -z "$MKDIR_P"; then
  2225. if ${ac_cv_path_mkdir+:} false; then :
  2226. $as_echo_n "(cached) " >&6
  2227. else
  2228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2229. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2230. do
  2231. IFS=$as_save_IFS
  2232. test -z "$as_dir" && as_dir=.
  2233. for ac_prog in mkdir gmkdir; do
  2234. for ac_exec_ext in '' $ac_executable_extensions; do
  2235. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2236. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2237. 'mkdir (GNU coreutils) '* | \
  2238. 'mkdir (coreutils) '* | \
  2239. 'mkdir (fileutils) '4.1*)
  2240. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2241. break 3;;
  2242. esac
  2243. done
  2244. done
  2245. done
  2246. IFS=$as_save_IFS
  2247. fi
  2248. test -d ./--version && rmdir ./--version
  2249. if test "${ac_cv_path_mkdir+set}" = set; then
  2250. MKDIR_P="$ac_cv_path_mkdir -p"
  2251. else
  2252. # As a last resort, use the slow shell script. Don't cache a
  2253. # value for MKDIR_P within a source directory, because that will
  2254. # break other packages using the cache if that directory is
  2255. # removed, or if the value is a relative name.
  2256. MKDIR_P="$ac_install_sh -d"
  2257. fi
  2258. fi
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2260. $as_echo "$MKDIR_P" >&6; }
  2261. for ac_prog in gawk mawk nawk awk
  2262. do
  2263. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2264. set dummy $ac_prog; ac_word=$2
  2265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2266. $as_echo_n "checking for $ac_word... " >&6; }
  2267. if ${ac_cv_prog_AWK+:} false; then :
  2268. $as_echo_n "(cached) " >&6
  2269. else
  2270. if test -n "$AWK"; then
  2271. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2272. else
  2273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2274. for as_dir in $PATH
  2275. do
  2276. IFS=$as_save_IFS
  2277. test -z "$as_dir" && as_dir=.
  2278. for ac_exec_ext in '' $ac_executable_extensions; do
  2279. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2280. ac_cv_prog_AWK="$ac_prog"
  2281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2282. break 2
  2283. fi
  2284. done
  2285. done
  2286. IFS=$as_save_IFS
  2287. fi
  2288. fi
  2289. AWK=$ac_cv_prog_AWK
  2290. if test -n "$AWK"; then
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2292. $as_echo "$AWK" >&6; }
  2293. else
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2295. $as_echo "no" >&6; }
  2296. fi
  2297. test -n "$AWK" && break
  2298. done
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2300. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2301. set x ${MAKE-make}
  2302. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2303. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2304. $as_echo_n "(cached) " >&6
  2305. else
  2306. cat >conftest.make <<\_ACEOF
  2307. SHELL = /bin/sh
  2308. all:
  2309. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2310. _ACEOF
  2311. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2312. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2313. *@@@%%%=?*=@@@%%%*)
  2314. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2315. *)
  2316. eval ac_cv_prog_make_${ac_make}_set=no;;
  2317. esac
  2318. rm -f conftest.make
  2319. fi
  2320. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2322. $as_echo "yes" >&6; }
  2323. SET_MAKE=
  2324. else
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. SET_MAKE="MAKE=${MAKE-make}"
  2328. fi
  2329. rm -rf .tst 2>/dev/null
  2330. mkdir .tst 2>/dev/null
  2331. if test -d .tst; then
  2332. am__leading_dot=.
  2333. else
  2334. am__leading_dot=_
  2335. fi
  2336. rmdir .tst 2>/dev/null
  2337. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2338. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2339. # is not polluted with repeated "-I."
  2340. am__isrc=' -I$(srcdir)'
  2341. # test to see if srcdir already configured
  2342. if test -f $srcdir/config.status; then
  2343. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2344. fi
  2345. fi
  2346. # test whether we have cygpath
  2347. if test -z "$CYGPATH_W"; then
  2348. if (cygpath --version) >/dev/null 2>/dev/null; then
  2349. CYGPATH_W='cygpath -w'
  2350. else
  2351. CYGPATH_W=echo
  2352. fi
  2353. fi
  2354. # Define the identity of the package.
  2355. PACKAGE='xgc'
  2356. VERSION='1.0.5'
  2357. cat >>confdefs.h <<_ACEOF
  2358. #define PACKAGE "$PACKAGE"
  2359. _ACEOF
  2360. cat >>confdefs.h <<_ACEOF
  2361. #define VERSION "$VERSION"
  2362. _ACEOF
  2363. # Some tools Automake needs.
  2364. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2365. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2366. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2367. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2368. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2369. # For better backward compatibility. To be removed once Automake 1.9.x
  2370. # dies out for good. For more background, see:
  2371. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2372. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2373. mkdir_p='$(MKDIR_P)'
  2374. # We need awk for the "check" target. The system "awk" is bad on
  2375. # some platforms.
  2376. # Always define AMTAR for backward compatibility. Yes, it's still used
  2377. # in the wild :-( We should find a proper way to deprecate it ...
  2378. AMTAR='$${TAR-tar}'
  2379. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2380. # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
  2381. DEPDIR="${am__leading_dot}deps"
  2382. ac_config_commands="$ac_config_commands depfiles"
  2383. am_make=${MAKE-make}
  2384. cat > confinc << 'END'
  2385. am__doit:
  2386. @echo this is the am__doit target
  2387. .PHONY: am__doit
  2388. END
  2389. # If we don't find an include directive, just comment out the code.
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2391. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2392. am__include="#"
  2393. am__quote=
  2394. _am_result=none
  2395. # First try GNU make style include.
  2396. echo "include confinc" > confmf
  2397. # Ignore all kinds of additional output from 'make'.
  2398. case `$am_make -s -f confmf 2> /dev/null` in #(
  2399. *the\ am__doit\ target*)
  2400. am__include=include
  2401. am__quote=
  2402. _am_result=GNU
  2403. ;;
  2404. esac
  2405. # Now try BSD make style include.
  2406. if test "$am__include" = "#"; then
  2407. echo '.include "confinc"' > confmf
  2408. case `$am_make -s -f confmf 2> /dev/null` in #(
  2409. *the\ am__doit\ target*)
  2410. am__include=.include
  2411. am__quote="\""
  2412. _am_result=BSD
  2413. ;;
  2414. esac
  2415. fi
  2416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2417. $as_echo "$_am_result" >&6; }
  2418. rm -f confinc confmf
  2419. # Check whether --enable-dependency-tracking was given.
  2420. if test "${enable_dependency_tracking+set}" = set; then :
  2421. enableval=$enable_dependency_tracking;
  2422. fi
  2423. if test "x$enable_dependency_tracking" != xno; then
  2424. am_depcomp="$ac_aux_dir/depcomp"
  2425. AMDEPBACKSLASH='\'
  2426. am__nodep='_no'
  2427. fi
  2428. if test "x$enable_dependency_tracking" != xno; then
  2429. AMDEP_TRUE=
  2430. AMDEP_FALSE='#'
  2431. else
  2432. AMDEP_TRUE='#'
  2433. AMDEP_FALSE=
  2434. fi
  2435. ac_ext=c
  2436. ac_cpp='$CPP $CPPFLAGS'
  2437. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2438. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2439. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2440. if test -n "$ac_tool_prefix"; then
  2441. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2442. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2444. $as_echo_n "checking for $ac_word... " >&6; }
  2445. if ${ac_cv_prog_CC+:} false; then :
  2446. $as_echo_n "(cached) " >&6
  2447. else
  2448. if test -n "$CC"; then
  2449. ac_cv_prog_CC="$CC" # Let the user override the test.
  2450. else
  2451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2452. for as_dir in $PATH
  2453. do
  2454. IFS=$as_save_IFS
  2455. test -z "$as_dir" && as_dir=.
  2456. for ac_exec_ext in '' $ac_executable_extensions; do
  2457. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2458. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2459. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2460. break 2
  2461. fi
  2462. done
  2463. done
  2464. IFS=$as_save_IFS
  2465. fi
  2466. fi
  2467. CC=$ac_cv_prog_CC
  2468. if test -n "$CC"; then
  2469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2470. $as_echo "$CC" >&6; }
  2471. else
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. fi
  2475. fi
  2476. if test -z "$ac_cv_prog_CC"; then
  2477. ac_ct_CC=$CC
  2478. # Extract the first word of "gcc", so it can be a program name with args.
  2479. set dummy gcc; ac_word=$2
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2481. $as_echo_n "checking for $ac_word... " >&6; }
  2482. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if test -n "$ac_ct_CC"; then
  2486. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2487. else
  2488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2489. for as_dir in $PATH
  2490. do
  2491. IFS=$as_save_IFS
  2492. test -z "$as_dir" && as_dir=.
  2493. for ac_exec_ext in '' $ac_executable_extensions; do
  2494. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2495. ac_cv_prog_ac_ct_CC="gcc"
  2496. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2497. break 2
  2498. fi
  2499. done
  2500. done
  2501. IFS=$as_save_IFS
  2502. fi
  2503. fi
  2504. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2505. if test -n "$ac_ct_CC"; then
  2506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2507. $as_echo "$ac_ct_CC" >&6; }
  2508. else
  2509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2510. $as_echo "no" >&6; }
  2511. fi
  2512. if test "x$ac_ct_CC" = x; then
  2513. CC=""
  2514. else
  2515. case $cross_compiling:$ac_tool_warned in
  2516. yes:)
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2518. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2519. ac_tool_warned=yes ;;
  2520. esac
  2521. CC=$ac_ct_CC
  2522. fi
  2523. else
  2524. CC="$ac_cv_prog_CC"
  2525. fi
  2526. if test -z "$CC"; then
  2527. if test -n "$ac_tool_prefix"; then
  2528. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2529. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2531. $as_echo_n "checking for $ac_word... " >&6; }
  2532. if ${ac_cv_prog_CC+:} false; then :
  2533. $as_echo_n "(cached) " >&6
  2534. else
  2535. if test -n "$CC"; then
  2536. ac_cv_prog_CC="$CC" # Let the user override the test.
  2537. else
  2538. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2539. for as_dir in $PATH
  2540. do
  2541. IFS=$as_save_IFS
  2542. test -z "$as_dir" && as_dir=.
  2543. for ac_exec_ext in '' $ac_executable_extensions; do
  2544. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2545. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2546. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2547. break 2
  2548. fi
  2549. done
  2550. done
  2551. IFS=$as_save_IFS
  2552. fi
  2553. fi
  2554. CC=$ac_cv_prog_CC
  2555. if test -n "$CC"; then
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2557. $as_echo "$CC" >&6; }
  2558. else
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2560. $as_echo "no" >&6; }
  2561. fi
  2562. fi
  2563. fi
  2564. if test -z "$CC"; then
  2565. # Extract the first word of "cc", so it can be a program name with args.
  2566. set dummy cc; ac_word=$2
  2567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2568. $as_echo_n "checking for $ac_word... " >&6; }
  2569. if ${ac_cv_prog_CC+:} false; then :
  2570. $as_echo_n "(cached) " >&6
  2571. else
  2572. if test -n "$CC"; then
  2573. ac_cv_prog_CC="$CC" # Let the user override the test.
  2574. else
  2575. ac_prog_rejected=no
  2576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2577. for as_dir in $PATH
  2578. do
  2579. IFS=$as_save_IFS
  2580. test -z "$as_dir" && as_dir=.
  2581. for ac_exec_ext in '' $ac_executable_extensions; do
  2582. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2583. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2584. ac_prog_rejected=yes
  2585. continue
  2586. fi
  2587. ac_cv_prog_CC="cc"
  2588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2589. break 2
  2590. fi
  2591. done
  2592. done
  2593. IFS=$as_save_IFS
  2594. if test $ac_prog_rejected = yes; then
  2595. # We found a bogon in the path, so make sure we never use it.
  2596. set dummy $ac_cv_prog_CC
  2597. shift
  2598. if test $# != 0; then
  2599. # We chose a different compiler from the bogus one.
  2600. # However, it has the same basename, so the bogon will be chosen
  2601. # first if we set CC to just the basename; use the full file name.
  2602. shift
  2603. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2604. fi
  2605. fi
  2606. fi
  2607. fi
  2608. CC=$ac_cv_prog_CC
  2609. if test -n "$CC"; then
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2611. $as_echo "$CC" >&6; }
  2612. else
  2613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2614. $as_echo "no" >&6; }
  2615. fi
  2616. fi
  2617. if test -z "$CC"; then
  2618. if test -n "$ac_tool_prefix"; then
  2619. for ac_prog in cl.exe
  2620. do
  2621. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2622. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2624. $as_echo_n "checking for $ac_word... " >&6; }
  2625. if ${ac_cv_prog_CC+:} false; then :
  2626. $as_echo_n "(cached) " >&6
  2627. else
  2628. if test -n "$CC"; then
  2629. ac_cv_prog_CC="$CC" # Let the user override the test.
  2630. else
  2631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2632. for as_dir in $PATH
  2633. do
  2634. IFS=$as_save_IFS
  2635. test -z "$as_dir" && as_dir=.
  2636. for ac_exec_ext in '' $ac_executable_extensions; do
  2637. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2638. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2639. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2640. break 2
  2641. fi
  2642. done
  2643. done
  2644. IFS=$as_save_IFS
  2645. fi
  2646. fi
  2647. CC=$ac_cv_prog_CC
  2648. if test -n "$CC"; then
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2650. $as_echo "$CC" >&6; }
  2651. else
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2653. $as_echo "no" >&6; }
  2654. fi
  2655. test -n "$CC" && break
  2656. done
  2657. fi
  2658. if test -z "$CC"; then
  2659. ac_ct_CC=$CC
  2660. for ac_prog in cl.exe
  2661. do
  2662. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2663. set dummy $ac_prog; ac_word=$2
  2664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2665. $as_echo_n "checking for $ac_word... " >&6; }
  2666. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2667. $as_echo_n "(cached) " >&6
  2668. else
  2669. if test -n "$ac_ct_CC"; then
  2670. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2671. else
  2672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2673. for as_dir in $PATH
  2674. do
  2675. IFS=$as_save_IFS
  2676. test -z "$as_dir" && as_dir=.
  2677. for ac_exec_ext in '' $ac_executable_extensions; do
  2678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2679. ac_cv_prog_ac_ct_CC="$ac_prog"
  2680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2681. break 2
  2682. fi
  2683. done
  2684. done
  2685. IFS=$as_save_IFS
  2686. fi
  2687. fi
  2688. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2689. if test -n "$ac_ct_CC"; then
  2690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2691. $as_echo "$ac_ct_CC" >&6; }
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2694. $as_echo "no" >&6; }
  2695. fi
  2696. test -n "$ac_ct_CC" && break
  2697. done
  2698. if test "x$ac_ct_CC" = x; then
  2699. CC=""
  2700. else
  2701. case $cross_compiling:$ac_tool_warned in
  2702. yes:)
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2705. ac_tool_warned=yes ;;
  2706. esac
  2707. CC=$ac_ct_CC
  2708. fi
  2709. fi
  2710. fi
  2711. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2713. as_fn_error $? "no acceptable C compiler found in \$PATH
  2714. See \`config.log' for more details" "$LINENO" 5; }
  2715. # Provide some information about the compiler.
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2717. set X $ac_compile
  2718. ac_compiler=$2
  2719. for ac_option in --version -v -V -qversion; do
  2720. { { ac_try="$ac_compiler $ac_option >&5"
  2721. case "(($ac_try" in
  2722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2723. *) ac_try_echo=$ac_try;;
  2724. esac
  2725. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2726. $as_echo "$ac_try_echo"; } >&5
  2727. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2728. ac_status=$?
  2729. if test -s conftest.err; then
  2730. sed '10a\
  2731. ... rest of stderr output deleted ...
  2732. 10q' conftest.err >conftest.er1
  2733. cat conftest.er1 >&5
  2734. fi
  2735. rm -f conftest.er1 conftest.err
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2737. test $ac_status = 0; }
  2738. done
  2739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2740. /* end confdefs.h. */
  2741. int
  2742. main ()
  2743. {
  2744. ;
  2745. return 0;
  2746. }
  2747. _ACEOF
  2748. ac_clean_files_save=$ac_clean_files
  2749. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2750. # Try to create an executable without -o first, disregard a.out.
  2751. # It will help us diagnose broken compilers, and finding out an intuition
  2752. # of exeext.
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2754. $as_echo_n "checking whether the C compiler works... " >&6; }
  2755. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2756. # The possible output files:
  2757. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2758. ac_rmfiles=
  2759. for ac_file in $ac_files
  2760. do
  2761. case $ac_file in
  2762. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2763. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2764. esac
  2765. done
  2766. rm -f $ac_rmfiles
  2767. if { { ac_try="$ac_link_default"
  2768. case "(($ac_try" in
  2769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2770. *) ac_try_echo=$ac_try;;
  2771. esac
  2772. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2773. $as_echo "$ac_try_echo"; } >&5
  2774. (eval "$ac_link_default") 2>&5
  2775. ac_status=$?
  2776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2777. test $ac_status = 0; }; then :
  2778. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2779. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2780. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2781. # so that the user can short-circuit this test for compilers unknown to
  2782. # Autoconf.
  2783. for ac_file in $ac_files ''
  2784. do
  2785. test -f "$ac_file" || continue
  2786. case $ac_file in
  2787. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2788. ;;
  2789. [ab].out )
  2790. # We found the default executable, but exeext='' is most
  2791. # certainly right.
  2792. break;;
  2793. *.* )
  2794. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2795. then :; else
  2796. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2797. fi
  2798. # We set ac_cv_exeext here because the later test for it is not
  2799. # safe: cross compilers may not add the suffix if given an `-o'
  2800. # argument, so we may need to know it at that point already.
  2801. # Even if this section looks crufty: it has the advantage of
  2802. # actually working.
  2803. break;;
  2804. * )
  2805. break;;
  2806. esac
  2807. done
  2808. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2809. else
  2810. ac_file=''
  2811. fi
  2812. if test -z "$ac_file"; then :
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2814. $as_echo "no" >&6; }
  2815. $as_echo "$as_me: failed program was:" >&5
  2816. sed 's/^/| /' conftest.$ac_ext >&5
  2817. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2818. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2819. as_fn_error 77 "C compiler cannot create executables
  2820. See \`config.log' for more details" "$LINENO" 5; }
  2821. else
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2823. $as_echo "yes" >&6; }
  2824. fi
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2826. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2828. $as_echo "$ac_file" >&6; }
  2829. ac_exeext=$ac_cv_exeext
  2830. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2831. ac_clean_files=$ac_clean_files_save
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2833. $as_echo_n "checking for suffix of executables... " >&6; }
  2834. if { { ac_try="$ac_link"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2840. $as_echo "$ac_try_echo"; } >&5
  2841. (eval "$ac_link") 2>&5
  2842. ac_status=$?
  2843. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2844. test $ac_status = 0; }; then :
  2845. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2846. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2847. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2848. # `rm'.
  2849. for ac_file in conftest.exe conftest conftest.*; do
  2850. test -f "$ac_file" || continue
  2851. case $ac_file in
  2852. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2853. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2854. break;;
  2855. * ) break;;
  2856. esac
  2857. done
  2858. else
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2861. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2862. See \`config.log' for more details" "$LINENO" 5; }
  2863. fi
  2864. rm -f conftest conftest$ac_cv_exeext
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2866. $as_echo "$ac_cv_exeext" >&6; }
  2867. rm -f conftest.$ac_ext
  2868. EXEEXT=$ac_cv_exeext
  2869. ac_exeext=$EXEEXT
  2870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2871. /* end confdefs.h. */
  2872. #include <stdio.h>
  2873. int
  2874. main ()
  2875. {
  2876. FILE *f = fopen ("conftest.out", "w");
  2877. return ferror (f) || fclose (f) != 0;
  2878. ;
  2879. return 0;
  2880. }
  2881. _ACEOF
  2882. ac_clean_files="$ac_clean_files conftest.out"
  2883. # Check that the compiler produces executables we can run. If not, either
  2884. # the compiler is broken, or we cross compile.
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2886. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2887. if test "$cross_compiling" != yes; then
  2888. { { ac_try="$ac_link"
  2889. case "(($ac_try" in
  2890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2891. *) ac_try_echo=$ac_try;;
  2892. esac
  2893. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2894. $as_echo "$ac_try_echo"; } >&5
  2895. (eval "$ac_link") 2>&5
  2896. ac_status=$?
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2898. test $ac_status = 0; }
  2899. if { ac_try='./conftest$ac_cv_exeext'
  2900. { { case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2905. $as_echo "$ac_try_echo"; } >&5
  2906. (eval "$ac_try") 2>&5
  2907. ac_status=$?
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2909. test $ac_status = 0; }; }; then
  2910. cross_compiling=no
  2911. else
  2912. if test "$cross_compiling" = maybe; then
  2913. cross_compiling=yes
  2914. else
  2915. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2916. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2917. as_fn_error $? "cannot run C compiled programs.
  2918. If you meant to cross compile, use \`--host'.
  2919. See \`config.log' for more details" "$LINENO" 5; }
  2920. fi
  2921. fi
  2922. fi
  2923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2924. $as_echo "$cross_compiling" >&6; }
  2925. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2926. ac_clean_files=$ac_clean_files_save
  2927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2928. $as_echo_n "checking for suffix of object files... " >&6; }
  2929. if ${ac_cv_objext+:} false; then :
  2930. $as_echo_n "(cached) " >&6
  2931. else
  2932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2933. /* end confdefs.h. */
  2934. int
  2935. main ()
  2936. {
  2937. ;
  2938. return 0;
  2939. }
  2940. _ACEOF
  2941. rm -f conftest.o conftest.obj
  2942. if { { ac_try="$ac_compile"
  2943. case "(($ac_try" in
  2944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2945. *) ac_try_echo=$ac_try;;
  2946. esac
  2947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2948. $as_echo "$ac_try_echo"; } >&5
  2949. (eval "$ac_compile") 2>&5
  2950. ac_status=$?
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2952. test $ac_status = 0; }; then :
  2953. for ac_file in conftest.o conftest.obj conftest.*; do
  2954. test -f "$ac_file" || continue;
  2955. case $ac_file in
  2956. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2957. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2958. break;;
  2959. esac
  2960. done
  2961. else
  2962. $as_echo "$as_me: failed program was:" >&5
  2963. sed 's/^/| /' conftest.$ac_ext >&5
  2964. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2965. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2966. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2967. See \`config.log' for more details" "$LINENO" 5; }
  2968. fi
  2969. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2970. fi
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2972. $as_echo "$ac_cv_objext" >&6; }
  2973. OBJEXT=$ac_cv_objext
  2974. ac_objext=$OBJEXT
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2976. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2977. if ${ac_cv_c_compiler_gnu+:} false; then :
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2981. /* end confdefs.h. */
  2982. int
  2983. main ()
  2984. {
  2985. #ifndef __GNUC__
  2986. choke me
  2987. #endif
  2988. ;
  2989. return 0;
  2990. }
  2991. _ACEOF
  2992. if ac_fn_c_try_compile "$LINENO"; then :
  2993. ac_compiler_gnu=yes
  2994. else
  2995. ac_compiler_gnu=no
  2996. fi
  2997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2998. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2999. fi
  3000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3001. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3002. if test $ac_compiler_gnu = yes; then
  3003. GCC=yes
  3004. else
  3005. GCC=
  3006. fi
  3007. ac_test_CFLAGS=${CFLAGS+set}
  3008. ac_save_CFLAGS=$CFLAGS
  3009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3010. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3011. if ${ac_cv_prog_cc_g+:} false; then :
  3012. $as_echo_n "(cached) " >&6
  3013. else
  3014. ac_save_c_werror_flag=$ac_c_werror_flag
  3015. ac_c_werror_flag=yes
  3016. ac_cv_prog_cc_g=no
  3017. CFLAGS="-g"
  3018. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3019. /* end confdefs.h. */
  3020. int
  3021. main ()
  3022. {
  3023. ;
  3024. return 0;
  3025. }
  3026. _ACEOF
  3027. if ac_fn_c_try_compile "$LINENO"; then :
  3028. ac_cv_prog_cc_g=yes
  3029. else
  3030. CFLAGS=""
  3031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3032. /* end confdefs.h. */
  3033. int
  3034. main ()
  3035. {
  3036. ;
  3037. return 0;
  3038. }
  3039. _ACEOF
  3040. if ac_fn_c_try_compile "$LINENO"; then :
  3041. else
  3042. ac_c_werror_flag=$ac_save_c_werror_flag
  3043. CFLAGS="-g"
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. int
  3047. main ()
  3048. {
  3049. ;
  3050. return 0;
  3051. }
  3052. _ACEOF
  3053. if ac_fn_c_try_compile "$LINENO"; then :
  3054. ac_cv_prog_cc_g=yes
  3055. fi
  3056. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3057. fi
  3058. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3059. fi
  3060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3061. ac_c_werror_flag=$ac_save_c_werror_flag
  3062. fi
  3063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3064. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3065. if test "$ac_test_CFLAGS" = set; then
  3066. CFLAGS=$ac_save_CFLAGS
  3067. elif test $ac_cv_prog_cc_g = yes; then
  3068. if test "$GCC" = yes; then
  3069. CFLAGS="-g -O2"
  3070. else
  3071. CFLAGS="-g"
  3072. fi
  3073. else
  3074. if test "$GCC" = yes; then
  3075. CFLAGS="-O2"
  3076. else
  3077. CFLAGS=
  3078. fi
  3079. fi
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3081. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3082. if ${ac_cv_prog_cc_c89+:} false; then :
  3083. $as_echo_n "(cached) " >&6
  3084. else
  3085. ac_cv_prog_cc_c89=no
  3086. ac_save_CC=$CC
  3087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3088. /* end confdefs.h. */
  3089. #include <stdarg.h>
  3090. #include <stdio.h>
  3091. struct stat;
  3092. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3093. struct buf { int x; };
  3094. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3095. static char *e (p, i)
  3096. char **p;
  3097. int i;
  3098. {
  3099. return p[i];
  3100. }
  3101. static char *f (char * (*g) (char **, int), char **p, ...)
  3102. {
  3103. char *s;
  3104. va_list v;
  3105. va_start (v,p);
  3106. s = g (p, va_arg (v,int));
  3107. va_end (v);
  3108. return s;
  3109. }
  3110. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3111. function prototypes and stuff, but not '\xHH' hex character constants.
  3112. These don't provoke an error unfortunately, instead are silently treated
  3113. as 'x'. The following induces an error, until -std is added to get
  3114. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3115. array size at least. It's necessary to write '\x00'==0 to get something
  3116. that's true only with -std. */
  3117. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3118. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3119. inside strings and character constants. */
  3120. #define FOO(x) 'x'
  3121. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3122. int test (int i, double x);
  3123. struct s1 {int (*f) (int a);};
  3124. struct s2 {int (*f) (double a);};
  3125. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3126. int argc;
  3127. char **argv;
  3128. int
  3129. main ()
  3130. {
  3131. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3132. ;
  3133. return 0;
  3134. }
  3135. _ACEOF
  3136. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3137. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3138. do
  3139. CC="$ac_save_CC $ac_arg"
  3140. if ac_fn_c_try_compile "$LINENO"; then :
  3141. ac_cv_prog_cc_c89=$ac_arg
  3142. fi
  3143. rm -f core conftest.err conftest.$ac_objext
  3144. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3145. done
  3146. rm -f conftest.$ac_ext
  3147. CC=$ac_save_CC
  3148. fi
  3149. # AC_CACHE_VAL
  3150. case "x$ac_cv_prog_cc_c89" in
  3151. x)
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3153. $as_echo "none needed" >&6; } ;;
  3154. xno)
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3156. $as_echo "unsupported" >&6; } ;;
  3157. *)
  3158. CC="$CC $ac_cv_prog_cc_c89"
  3159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3160. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3161. esac
  3162. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3163. fi
  3164. ac_ext=c
  3165. ac_cpp='$CPP $CPPFLAGS'
  3166. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3167. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3168. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3169. depcc="$CC" am_compiler_list=
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3171. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3172. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3173. $as_echo_n "(cached) " >&6
  3174. else
  3175. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3176. # We make a subdir and do the tests there. Otherwise we can end up
  3177. # making bogus files that we don't know about and never remove. For
  3178. # instance it was reported that on HP-UX the gcc test will end up
  3179. # making a dummy file named 'D' -- because '-MD' means "put the output
  3180. # in D".
  3181. rm -rf conftest.dir
  3182. mkdir conftest.dir
  3183. # Copy depcomp to subdir because otherwise we won't find it if we're
  3184. # using a relative directory.
  3185. cp "$am_depcomp" conftest.dir
  3186. cd conftest.dir
  3187. # We will build objects and dependencies in a subdirectory because
  3188. # it helps to detect inapplicable dependency modes. For instance
  3189. # both Tru64's cc and ICC support -MD to output dependencies as a
  3190. # side effect of compilation, but ICC will put the dependencies in
  3191. # the current directory while Tru64 will put them in the object
  3192. # directory.
  3193. mkdir sub
  3194. am_cv_CC_dependencies_compiler_type=none
  3195. if test "$am_compiler_list" = ""; then
  3196. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3197. fi
  3198. am__universal=false
  3199. case " $depcc " in #(
  3200. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3201. esac
  3202. for depmode in $am_compiler_list; do
  3203. # Setup a source with many dependencies, because some compilers
  3204. # like to wrap large dependency lists on column 80 (with \), and
  3205. # we should not choose a depcomp mode which is confused by this.
  3206. #
  3207. # We need to recreate these files for each test, as the compiler may
  3208. # overwrite some of them when testing with obscure command lines.
  3209. # This happens at least with the AIX C compiler.
  3210. : > sub/conftest.c
  3211. for i in 1 2 3 4 5 6; do
  3212. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3213. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3214. # Solaris 10 /bin/sh.
  3215. echo '/* dummy */' > sub/conftst$i.h
  3216. done
  3217. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3218. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3219. # mode. It turns out that the SunPro C++ compiler does not properly
  3220. # handle '-M -o', and we need to detect this. Also, some Intel
  3221. # versions had trouble with output in subdirs.
  3222. am__obj=sub/conftest.${OBJEXT-o}
  3223. am__minus_obj="-o $am__obj"
  3224. case $depmode in
  3225. gcc)
  3226. # This depmode causes a compiler race in universal mode.
  3227. test "$am__universal" = false || continue
  3228. ;;
  3229. nosideeffect)
  3230. # After this tag, mechanisms are not by side-effect, so they'll
  3231. # only be used when explicitly requested.
  3232. if test "x$enable_dependency_tracking" = xyes; then
  3233. continue
  3234. else
  3235. break
  3236. fi
  3237. ;;
  3238. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3239. # This compiler won't grok '-c -o', but also, the minuso test has
  3240. # not run yet. These depmodes are late enough in the game, and
  3241. # so weak that their functioning should not be impacted.
  3242. am__obj=conftest.${OBJEXT-o}
  3243. am__minus_obj=
  3244. ;;
  3245. none) break ;;
  3246. esac
  3247. if depmode=$depmode \
  3248. source=sub/conftest.c object=$am__obj \
  3249. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3250. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3251. >/dev/null 2>conftest.err &&
  3252. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3253. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3254. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3255. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3256. # icc doesn't choke on unknown options, it will just issue warnings
  3257. # or remarks (even with -Werror). So we grep stderr for any message
  3258. # that says an option was ignored or not supported.
  3259. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3260. # icc: Command line warning: ignoring option '-M'; no argument required
  3261. # The diagnosis changed in icc 8.0:
  3262. # icc: Command line remark: option '-MP' not supported
  3263. if (grep 'ignoring option' conftest.err ||
  3264. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3265. am_cv_CC_dependencies_compiler_type=$depmode
  3266. break
  3267. fi
  3268. fi
  3269. done
  3270. cd ..
  3271. rm -rf conftest.dir
  3272. else
  3273. am_cv_CC_dependencies_compiler_type=none
  3274. fi
  3275. fi
  3276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3277. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3278. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3279. if
  3280. test "x$enable_dependency_tracking" != xno \
  3281. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3282. am__fastdepCC_TRUE=
  3283. am__fastdepCC_FALSE='#'
  3284. else
  3285. am__fastdepCC_TRUE='#'
  3286. am__fastdepCC_FALSE=
  3287. fi
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3289. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3290. if ${ac_cv_prog_cc_c99+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. ac_cv_prog_cc_c99=no
  3294. ac_save_CC=$CC
  3295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3296. /* end confdefs.h. */
  3297. #include <stdarg.h>
  3298. #include <stdbool.h>
  3299. #include <stdlib.h>
  3300. #include <wchar.h>
  3301. #include <stdio.h>
  3302. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3303. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3304. #define showlist(...) puts (#__VA_ARGS__)
  3305. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3306. static void
  3307. test_varargs_macros (void)
  3308. {
  3309. int x = 1234;
  3310. int y = 5678;
  3311. debug ("Flag");
  3312. debug ("X = %d\n", x);
  3313. showlist (The first, second, and third items.);
  3314. report (x>y, "x is %d but y is %d", x, y);
  3315. }
  3316. // Check long long types.
  3317. #define BIG64 18446744073709551615ull
  3318. #define BIG32 4294967295ul
  3319. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3320. #if !BIG_OK
  3321. your preprocessor is broken;
  3322. #endif
  3323. #if BIG_OK
  3324. #else
  3325. your preprocessor is broken;
  3326. #endif
  3327. static long long int bignum = -9223372036854775807LL;
  3328. static unsigned long long int ubignum = BIG64;
  3329. struct incomplete_array
  3330. {
  3331. int datasize;
  3332. double data[];
  3333. };
  3334. struct named_init {
  3335. int number;
  3336. const wchar_t *name;
  3337. double average;
  3338. };
  3339. typedef const char *ccp;
  3340. static inline int
  3341. test_restrict (ccp restrict text)
  3342. {
  3343. // See if C++-style comments work.
  3344. // Iterate through items via the restricted pointer.
  3345. // Also check for declarations in for loops.
  3346. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3347. continue;
  3348. return 0;
  3349. }
  3350. // Check varargs and va_copy.
  3351. static void
  3352. test_varargs (const char *format, ...)
  3353. {
  3354. va_list args;
  3355. va_start (args, format);
  3356. va_list args_copy;
  3357. va_copy (args_copy, args);
  3358. const char *str;
  3359. int number;
  3360. float fnumber;
  3361. while (*format)
  3362. {
  3363. switch (*format++)
  3364. {
  3365. case 's': // string
  3366. str = va_arg (args_copy, const char *);
  3367. break;
  3368. case 'd': // int
  3369. number = va_arg (args_copy, int);
  3370. break;
  3371. case 'f': // float
  3372. fnumber = va_arg (args_copy, double);
  3373. break;
  3374. default:
  3375. break;
  3376. }
  3377. }
  3378. va_end (args_copy);
  3379. va_end (args);
  3380. }
  3381. int
  3382. main ()
  3383. {
  3384. // Check bool.
  3385. _Bool success = false;
  3386. // Check restrict.
  3387. if (test_restrict ("String literal") == 0)
  3388. success = true;
  3389. char *restrict newvar = "Another string";
  3390. // Check varargs.
  3391. test_varargs ("s, d' f .", "string", 65, 34.234);
  3392. test_varargs_macros ();
  3393. // Check flexible array members.
  3394. struct incomplete_array *ia =
  3395. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3396. ia->datasize = 10;
  3397. for (int i = 0; i < ia->datasize; ++i)
  3398. ia->data[i] = i * 1.234;
  3399. // Check named initializers.
  3400. struct named_init ni = {
  3401. .number = 34,
  3402. .name = L"Test wide string",
  3403. .average = 543.34343,
  3404. };
  3405. ni.number = 58;
  3406. int dynamic_array[ni.number];
  3407. dynamic_array[ni.number - 1] = 543;
  3408. // work around unused variable warnings
  3409. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3410. || dynamic_array[ni.number - 1] != 543);
  3411. ;
  3412. return 0;
  3413. }
  3414. _ACEOF
  3415. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3416. do
  3417. CC="$ac_save_CC $ac_arg"
  3418. if ac_fn_c_try_compile "$LINENO"; then :
  3419. ac_cv_prog_cc_c99=$ac_arg
  3420. fi
  3421. rm -f core conftest.err conftest.$ac_objext
  3422. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3423. done
  3424. rm -f conftest.$ac_ext
  3425. CC=$ac_save_CC
  3426. fi
  3427. # AC_CACHE_VAL
  3428. case "x$ac_cv_prog_cc_c99" in
  3429. x)
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3431. $as_echo "none needed" >&6; } ;;
  3432. xno)
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3434. $as_echo "unsupported" >&6; } ;;
  3435. *)
  3436. CC="$CC $ac_cv_prog_cc_c99"
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3438. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3439. esac
  3440. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3441. fi
  3442. ac_ext=c
  3443. ac_cpp='$CPP $CPPFLAGS'
  3444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3448. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3449. # On Suns, sometimes $CPP names a directory.
  3450. if test -n "$CPP" && test -d "$CPP"; then
  3451. CPP=
  3452. fi
  3453. if test -z "$CPP"; then
  3454. if ${ac_cv_prog_CPP+:} false; then :
  3455. $as_echo_n "(cached) " >&6
  3456. else
  3457. # Double quotes because CPP needs to be expanded
  3458. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3459. do
  3460. ac_preproc_ok=false
  3461. for ac_c_preproc_warn_flag in '' yes
  3462. do
  3463. # Use a header file that comes with gcc, so configuring glibc
  3464. # with a fresh cross-compiler works.
  3465. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3466. # <limits.h> exists even on freestanding compilers.
  3467. # On the NeXT, cc -E runs the code through the compiler's parser,
  3468. # not just through cpp. "Syntax error" is here to catch this case.
  3469. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3470. /* end confdefs.h. */
  3471. #ifdef __STDC__
  3472. # include <limits.h>
  3473. #else
  3474. # include <assert.h>
  3475. #endif
  3476. Syntax error
  3477. _ACEOF
  3478. if ac_fn_c_try_cpp "$LINENO"; then :
  3479. else
  3480. # Broken: fails on valid input.
  3481. continue
  3482. fi
  3483. rm -f conftest.err conftest.i conftest.$ac_ext
  3484. # OK, works on sane cases. Now check whether nonexistent headers
  3485. # can be detected and how.
  3486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3487. /* end confdefs.h. */
  3488. #include <ac_nonexistent.h>
  3489. _ACEOF
  3490. if ac_fn_c_try_cpp "$LINENO"; then :
  3491. # Broken: success on invalid input.
  3492. continue
  3493. else
  3494. # Passes both tests.
  3495. ac_preproc_ok=:
  3496. break
  3497. fi
  3498. rm -f conftest.err conftest.i conftest.$ac_ext
  3499. done
  3500. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3501. rm -f conftest.i conftest.err conftest.$ac_ext
  3502. if $ac_preproc_ok; then :
  3503. break
  3504. fi
  3505. done
  3506. ac_cv_prog_CPP=$CPP
  3507. fi
  3508. CPP=$ac_cv_prog_CPP
  3509. else
  3510. ac_cv_prog_CPP=$CPP
  3511. fi
  3512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3513. $as_echo "$CPP" >&6; }
  3514. ac_preproc_ok=false
  3515. for ac_c_preproc_warn_flag in '' yes
  3516. do
  3517. # Use a header file that comes with gcc, so configuring glibc
  3518. # with a fresh cross-compiler works.
  3519. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3520. # <limits.h> exists even on freestanding compilers.
  3521. # On the NeXT, cc -E runs the code through the compiler's parser,
  3522. # not just through cpp. "Syntax error" is here to catch this case.
  3523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3524. /* end confdefs.h. */
  3525. #ifdef __STDC__
  3526. # include <limits.h>
  3527. #else
  3528. # include <assert.h>
  3529. #endif
  3530. Syntax error
  3531. _ACEOF
  3532. if ac_fn_c_try_cpp "$LINENO"; then :
  3533. else
  3534. # Broken: fails on valid input.
  3535. continue
  3536. fi
  3537. rm -f conftest.err conftest.i conftest.$ac_ext
  3538. # OK, works on sane cases. Now check whether nonexistent headers
  3539. # can be detected and how.
  3540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3541. /* end confdefs.h. */
  3542. #include <ac_nonexistent.h>
  3543. _ACEOF
  3544. if ac_fn_c_try_cpp "$LINENO"; then :
  3545. # Broken: success on invalid input.
  3546. continue
  3547. else
  3548. # Passes both tests.
  3549. ac_preproc_ok=:
  3550. break
  3551. fi
  3552. rm -f conftest.err conftest.i conftest.$ac_ext
  3553. done
  3554. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3555. rm -f conftest.i conftest.err conftest.$ac_ext
  3556. if $ac_preproc_ok; then :
  3557. else
  3558. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3559. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3560. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3561. See \`config.log' for more details" "$LINENO" 5; }
  3562. fi
  3563. ac_ext=c
  3564. ac_cpp='$CPP $CPPFLAGS'
  3565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3569. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3570. if ${ac_cv_path_GREP+:} false; then :
  3571. $as_echo_n "(cached) " >&6
  3572. else
  3573. if test -z "$GREP"; then
  3574. ac_path_GREP_found=false
  3575. # Loop through the user's path and test for each of PROGNAME-LIST
  3576. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3577. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3578. do
  3579. IFS=$as_save_IFS
  3580. test -z "$as_dir" && as_dir=.
  3581. for ac_prog in grep ggrep; do
  3582. for ac_exec_ext in '' $ac_executable_extensions; do
  3583. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3584. as_fn_executable_p "$ac_path_GREP" || continue
  3585. # Check for GNU ac_path_GREP and select it if it is found.
  3586. # Check for GNU $ac_path_GREP
  3587. case `"$ac_path_GREP" --version 2>&1` in
  3588. *GNU*)
  3589. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3590. *)
  3591. ac_count=0
  3592. $as_echo_n 0123456789 >"conftest.in"
  3593. while :
  3594. do
  3595. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3596. mv "conftest.tmp" "conftest.in"
  3597. cp "conftest.in" "conftest.nl"
  3598. $as_echo 'GREP' >> "conftest.nl"
  3599. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3600. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3601. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3602. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3603. # Best one so far, save it but keep looking for a better one
  3604. ac_cv_path_GREP="$ac_path_GREP"
  3605. ac_path_GREP_max=$ac_count
  3606. fi
  3607. # 10*(2^10) chars as input seems more than enough
  3608. test $ac_count -gt 10 && break
  3609. done
  3610. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3611. esac
  3612. $ac_path_GREP_found && break 3
  3613. done
  3614. done
  3615. done
  3616. IFS=$as_save_IFS
  3617. if test -z "$ac_cv_path_GREP"; then
  3618. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3619. fi
  3620. else
  3621. ac_cv_path_GREP=$GREP
  3622. fi
  3623. fi
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3625. $as_echo "$ac_cv_path_GREP" >&6; }
  3626. GREP="$ac_cv_path_GREP"
  3627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3628. $as_echo_n "checking for egrep... " >&6; }
  3629. if ${ac_cv_path_EGREP+:} false; then :
  3630. $as_echo_n "(cached) " >&6
  3631. else
  3632. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3633. then ac_cv_path_EGREP="$GREP -E"
  3634. else
  3635. if test -z "$EGREP"; then
  3636. ac_path_EGREP_found=false
  3637. # Loop through the user's path and test for each of PROGNAME-LIST
  3638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3639. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3640. do
  3641. IFS=$as_save_IFS
  3642. test -z "$as_dir" && as_dir=.
  3643. for ac_prog in egrep; do
  3644. for ac_exec_ext in '' $ac_executable_extensions; do
  3645. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3646. as_fn_executable_p "$ac_path_EGREP" || continue
  3647. # Check for GNU ac_path_EGREP and select it if it is found.
  3648. # Check for GNU $ac_path_EGREP
  3649. case `"$ac_path_EGREP" --version 2>&1` in
  3650. *GNU*)
  3651. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3652. *)
  3653. ac_count=0
  3654. $as_echo_n 0123456789 >"conftest.in"
  3655. while :
  3656. do
  3657. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3658. mv "conftest.tmp" "conftest.in"
  3659. cp "conftest.in" "conftest.nl"
  3660. $as_echo 'EGREP' >> "conftest.nl"
  3661. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3662. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3663. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3664. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3665. # Best one so far, save it but keep looking for a better one
  3666. ac_cv_path_EGREP="$ac_path_EGREP"
  3667. ac_path_EGREP_max=$ac_count
  3668. fi
  3669. # 10*(2^10) chars as input seems more than enough
  3670. test $ac_count -gt 10 && break
  3671. done
  3672. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3673. esac
  3674. $ac_path_EGREP_found && break 3
  3675. done
  3676. done
  3677. done
  3678. IFS=$as_save_IFS
  3679. if test -z "$ac_cv_path_EGREP"; then
  3680. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3681. fi
  3682. else
  3683. ac_cv_path_EGREP=$EGREP
  3684. fi
  3685. fi
  3686. fi
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3688. $as_echo "$ac_cv_path_EGREP" >&6; }
  3689. EGREP="$ac_cv_path_EGREP"
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3691. $as_echo_n "checking for ANSI C header files... " >&6; }
  3692. if ${ac_cv_header_stdc+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3696. /* end confdefs.h. */
  3697. #include <stdlib.h>
  3698. #include <stdarg.h>
  3699. #include <string.h>
  3700. #include <float.h>
  3701. int
  3702. main ()
  3703. {
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. if ac_fn_c_try_compile "$LINENO"; then :
  3709. ac_cv_header_stdc=yes
  3710. else
  3711. ac_cv_header_stdc=no
  3712. fi
  3713. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3714. if test $ac_cv_header_stdc = yes; then
  3715. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3717. /* end confdefs.h. */
  3718. #include <string.h>
  3719. _ACEOF
  3720. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3721. $EGREP "memchr" >/dev/null 2>&1; then :
  3722. else
  3723. ac_cv_header_stdc=no
  3724. fi
  3725. rm -f conftest*
  3726. fi
  3727. if test $ac_cv_header_stdc = yes; then
  3728. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3730. /* end confdefs.h. */
  3731. #include <stdlib.h>
  3732. _ACEOF
  3733. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3734. $EGREP "free" >/dev/null 2>&1; then :
  3735. else
  3736. ac_cv_header_stdc=no
  3737. fi
  3738. rm -f conftest*
  3739. fi
  3740. if test $ac_cv_header_stdc = yes; then
  3741. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3742. if test "$cross_compiling" = yes; then :
  3743. :
  3744. else
  3745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3746. /* end confdefs.h. */
  3747. #include <ctype.h>
  3748. #include <stdlib.h>
  3749. #if ((' ' & 0x0FF) == 0x020)
  3750. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3751. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3752. #else
  3753. # define ISLOWER(c) \
  3754. (('a' <= (c) && (c) <= 'i') \
  3755. || ('j' <= (c) && (c) <= 'r') \
  3756. || ('s' <= (c) && (c) <= 'z'))
  3757. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3758. #endif
  3759. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3760. int
  3761. main ()
  3762. {
  3763. int i;
  3764. for (i = 0; i < 256; i++)
  3765. if (XOR (islower (i), ISLOWER (i))
  3766. || toupper (i) != TOUPPER (i))
  3767. return 2;
  3768. return 0;
  3769. }
  3770. _ACEOF
  3771. if ac_fn_c_try_run "$LINENO"; then :
  3772. else
  3773. ac_cv_header_stdc=no
  3774. fi
  3775. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3776. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3777. fi
  3778. fi
  3779. fi
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3781. $as_echo "$ac_cv_header_stdc" >&6; }
  3782. if test $ac_cv_header_stdc = yes; then
  3783. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3784. fi
  3785. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3786. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3787. inttypes.h stdint.h unistd.h
  3788. do :
  3789. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3790. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3791. "
  3792. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3793. cat >>confdefs.h <<_ACEOF
  3794. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3795. _ACEOF
  3796. fi
  3797. done
  3798. ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
  3799. if test "x$ac_cv_have_decl___clang__" = xyes; then :
  3800. CLANGCC="yes"
  3801. else
  3802. CLANGCC="no"
  3803. fi
  3804. ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
  3805. if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
  3806. INTELCC="yes"
  3807. else
  3808. INTELCC="no"
  3809. fi
  3810. ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
  3811. if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
  3812. SUNCC="yes"
  3813. else
  3814. SUNCC="no"
  3815. fi
  3816. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  3817. if test -n "$ac_tool_prefix"; then
  3818. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  3819. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3821. $as_echo_n "checking for $ac_word... " >&6; }
  3822. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  3823. $as_echo_n "(cached) " >&6
  3824. else
  3825. case $PKG_CONFIG in
  3826. [\\/]* | ?:[\\/]*)
  3827. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  3828. ;;
  3829. *)
  3830. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3831. for as_dir in $PATH
  3832. do
  3833. IFS=$as_save_IFS
  3834. test -z "$as_dir" && as_dir=.
  3835. for ac_exec_ext in '' $ac_executable_extensions; do
  3836. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3837. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3838. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3839. break 2
  3840. fi
  3841. done
  3842. done
  3843. IFS=$as_save_IFS
  3844. ;;
  3845. esac
  3846. fi
  3847. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  3848. if test -n "$PKG_CONFIG"; then
  3849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  3850. $as_echo "$PKG_CONFIG" >&6; }
  3851. else
  3852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3853. $as_echo "no" >&6; }
  3854. fi
  3855. fi
  3856. if test -z "$ac_cv_path_PKG_CONFIG"; then
  3857. ac_pt_PKG_CONFIG=$PKG_CONFIG
  3858. # Extract the first word of "pkg-config", so it can be a program name with args.
  3859. set dummy pkg-config; ac_word=$2
  3860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3861. $as_echo_n "checking for $ac_word... " >&6; }
  3862. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  3863. $as_echo_n "(cached) " >&6
  3864. else
  3865. case $ac_pt_PKG_CONFIG in
  3866. [\\/]* | ?:[\\/]*)
  3867. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  3868. ;;
  3869. *)
  3870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3871. for as_dir in $PATH
  3872. do
  3873. IFS=$as_save_IFS
  3874. test -z "$as_dir" && as_dir=.
  3875. for ac_exec_ext in '' $ac_executable_extensions; do
  3876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3877. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3879. break 2
  3880. fi
  3881. done
  3882. done
  3883. IFS=$as_save_IFS
  3884. ;;
  3885. esac
  3886. fi
  3887. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  3888. if test -n "$ac_pt_PKG_CONFIG"; then
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  3890. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  3891. else
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3893. $as_echo "no" >&6; }
  3894. fi
  3895. if test "x$ac_pt_PKG_CONFIG" = x; then
  3896. PKG_CONFIG=""
  3897. else
  3898. case $cross_compiling:$ac_tool_warned in
  3899. yes:)
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3902. ac_tool_warned=yes ;;
  3903. esac
  3904. PKG_CONFIG=$ac_pt_PKG_CONFIG
  3905. fi
  3906. else
  3907. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  3908. fi
  3909. fi
  3910. if test -n "$PKG_CONFIG"; then
  3911. _pkg_min_version=0.9.0
  3912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  3913. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  3914. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  3915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3916. $as_echo "yes" >&6; }
  3917. else
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3919. $as_echo "no" >&6; }
  3920. PKG_CONFIG=""
  3921. fi
  3922. fi
  3923. # Make sure we can run config.sub.
  3924. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3925. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3927. $as_echo_n "checking build system type... " >&6; }
  3928. if ${ac_cv_build+:} false; then :
  3929. $as_echo_n "(cached) " >&6
  3930. else
  3931. ac_build_alias=$build_alias
  3932. test "x$ac_build_alias" = x &&
  3933. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3934. test "x$ac_build_alias" = x &&
  3935. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3936. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3937. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3938. fi
  3939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3940. $as_echo "$ac_cv_build" >&6; }
  3941. case $ac_cv_build in
  3942. *-*-*) ;;
  3943. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3944. esac
  3945. build=$ac_cv_build
  3946. ac_save_IFS=$IFS; IFS='-'
  3947. set x $ac_cv_build
  3948. shift
  3949. build_cpu=$1
  3950. build_vendor=$2
  3951. shift; shift
  3952. # Remember, the first character of IFS is used to create $*,
  3953. # except with old shells:
  3954. build_os=$*
  3955. IFS=$ac_save_IFS
  3956. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3958. $as_echo_n "checking host system type... " >&6; }
  3959. if ${ac_cv_host+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. if test "x$host_alias" = x; then
  3963. ac_cv_host=$ac_cv_build
  3964. else
  3965. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3966. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3967. fi
  3968. fi
  3969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3970. $as_echo "$ac_cv_host" >&6; }
  3971. case $ac_cv_host in
  3972. *-*-*) ;;
  3973. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3974. esac
  3975. host=$ac_cv_host
  3976. ac_save_IFS=$IFS; IFS='-'
  3977. set x $ac_cv_host
  3978. shift
  3979. host_cpu=$1
  3980. host_vendor=$2
  3981. shift; shift
  3982. # Remember, the first character of IFS is used to create $*,
  3983. # except with old shells:
  3984. host_os=$*
  3985. IFS=$ac_save_IFS
  3986. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3988. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3989. if ${ac_cv_path_SED+:} false; then :
  3990. $as_echo_n "(cached) " >&6
  3991. else
  3992. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3993. for ac_i in 1 2 3 4 5 6 7; do
  3994. ac_script="$ac_script$as_nl$ac_script"
  3995. done
  3996. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3997. { ac_script=; unset ac_script;}
  3998. if test -z "$SED"; then
  3999. ac_path_SED_found=false
  4000. # Loop through the user's path and test for each of PROGNAME-LIST
  4001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4002. for as_dir in $PATH
  4003. do
  4004. IFS=$as_save_IFS
  4005. test -z "$as_dir" && as_dir=.
  4006. for ac_prog in sed gsed; do
  4007. for ac_exec_ext in '' $ac_executable_extensions; do
  4008. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4009. as_fn_executable_p "$ac_path_SED" || continue
  4010. # Check for GNU ac_path_SED and select it if it is found.
  4011. # Check for GNU $ac_path_SED
  4012. case `"$ac_path_SED" --version 2>&1` in
  4013. *GNU*)
  4014. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4015. *)
  4016. ac_count=0
  4017. $as_echo_n 0123456789 >"conftest.in"
  4018. while :
  4019. do
  4020. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4021. mv "conftest.tmp" "conftest.in"
  4022. cp "conftest.in" "conftest.nl"
  4023. $as_echo '' >> "conftest.nl"
  4024. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4025. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4026. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4027. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4028. # Best one so far, save it but keep looking for a better one
  4029. ac_cv_path_SED="$ac_path_SED"
  4030. ac_path_SED_max=$ac_count
  4031. fi
  4032. # 10*(2^10) chars as input seems more than enough
  4033. test $ac_count -gt 10 && break
  4034. done
  4035. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4036. esac
  4037. $ac_path_SED_found && break 3
  4038. done
  4039. done
  4040. done
  4041. IFS=$as_save_IFS
  4042. if test -z "$ac_cv_path_SED"; then
  4043. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4044. fi
  4045. else
  4046. ac_cv_path_SED=$SED
  4047. fi
  4048. fi
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4050. $as_echo "$ac_cv_path_SED" >&6; }
  4051. SED="$ac_cv_path_SED"
  4052. rm -f conftest.sed
  4053. # Check whether --enable-selective-werror was given.
  4054. if test "${enable_selective_werror+set}" = set; then :
  4055. enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
  4056. else
  4057. SELECTIVE_WERROR=yes
  4058. fi
  4059. # -v is too short to test reliably with XORG_TESTSET_CFLAG
  4060. if test "x$SUNCC" = "xyes"; then
  4061. BASE_CFLAGS="-v"
  4062. else
  4063. BASE_CFLAGS=""
  4064. fi
  4065. # This chunk of warnings were those that existed in the legacy CWARNFLAGS
  4066. xorg_testset_save_CFLAGS="$CFLAGS"
  4067. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4068. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4070. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4071. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4075. /* end confdefs.h. */
  4076. int i;
  4077. _ACEOF
  4078. if ac_fn_c_try_compile "$LINENO"; then :
  4079. xorg_cv_cc_flag_unknown_warning_option=yes
  4080. else
  4081. xorg_cv_cc_flag_unknown_warning_option=no
  4082. fi
  4083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4084. fi
  4085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4086. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4087. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4088. CFLAGS="$xorg_testset_save_CFLAGS"
  4089. fi
  4090. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4091. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4092. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4093. fi
  4094. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4096. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4097. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4098. $as_echo_n "(cached) " >&6
  4099. else
  4100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4101. /* end confdefs.h. */
  4102. int i;
  4103. _ACEOF
  4104. if ac_fn_c_try_compile "$LINENO"; then :
  4105. xorg_cv_cc_flag_unused_command_line_argument=yes
  4106. else
  4107. xorg_cv_cc_flag_unused_command_line_argument=no
  4108. fi
  4109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4110. fi
  4111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4112. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4113. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4114. CFLAGS="$xorg_testset_save_CFLAGS"
  4115. fi
  4116. found="no"
  4117. if test $found = "no" ; then
  4118. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4119. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4120. fi
  4121. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4122. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4123. fi
  4124. CFLAGS="$CFLAGS -Wall"
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
  4126. $as_echo_n "checking if $CC supports -Wall... " >&6; }
  4127. cacheid=xorg_cv_cc_flag__Wall
  4128. if eval \${$cacheid+:} false; then :
  4129. $as_echo_n "(cached) " >&6
  4130. else
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. int i;
  4134. int
  4135. main ()
  4136. {
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. if ac_fn_c_try_link "$LINENO"; then :
  4142. eval $cacheid=yes
  4143. else
  4144. eval $cacheid=no
  4145. fi
  4146. rm -f core conftest.err conftest.$ac_objext \
  4147. conftest$ac_exeext conftest.$ac_ext
  4148. fi
  4149. CFLAGS="$xorg_testset_save_CFLAGS"
  4150. eval supported=\$$cacheid
  4151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4152. $as_echo "$supported" >&6; }
  4153. if test "$supported" = "yes" ; then
  4154. BASE_CFLAGS="$BASE_CFLAGS -Wall"
  4155. found="yes"
  4156. fi
  4157. fi
  4158. xorg_testset_save_CFLAGS="$CFLAGS"
  4159. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4160. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4162. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4163. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4164. $as_echo_n "(cached) " >&6
  4165. else
  4166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4167. /* end confdefs.h. */
  4168. int i;
  4169. _ACEOF
  4170. if ac_fn_c_try_compile "$LINENO"; then :
  4171. xorg_cv_cc_flag_unknown_warning_option=yes
  4172. else
  4173. xorg_cv_cc_flag_unknown_warning_option=no
  4174. fi
  4175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4176. fi
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4178. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4179. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4180. CFLAGS="$xorg_testset_save_CFLAGS"
  4181. fi
  4182. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4183. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4184. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4185. fi
  4186. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4188. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4189. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4193. /* end confdefs.h. */
  4194. int i;
  4195. _ACEOF
  4196. if ac_fn_c_try_compile "$LINENO"; then :
  4197. xorg_cv_cc_flag_unused_command_line_argument=yes
  4198. else
  4199. xorg_cv_cc_flag_unused_command_line_argument=no
  4200. fi
  4201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4202. fi
  4203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4204. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4205. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4206. CFLAGS="$xorg_testset_save_CFLAGS"
  4207. fi
  4208. found="no"
  4209. if test $found = "no" ; then
  4210. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4211. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4212. fi
  4213. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4214. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4215. fi
  4216. CFLAGS="$CFLAGS -Wpointer-arith"
  4217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
  4218. $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
  4219. cacheid=xorg_cv_cc_flag__Wpointer_arith
  4220. if eval \${$cacheid+:} false; then :
  4221. $as_echo_n "(cached) " >&6
  4222. else
  4223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4224. /* end confdefs.h. */
  4225. int i;
  4226. int
  4227. main ()
  4228. {
  4229. ;
  4230. return 0;
  4231. }
  4232. _ACEOF
  4233. if ac_fn_c_try_link "$LINENO"; then :
  4234. eval $cacheid=yes
  4235. else
  4236. eval $cacheid=no
  4237. fi
  4238. rm -f core conftest.err conftest.$ac_objext \
  4239. conftest$ac_exeext conftest.$ac_ext
  4240. fi
  4241. CFLAGS="$xorg_testset_save_CFLAGS"
  4242. eval supported=\$$cacheid
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4244. $as_echo "$supported" >&6; }
  4245. if test "$supported" = "yes" ; then
  4246. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
  4247. found="yes"
  4248. fi
  4249. fi
  4250. xorg_testset_save_CFLAGS="$CFLAGS"
  4251. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4252. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4254. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4255. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4256. $as_echo_n "(cached) " >&6
  4257. else
  4258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4259. /* end confdefs.h. */
  4260. int i;
  4261. _ACEOF
  4262. if ac_fn_c_try_compile "$LINENO"; then :
  4263. xorg_cv_cc_flag_unknown_warning_option=yes
  4264. else
  4265. xorg_cv_cc_flag_unknown_warning_option=no
  4266. fi
  4267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4268. fi
  4269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4270. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4271. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4272. CFLAGS="$xorg_testset_save_CFLAGS"
  4273. fi
  4274. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4275. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4276. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4277. fi
  4278. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4280. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4281. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4282. $as_echo_n "(cached) " >&6
  4283. else
  4284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end confdefs.h. */
  4286. int i;
  4287. _ACEOF
  4288. if ac_fn_c_try_compile "$LINENO"; then :
  4289. xorg_cv_cc_flag_unused_command_line_argument=yes
  4290. else
  4291. xorg_cv_cc_flag_unused_command_line_argument=no
  4292. fi
  4293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4294. fi
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4296. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4297. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4298. CFLAGS="$xorg_testset_save_CFLAGS"
  4299. fi
  4300. found="no"
  4301. if test $found = "no" ; then
  4302. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4303. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4304. fi
  4305. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4306. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4307. fi
  4308. CFLAGS="$CFLAGS -Wmissing-declarations"
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
  4310. $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
  4311. cacheid=xorg_cv_cc_flag__Wmissing_declarations
  4312. if eval \${$cacheid+:} false; then :
  4313. $as_echo_n "(cached) " >&6
  4314. else
  4315. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4316. /* end confdefs.h. */
  4317. int i;
  4318. int
  4319. main ()
  4320. {
  4321. ;
  4322. return 0;
  4323. }
  4324. _ACEOF
  4325. if ac_fn_c_try_link "$LINENO"; then :
  4326. eval $cacheid=yes
  4327. else
  4328. eval $cacheid=no
  4329. fi
  4330. rm -f core conftest.err conftest.$ac_objext \
  4331. conftest$ac_exeext conftest.$ac_ext
  4332. fi
  4333. CFLAGS="$xorg_testset_save_CFLAGS"
  4334. eval supported=\$$cacheid
  4335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4336. $as_echo "$supported" >&6; }
  4337. if test "$supported" = "yes" ; then
  4338. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
  4339. found="yes"
  4340. fi
  4341. fi
  4342. xorg_testset_save_CFLAGS="$CFLAGS"
  4343. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4344. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4346. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4347. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4348. $as_echo_n "(cached) " >&6
  4349. else
  4350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4351. /* end confdefs.h. */
  4352. int i;
  4353. _ACEOF
  4354. if ac_fn_c_try_compile "$LINENO"; then :
  4355. xorg_cv_cc_flag_unknown_warning_option=yes
  4356. else
  4357. xorg_cv_cc_flag_unknown_warning_option=no
  4358. fi
  4359. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4360. fi
  4361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4362. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4363. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4364. CFLAGS="$xorg_testset_save_CFLAGS"
  4365. fi
  4366. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4367. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4368. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4369. fi
  4370. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4372. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4373. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4377. /* end confdefs.h. */
  4378. int i;
  4379. _ACEOF
  4380. if ac_fn_c_try_compile "$LINENO"; then :
  4381. xorg_cv_cc_flag_unused_command_line_argument=yes
  4382. else
  4383. xorg_cv_cc_flag_unused_command_line_argument=no
  4384. fi
  4385. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4386. fi
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4388. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4389. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4390. CFLAGS="$xorg_testset_save_CFLAGS"
  4391. fi
  4392. found="no"
  4393. if test $found = "no" ; then
  4394. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4395. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4396. fi
  4397. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4398. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4399. fi
  4400. CFLAGS="$CFLAGS -Wformat=2"
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
  4402. $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
  4403. cacheid=xorg_cv_cc_flag__Wformat_2
  4404. if eval \${$cacheid+:} false; then :
  4405. $as_echo_n "(cached) " >&6
  4406. else
  4407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4408. /* end confdefs.h. */
  4409. int i;
  4410. int
  4411. main ()
  4412. {
  4413. ;
  4414. return 0;
  4415. }
  4416. _ACEOF
  4417. if ac_fn_c_try_link "$LINENO"; then :
  4418. eval $cacheid=yes
  4419. else
  4420. eval $cacheid=no
  4421. fi
  4422. rm -f core conftest.err conftest.$ac_objext \
  4423. conftest$ac_exeext conftest.$ac_ext
  4424. fi
  4425. CFLAGS="$xorg_testset_save_CFLAGS"
  4426. eval supported=\$$cacheid
  4427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4428. $as_echo "$supported" >&6; }
  4429. if test "$supported" = "yes" ; then
  4430. BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
  4431. found="yes"
  4432. fi
  4433. fi
  4434. if test $found = "no" ; then
  4435. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4436. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4437. fi
  4438. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4439. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4440. fi
  4441. CFLAGS="$CFLAGS -Wformat"
  4442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
  4443. $as_echo_n "checking if $CC supports -Wformat... " >&6; }
  4444. cacheid=xorg_cv_cc_flag__Wformat
  4445. if eval \${$cacheid+:} false; then :
  4446. $as_echo_n "(cached) " >&6
  4447. else
  4448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4449. /* end confdefs.h. */
  4450. int i;
  4451. int
  4452. main ()
  4453. {
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. if ac_fn_c_try_link "$LINENO"; then :
  4459. eval $cacheid=yes
  4460. else
  4461. eval $cacheid=no
  4462. fi
  4463. rm -f core conftest.err conftest.$ac_objext \
  4464. conftest$ac_exeext conftest.$ac_ext
  4465. fi
  4466. CFLAGS="$xorg_testset_save_CFLAGS"
  4467. eval supported=\$$cacheid
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4469. $as_echo "$supported" >&6; }
  4470. if test "$supported" = "yes" ; then
  4471. BASE_CFLAGS="$BASE_CFLAGS -Wformat"
  4472. found="yes"
  4473. fi
  4474. fi
  4475. xorg_testset_save_CFLAGS="$CFLAGS"
  4476. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4477. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4479. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4480. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4484. /* end confdefs.h. */
  4485. int i;
  4486. _ACEOF
  4487. if ac_fn_c_try_compile "$LINENO"; then :
  4488. xorg_cv_cc_flag_unknown_warning_option=yes
  4489. else
  4490. xorg_cv_cc_flag_unknown_warning_option=no
  4491. fi
  4492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4493. fi
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4495. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4496. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4497. CFLAGS="$xorg_testset_save_CFLAGS"
  4498. fi
  4499. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4500. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4501. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4502. fi
  4503. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4505. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4506. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4507. $as_echo_n "(cached) " >&6
  4508. else
  4509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4510. /* end confdefs.h. */
  4511. int i;
  4512. _ACEOF
  4513. if ac_fn_c_try_compile "$LINENO"; then :
  4514. xorg_cv_cc_flag_unused_command_line_argument=yes
  4515. else
  4516. xorg_cv_cc_flag_unused_command_line_argument=no
  4517. fi
  4518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4521. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4522. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4523. CFLAGS="$xorg_testset_save_CFLAGS"
  4524. fi
  4525. found="no"
  4526. if test $found = "no" ; then
  4527. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4528. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4529. fi
  4530. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4531. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4532. fi
  4533. CFLAGS="$CFLAGS -Wstrict-prototypes"
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
  4535. $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
  4536. cacheid=xorg_cv_cc_flag__Wstrict_prototypes
  4537. if eval \${$cacheid+:} false; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4541. /* end confdefs.h. */
  4542. int i;
  4543. int
  4544. main ()
  4545. {
  4546. ;
  4547. return 0;
  4548. }
  4549. _ACEOF
  4550. if ac_fn_c_try_link "$LINENO"; then :
  4551. eval $cacheid=yes
  4552. else
  4553. eval $cacheid=no
  4554. fi
  4555. rm -f core conftest.err conftest.$ac_objext \
  4556. conftest$ac_exeext conftest.$ac_ext
  4557. fi
  4558. CFLAGS="$xorg_testset_save_CFLAGS"
  4559. eval supported=\$$cacheid
  4560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4561. $as_echo "$supported" >&6; }
  4562. if test "$supported" = "yes" ; then
  4563. BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
  4564. found="yes"
  4565. fi
  4566. fi
  4567. xorg_testset_save_CFLAGS="$CFLAGS"
  4568. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4569. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4571. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4572. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4576. /* end confdefs.h. */
  4577. int i;
  4578. _ACEOF
  4579. if ac_fn_c_try_compile "$LINENO"; then :
  4580. xorg_cv_cc_flag_unknown_warning_option=yes
  4581. else
  4582. xorg_cv_cc_flag_unknown_warning_option=no
  4583. fi
  4584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4585. fi
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4587. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4588. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4589. CFLAGS="$xorg_testset_save_CFLAGS"
  4590. fi
  4591. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4592. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4593. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4594. fi
  4595. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4597. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4598. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4599. $as_echo_n "(cached) " >&6
  4600. else
  4601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4602. /* end confdefs.h. */
  4603. int i;
  4604. _ACEOF
  4605. if ac_fn_c_try_compile "$LINENO"; then :
  4606. xorg_cv_cc_flag_unused_command_line_argument=yes
  4607. else
  4608. xorg_cv_cc_flag_unused_command_line_argument=no
  4609. fi
  4610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4611. fi
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4613. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4614. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4615. CFLAGS="$xorg_testset_save_CFLAGS"
  4616. fi
  4617. found="no"
  4618. if test $found = "no" ; then
  4619. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4620. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4621. fi
  4622. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4623. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4624. fi
  4625. CFLAGS="$CFLAGS -Wmissing-prototypes"
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
  4627. $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
  4628. cacheid=xorg_cv_cc_flag__Wmissing_prototypes
  4629. if eval \${$cacheid+:} false; then :
  4630. $as_echo_n "(cached) " >&6
  4631. else
  4632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4633. /* end confdefs.h. */
  4634. int i;
  4635. int
  4636. main ()
  4637. {
  4638. ;
  4639. return 0;
  4640. }
  4641. _ACEOF
  4642. if ac_fn_c_try_link "$LINENO"; then :
  4643. eval $cacheid=yes
  4644. else
  4645. eval $cacheid=no
  4646. fi
  4647. rm -f core conftest.err conftest.$ac_objext \
  4648. conftest$ac_exeext conftest.$ac_ext
  4649. fi
  4650. CFLAGS="$xorg_testset_save_CFLAGS"
  4651. eval supported=\$$cacheid
  4652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4653. $as_echo "$supported" >&6; }
  4654. if test "$supported" = "yes" ; then
  4655. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
  4656. found="yes"
  4657. fi
  4658. fi
  4659. xorg_testset_save_CFLAGS="$CFLAGS"
  4660. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4661. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4663. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4664. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4665. $as_echo_n "(cached) " >&6
  4666. else
  4667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4668. /* end confdefs.h. */
  4669. int i;
  4670. _ACEOF
  4671. if ac_fn_c_try_compile "$LINENO"; then :
  4672. xorg_cv_cc_flag_unknown_warning_option=yes
  4673. else
  4674. xorg_cv_cc_flag_unknown_warning_option=no
  4675. fi
  4676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4677. fi
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4679. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4680. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4681. CFLAGS="$xorg_testset_save_CFLAGS"
  4682. fi
  4683. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4684. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4685. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4686. fi
  4687. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4689. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4690. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4694. /* end confdefs.h. */
  4695. int i;
  4696. _ACEOF
  4697. if ac_fn_c_try_compile "$LINENO"; then :
  4698. xorg_cv_cc_flag_unused_command_line_argument=yes
  4699. else
  4700. xorg_cv_cc_flag_unused_command_line_argument=no
  4701. fi
  4702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4703. fi
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4705. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4706. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4707. CFLAGS="$xorg_testset_save_CFLAGS"
  4708. fi
  4709. found="no"
  4710. if test $found = "no" ; then
  4711. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4712. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4713. fi
  4714. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4715. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4716. fi
  4717. CFLAGS="$CFLAGS -Wnested-externs"
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
  4719. $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
  4720. cacheid=xorg_cv_cc_flag__Wnested_externs
  4721. if eval \${$cacheid+:} false; then :
  4722. $as_echo_n "(cached) " >&6
  4723. else
  4724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4725. /* end confdefs.h. */
  4726. int i;
  4727. int
  4728. main ()
  4729. {
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. if ac_fn_c_try_link "$LINENO"; then :
  4735. eval $cacheid=yes
  4736. else
  4737. eval $cacheid=no
  4738. fi
  4739. rm -f core conftest.err conftest.$ac_objext \
  4740. conftest$ac_exeext conftest.$ac_ext
  4741. fi
  4742. CFLAGS="$xorg_testset_save_CFLAGS"
  4743. eval supported=\$$cacheid
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4745. $as_echo "$supported" >&6; }
  4746. if test "$supported" = "yes" ; then
  4747. BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
  4748. found="yes"
  4749. fi
  4750. fi
  4751. xorg_testset_save_CFLAGS="$CFLAGS"
  4752. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4753. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4755. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4756. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4757. $as_echo_n "(cached) " >&6
  4758. else
  4759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4760. /* end confdefs.h. */
  4761. int i;
  4762. _ACEOF
  4763. if ac_fn_c_try_compile "$LINENO"; then :
  4764. xorg_cv_cc_flag_unknown_warning_option=yes
  4765. else
  4766. xorg_cv_cc_flag_unknown_warning_option=no
  4767. fi
  4768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4769. fi
  4770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4771. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4772. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4773. CFLAGS="$xorg_testset_save_CFLAGS"
  4774. fi
  4775. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4776. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4777. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4778. fi
  4779. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4781. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4782. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4783. $as_echo_n "(cached) " >&6
  4784. else
  4785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4786. /* end confdefs.h. */
  4787. int i;
  4788. _ACEOF
  4789. if ac_fn_c_try_compile "$LINENO"; then :
  4790. xorg_cv_cc_flag_unused_command_line_argument=yes
  4791. else
  4792. xorg_cv_cc_flag_unused_command_line_argument=no
  4793. fi
  4794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4795. fi
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4797. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4798. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4799. CFLAGS="$xorg_testset_save_CFLAGS"
  4800. fi
  4801. found="no"
  4802. if test $found = "no" ; then
  4803. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4804. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4805. fi
  4806. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4807. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4808. fi
  4809. CFLAGS="$CFLAGS -Wbad-function-cast"
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
  4811. $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
  4812. cacheid=xorg_cv_cc_flag__Wbad_function_cast
  4813. if eval \${$cacheid+:} false; then :
  4814. $as_echo_n "(cached) " >&6
  4815. else
  4816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4817. /* end confdefs.h. */
  4818. int i;
  4819. int
  4820. main ()
  4821. {
  4822. ;
  4823. return 0;
  4824. }
  4825. _ACEOF
  4826. if ac_fn_c_try_link "$LINENO"; then :
  4827. eval $cacheid=yes
  4828. else
  4829. eval $cacheid=no
  4830. fi
  4831. rm -f core conftest.err conftest.$ac_objext \
  4832. conftest$ac_exeext conftest.$ac_ext
  4833. fi
  4834. CFLAGS="$xorg_testset_save_CFLAGS"
  4835. eval supported=\$$cacheid
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4837. $as_echo "$supported" >&6; }
  4838. if test "$supported" = "yes" ; then
  4839. BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
  4840. found="yes"
  4841. fi
  4842. fi
  4843. xorg_testset_save_CFLAGS="$CFLAGS"
  4844. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4845. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4847. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4848. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4849. $as_echo_n "(cached) " >&6
  4850. else
  4851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4852. /* end confdefs.h. */
  4853. int i;
  4854. _ACEOF
  4855. if ac_fn_c_try_compile "$LINENO"; then :
  4856. xorg_cv_cc_flag_unknown_warning_option=yes
  4857. else
  4858. xorg_cv_cc_flag_unknown_warning_option=no
  4859. fi
  4860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4861. fi
  4862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4863. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4864. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4865. CFLAGS="$xorg_testset_save_CFLAGS"
  4866. fi
  4867. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  4868. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4869. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4870. fi
  4871. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  4873. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  4874. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  4875. $as_echo_n "(cached) " >&6
  4876. else
  4877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4878. /* end confdefs.h. */
  4879. int i;
  4880. _ACEOF
  4881. if ac_fn_c_try_compile "$LINENO"; then :
  4882. xorg_cv_cc_flag_unused_command_line_argument=yes
  4883. else
  4884. xorg_cv_cc_flag_unused_command_line_argument=no
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4887. fi
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  4889. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  4890. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  4891. CFLAGS="$xorg_testset_save_CFLAGS"
  4892. fi
  4893. found="no"
  4894. if test $found = "no" ; then
  4895. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4896. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4897. fi
  4898. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4899. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4900. fi
  4901. CFLAGS="$CFLAGS -Wold-style-definition"
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
  4903. $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
  4904. cacheid=xorg_cv_cc_flag__Wold_style_definition
  4905. if eval \${$cacheid+:} false; then :
  4906. $as_echo_n "(cached) " >&6
  4907. else
  4908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4909. /* end confdefs.h. */
  4910. int i;
  4911. int
  4912. main ()
  4913. {
  4914. ;
  4915. return 0;
  4916. }
  4917. _ACEOF
  4918. if ac_fn_c_try_link "$LINENO"; then :
  4919. eval $cacheid=yes
  4920. else
  4921. eval $cacheid=no
  4922. fi
  4923. rm -f core conftest.err conftest.$ac_objext \
  4924. conftest$ac_exeext conftest.$ac_ext
  4925. fi
  4926. CFLAGS="$xorg_testset_save_CFLAGS"
  4927. eval supported=\$$cacheid
  4928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4929. $as_echo "$supported" >&6; }
  4930. if test "$supported" = "yes" ; then
  4931. BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
  4932. found="yes"
  4933. fi
  4934. fi
  4935. if test $found = "no" ; then
  4936. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  4937. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4938. fi
  4939. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  4940. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  4941. fi
  4942. CFLAGS="$CFLAGS -fd"
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
  4944. $as_echo_n "checking if $CC supports -fd... " >&6; }
  4945. cacheid=xorg_cv_cc_flag__fd
  4946. if eval \${$cacheid+:} false; then :
  4947. $as_echo_n "(cached) " >&6
  4948. else
  4949. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4950. /* end confdefs.h. */
  4951. int i;
  4952. int
  4953. main ()
  4954. {
  4955. ;
  4956. return 0;
  4957. }
  4958. _ACEOF
  4959. if ac_fn_c_try_link "$LINENO"; then :
  4960. eval $cacheid=yes
  4961. else
  4962. eval $cacheid=no
  4963. fi
  4964. rm -f core conftest.err conftest.$ac_objext \
  4965. conftest$ac_exeext conftest.$ac_ext
  4966. fi
  4967. CFLAGS="$xorg_testset_save_CFLAGS"
  4968. eval supported=\$$cacheid
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  4970. $as_echo "$supported" >&6; }
  4971. if test "$supported" = "yes" ; then
  4972. BASE_CFLAGS="$BASE_CFLAGS -fd"
  4973. found="yes"
  4974. fi
  4975. fi
  4976. xorg_testset_save_CFLAGS="$CFLAGS"
  4977. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  4978. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  4980. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  4981. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4985. /* end confdefs.h. */
  4986. int i;
  4987. _ACEOF
  4988. if ac_fn_c_try_compile "$LINENO"; then :
  4989. xorg_cv_cc_flag_unknown_warning_option=yes
  4990. else
  4991. xorg_cv_cc_flag_unknown_warning_option=no
  4992. fi
  4993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4994. fi
  4995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  4996. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  4997. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  4998. CFLAGS="$xorg_testset_save_CFLAGS"
  4999. fi
  5000. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5001. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5002. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5003. fi
  5004. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5006. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5007. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5008. $as_echo_n "(cached) " >&6
  5009. else
  5010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5011. /* end confdefs.h. */
  5012. int i;
  5013. _ACEOF
  5014. if ac_fn_c_try_compile "$LINENO"; then :
  5015. xorg_cv_cc_flag_unused_command_line_argument=yes
  5016. else
  5017. xorg_cv_cc_flag_unused_command_line_argument=no
  5018. fi
  5019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. fi
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5022. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5023. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5024. CFLAGS="$xorg_testset_save_CFLAGS"
  5025. fi
  5026. found="no"
  5027. if test $found = "no" ; then
  5028. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5029. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5030. fi
  5031. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5032. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5033. fi
  5034. CFLAGS="$CFLAGS -Wdeclaration-after-statement"
  5035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
  5036. $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
  5037. cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
  5038. if eval \${$cacheid+:} false; then :
  5039. $as_echo_n "(cached) " >&6
  5040. else
  5041. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5042. /* end confdefs.h. */
  5043. int i;
  5044. int
  5045. main ()
  5046. {
  5047. ;
  5048. return 0;
  5049. }
  5050. _ACEOF
  5051. if ac_fn_c_try_link "$LINENO"; then :
  5052. eval $cacheid=yes
  5053. else
  5054. eval $cacheid=no
  5055. fi
  5056. rm -f core conftest.err conftest.$ac_objext \
  5057. conftest$ac_exeext conftest.$ac_ext
  5058. fi
  5059. CFLAGS="$xorg_testset_save_CFLAGS"
  5060. eval supported=\$$cacheid
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5062. $as_echo "$supported" >&6; }
  5063. if test "$supported" = "yes" ; then
  5064. BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
  5065. found="yes"
  5066. fi
  5067. fi
  5068. # This chunk adds additional warnings that could catch undesired effects.
  5069. xorg_testset_save_CFLAGS="$CFLAGS"
  5070. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5071. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5073. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5074. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5075. $as_echo_n "(cached) " >&6
  5076. else
  5077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5078. /* end confdefs.h. */
  5079. int i;
  5080. _ACEOF
  5081. if ac_fn_c_try_compile "$LINENO"; then :
  5082. xorg_cv_cc_flag_unknown_warning_option=yes
  5083. else
  5084. xorg_cv_cc_flag_unknown_warning_option=no
  5085. fi
  5086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5087. fi
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5089. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5090. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5091. CFLAGS="$xorg_testset_save_CFLAGS"
  5092. fi
  5093. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5094. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5095. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5096. fi
  5097. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5099. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5100. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5101. $as_echo_n "(cached) " >&6
  5102. else
  5103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h. */
  5105. int i;
  5106. _ACEOF
  5107. if ac_fn_c_try_compile "$LINENO"; then :
  5108. xorg_cv_cc_flag_unused_command_line_argument=yes
  5109. else
  5110. xorg_cv_cc_flag_unused_command_line_argument=no
  5111. fi
  5112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5113. fi
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5115. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5116. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5117. CFLAGS="$xorg_testset_save_CFLAGS"
  5118. fi
  5119. found="no"
  5120. if test $found = "no" ; then
  5121. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5122. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5123. fi
  5124. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5125. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5126. fi
  5127. CFLAGS="$CFLAGS -Wunused"
  5128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
  5129. $as_echo_n "checking if $CC supports -Wunused... " >&6; }
  5130. cacheid=xorg_cv_cc_flag__Wunused
  5131. if eval \${$cacheid+:} false; then :
  5132. $as_echo_n "(cached) " >&6
  5133. else
  5134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5135. /* end confdefs.h. */
  5136. int i;
  5137. int
  5138. main ()
  5139. {
  5140. ;
  5141. return 0;
  5142. }
  5143. _ACEOF
  5144. if ac_fn_c_try_link "$LINENO"; then :
  5145. eval $cacheid=yes
  5146. else
  5147. eval $cacheid=no
  5148. fi
  5149. rm -f core conftest.err conftest.$ac_objext \
  5150. conftest$ac_exeext conftest.$ac_ext
  5151. fi
  5152. CFLAGS="$xorg_testset_save_CFLAGS"
  5153. eval supported=\$$cacheid
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5155. $as_echo "$supported" >&6; }
  5156. if test "$supported" = "yes" ; then
  5157. BASE_CFLAGS="$BASE_CFLAGS -Wunused"
  5158. found="yes"
  5159. fi
  5160. fi
  5161. xorg_testset_save_CFLAGS="$CFLAGS"
  5162. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5163. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5165. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5166. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5167. $as_echo_n "(cached) " >&6
  5168. else
  5169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5170. /* end confdefs.h. */
  5171. int i;
  5172. _ACEOF
  5173. if ac_fn_c_try_compile "$LINENO"; then :
  5174. xorg_cv_cc_flag_unknown_warning_option=yes
  5175. else
  5176. xorg_cv_cc_flag_unknown_warning_option=no
  5177. fi
  5178. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5179. fi
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5181. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5182. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5183. CFLAGS="$xorg_testset_save_CFLAGS"
  5184. fi
  5185. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5186. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5187. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5188. fi
  5189. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5191. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5192. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5193. $as_echo_n "(cached) " >&6
  5194. else
  5195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. /* end confdefs.h. */
  5197. int i;
  5198. _ACEOF
  5199. if ac_fn_c_try_compile "$LINENO"; then :
  5200. xorg_cv_cc_flag_unused_command_line_argument=yes
  5201. else
  5202. xorg_cv_cc_flag_unused_command_line_argument=no
  5203. fi
  5204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5205. fi
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5207. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5208. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5209. CFLAGS="$xorg_testset_save_CFLAGS"
  5210. fi
  5211. found="no"
  5212. if test $found = "no" ; then
  5213. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5214. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5215. fi
  5216. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5217. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5218. fi
  5219. CFLAGS="$CFLAGS -Wuninitialized"
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
  5221. $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
  5222. cacheid=xorg_cv_cc_flag__Wuninitialized
  5223. if eval \${$cacheid+:} false; then :
  5224. $as_echo_n "(cached) " >&6
  5225. else
  5226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5227. /* end confdefs.h. */
  5228. int i;
  5229. int
  5230. main ()
  5231. {
  5232. ;
  5233. return 0;
  5234. }
  5235. _ACEOF
  5236. if ac_fn_c_try_link "$LINENO"; then :
  5237. eval $cacheid=yes
  5238. else
  5239. eval $cacheid=no
  5240. fi
  5241. rm -f core conftest.err conftest.$ac_objext \
  5242. conftest$ac_exeext conftest.$ac_ext
  5243. fi
  5244. CFLAGS="$xorg_testset_save_CFLAGS"
  5245. eval supported=\$$cacheid
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5247. $as_echo "$supported" >&6; }
  5248. if test "$supported" = "yes" ; then
  5249. BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
  5250. found="yes"
  5251. fi
  5252. fi
  5253. xorg_testset_save_CFLAGS="$CFLAGS"
  5254. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5255. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5257. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5258. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5262. /* end confdefs.h. */
  5263. int i;
  5264. _ACEOF
  5265. if ac_fn_c_try_compile "$LINENO"; then :
  5266. xorg_cv_cc_flag_unknown_warning_option=yes
  5267. else
  5268. xorg_cv_cc_flag_unknown_warning_option=no
  5269. fi
  5270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5271. fi
  5272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5273. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5274. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5275. CFLAGS="$xorg_testset_save_CFLAGS"
  5276. fi
  5277. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5278. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5279. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5280. fi
  5281. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5283. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5284. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5285. $as_echo_n "(cached) " >&6
  5286. else
  5287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5288. /* end confdefs.h. */
  5289. int i;
  5290. _ACEOF
  5291. if ac_fn_c_try_compile "$LINENO"; then :
  5292. xorg_cv_cc_flag_unused_command_line_argument=yes
  5293. else
  5294. xorg_cv_cc_flag_unused_command_line_argument=no
  5295. fi
  5296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5297. fi
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5299. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5300. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5301. CFLAGS="$xorg_testset_save_CFLAGS"
  5302. fi
  5303. found="no"
  5304. if test $found = "no" ; then
  5305. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5306. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5307. fi
  5308. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5309. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5310. fi
  5311. CFLAGS="$CFLAGS -Wshadow"
  5312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
  5313. $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
  5314. cacheid=xorg_cv_cc_flag__Wshadow
  5315. if eval \${$cacheid+:} false; then :
  5316. $as_echo_n "(cached) " >&6
  5317. else
  5318. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5319. /* end confdefs.h. */
  5320. int i;
  5321. int
  5322. main ()
  5323. {
  5324. ;
  5325. return 0;
  5326. }
  5327. _ACEOF
  5328. if ac_fn_c_try_link "$LINENO"; then :
  5329. eval $cacheid=yes
  5330. else
  5331. eval $cacheid=no
  5332. fi
  5333. rm -f core conftest.err conftest.$ac_objext \
  5334. conftest$ac_exeext conftest.$ac_ext
  5335. fi
  5336. CFLAGS="$xorg_testset_save_CFLAGS"
  5337. eval supported=\$$cacheid
  5338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5339. $as_echo "$supported" >&6; }
  5340. if test "$supported" = "yes" ; then
  5341. BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
  5342. found="yes"
  5343. fi
  5344. fi
  5345. xorg_testset_save_CFLAGS="$CFLAGS"
  5346. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5347. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5349. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5350. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5354. /* end confdefs.h. */
  5355. int i;
  5356. _ACEOF
  5357. if ac_fn_c_try_compile "$LINENO"; then :
  5358. xorg_cv_cc_flag_unknown_warning_option=yes
  5359. else
  5360. xorg_cv_cc_flag_unknown_warning_option=no
  5361. fi
  5362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5363. fi
  5364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5365. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5366. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5367. CFLAGS="$xorg_testset_save_CFLAGS"
  5368. fi
  5369. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5370. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5371. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5372. fi
  5373. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5375. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5376. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5380. /* end confdefs.h. */
  5381. int i;
  5382. _ACEOF
  5383. if ac_fn_c_try_compile "$LINENO"; then :
  5384. xorg_cv_cc_flag_unused_command_line_argument=yes
  5385. else
  5386. xorg_cv_cc_flag_unused_command_line_argument=no
  5387. fi
  5388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5389. fi
  5390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5391. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5392. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5393. CFLAGS="$xorg_testset_save_CFLAGS"
  5394. fi
  5395. found="no"
  5396. if test $found = "no" ; then
  5397. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5398. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5399. fi
  5400. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5401. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5402. fi
  5403. CFLAGS="$CFLAGS -Wmissing-noreturn"
  5404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
  5405. $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
  5406. cacheid=xorg_cv_cc_flag__Wmissing_noreturn
  5407. if eval \${$cacheid+:} false; then :
  5408. $as_echo_n "(cached) " >&6
  5409. else
  5410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5411. /* end confdefs.h. */
  5412. int i;
  5413. int
  5414. main ()
  5415. {
  5416. ;
  5417. return 0;
  5418. }
  5419. _ACEOF
  5420. if ac_fn_c_try_link "$LINENO"; then :
  5421. eval $cacheid=yes
  5422. else
  5423. eval $cacheid=no
  5424. fi
  5425. rm -f core conftest.err conftest.$ac_objext \
  5426. conftest$ac_exeext conftest.$ac_ext
  5427. fi
  5428. CFLAGS="$xorg_testset_save_CFLAGS"
  5429. eval supported=\$$cacheid
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5431. $as_echo "$supported" >&6; }
  5432. if test "$supported" = "yes" ; then
  5433. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
  5434. found="yes"
  5435. fi
  5436. fi
  5437. xorg_testset_save_CFLAGS="$CFLAGS"
  5438. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5439. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5441. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5442. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5443. $as_echo_n "(cached) " >&6
  5444. else
  5445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5446. /* end confdefs.h. */
  5447. int i;
  5448. _ACEOF
  5449. if ac_fn_c_try_compile "$LINENO"; then :
  5450. xorg_cv_cc_flag_unknown_warning_option=yes
  5451. else
  5452. xorg_cv_cc_flag_unknown_warning_option=no
  5453. fi
  5454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5455. fi
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5457. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5458. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5459. CFLAGS="$xorg_testset_save_CFLAGS"
  5460. fi
  5461. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5462. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5463. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5464. fi
  5465. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5467. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5468. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5469. $as_echo_n "(cached) " >&6
  5470. else
  5471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5472. /* end confdefs.h. */
  5473. int i;
  5474. _ACEOF
  5475. if ac_fn_c_try_compile "$LINENO"; then :
  5476. xorg_cv_cc_flag_unused_command_line_argument=yes
  5477. else
  5478. xorg_cv_cc_flag_unused_command_line_argument=no
  5479. fi
  5480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5481. fi
  5482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5483. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5484. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5485. CFLAGS="$xorg_testset_save_CFLAGS"
  5486. fi
  5487. found="no"
  5488. if test $found = "no" ; then
  5489. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5490. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5491. fi
  5492. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5493. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5494. fi
  5495. CFLAGS="$CFLAGS -Wmissing-format-attribute"
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
  5497. $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
  5498. cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
  5499. if eval \${$cacheid+:} false; then :
  5500. $as_echo_n "(cached) " >&6
  5501. else
  5502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5503. /* end confdefs.h. */
  5504. int i;
  5505. int
  5506. main ()
  5507. {
  5508. ;
  5509. return 0;
  5510. }
  5511. _ACEOF
  5512. if ac_fn_c_try_link "$LINENO"; then :
  5513. eval $cacheid=yes
  5514. else
  5515. eval $cacheid=no
  5516. fi
  5517. rm -f core conftest.err conftest.$ac_objext \
  5518. conftest$ac_exeext conftest.$ac_ext
  5519. fi
  5520. CFLAGS="$xorg_testset_save_CFLAGS"
  5521. eval supported=\$$cacheid
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5523. $as_echo "$supported" >&6; }
  5524. if test "$supported" = "yes" ; then
  5525. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
  5526. found="yes"
  5527. fi
  5528. fi
  5529. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wredundant-decls])
  5530. xorg_testset_save_CFLAGS="$CFLAGS"
  5531. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5532. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5534. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5535. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5539. /* end confdefs.h. */
  5540. int i;
  5541. _ACEOF
  5542. if ac_fn_c_try_compile "$LINENO"; then :
  5543. xorg_cv_cc_flag_unknown_warning_option=yes
  5544. else
  5545. xorg_cv_cc_flag_unknown_warning_option=no
  5546. fi
  5547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5548. fi
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5550. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5551. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5552. CFLAGS="$xorg_testset_save_CFLAGS"
  5553. fi
  5554. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5555. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5556. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5557. fi
  5558. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5560. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5561. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5562. $as_echo_n "(cached) " >&6
  5563. else
  5564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5565. /* end confdefs.h. */
  5566. int i;
  5567. _ACEOF
  5568. if ac_fn_c_try_compile "$LINENO"; then :
  5569. xorg_cv_cc_flag_unused_command_line_argument=yes
  5570. else
  5571. xorg_cv_cc_flag_unused_command_line_argument=no
  5572. fi
  5573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5574. fi
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5576. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5577. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5578. CFLAGS="$xorg_testset_save_CFLAGS"
  5579. fi
  5580. found="no"
  5581. if test $found = "no" ; then
  5582. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5583. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5584. fi
  5585. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5586. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5587. fi
  5588. CFLAGS="$CFLAGS -Wlogical-op"
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
  5590. $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
  5591. cacheid=xorg_cv_cc_flag__Wlogical_op
  5592. if eval \${$cacheid+:} false; then :
  5593. $as_echo_n "(cached) " >&6
  5594. else
  5595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5596. /* end confdefs.h. */
  5597. int i;
  5598. int
  5599. main ()
  5600. {
  5601. ;
  5602. return 0;
  5603. }
  5604. _ACEOF
  5605. if ac_fn_c_try_link "$LINENO"; then :
  5606. eval $cacheid=yes
  5607. else
  5608. eval $cacheid=no
  5609. fi
  5610. rm -f core conftest.err conftest.$ac_objext \
  5611. conftest$ac_exeext conftest.$ac_ext
  5612. fi
  5613. CFLAGS="$xorg_testset_save_CFLAGS"
  5614. eval supported=\$$cacheid
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5616. $as_echo "$supported" >&6; }
  5617. if test "$supported" = "yes" ; then
  5618. BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
  5619. found="yes"
  5620. fi
  5621. fi
  5622. # These are currently disabled because they are noisy. They will be enabled
  5623. # in the future once the codebase is sufficiently modernized to silence
  5624. # them. For now, I don't want them to drown out the other warnings.
  5625. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
  5626. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
  5627. # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
  5628. # Turn some warnings into errors, so we don't accidently get successful builds
  5629. # when there are problems that should be fixed.
  5630. if test "x$SELECTIVE_WERROR" = "xyes" ; then
  5631. xorg_testset_save_CFLAGS="$CFLAGS"
  5632. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5633. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5635. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5636. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5637. $as_echo_n "(cached) " >&6
  5638. else
  5639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5640. /* end confdefs.h. */
  5641. int i;
  5642. _ACEOF
  5643. if ac_fn_c_try_compile "$LINENO"; then :
  5644. xorg_cv_cc_flag_unknown_warning_option=yes
  5645. else
  5646. xorg_cv_cc_flag_unknown_warning_option=no
  5647. fi
  5648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5649. fi
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5651. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5652. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5653. CFLAGS="$xorg_testset_save_CFLAGS"
  5654. fi
  5655. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5656. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5657. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5658. fi
  5659. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5661. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5662. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5663. $as_echo_n "(cached) " >&6
  5664. else
  5665. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5666. /* end confdefs.h. */
  5667. int i;
  5668. _ACEOF
  5669. if ac_fn_c_try_compile "$LINENO"; then :
  5670. xorg_cv_cc_flag_unused_command_line_argument=yes
  5671. else
  5672. xorg_cv_cc_flag_unused_command_line_argument=no
  5673. fi
  5674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5675. fi
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5677. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5678. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5679. CFLAGS="$xorg_testset_save_CFLAGS"
  5680. fi
  5681. found="no"
  5682. if test $found = "no" ; then
  5683. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5684. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5685. fi
  5686. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5687. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5688. fi
  5689. CFLAGS="$CFLAGS -Werror=implicit"
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
  5691. $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
  5692. cacheid=xorg_cv_cc_flag__Werror_implicit
  5693. if eval \${$cacheid+:} false; then :
  5694. $as_echo_n "(cached) " >&6
  5695. else
  5696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5697. /* end confdefs.h. */
  5698. int i;
  5699. int
  5700. main ()
  5701. {
  5702. ;
  5703. return 0;
  5704. }
  5705. _ACEOF
  5706. if ac_fn_c_try_link "$LINENO"; then :
  5707. eval $cacheid=yes
  5708. else
  5709. eval $cacheid=no
  5710. fi
  5711. rm -f core conftest.err conftest.$ac_objext \
  5712. conftest$ac_exeext conftest.$ac_ext
  5713. fi
  5714. CFLAGS="$xorg_testset_save_CFLAGS"
  5715. eval supported=\$$cacheid
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5717. $as_echo "$supported" >&6; }
  5718. if test "$supported" = "yes" ; then
  5719. BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
  5720. found="yes"
  5721. fi
  5722. fi
  5723. if test $found = "no" ; then
  5724. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5725. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5726. fi
  5727. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5728. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5729. fi
  5730. CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
  5732. $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
  5733. cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
  5734. if eval \${$cacheid+:} false; then :
  5735. $as_echo_n "(cached) " >&6
  5736. else
  5737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5738. /* end confdefs.h. */
  5739. int i;
  5740. int
  5741. main ()
  5742. {
  5743. ;
  5744. return 0;
  5745. }
  5746. _ACEOF
  5747. if ac_fn_c_try_link "$LINENO"; then :
  5748. eval $cacheid=yes
  5749. else
  5750. eval $cacheid=no
  5751. fi
  5752. rm -f core conftest.err conftest.$ac_objext \
  5753. conftest$ac_exeext conftest.$ac_ext
  5754. fi
  5755. CFLAGS="$xorg_testset_save_CFLAGS"
  5756. eval supported=\$$cacheid
  5757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5758. $as_echo "$supported" >&6; }
  5759. if test "$supported" = "yes" ; then
  5760. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
  5761. found="yes"
  5762. fi
  5763. fi
  5764. xorg_testset_save_CFLAGS="$CFLAGS"
  5765. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5766. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5768. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5769. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5773. /* end confdefs.h. */
  5774. int i;
  5775. _ACEOF
  5776. if ac_fn_c_try_compile "$LINENO"; then :
  5777. xorg_cv_cc_flag_unknown_warning_option=yes
  5778. else
  5779. xorg_cv_cc_flag_unknown_warning_option=no
  5780. fi
  5781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5782. fi
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5784. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5785. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5786. CFLAGS="$xorg_testset_save_CFLAGS"
  5787. fi
  5788. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5789. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5790. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5791. fi
  5792. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5794. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5795. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5796. $as_echo_n "(cached) " >&6
  5797. else
  5798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5799. /* end confdefs.h. */
  5800. int i;
  5801. _ACEOF
  5802. if ac_fn_c_try_compile "$LINENO"; then :
  5803. xorg_cv_cc_flag_unused_command_line_argument=yes
  5804. else
  5805. xorg_cv_cc_flag_unused_command_line_argument=no
  5806. fi
  5807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5808. fi
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5810. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5811. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5812. CFLAGS="$xorg_testset_save_CFLAGS"
  5813. fi
  5814. found="no"
  5815. if test $found = "no" ; then
  5816. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5817. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5818. fi
  5819. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5820. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5821. fi
  5822. CFLAGS="$CFLAGS -Werror=nonnull"
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
  5824. $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
  5825. cacheid=xorg_cv_cc_flag__Werror_nonnull
  5826. if eval \${$cacheid+:} false; then :
  5827. $as_echo_n "(cached) " >&6
  5828. else
  5829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5830. /* end confdefs.h. */
  5831. int i;
  5832. int
  5833. main ()
  5834. {
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. if ac_fn_c_try_link "$LINENO"; then :
  5840. eval $cacheid=yes
  5841. else
  5842. eval $cacheid=no
  5843. fi
  5844. rm -f core conftest.err conftest.$ac_objext \
  5845. conftest$ac_exeext conftest.$ac_ext
  5846. fi
  5847. CFLAGS="$xorg_testset_save_CFLAGS"
  5848. eval supported=\$$cacheid
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5850. $as_echo "$supported" >&6; }
  5851. if test "$supported" = "yes" ; then
  5852. BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
  5853. found="yes"
  5854. fi
  5855. fi
  5856. xorg_testset_save_CFLAGS="$CFLAGS"
  5857. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5858. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5860. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5861. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5862. $as_echo_n "(cached) " >&6
  5863. else
  5864. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5865. /* end confdefs.h. */
  5866. int i;
  5867. _ACEOF
  5868. if ac_fn_c_try_compile "$LINENO"; then :
  5869. xorg_cv_cc_flag_unknown_warning_option=yes
  5870. else
  5871. xorg_cv_cc_flag_unknown_warning_option=no
  5872. fi
  5873. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5874. fi
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5876. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5877. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5878. CFLAGS="$xorg_testset_save_CFLAGS"
  5879. fi
  5880. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5881. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5882. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5883. fi
  5884. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5886. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5887. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5891. /* end confdefs.h. */
  5892. int i;
  5893. _ACEOF
  5894. if ac_fn_c_try_compile "$LINENO"; then :
  5895. xorg_cv_cc_flag_unused_command_line_argument=yes
  5896. else
  5897. xorg_cv_cc_flag_unused_command_line_argument=no
  5898. fi
  5899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5900. fi
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5902. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5903. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5904. CFLAGS="$xorg_testset_save_CFLAGS"
  5905. fi
  5906. found="no"
  5907. if test $found = "no" ; then
  5908. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5909. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5910. fi
  5911. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  5912. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5913. fi
  5914. CFLAGS="$CFLAGS -Werror=init-self"
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
  5916. $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
  5917. cacheid=xorg_cv_cc_flag__Werror_init_self
  5918. if eval \${$cacheid+:} false; then :
  5919. $as_echo_n "(cached) " >&6
  5920. else
  5921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5922. /* end confdefs.h. */
  5923. int i;
  5924. int
  5925. main ()
  5926. {
  5927. ;
  5928. return 0;
  5929. }
  5930. _ACEOF
  5931. if ac_fn_c_try_link "$LINENO"; then :
  5932. eval $cacheid=yes
  5933. else
  5934. eval $cacheid=no
  5935. fi
  5936. rm -f core conftest.err conftest.$ac_objext \
  5937. conftest$ac_exeext conftest.$ac_ext
  5938. fi
  5939. CFLAGS="$xorg_testset_save_CFLAGS"
  5940. eval supported=\$$cacheid
  5941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  5942. $as_echo "$supported" >&6; }
  5943. if test "$supported" = "yes" ; then
  5944. BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
  5945. found="yes"
  5946. fi
  5947. fi
  5948. xorg_testset_save_CFLAGS="$CFLAGS"
  5949. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  5950. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  5952. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  5953. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  5954. $as_echo_n "(cached) " >&6
  5955. else
  5956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5957. /* end confdefs.h. */
  5958. int i;
  5959. _ACEOF
  5960. if ac_fn_c_try_compile "$LINENO"; then :
  5961. xorg_cv_cc_flag_unknown_warning_option=yes
  5962. else
  5963. xorg_cv_cc_flag_unknown_warning_option=no
  5964. fi
  5965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5966. fi
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  5968. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  5969. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  5970. CFLAGS="$xorg_testset_save_CFLAGS"
  5971. fi
  5972. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  5973. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  5974. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  5975. fi
  5976. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  5978. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  5979. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  5980. $as_echo_n "(cached) " >&6
  5981. else
  5982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5983. /* end confdefs.h. */
  5984. int i;
  5985. _ACEOF
  5986. if ac_fn_c_try_compile "$LINENO"; then :
  5987. xorg_cv_cc_flag_unused_command_line_argument=yes
  5988. else
  5989. xorg_cv_cc_flag_unused_command_line_argument=no
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5992. fi
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  5994. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  5995. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  5996. CFLAGS="$xorg_testset_save_CFLAGS"
  5997. fi
  5998. found="no"
  5999. if test $found = "no" ; then
  6000. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6001. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6002. fi
  6003. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6004. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6005. fi
  6006. CFLAGS="$CFLAGS -Werror=main"
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
  6008. $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
  6009. cacheid=xorg_cv_cc_flag__Werror_main
  6010. if eval \${$cacheid+:} false; then :
  6011. $as_echo_n "(cached) " >&6
  6012. else
  6013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6014. /* end confdefs.h. */
  6015. int i;
  6016. int
  6017. main ()
  6018. {
  6019. ;
  6020. return 0;
  6021. }
  6022. _ACEOF
  6023. if ac_fn_c_try_link "$LINENO"; then :
  6024. eval $cacheid=yes
  6025. else
  6026. eval $cacheid=no
  6027. fi
  6028. rm -f core conftest.err conftest.$ac_objext \
  6029. conftest$ac_exeext conftest.$ac_ext
  6030. fi
  6031. CFLAGS="$xorg_testset_save_CFLAGS"
  6032. eval supported=\$$cacheid
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6034. $as_echo "$supported" >&6; }
  6035. if test "$supported" = "yes" ; then
  6036. BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
  6037. found="yes"
  6038. fi
  6039. fi
  6040. xorg_testset_save_CFLAGS="$CFLAGS"
  6041. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6042. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6044. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6045. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6049. /* end confdefs.h. */
  6050. int i;
  6051. _ACEOF
  6052. if ac_fn_c_try_compile "$LINENO"; then :
  6053. xorg_cv_cc_flag_unknown_warning_option=yes
  6054. else
  6055. xorg_cv_cc_flag_unknown_warning_option=no
  6056. fi
  6057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6058. fi
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6060. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6061. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6062. CFLAGS="$xorg_testset_save_CFLAGS"
  6063. fi
  6064. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6065. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6066. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6067. fi
  6068. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6070. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6071. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6072. $as_echo_n "(cached) " >&6
  6073. else
  6074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6075. /* end confdefs.h. */
  6076. int i;
  6077. _ACEOF
  6078. if ac_fn_c_try_compile "$LINENO"; then :
  6079. xorg_cv_cc_flag_unused_command_line_argument=yes
  6080. else
  6081. xorg_cv_cc_flag_unused_command_line_argument=no
  6082. fi
  6083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6084. fi
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6086. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6087. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6088. CFLAGS="$xorg_testset_save_CFLAGS"
  6089. fi
  6090. found="no"
  6091. if test $found = "no" ; then
  6092. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6093. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6094. fi
  6095. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6096. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6097. fi
  6098. CFLAGS="$CFLAGS -Werror=missing-braces"
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
  6100. $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
  6101. cacheid=xorg_cv_cc_flag__Werror_missing_braces
  6102. if eval \${$cacheid+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6106. /* end confdefs.h. */
  6107. int i;
  6108. int
  6109. main ()
  6110. {
  6111. ;
  6112. return 0;
  6113. }
  6114. _ACEOF
  6115. if ac_fn_c_try_link "$LINENO"; then :
  6116. eval $cacheid=yes
  6117. else
  6118. eval $cacheid=no
  6119. fi
  6120. rm -f core conftest.err conftest.$ac_objext \
  6121. conftest$ac_exeext conftest.$ac_ext
  6122. fi
  6123. CFLAGS="$xorg_testset_save_CFLAGS"
  6124. eval supported=\$$cacheid
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6126. $as_echo "$supported" >&6; }
  6127. if test "$supported" = "yes" ; then
  6128. BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
  6129. found="yes"
  6130. fi
  6131. fi
  6132. xorg_testset_save_CFLAGS="$CFLAGS"
  6133. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6134. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6136. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6137. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6141. /* end confdefs.h. */
  6142. int i;
  6143. _ACEOF
  6144. if ac_fn_c_try_compile "$LINENO"; then :
  6145. xorg_cv_cc_flag_unknown_warning_option=yes
  6146. else
  6147. xorg_cv_cc_flag_unknown_warning_option=no
  6148. fi
  6149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6150. fi
  6151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6152. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6153. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6154. CFLAGS="$xorg_testset_save_CFLAGS"
  6155. fi
  6156. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6157. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6158. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6159. fi
  6160. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6162. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6163. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6164. $as_echo_n "(cached) " >&6
  6165. else
  6166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6167. /* end confdefs.h. */
  6168. int i;
  6169. _ACEOF
  6170. if ac_fn_c_try_compile "$LINENO"; then :
  6171. xorg_cv_cc_flag_unused_command_line_argument=yes
  6172. else
  6173. xorg_cv_cc_flag_unused_command_line_argument=no
  6174. fi
  6175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6176. fi
  6177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6178. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6179. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6180. CFLAGS="$xorg_testset_save_CFLAGS"
  6181. fi
  6182. found="no"
  6183. if test $found = "no" ; then
  6184. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6185. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6186. fi
  6187. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6188. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6189. fi
  6190. CFLAGS="$CFLAGS -Werror=sequence-point"
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
  6192. $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
  6193. cacheid=xorg_cv_cc_flag__Werror_sequence_point
  6194. if eval \${$cacheid+:} false; then :
  6195. $as_echo_n "(cached) " >&6
  6196. else
  6197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6198. /* end confdefs.h. */
  6199. int i;
  6200. int
  6201. main ()
  6202. {
  6203. ;
  6204. return 0;
  6205. }
  6206. _ACEOF
  6207. if ac_fn_c_try_link "$LINENO"; then :
  6208. eval $cacheid=yes
  6209. else
  6210. eval $cacheid=no
  6211. fi
  6212. rm -f core conftest.err conftest.$ac_objext \
  6213. conftest$ac_exeext conftest.$ac_ext
  6214. fi
  6215. CFLAGS="$xorg_testset_save_CFLAGS"
  6216. eval supported=\$$cacheid
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6218. $as_echo "$supported" >&6; }
  6219. if test "$supported" = "yes" ; then
  6220. BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
  6221. found="yes"
  6222. fi
  6223. fi
  6224. xorg_testset_save_CFLAGS="$CFLAGS"
  6225. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6226. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6228. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6229. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6230. $as_echo_n "(cached) " >&6
  6231. else
  6232. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6233. /* end confdefs.h. */
  6234. int i;
  6235. _ACEOF
  6236. if ac_fn_c_try_compile "$LINENO"; then :
  6237. xorg_cv_cc_flag_unknown_warning_option=yes
  6238. else
  6239. xorg_cv_cc_flag_unknown_warning_option=no
  6240. fi
  6241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6242. fi
  6243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6244. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6245. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6246. CFLAGS="$xorg_testset_save_CFLAGS"
  6247. fi
  6248. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6249. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6250. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6251. fi
  6252. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6254. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6255. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6256. $as_echo_n "(cached) " >&6
  6257. else
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h. */
  6260. int i;
  6261. _ACEOF
  6262. if ac_fn_c_try_compile "$LINENO"; then :
  6263. xorg_cv_cc_flag_unused_command_line_argument=yes
  6264. else
  6265. xorg_cv_cc_flag_unused_command_line_argument=no
  6266. fi
  6267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6270. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6271. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6272. CFLAGS="$xorg_testset_save_CFLAGS"
  6273. fi
  6274. found="no"
  6275. if test $found = "no" ; then
  6276. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6277. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6278. fi
  6279. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6280. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6281. fi
  6282. CFLAGS="$CFLAGS -Werror=return-type"
  6283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
  6284. $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
  6285. cacheid=xorg_cv_cc_flag__Werror_return_type
  6286. if eval \${$cacheid+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6290. /* end confdefs.h. */
  6291. int i;
  6292. int
  6293. main ()
  6294. {
  6295. ;
  6296. return 0;
  6297. }
  6298. _ACEOF
  6299. if ac_fn_c_try_link "$LINENO"; then :
  6300. eval $cacheid=yes
  6301. else
  6302. eval $cacheid=no
  6303. fi
  6304. rm -f core conftest.err conftest.$ac_objext \
  6305. conftest$ac_exeext conftest.$ac_ext
  6306. fi
  6307. CFLAGS="$xorg_testset_save_CFLAGS"
  6308. eval supported=\$$cacheid
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6310. $as_echo "$supported" >&6; }
  6311. if test "$supported" = "yes" ; then
  6312. BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
  6313. found="yes"
  6314. fi
  6315. fi
  6316. if test $found = "no" ; then
  6317. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6318. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6319. fi
  6320. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6321. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6322. fi
  6323. CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
  6325. $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
  6326. cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
  6327. if eval \${$cacheid+:} false; then :
  6328. $as_echo_n "(cached) " >&6
  6329. else
  6330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6331. /* end confdefs.h. */
  6332. int i;
  6333. int
  6334. main ()
  6335. {
  6336. ;
  6337. return 0;
  6338. }
  6339. _ACEOF
  6340. if ac_fn_c_try_link "$LINENO"; then :
  6341. eval $cacheid=yes
  6342. else
  6343. eval $cacheid=no
  6344. fi
  6345. rm -f core conftest.err conftest.$ac_objext \
  6346. conftest$ac_exeext conftest.$ac_ext
  6347. fi
  6348. CFLAGS="$xorg_testset_save_CFLAGS"
  6349. eval supported=\$$cacheid
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6351. $as_echo "$supported" >&6; }
  6352. if test "$supported" = "yes" ; then
  6353. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
  6354. found="yes"
  6355. fi
  6356. fi
  6357. xorg_testset_save_CFLAGS="$CFLAGS"
  6358. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6359. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6361. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6362. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6363. $as_echo_n "(cached) " >&6
  6364. else
  6365. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6366. /* end confdefs.h. */
  6367. int i;
  6368. _ACEOF
  6369. if ac_fn_c_try_compile "$LINENO"; then :
  6370. xorg_cv_cc_flag_unknown_warning_option=yes
  6371. else
  6372. xorg_cv_cc_flag_unknown_warning_option=no
  6373. fi
  6374. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6377. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6378. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6379. CFLAGS="$xorg_testset_save_CFLAGS"
  6380. fi
  6381. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6382. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6383. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6384. fi
  6385. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6387. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6388. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6389. $as_echo_n "(cached) " >&6
  6390. else
  6391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6392. /* end confdefs.h. */
  6393. int i;
  6394. _ACEOF
  6395. if ac_fn_c_try_compile "$LINENO"; then :
  6396. xorg_cv_cc_flag_unused_command_line_argument=yes
  6397. else
  6398. xorg_cv_cc_flag_unused_command_line_argument=no
  6399. fi
  6400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6401. fi
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6403. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6404. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6405. CFLAGS="$xorg_testset_save_CFLAGS"
  6406. fi
  6407. found="no"
  6408. if test $found = "no" ; then
  6409. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6410. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6411. fi
  6412. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6413. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6414. fi
  6415. CFLAGS="$CFLAGS -Werror=trigraphs"
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
  6417. $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
  6418. cacheid=xorg_cv_cc_flag__Werror_trigraphs
  6419. if eval \${$cacheid+:} false; then :
  6420. $as_echo_n "(cached) " >&6
  6421. else
  6422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6423. /* end confdefs.h. */
  6424. int i;
  6425. int
  6426. main ()
  6427. {
  6428. ;
  6429. return 0;
  6430. }
  6431. _ACEOF
  6432. if ac_fn_c_try_link "$LINENO"; then :
  6433. eval $cacheid=yes
  6434. else
  6435. eval $cacheid=no
  6436. fi
  6437. rm -f core conftest.err conftest.$ac_objext \
  6438. conftest$ac_exeext conftest.$ac_ext
  6439. fi
  6440. CFLAGS="$xorg_testset_save_CFLAGS"
  6441. eval supported=\$$cacheid
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6443. $as_echo "$supported" >&6; }
  6444. if test "$supported" = "yes" ; then
  6445. BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
  6446. found="yes"
  6447. fi
  6448. fi
  6449. xorg_testset_save_CFLAGS="$CFLAGS"
  6450. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6451. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6453. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6454. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6455. $as_echo_n "(cached) " >&6
  6456. else
  6457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6458. /* end confdefs.h. */
  6459. int i;
  6460. _ACEOF
  6461. if ac_fn_c_try_compile "$LINENO"; then :
  6462. xorg_cv_cc_flag_unknown_warning_option=yes
  6463. else
  6464. xorg_cv_cc_flag_unknown_warning_option=no
  6465. fi
  6466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6467. fi
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6469. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6470. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6471. CFLAGS="$xorg_testset_save_CFLAGS"
  6472. fi
  6473. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6474. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6475. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6476. fi
  6477. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6479. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6480. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6481. $as_echo_n "(cached) " >&6
  6482. else
  6483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6484. /* end confdefs.h. */
  6485. int i;
  6486. _ACEOF
  6487. if ac_fn_c_try_compile "$LINENO"; then :
  6488. xorg_cv_cc_flag_unused_command_line_argument=yes
  6489. else
  6490. xorg_cv_cc_flag_unused_command_line_argument=no
  6491. fi
  6492. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6493. fi
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6495. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6496. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6497. CFLAGS="$xorg_testset_save_CFLAGS"
  6498. fi
  6499. found="no"
  6500. if test $found = "no" ; then
  6501. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6502. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6503. fi
  6504. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6505. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6506. fi
  6507. CFLAGS="$CFLAGS -Werror=array-bounds"
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
  6509. $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
  6510. cacheid=xorg_cv_cc_flag__Werror_array_bounds
  6511. if eval \${$cacheid+:} false; then :
  6512. $as_echo_n "(cached) " >&6
  6513. else
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. int i;
  6517. int
  6518. main ()
  6519. {
  6520. ;
  6521. return 0;
  6522. }
  6523. _ACEOF
  6524. if ac_fn_c_try_link "$LINENO"; then :
  6525. eval $cacheid=yes
  6526. else
  6527. eval $cacheid=no
  6528. fi
  6529. rm -f core conftest.err conftest.$ac_objext \
  6530. conftest$ac_exeext conftest.$ac_ext
  6531. fi
  6532. CFLAGS="$xorg_testset_save_CFLAGS"
  6533. eval supported=\$$cacheid
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6535. $as_echo "$supported" >&6; }
  6536. if test "$supported" = "yes" ; then
  6537. BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
  6538. found="yes"
  6539. fi
  6540. fi
  6541. xorg_testset_save_CFLAGS="$CFLAGS"
  6542. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6543. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6545. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6546. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6547. $as_echo_n "(cached) " >&6
  6548. else
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. int i;
  6552. _ACEOF
  6553. if ac_fn_c_try_compile "$LINENO"; then :
  6554. xorg_cv_cc_flag_unknown_warning_option=yes
  6555. else
  6556. xorg_cv_cc_flag_unknown_warning_option=no
  6557. fi
  6558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6559. fi
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6561. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6562. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6563. CFLAGS="$xorg_testset_save_CFLAGS"
  6564. fi
  6565. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6566. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6567. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6568. fi
  6569. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6571. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6572. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6573. $as_echo_n "(cached) " >&6
  6574. else
  6575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6576. /* end confdefs.h. */
  6577. int i;
  6578. _ACEOF
  6579. if ac_fn_c_try_compile "$LINENO"; then :
  6580. xorg_cv_cc_flag_unused_command_line_argument=yes
  6581. else
  6582. xorg_cv_cc_flag_unused_command_line_argument=no
  6583. fi
  6584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6585. fi
  6586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6587. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6588. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6589. CFLAGS="$xorg_testset_save_CFLAGS"
  6590. fi
  6591. found="no"
  6592. if test $found = "no" ; then
  6593. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6594. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6595. fi
  6596. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6597. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6598. fi
  6599. CFLAGS="$CFLAGS -Werror=write-strings"
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
  6601. $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
  6602. cacheid=xorg_cv_cc_flag__Werror_write_strings
  6603. if eval \${$cacheid+:} false; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6607. /* end confdefs.h. */
  6608. int i;
  6609. int
  6610. main ()
  6611. {
  6612. ;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. if ac_fn_c_try_link "$LINENO"; then :
  6617. eval $cacheid=yes
  6618. else
  6619. eval $cacheid=no
  6620. fi
  6621. rm -f core conftest.err conftest.$ac_objext \
  6622. conftest$ac_exeext conftest.$ac_ext
  6623. fi
  6624. CFLAGS="$xorg_testset_save_CFLAGS"
  6625. eval supported=\$$cacheid
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6627. $as_echo "$supported" >&6; }
  6628. if test "$supported" = "yes" ; then
  6629. BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
  6630. found="yes"
  6631. fi
  6632. fi
  6633. xorg_testset_save_CFLAGS="$CFLAGS"
  6634. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6635. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6637. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6638. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6639. $as_echo_n "(cached) " >&6
  6640. else
  6641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6642. /* end confdefs.h. */
  6643. int i;
  6644. _ACEOF
  6645. if ac_fn_c_try_compile "$LINENO"; then :
  6646. xorg_cv_cc_flag_unknown_warning_option=yes
  6647. else
  6648. xorg_cv_cc_flag_unknown_warning_option=no
  6649. fi
  6650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6651. fi
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6653. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6654. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6655. CFLAGS="$xorg_testset_save_CFLAGS"
  6656. fi
  6657. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6658. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6659. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6660. fi
  6661. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6663. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6664. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6665. $as_echo_n "(cached) " >&6
  6666. else
  6667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6668. /* end confdefs.h. */
  6669. int i;
  6670. _ACEOF
  6671. if ac_fn_c_try_compile "$LINENO"; then :
  6672. xorg_cv_cc_flag_unused_command_line_argument=yes
  6673. else
  6674. xorg_cv_cc_flag_unused_command_line_argument=no
  6675. fi
  6676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6677. fi
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6679. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6680. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6681. CFLAGS="$xorg_testset_save_CFLAGS"
  6682. fi
  6683. found="no"
  6684. if test $found = "no" ; then
  6685. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6686. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6687. fi
  6688. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6689. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6690. fi
  6691. CFLAGS="$CFLAGS -Werror=address"
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
  6693. $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
  6694. cacheid=xorg_cv_cc_flag__Werror_address
  6695. if eval \${$cacheid+:} false; then :
  6696. $as_echo_n "(cached) " >&6
  6697. else
  6698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6699. /* end confdefs.h. */
  6700. int i;
  6701. int
  6702. main ()
  6703. {
  6704. ;
  6705. return 0;
  6706. }
  6707. _ACEOF
  6708. if ac_fn_c_try_link "$LINENO"; then :
  6709. eval $cacheid=yes
  6710. else
  6711. eval $cacheid=no
  6712. fi
  6713. rm -f core conftest.err conftest.$ac_objext \
  6714. conftest$ac_exeext conftest.$ac_ext
  6715. fi
  6716. CFLAGS="$xorg_testset_save_CFLAGS"
  6717. eval supported=\$$cacheid
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6719. $as_echo "$supported" >&6; }
  6720. if test "$supported" = "yes" ; then
  6721. BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
  6722. found="yes"
  6723. fi
  6724. fi
  6725. xorg_testset_save_CFLAGS="$CFLAGS"
  6726. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6727. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6729. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6730. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6734. /* end confdefs.h. */
  6735. int i;
  6736. _ACEOF
  6737. if ac_fn_c_try_compile "$LINENO"; then :
  6738. xorg_cv_cc_flag_unknown_warning_option=yes
  6739. else
  6740. xorg_cv_cc_flag_unknown_warning_option=no
  6741. fi
  6742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6743. fi
  6744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6745. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6746. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6747. CFLAGS="$xorg_testset_save_CFLAGS"
  6748. fi
  6749. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6750. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6751. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6752. fi
  6753. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6755. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6756. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6757. $as_echo_n "(cached) " >&6
  6758. else
  6759. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6760. /* end confdefs.h. */
  6761. int i;
  6762. _ACEOF
  6763. if ac_fn_c_try_compile "$LINENO"; then :
  6764. xorg_cv_cc_flag_unused_command_line_argument=yes
  6765. else
  6766. xorg_cv_cc_flag_unused_command_line_argument=no
  6767. fi
  6768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6771. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6772. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6773. CFLAGS="$xorg_testset_save_CFLAGS"
  6774. fi
  6775. found="no"
  6776. if test $found = "no" ; then
  6777. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6778. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6779. fi
  6780. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6781. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6782. fi
  6783. CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
  6784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
  6785. $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
  6786. cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
  6787. if eval \${$cacheid+:} false; then :
  6788. $as_echo_n "(cached) " >&6
  6789. else
  6790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6791. /* end confdefs.h. */
  6792. int i;
  6793. int
  6794. main ()
  6795. {
  6796. ;
  6797. return 0;
  6798. }
  6799. _ACEOF
  6800. if ac_fn_c_try_link "$LINENO"; then :
  6801. eval $cacheid=yes
  6802. else
  6803. eval $cacheid=no
  6804. fi
  6805. rm -f core conftest.err conftest.$ac_objext \
  6806. conftest$ac_exeext conftest.$ac_ext
  6807. fi
  6808. CFLAGS="$xorg_testset_save_CFLAGS"
  6809. eval supported=\$$cacheid
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6811. $as_echo "$supported" >&6; }
  6812. if test "$supported" = "yes" ; then
  6813. BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
  6814. found="yes"
  6815. fi
  6816. fi
  6817. if test $found = "no" ; then
  6818. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6819. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6820. fi
  6821. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6822. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6823. fi
  6824. CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
  6826. $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
  6827. cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
  6828. if eval \${$cacheid+:} false; then :
  6829. $as_echo_n "(cached) " >&6
  6830. else
  6831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6832. /* end confdefs.h. */
  6833. int i;
  6834. int
  6835. main ()
  6836. {
  6837. ;
  6838. return 0;
  6839. }
  6840. _ACEOF
  6841. if ac_fn_c_try_link "$LINENO"; then :
  6842. eval $cacheid=yes
  6843. else
  6844. eval $cacheid=no
  6845. fi
  6846. rm -f core conftest.err conftest.$ac_objext \
  6847. conftest$ac_exeext conftest.$ac_ext
  6848. fi
  6849. CFLAGS="$xorg_testset_save_CFLAGS"
  6850. eval supported=\$$cacheid
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6852. $as_echo "$supported" >&6; }
  6853. if test "$supported" = "yes" ; then
  6854. BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
  6855. found="yes"
  6856. fi
  6857. fi
  6858. xorg_testset_save_CFLAGS="$CFLAGS"
  6859. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6860. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6862. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6863. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6864. $as_echo_n "(cached) " >&6
  6865. else
  6866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6867. /* end confdefs.h. */
  6868. int i;
  6869. _ACEOF
  6870. if ac_fn_c_try_compile "$LINENO"; then :
  6871. xorg_cv_cc_flag_unknown_warning_option=yes
  6872. else
  6873. xorg_cv_cc_flag_unknown_warning_option=no
  6874. fi
  6875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6876. fi
  6877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6878. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6879. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6880. CFLAGS="$xorg_testset_save_CFLAGS"
  6881. fi
  6882. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6883. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6884. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6885. fi
  6886. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6888. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6889. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6890. $as_echo_n "(cached) " >&6
  6891. else
  6892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6893. /* end confdefs.h. */
  6894. int i;
  6895. _ACEOF
  6896. if ac_fn_c_try_compile "$LINENO"; then :
  6897. xorg_cv_cc_flag_unused_command_line_argument=yes
  6898. else
  6899. xorg_cv_cc_flag_unused_command_line_argument=no
  6900. fi
  6901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6902. fi
  6903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  6904. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  6905. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  6906. CFLAGS="$xorg_testset_save_CFLAGS"
  6907. fi
  6908. found="no"
  6909. if test $found = "no" ; then
  6910. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6911. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6912. fi
  6913. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  6914. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6915. fi
  6916. CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
  6917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
  6918. $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
  6919. cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
  6920. if eval \${$cacheid+:} false; then :
  6921. $as_echo_n "(cached) " >&6
  6922. else
  6923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6924. /* end confdefs.h. */
  6925. int i;
  6926. int
  6927. main ()
  6928. {
  6929. ;
  6930. return 0;
  6931. }
  6932. _ACEOF
  6933. if ac_fn_c_try_link "$LINENO"; then :
  6934. eval $cacheid=yes
  6935. else
  6936. eval $cacheid=no
  6937. fi
  6938. rm -f core conftest.err conftest.$ac_objext \
  6939. conftest$ac_exeext conftest.$ac_ext
  6940. fi
  6941. CFLAGS="$xorg_testset_save_CFLAGS"
  6942. eval supported=\$$cacheid
  6943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  6944. $as_echo "$supported" >&6; }
  6945. if test "$supported" = "yes" ; then
  6946. BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
  6947. found="yes"
  6948. fi
  6949. fi
  6950. # Also -errwarn=E_BAD_PTR_INT_COMBINATION
  6951. else
  6952. { $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
  6953. $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;}
  6954. xorg_testset_save_CFLAGS="$CFLAGS"
  6955. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  6956. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  6958. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  6959. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  6960. $as_echo_n "(cached) " >&6
  6961. else
  6962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6963. /* end confdefs.h. */
  6964. int i;
  6965. _ACEOF
  6966. if ac_fn_c_try_compile "$LINENO"; then :
  6967. xorg_cv_cc_flag_unknown_warning_option=yes
  6968. else
  6969. xorg_cv_cc_flag_unknown_warning_option=no
  6970. fi
  6971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6972. fi
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  6974. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  6975. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  6976. CFLAGS="$xorg_testset_save_CFLAGS"
  6977. fi
  6978. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  6979. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  6980. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  6981. fi
  6982. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  6984. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  6985. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6989. /* end confdefs.h. */
  6990. int i;
  6991. _ACEOF
  6992. if ac_fn_c_try_compile "$LINENO"; then :
  6993. xorg_cv_cc_flag_unused_command_line_argument=yes
  6994. else
  6995. xorg_cv_cc_flag_unused_command_line_argument=no
  6996. fi
  6997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6998. fi
  6999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7000. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7001. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7002. CFLAGS="$xorg_testset_save_CFLAGS"
  7003. fi
  7004. found="no"
  7005. if test $found = "no" ; then
  7006. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7007. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7008. fi
  7009. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7010. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7011. fi
  7012. CFLAGS="$CFLAGS -Wimplicit"
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
  7014. $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
  7015. cacheid=xorg_cv_cc_flag__Wimplicit
  7016. if eval \${$cacheid+:} false; then :
  7017. $as_echo_n "(cached) " >&6
  7018. else
  7019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7020. /* end confdefs.h. */
  7021. int i;
  7022. int
  7023. main ()
  7024. {
  7025. ;
  7026. return 0;
  7027. }
  7028. _ACEOF
  7029. if ac_fn_c_try_link "$LINENO"; then :
  7030. eval $cacheid=yes
  7031. else
  7032. eval $cacheid=no
  7033. fi
  7034. rm -f core conftest.err conftest.$ac_objext \
  7035. conftest$ac_exeext conftest.$ac_ext
  7036. fi
  7037. CFLAGS="$xorg_testset_save_CFLAGS"
  7038. eval supported=\$$cacheid
  7039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7040. $as_echo "$supported" >&6; }
  7041. if test "$supported" = "yes" ; then
  7042. BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
  7043. found="yes"
  7044. fi
  7045. fi
  7046. xorg_testset_save_CFLAGS="$CFLAGS"
  7047. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7048. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7050. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7051. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7052. $as_echo_n "(cached) " >&6
  7053. else
  7054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7055. /* end confdefs.h. */
  7056. int i;
  7057. _ACEOF
  7058. if ac_fn_c_try_compile "$LINENO"; then :
  7059. xorg_cv_cc_flag_unknown_warning_option=yes
  7060. else
  7061. xorg_cv_cc_flag_unknown_warning_option=no
  7062. fi
  7063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7064. fi
  7065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7066. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7067. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7068. CFLAGS="$xorg_testset_save_CFLAGS"
  7069. fi
  7070. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7071. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7072. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7073. fi
  7074. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7076. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7077. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7078. $as_echo_n "(cached) " >&6
  7079. else
  7080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7081. /* end confdefs.h. */
  7082. int i;
  7083. _ACEOF
  7084. if ac_fn_c_try_compile "$LINENO"; then :
  7085. xorg_cv_cc_flag_unused_command_line_argument=yes
  7086. else
  7087. xorg_cv_cc_flag_unused_command_line_argument=no
  7088. fi
  7089. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7090. fi
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7092. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7093. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7094. CFLAGS="$xorg_testset_save_CFLAGS"
  7095. fi
  7096. found="no"
  7097. if test $found = "no" ; then
  7098. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7099. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7100. fi
  7101. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7102. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7103. fi
  7104. CFLAGS="$CFLAGS -Wnonnull"
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
  7106. $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
  7107. cacheid=xorg_cv_cc_flag__Wnonnull
  7108. if eval \${$cacheid+:} false; then :
  7109. $as_echo_n "(cached) " >&6
  7110. else
  7111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7112. /* end confdefs.h. */
  7113. int i;
  7114. int
  7115. main ()
  7116. {
  7117. ;
  7118. return 0;
  7119. }
  7120. _ACEOF
  7121. if ac_fn_c_try_link "$LINENO"; then :
  7122. eval $cacheid=yes
  7123. else
  7124. eval $cacheid=no
  7125. fi
  7126. rm -f core conftest.err conftest.$ac_objext \
  7127. conftest$ac_exeext conftest.$ac_ext
  7128. fi
  7129. CFLAGS="$xorg_testset_save_CFLAGS"
  7130. eval supported=\$$cacheid
  7131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7132. $as_echo "$supported" >&6; }
  7133. if test "$supported" = "yes" ; then
  7134. BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
  7135. found="yes"
  7136. fi
  7137. fi
  7138. xorg_testset_save_CFLAGS="$CFLAGS"
  7139. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7140. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7142. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7143. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7144. $as_echo_n "(cached) " >&6
  7145. else
  7146. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7147. /* end confdefs.h. */
  7148. int i;
  7149. _ACEOF
  7150. if ac_fn_c_try_compile "$LINENO"; then :
  7151. xorg_cv_cc_flag_unknown_warning_option=yes
  7152. else
  7153. xorg_cv_cc_flag_unknown_warning_option=no
  7154. fi
  7155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7156. fi
  7157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7158. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7159. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7160. CFLAGS="$xorg_testset_save_CFLAGS"
  7161. fi
  7162. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7163. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7165. fi
  7166. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7168. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7169. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7173. /* end confdefs.h. */
  7174. int i;
  7175. _ACEOF
  7176. if ac_fn_c_try_compile "$LINENO"; then :
  7177. xorg_cv_cc_flag_unused_command_line_argument=yes
  7178. else
  7179. xorg_cv_cc_flag_unused_command_line_argument=no
  7180. fi
  7181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7182. fi
  7183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7184. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7185. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7186. CFLAGS="$xorg_testset_save_CFLAGS"
  7187. fi
  7188. found="no"
  7189. if test $found = "no" ; then
  7190. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7191. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7192. fi
  7193. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7194. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7195. fi
  7196. CFLAGS="$CFLAGS -Winit-self"
  7197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
  7198. $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
  7199. cacheid=xorg_cv_cc_flag__Winit_self
  7200. if eval \${$cacheid+:} false; then :
  7201. $as_echo_n "(cached) " >&6
  7202. else
  7203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7204. /* end confdefs.h. */
  7205. int i;
  7206. int
  7207. main ()
  7208. {
  7209. ;
  7210. return 0;
  7211. }
  7212. _ACEOF
  7213. if ac_fn_c_try_link "$LINENO"; then :
  7214. eval $cacheid=yes
  7215. else
  7216. eval $cacheid=no
  7217. fi
  7218. rm -f core conftest.err conftest.$ac_objext \
  7219. conftest$ac_exeext conftest.$ac_ext
  7220. fi
  7221. CFLAGS="$xorg_testset_save_CFLAGS"
  7222. eval supported=\$$cacheid
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7224. $as_echo "$supported" >&6; }
  7225. if test "$supported" = "yes" ; then
  7226. BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
  7227. found="yes"
  7228. fi
  7229. fi
  7230. xorg_testset_save_CFLAGS="$CFLAGS"
  7231. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7232. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7234. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7235. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7236. $as_echo_n "(cached) " >&6
  7237. else
  7238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7239. /* end confdefs.h. */
  7240. int i;
  7241. _ACEOF
  7242. if ac_fn_c_try_compile "$LINENO"; then :
  7243. xorg_cv_cc_flag_unknown_warning_option=yes
  7244. else
  7245. xorg_cv_cc_flag_unknown_warning_option=no
  7246. fi
  7247. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7248. fi
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7250. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7251. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7252. CFLAGS="$xorg_testset_save_CFLAGS"
  7253. fi
  7254. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7255. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7257. fi
  7258. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7260. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7261. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7262. $as_echo_n "(cached) " >&6
  7263. else
  7264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7265. /* end confdefs.h. */
  7266. int i;
  7267. _ACEOF
  7268. if ac_fn_c_try_compile "$LINENO"; then :
  7269. xorg_cv_cc_flag_unused_command_line_argument=yes
  7270. else
  7271. xorg_cv_cc_flag_unused_command_line_argument=no
  7272. fi
  7273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7274. fi
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7276. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7277. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7278. CFLAGS="$xorg_testset_save_CFLAGS"
  7279. fi
  7280. found="no"
  7281. if test $found = "no" ; then
  7282. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7283. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7284. fi
  7285. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7286. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7287. fi
  7288. CFLAGS="$CFLAGS -Wmain"
  7289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
  7290. $as_echo_n "checking if $CC supports -Wmain... " >&6; }
  7291. cacheid=xorg_cv_cc_flag__Wmain
  7292. if eval \${$cacheid+:} false; then :
  7293. $as_echo_n "(cached) " >&6
  7294. else
  7295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7296. /* end confdefs.h. */
  7297. int i;
  7298. int
  7299. main ()
  7300. {
  7301. ;
  7302. return 0;
  7303. }
  7304. _ACEOF
  7305. if ac_fn_c_try_link "$LINENO"; then :
  7306. eval $cacheid=yes
  7307. else
  7308. eval $cacheid=no
  7309. fi
  7310. rm -f core conftest.err conftest.$ac_objext \
  7311. conftest$ac_exeext conftest.$ac_ext
  7312. fi
  7313. CFLAGS="$xorg_testset_save_CFLAGS"
  7314. eval supported=\$$cacheid
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7316. $as_echo "$supported" >&6; }
  7317. if test "$supported" = "yes" ; then
  7318. BASE_CFLAGS="$BASE_CFLAGS -Wmain"
  7319. found="yes"
  7320. fi
  7321. fi
  7322. xorg_testset_save_CFLAGS="$CFLAGS"
  7323. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7324. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7326. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7327. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7328. $as_echo_n "(cached) " >&6
  7329. else
  7330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7331. /* end confdefs.h. */
  7332. int i;
  7333. _ACEOF
  7334. if ac_fn_c_try_compile "$LINENO"; then :
  7335. xorg_cv_cc_flag_unknown_warning_option=yes
  7336. else
  7337. xorg_cv_cc_flag_unknown_warning_option=no
  7338. fi
  7339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. fi
  7341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7342. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7343. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7344. CFLAGS="$xorg_testset_save_CFLAGS"
  7345. fi
  7346. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7347. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7349. fi
  7350. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7352. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7353. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7354. $as_echo_n "(cached) " >&6
  7355. else
  7356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7357. /* end confdefs.h. */
  7358. int i;
  7359. _ACEOF
  7360. if ac_fn_c_try_compile "$LINENO"; then :
  7361. xorg_cv_cc_flag_unused_command_line_argument=yes
  7362. else
  7363. xorg_cv_cc_flag_unused_command_line_argument=no
  7364. fi
  7365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7368. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7369. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7370. CFLAGS="$xorg_testset_save_CFLAGS"
  7371. fi
  7372. found="no"
  7373. if test $found = "no" ; then
  7374. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7375. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7376. fi
  7377. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7378. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7379. fi
  7380. CFLAGS="$CFLAGS -Wmissing-braces"
  7381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
  7382. $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
  7383. cacheid=xorg_cv_cc_flag__Wmissing_braces
  7384. if eval \${$cacheid+:} false; then :
  7385. $as_echo_n "(cached) " >&6
  7386. else
  7387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7388. /* end confdefs.h. */
  7389. int i;
  7390. int
  7391. main ()
  7392. {
  7393. ;
  7394. return 0;
  7395. }
  7396. _ACEOF
  7397. if ac_fn_c_try_link "$LINENO"; then :
  7398. eval $cacheid=yes
  7399. else
  7400. eval $cacheid=no
  7401. fi
  7402. rm -f core conftest.err conftest.$ac_objext \
  7403. conftest$ac_exeext conftest.$ac_ext
  7404. fi
  7405. CFLAGS="$xorg_testset_save_CFLAGS"
  7406. eval supported=\$$cacheid
  7407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7408. $as_echo "$supported" >&6; }
  7409. if test "$supported" = "yes" ; then
  7410. BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
  7411. found="yes"
  7412. fi
  7413. fi
  7414. xorg_testset_save_CFLAGS="$CFLAGS"
  7415. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7416. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7418. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7419. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7420. $as_echo_n "(cached) " >&6
  7421. else
  7422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7423. /* end confdefs.h. */
  7424. int i;
  7425. _ACEOF
  7426. if ac_fn_c_try_compile "$LINENO"; then :
  7427. xorg_cv_cc_flag_unknown_warning_option=yes
  7428. else
  7429. xorg_cv_cc_flag_unknown_warning_option=no
  7430. fi
  7431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7432. fi
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7434. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7435. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7436. CFLAGS="$xorg_testset_save_CFLAGS"
  7437. fi
  7438. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7439. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7440. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7441. fi
  7442. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7444. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7445. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7446. $as_echo_n "(cached) " >&6
  7447. else
  7448. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7449. /* end confdefs.h. */
  7450. int i;
  7451. _ACEOF
  7452. if ac_fn_c_try_compile "$LINENO"; then :
  7453. xorg_cv_cc_flag_unused_command_line_argument=yes
  7454. else
  7455. xorg_cv_cc_flag_unused_command_line_argument=no
  7456. fi
  7457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7458. fi
  7459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7460. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7461. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7462. CFLAGS="$xorg_testset_save_CFLAGS"
  7463. fi
  7464. found="no"
  7465. if test $found = "no" ; then
  7466. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7467. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7468. fi
  7469. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7470. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7471. fi
  7472. CFLAGS="$CFLAGS -Wsequence-point"
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
  7474. $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
  7475. cacheid=xorg_cv_cc_flag__Wsequence_point
  7476. if eval \${$cacheid+:} false; then :
  7477. $as_echo_n "(cached) " >&6
  7478. else
  7479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7480. /* end confdefs.h. */
  7481. int i;
  7482. int
  7483. main ()
  7484. {
  7485. ;
  7486. return 0;
  7487. }
  7488. _ACEOF
  7489. if ac_fn_c_try_link "$LINENO"; then :
  7490. eval $cacheid=yes
  7491. else
  7492. eval $cacheid=no
  7493. fi
  7494. rm -f core conftest.err conftest.$ac_objext \
  7495. conftest$ac_exeext conftest.$ac_ext
  7496. fi
  7497. CFLAGS="$xorg_testset_save_CFLAGS"
  7498. eval supported=\$$cacheid
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7500. $as_echo "$supported" >&6; }
  7501. if test "$supported" = "yes" ; then
  7502. BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
  7503. found="yes"
  7504. fi
  7505. fi
  7506. xorg_testset_save_CFLAGS="$CFLAGS"
  7507. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7508. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7510. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7511. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7515. /* end confdefs.h. */
  7516. int i;
  7517. _ACEOF
  7518. if ac_fn_c_try_compile "$LINENO"; then :
  7519. xorg_cv_cc_flag_unknown_warning_option=yes
  7520. else
  7521. xorg_cv_cc_flag_unknown_warning_option=no
  7522. fi
  7523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7524. fi
  7525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7526. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7527. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7528. CFLAGS="$xorg_testset_save_CFLAGS"
  7529. fi
  7530. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7531. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7532. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7533. fi
  7534. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7536. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7537. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7538. $as_echo_n "(cached) " >&6
  7539. else
  7540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7541. /* end confdefs.h. */
  7542. int i;
  7543. _ACEOF
  7544. if ac_fn_c_try_compile "$LINENO"; then :
  7545. xorg_cv_cc_flag_unused_command_line_argument=yes
  7546. else
  7547. xorg_cv_cc_flag_unused_command_line_argument=no
  7548. fi
  7549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7550. fi
  7551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7552. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7553. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7554. CFLAGS="$xorg_testset_save_CFLAGS"
  7555. fi
  7556. found="no"
  7557. if test $found = "no" ; then
  7558. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7559. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7560. fi
  7561. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7562. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7563. fi
  7564. CFLAGS="$CFLAGS -Wreturn-type"
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
  7566. $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
  7567. cacheid=xorg_cv_cc_flag__Wreturn_type
  7568. if eval \${$cacheid+:} false; then :
  7569. $as_echo_n "(cached) " >&6
  7570. else
  7571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7572. /* end confdefs.h. */
  7573. int i;
  7574. int
  7575. main ()
  7576. {
  7577. ;
  7578. return 0;
  7579. }
  7580. _ACEOF
  7581. if ac_fn_c_try_link "$LINENO"; then :
  7582. eval $cacheid=yes
  7583. else
  7584. eval $cacheid=no
  7585. fi
  7586. rm -f core conftest.err conftest.$ac_objext \
  7587. conftest$ac_exeext conftest.$ac_ext
  7588. fi
  7589. CFLAGS="$xorg_testset_save_CFLAGS"
  7590. eval supported=\$$cacheid
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7592. $as_echo "$supported" >&6; }
  7593. if test "$supported" = "yes" ; then
  7594. BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
  7595. found="yes"
  7596. fi
  7597. fi
  7598. xorg_testset_save_CFLAGS="$CFLAGS"
  7599. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7600. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7602. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7603. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7604. $as_echo_n "(cached) " >&6
  7605. else
  7606. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7607. /* end confdefs.h. */
  7608. int i;
  7609. _ACEOF
  7610. if ac_fn_c_try_compile "$LINENO"; then :
  7611. xorg_cv_cc_flag_unknown_warning_option=yes
  7612. else
  7613. xorg_cv_cc_flag_unknown_warning_option=no
  7614. fi
  7615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7616. fi
  7617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7618. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7619. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7620. CFLAGS="$xorg_testset_save_CFLAGS"
  7621. fi
  7622. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7623. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7624. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7625. fi
  7626. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7628. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7629. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7630. $as_echo_n "(cached) " >&6
  7631. else
  7632. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7633. /* end confdefs.h. */
  7634. int i;
  7635. _ACEOF
  7636. if ac_fn_c_try_compile "$LINENO"; then :
  7637. xorg_cv_cc_flag_unused_command_line_argument=yes
  7638. else
  7639. xorg_cv_cc_flag_unused_command_line_argument=no
  7640. fi
  7641. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7644. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7645. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7646. CFLAGS="$xorg_testset_save_CFLAGS"
  7647. fi
  7648. found="no"
  7649. if test $found = "no" ; then
  7650. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7651. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7652. fi
  7653. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7654. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7655. fi
  7656. CFLAGS="$CFLAGS -Wtrigraphs"
  7657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
  7658. $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
  7659. cacheid=xorg_cv_cc_flag__Wtrigraphs
  7660. if eval \${$cacheid+:} false; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7664. /* end confdefs.h. */
  7665. int i;
  7666. int
  7667. main ()
  7668. {
  7669. ;
  7670. return 0;
  7671. }
  7672. _ACEOF
  7673. if ac_fn_c_try_link "$LINENO"; then :
  7674. eval $cacheid=yes
  7675. else
  7676. eval $cacheid=no
  7677. fi
  7678. rm -f core conftest.err conftest.$ac_objext \
  7679. conftest$ac_exeext conftest.$ac_ext
  7680. fi
  7681. CFLAGS="$xorg_testset_save_CFLAGS"
  7682. eval supported=\$$cacheid
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7684. $as_echo "$supported" >&6; }
  7685. if test "$supported" = "yes" ; then
  7686. BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
  7687. found="yes"
  7688. fi
  7689. fi
  7690. xorg_testset_save_CFLAGS="$CFLAGS"
  7691. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7692. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7694. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7695. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7696. $as_echo_n "(cached) " >&6
  7697. else
  7698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7699. /* end confdefs.h. */
  7700. int i;
  7701. _ACEOF
  7702. if ac_fn_c_try_compile "$LINENO"; then :
  7703. xorg_cv_cc_flag_unknown_warning_option=yes
  7704. else
  7705. xorg_cv_cc_flag_unknown_warning_option=no
  7706. fi
  7707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7708. fi
  7709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7710. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7711. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7712. CFLAGS="$xorg_testset_save_CFLAGS"
  7713. fi
  7714. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7715. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7716. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7717. fi
  7718. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7720. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7721. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7722. $as_echo_n "(cached) " >&6
  7723. else
  7724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7725. /* end confdefs.h. */
  7726. int i;
  7727. _ACEOF
  7728. if ac_fn_c_try_compile "$LINENO"; then :
  7729. xorg_cv_cc_flag_unused_command_line_argument=yes
  7730. else
  7731. xorg_cv_cc_flag_unused_command_line_argument=no
  7732. fi
  7733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7734. fi
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7736. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7737. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7738. CFLAGS="$xorg_testset_save_CFLAGS"
  7739. fi
  7740. found="no"
  7741. if test $found = "no" ; then
  7742. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7743. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7744. fi
  7745. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7746. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7747. fi
  7748. CFLAGS="$CFLAGS -Warray-bounds"
  7749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
  7750. $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
  7751. cacheid=xorg_cv_cc_flag__Warray_bounds
  7752. if eval \${$cacheid+:} false; then :
  7753. $as_echo_n "(cached) " >&6
  7754. else
  7755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7756. /* end confdefs.h. */
  7757. int i;
  7758. int
  7759. main ()
  7760. {
  7761. ;
  7762. return 0;
  7763. }
  7764. _ACEOF
  7765. if ac_fn_c_try_link "$LINENO"; then :
  7766. eval $cacheid=yes
  7767. else
  7768. eval $cacheid=no
  7769. fi
  7770. rm -f core conftest.err conftest.$ac_objext \
  7771. conftest$ac_exeext conftest.$ac_ext
  7772. fi
  7773. CFLAGS="$xorg_testset_save_CFLAGS"
  7774. eval supported=\$$cacheid
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7776. $as_echo "$supported" >&6; }
  7777. if test "$supported" = "yes" ; then
  7778. BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
  7779. found="yes"
  7780. fi
  7781. fi
  7782. xorg_testset_save_CFLAGS="$CFLAGS"
  7783. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7784. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7786. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7787. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7788. $as_echo_n "(cached) " >&6
  7789. else
  7790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7791. /* end confdefs.h. */
  7792. int i;
  7793. _ACEOF
  7794. if ac_fn_c_try_compile "$LINENO"; then :
  7795. xorg_cv_cc_flag_unknown_warning_option=yes
  7796. else
  7797. xorg_cv_cc_flag_unknown_warning_option=no
  7798. fi
  7799. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7800. fi
  7801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7802. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7803. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7804. CFLAGS="$xorg_testset_save_CFLAGS"
  7805. fi
  7806. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7807. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7808. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7809. fi
  7810. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7812. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7813. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7814. $as_echo_n "(cached) " >&6
  7815. else
  7816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7817. /* end confdefs.h. */
  7818. int i;
  7819. _ACEOF
  7820. if ac_fn_c_try_compile "$LINENO"; then :
  7821. xorg_cv_cc_flag_unused_command_line_argument=yes
  7822. else
  7823. xorg_cv_cc_flag_unused_command_line_argument=no
  7824. fi
  7825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7826. fi
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7828. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7829. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7830. CFLAGS="$xorg_testset_save_CFLAGS"
  7831. fi
  7832. found="no"
  7833. if test $found = "no" ; then
  7834. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7835. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7836. fi
  7837. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7838. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7839. fi
  7840. CFLAGS="$CFLAGS -Wwrite-strings"
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
  7842. $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
  7843. cacheid=xorg_cv_cc_flag__Wwrite_strings
  7844. if eval \${$cacheid+:} false; then :
  7845. $as_echo_n "(cached) " >&6
  7846. else
  7847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7848. /* end confdefs.h. */
  7849. int i;
  7850. int
  7851. main ()
  7852. {
  7853. ;
  7854. return 0;
  7855. }
  7856. _ACEOF
  7857. if ac_fn_c_try_link "$LINENO"; then :
  7858. eval $cacheid=yes
  7859. else
  7860. eval $cacheid=no
  7861. fi
  7862. rm -f core conftest.err conftest.$ac_objext \
  7863. conftest$ac_exeext conftest.$ac_ext
  7864. fi
  7865. CFLAGS="$xorg_testset_save_CFLAGS"
  7866. eval supported=\$$cacheid
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7868. $as_echo "$supported" >&6; }
  7869. if test "$supported" = "yes" ; then
  7870. BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
  7871. found="yes"
  7872. fi
  7873. fi
  7874. xorg_testset_save_CFLAGS="$CFLAGS"
  7875. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7876. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7878. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7879. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7880. $as_echo_n "(cached) " >&6
  7881. else
  7882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7883. /* end confdefs.h. */
  7884. int i;
  7885. _ACEOF
  7886. if ac_fn_c_try_compile "$LINENO"; then :
  7887. xorg_cv_cc_flag_unknown_warning_option=yes
  7888. else
  7889. xorg_cv_cc_flag_unknown_warning_option=no
  7890. fi
  7891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7892. fi
  7893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7894. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7895. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7896. CFLAGS="$xorg_testset_save_CFLAGS"
  7897. fi
  7898. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7899. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7900. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7901. fi
  7902. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7904. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7905. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7906. $as_echo_n "(cached) " >&6
  7907. else
  7908. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7909. /* end confdefs.h. */
  7910. int i;
  7911. _ACEOF
  7912. if ac_fn_c_try_compile "$LINENO"; then :
  7913. xorg_cv_cc_flag_unused_command_line_argument=yes
  7914. else
  7915. xorg_cv_cc_flag_unused_command_line_argument=no
  7916. fi
  7917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7918. fi
  7919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  7920. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  7921. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  7922. CFLAGS="$xorg_testset_save_CFLAGS"
  7923. fi
  7924. found="no"
  7925. if test $found = "no" ; then
  7926. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7927. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7928. fi
  7929. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  7930. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7931. fi
  7932. CFLAGS="$CFLAGS -Waddress"
  7933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
  7934. $as_echo_n "checking if $CC supports -Waddress... " >&6; }
  7935. cacheid=xorg_cv_cc_flag__Waddress
  7936. if eval \${$cacheid+:} false; then :
  7937. $as_echo_n "(cached) " >&6
  7938. else
  7939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7940. /* end confdefs.h. */
  7941. int i;
  7942. int
  7943. main ()
  7944. {
  7945. ;
  7946. return 0;
  7947. }
  7948. _ACEOF
  7949. if ac_fn_c_try_link "$LINENO"; then :
  7950. eval $cacheid=yes
  7951. else
  7952. eval $cacheid=no
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext \
  7955. conftest$ac_exeext conftest.$ac_ext
  7956. fi
  7957. CFLAGS="$xorg_testset_save_CFLAGS"
  7958. eval supported=\$$cacheid
  7959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  7960. $as_echo "$supported" >&6; }
  7961. if test "$supported" = "yes" ; then
  7962. BASE_CFLAGS="$BASE_CFLAGS -Waddress"
  7963. found="yes"
  7964. fi
  7965. fi
  7966. xorg_testset_save_CFLAGS="$CFLAGS"
  7967. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  7968. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  7970. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  7971. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  7972. $as_echo_n "(cached) " >&6
  7973. else
  7974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7975. /* end confdefs.h. */
  7976. int i;
  7977. _ACEOF
  7978. if ac_fn_c_try_compile "$LINENO"; then :
  7979. xorg_cv_cc_flag_unknown_warning_option=yes
  7980. else
  7981. xorg_cv_cc_flag_unknown_warning_option=no
  7982. fi
  7983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7984. fi
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  7986. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  7987. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  7988. CFLAGS="$xorg_testset_save_CFLAGS"
  7989. fi
  7990. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  7991. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  7992. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7993. fi
  7994. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  7995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  7996. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  7997. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  7998. $as_echo_n "(cached) " >&6
  7999. else
  8000. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8001. /* end confdefs.h. */
  8002. int i;
  8003. _ACEOF
  8004. if ac_fn_c_try_compile "$LINENO"; then :
  8005. xorg_cv_cc_flag_unused_command_line_argument=yes
  8006. else
  8007. xorg_cv_cc_flag_unused_command_line_argument=no
  8008. fi
  8009. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8010. fi
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8012. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8013. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8014. CFLAGS="$xorg_testset_save_CFLAGS"
  8015. fi
  8016. found="no"
  8017. if test $found = "no" ; then
  8018. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8019. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8020. fi
  8021. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8022. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8023. fi
  8024. CFLAGS="$CFLAGS -Wint-to-pointer-cast"
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
  8026. $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
  8027. cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
  8028. if eval \${$cacheid+:} false; then :
  8029. $as_echo_n "(cached) " >&6
  8030. else
  8031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8032. /* end confdefs.h. */
  8033. int i;
  8034. int
  8035. main ()
  8036. {
  8037. ;
  8038. return 0;
  8039. }
  8040. _ACEOF
  8041. if ac_fn_c_try_link "$LINENO"; then :
  8042. eval $cacheid=yes
  8043. else
  8044. eval $cacheid=no
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext \
  8047. conftest$ac_exeext conftest.$ac_ext
  8048. fi
  8049. CFLAGS="$xorg_testset_save_CFLAGS"
  8050. eval supported=\$$cacheid
  8051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8052. $as_echo "$supported" >&6; }
  8053. if test "$supported" = "yes" ; then
  8054. BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
  8055. found="yes"
  8056. fi
  8057. fi
  8058. xorg_testset_save_CFLAGS="$CFLAGS"
  8059. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8060. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8062. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8063. if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
  8064. $as_echo_n "(cached) " >&6
  8065. else
  8066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8067. /* end confdefs.h. */
  8068. int i;
  8069. _ACEOF
  8070. if ac_fn_c_try_compile "$LINENO"; then :
  8071. xorg_cv_cc_flag_unknown_warning_option=yes
  8072. else
  8073. xorg_cv_cc_flag_unknown_warning_option=no
  8074. fi
  8075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8076. fi
  8077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8078. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8079. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8080. CFLAGS="$xorg_testset_save_CFLAGS"
  8081. fi
  8082. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8083. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8084. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8085. fi
  8086. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8088. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8089. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8090. $as_echo_n "(cached) " >&6
  8091. else
  8092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8093. /* end confdefs.h. */
  8094. int i;
  8095. _ACEOF
  8096. if ac_fn_c_try_compile "$LINENO"; then :
  8097. xorg_cv_cc_flag_unused_command_line_argument=yes
  8098. else
  8099. xorg_cv_cc_flag_unused_command_line_argument=no
  8100. fi
  8101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8102. fi
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8104. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8105. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8106. CFLAGS="$xorg_testset_save_CFLAGS"
  8107. fi
  8108. found="no"
  8109. if test $found = "no" ; then
  8110. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8111. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8112. fi
  8113. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8114. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8115. fi
  8116. CFLAGS="$CFLAGS -Wpointer-to-int-cast"
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
  8118. $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
  8119. cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
  8120. if eval \${$cacheid+:} false; then :
  8121. $as_echo_n "(cached) " >&6
  8122. else
  8123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8124. /* end confdefs.h. */
  8125. int i;
  8126. int
  8127. main ()
  8128. {
  8129. ;
  8130. return 0;
  8131. }
  8132. _ACEOF
  8133. if ac_fn_c_try_link "$LINENO"; then :
  8134. eval $cacheid=yes
  8135. else
  8136. eval $cacheid=no
  8137. fi
  8138. rm -f core conftest.err conftest.$ac_objext \
  8139. conftest$ac_exeext conftest.$ac_ext
  8140. fi
  8141. CFLAGS="$xorg_testset_save_CFLAGS"
  8142. eval supported=\$$cacheid
  8143. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8144. $as_echo "$supported" >&6; }
  8145. if test "$supported" = "yes" ; then
  8146. BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
  8147. found="yes"
  8148. fi
  8149. fi
  8150. fi
  8151. CWARNFLAGS="$BASE_CFLAGS"
  8152. if test "x$GCC" = xyes ; then
  8153. CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
  8154. fi
  8155. # Check whether --enable-strict-compilation was given.
  8156. if test "${enable_strict_compilation+set}" = set; then :
  8157. enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
  8158. else
  8159. STRICT_COMPILE=no
  8160. fi
  8161. STRICT_CFLAGS=""
  8162. xorg_testset_save_CFLAGS="$CFLAGS"
  8163. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8164. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8166. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8167. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
  8176. else
  8177. xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
  8182. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8183. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8184. CFLAGS="$xorg_testset_save_CFLAGS"
  8185. fi
  8186. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8187. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8188. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8189. fi
  8190. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8192. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8193. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8194. $as_echo_n "(cached) " >&6
  8195. else
  8196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8197. /* end confdefs.h. */
  8198. int i;
  8199. _ACEOF
  8200. if ac_fn_c_try_compile "$LINENO"; then :
  8201. xorg_cv_cc_flag_unused_command_line_argument=yes
  8202. else
  8203. xorg_cv_cc_flag_unused_command_line_argument=no
  8204. fi
  8205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8206. fi
  8207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8208. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8209. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8210. CFLAGS="$xorg_testset_save_CFLAGS"
  8211. fi
  8212. found="no"
  8213. if test $found = "no" ; then
  8214. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8215. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8216. fi
  8217. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8218. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8219. fi
  8220. CFLAGS="$CFLAGS -pedantic"
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
  8222. $as_echo_n "checking if $CC supports -pedantic... " >&6; }
  8223. cacheid=xorg_cv_cc_flag__pedantic
  8224. if eval \${$cacheid+:} false; then :
  8225. $as_echo_n "(cached) " >&6
  8226. else
  8227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8228. /* end confdefs.h. */
  8229. int i;
  8230. int
  8231. main ()
  8232. {
  8233. ;
  8234. return 0;
  8235. }
  8236. _ACEOF
  8237. if ac_fn_c_try_link "$LINENO"; then :
  8238. eval $cacheid=yes
  8239. else
  8240. eval $cacheid=no
  8241. fi
  8242. rm -f core conftest.err conftest.$ac_objext \
  8243. conftest$ac_exeext conftest.$ac_ext
  8244. fi
  8245. CFLAGS="$xorg_testset_save_CFLAGS"
  8246. eval supported=\$$cacheid
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8248. $as_echo "$supported" >&6; }
  8249. if test "$supported" = "yes" ; then
  8250. STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
  8251. found="yes"
  8252. fi
  8253. fi
  8254. xorg_testset_save_CFLAGS="$CFLAGS"
  8255. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8256. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8258. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8259. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
  8268. else
  8269. xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
  8274. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8275. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8276. CFLAGS="$xorg_testset_save_CFLAGS"
  8277. fi
  8278. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8279. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8280. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8281. fi
  8282. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8284. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8285. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8286. $as_echo_n "(cached) " >&6
  8287. else
  8288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8289. /* end confdefs.h. */
  8290. int i;
  8291. _ACEOF
  8292. if ac_fn_c_try_compile "$LINENO"; then :
  8293. xorg_cv_cc_flag_unused_command_line_argument=yes
  8294. else
  8295. xorg_cv_cc_flag_unused_command_line_argument=no
  8296. fi
  8297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8298. fi
  8299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8300. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8301. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8302. CFLAGS="$xorg_testset_save_CFLAGS"
  8303. fi
  8304. found="no"
  8305. if test $found = "no" ; then
  8306. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8307. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8308. fi
  8309. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8310. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8311. fi
  8312. CFLAGS="$CFLAGS -Werror"
  8313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
  8314. $as_echo_n "checking if $CC supports -Werror... " >&6; }
  8315. cacheid=xorg_cv_cc_flag__Werror
  8316. if eval \${$cacheid+:} false; then :
  8317. $as_echo_n "(cached) " >&6
  8318. else
  8319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8320. /* end confdefs.h. */
  8321. int i;
  8322. int
  8323. main ()
  8324. {
  8325. ;
  8326. return 0;
  8327. }
  8328. _ACEOF
  8329. if ac_fn_c_try_link "$LINENO"; then :
  8330. eval $cacheid=yes
  8331. else
  8332. eval $cacheid=no
  8333. fi
  8334. rm -f core conftest.err conftest.$ac_objext \
  8335. conftest$ac_exeext conftest.$ac_ext
  8336. fi
  8337. CFLAGS="$xorg_testset_save_CFLAGS"
  8338. eval supported=\$$cacheid
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8340. $as_echo "$supported" >&6; }
  8341. if test "$supported" = "yes" ; then
  8342. STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
  8343. found="yes"
  8344. fi
  8345. fi
  8346. if test $found = "no" ; then
  8347. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8348. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8349. fi
  8350. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8351. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8352. fi
  8353. CFLAGS="$CFLAGS -errwarn"
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
  8355. $as_echo_n "checking if $CC supports -errwarn... " >&6; }
  8356. cacheid=xorg_cv_cc_flag__errwarn
  8357. if eval \${$cacheid+:} false; then :
  8358. $as_echo_n "(cached) " >&6
  8359. else
  8360. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8361. /* end confdefs.h. */
  8362. int i;
  8363. int
  8364. main ()
  8365. {
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. if ac_fn_c_try_link "$LINENO"; then :
  8371. eval $cacheid=yes
  8372. else
  8373. eval $cacheid=no
  8374. fi
  8375. rm -f core conftest.err conftest.$ac_objext \
  8376. conftest$ac_exeext conftest.$ac_ext
  8377. fi
  8378. CFLAGS="$xorg_testset_save_CFLAGS"
  8379. eval supported=\$$cacheid
  8380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8381. $as_echo "$supported" >&6; }
  8382. if test "$supported" = "yes" ; then
  8383. STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
  8384. found="yes"
  8385. fi
  8386. fi
  8387. # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
  8388. # activate it with -Werror, so we add it here explicitly.
  8389. xorg_testset_save_CFLAGS="$CFLAGS"
  8390. if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
  8391. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
  8393. $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
  8394. if ${xorg_cv_cc_flag_unknown_warning_option+:} 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. _ACEOF
  8401. if ac_fn_c_try_compile "$LINENO"; then :
  8402. xorg_cv_cc_flag_unknown_warning_option=yes
  8403. else
  8404. xorg_cv_cc_flag_unknown_warning_option=no
  8405. fi
  8406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8407. fi
  8408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
  8409. $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
  8410. xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
  8411. CFLAGS="$xorg_testset_save_CFLAGS"
  8412. fi
  8413. if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
  8414. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8415. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8416. fi
  8417. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
  8419. $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
  8420. if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
  8421. $as_echo_n "(cached) " >&6
  8422. else
  8423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8424. /* end confdefs.h. */
  8425. int i;
  8426. _ACEOF
  8427. if ac_fn_c_try_compile "$LINENO"; then :
  8428. xorg_cv_cc_flag_unused_command_line_argument=yes
  8429. else
  8430. xorg_cv_cc_flag_unused_command_line_argument=no
  8431. fi
  8432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8433. fi
  8434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
  8435. $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
  8436. xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
  8437. CFLAGS="$xorg_testset_save_CFLAGS"
  8438. fi
  8439. found="no"
  8440. if test $found = "no" ; then
  8441. if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
  8442. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  8443. fi
  8444. if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
  8445. CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
  8446. fi
  8447. CFLAGS="$CFLAGS -Werror=attributes"
  8448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
  8449. $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
  8450. cacheid=xorg_cv_cc_flag__Werror_attributes
  8451. if eval \${$cacheid+:} false; then :
  8452. $as_echo_n "(cached) " >&6
  8453. else
  8454. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8455. /* end confdefs.h. */
  8456. int i;
  8457. int
  8458. main ()
  8459. {
  8460. ;
  8461. return 0;
  8462. }
  8463. _ACEOF
  8464. if ac_fn_c_try_link "$LINENO"; then :
  8465. eval $cacheid=yes
  8466. else
  8467. eval $cacheid=no
  8468. fi
  8469. rm -f core conftest.err conftest.$ac_objext \
  8470. conftest$ac_exeext conftest.$ac_ext
  8471. fi
  8472. CFLAGS="$xorg_testset_save_CFLAGS"
  8473. eval supported=\$$cacheid
  8474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
  8475. $as_echo "$supported" >&6; }
  8476. if test "$supported" = "yes" ; then
  8477. STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
  8478. found="yes"
  8479. fi
  8480. fi
  8481. if test "x$STRICT_COMPILE" = "xyes"; then
  8482. BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
  8483. CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
  8484. fi
  8485. cat >>confdefs.h <<_ACEOF
  8486. #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
  8487. _ACEOF
  8488. PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
  8489. if test "x$PVM" = "x"; then
  8490. PVM="0"
  8491. fi
  8492. cat >>confdefs.h <<_ACEOF
  8493. #define PACKAGE_VERSION_MINOR $PVM
  8494. _ACEOF
  8495. PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
  8496. if test "x$PVP" = "x"; then
  8497. PVP="0"
  8498. fi
  8499. cat >>confdefs.h <<_ACEOF
  8500. #define PACKAGE_VERSION_PATCHLEVEL $PVP
  8501. _ACEOF
  8502. CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
  8503. mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
  8504. || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
  8505. echo 'git directory not found: installing possibly empty changelog.' >&2)"
  8506. macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
  8507. INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
  8508. mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
  8509. || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
  8510. echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
  8511. if test x$APP_MAN_SUFFIX = x ; then
  8512. APP_MAN_SUFFIX=1
  8513. fi
  8514. if test x$APP_MAN_DIR = x ; then
  8515. APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
  8516. fi
  8517. if test x$LIB_MAN_SUFFIX = x ; then
  8518. LIB_MAN_SUFFIX=3
  8519. fi
  8520. if test x$LIB_MAN_DIR = x ; then
  8521. LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
  8522. fi
  8523. if test x$FILE_MAN_SUFFIX = x ; then
  8524. case $host_os in
  8525. solaris*) FILE_MAN_SUFFIX=4 ;;
  8526. *) FILE_MAN_SUFFIX=5 ;;
  8527. esac
  8528. fi
  8529. if test x$FILE_MAN_DIR = x ; then
  8530. FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
  8531. fi
  8532. if test x$MISC_MAN_SUFFIX = x ; then
  8533. case $host_os in
  8534. solaris*) MISC_MAN_SUFFIX=5 ;;
  8535. *) MISC_MAN_SUFFIX=7 ;;
  8536. esac
  8537. fi
  8538. if test x$MISC_MAN_DIR = x ; then
  8539. MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
  8540. fi
  8541. if test x$DRIVER_MAN_SUFFIX = x ; then
  8542. case $host_os in
  8543. solaris*) DRIVER_MAN_SUFFIX=7 ;;
  8544. *) DRIVER_MAN_SUFFIX=4 ;;
  8545. esac
  8546. fi
  8547. if test x$DRIVER_MAN_DIR = x ; then
  8548. DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
  8549. fi
  8550. if test x$ADMIN_MAN_SUFFIX = x ; then
  8551. case $host_os in
  8552. solaris*) ADMIN_MAN_SUFFIX=1m ;;
  8553. *) ADMIN_MAN_SUFFIX=8 ;;
  8554. esac
  8555. fi
  8556. if test x$ADMIN_MAN_DIR = x ; then
  8557. ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
  8558. fi
  8559. XORG_MAN_PAGE="X Version 11"
  8560. MAN_SUBSTS="\
  8561. -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8562. -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
  8563. -e 's|__xservername__|Xorg|g' \
  8564. -e 's|__xconfigfile__|xorg.conf|g' \
  8565. -e 's|__projectroot__|\$(prefix)|g' \
  8566. -e 's|__apploaddir__|\$(appdefaultdir)|g' \
  8567. -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
  8568. -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
  8569. -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
  8570. -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
  8571. -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
  8572. -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
  8573. # Check whether --enable-silent-rules was given.
  8574. if test "${enable_silent_rules+set}" = set; then :
  8575. enableval=$enable_silent_rules;
  8576. fi
  8577. case $enable_silent_rules in # (((
  8578. yes) AM_DEFAULT_VERBOSITY=0;;
  8579. no) AM_DEFAULT_VERBOSITY=1;;
  8580. *) AM_DEFAULT_VERBOSITY=0;;
  8581. esac
  8582. am_make=${MAKE-make}
  8583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  8584. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  8585. if ${am_cv_make_support_nested_variables+:} false; then :
  8586. $as_echo_n "(cached) " >&6
  8587. else
  8588. if $as_echo 'TRUE=$(BAR$(V))
  8589. BAR0=false
  8590. BAR1=true
  8591. V=1
  8592. am__doit:
  8593. @$(TRUE)
  8594. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  8595. am_cv_make_support_nested_variables=yes
  8596. else
  8597. am_cv_make_support_nested_variables=no
  8598. fi
  8599. fi
  8600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  8601. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  8602. if test $am_cv_make_support_nested_variables = yes; then
  8603. AM_V='$(V)'
  8604. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8605. else
  8606. AM_V=$AM_DEFAULT_VERBOSITY
  8607. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8608. fi
  8609. AM_BACKSLASH='\'
  8610. for ac_prog in flex lex
  8611. do
  8612. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8613. set dummy $ac_prog; ac_word=$2
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8615. $as_echo_n "checking for $ac_word... " >&6; }
  8616. if ${ac_cv_prog_LEX+:} false; then :
  8617. $as_echo_n "(cached) " >&6
  8618. else
  8619. if test -n "$LEX"; then
  8620. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  8621. else
  8622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8623. for as_dir in $PATH
  8624. do
  8625. IFS=$as_save_IFS
  8626. test -z "$as_dir" && as_dir=.
  8627. for ac_exec_ext in '' $ac_executable_extensions; do
  8628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8629. ac_cv_prog_LEX="$ac_prog"
  8630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8631. break 2
  8632. fi
  8633. done
  8634. done
  8635. IFS=$as_save_IFS
  8636. fi
  8637. fi
  8638. LEX=$ac_cv_prog_LEX
  8639. if test -n "$LEX"; then
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  8641. $as_echo "$LEX" >&6; }
  8642. else
  8643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8644. $as_echo "no" >&6; }
  8645. fi
  8646. test -n "$LEX" && break
  8647. done
  8648. test -n "$LEX" || LEX=":"
  8649. if test "x$LEX" != "x:"; then
  8650. cat >conftest.l <<_ACEOF
  8651. %%
  8652. a { ECHO; }
  8653. b { REJECT; }
  8654. c { yymore (); }
  8655. d { yyless (1); }
  8656. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  8657. yyless ((input () != 0)); }
  8658. f { unput (yytext[0]); }
  8659. . { BEGIN INITIAL; }
  8660. %%
  8661. #ifdef YYTEXT_POINTER
  8662. extern char *yytext;
  8663. #endif
  8664. int
  8665. main (void)
  8666. {
  8667. return ! yylex () + ! yywrap ();
  8668. }
  8669. _ACEOF
  8670. { { ac_try="$LEX conftest.l"
  8671. case "(($ac_try" in
  8672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8673. *) ac_try_echo=$ac_try;;
  8674. esac
  8675. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8676. $as_echo "$ac_try_echo"; } >&5
  8677. (eval "$LEX conftest.l") 2>&5
  8678. ac_status=$?
  8679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8680. test $ac_status = 0; }
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  8682. $as_echo_n "checking lex output file root... " >&6; }
  8683. if ${ac_cv_prog_lex_root+:} false; then :
  8684. $as_echo_n "(cached) " >&6
  8685. else
  8686. if test -f lex.yy.c; then
  8687. ac_cv_prog_lex_root=lex.yy
  8688. elif test -f lexyy.c; then
  8689. ac_cv_prog_lex_root=lexyy
  8690. else
  8691. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  8692. fi
  8693. fi
  8694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  8695. $as_echo "$ac_cv_prog_lex_root" >&6; }
  8696. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  8697. if test -z "${LEXLIB+set}"; then
  8698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  8699. $as_echo_n "checking lex library... " >&6; }
  8700. if ${ac_cv_lib_lex+:} false; then :
  8701. $as_echo_n "(cached) " >&6
  8702. else
  8703. ac_save_LIBS=$LIBS
  8704. ac_cv_lib_lex='none needed'
  8705. for ac_lib in '' -lfl -ll; do
  8706. LIBS="$ac_lib $ac_save_LIBS"
  8707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8708. /* end confdefs.h. */
  8709. `cat $LEX_OUTPUT_ROOT.c`
  8710. _ACEOF
  8711. if ac_fn_c_try_link "$LINENO"; then :
  8712. ac_cv_lib_lex=$ac_lib
  8713. fi
  8714. rm -f core conftest.err conftest.$ac_objext \
  8715. conftest$ac_exeext conftest.$ac_ext
  8716. test "$ac_cv_lib_lex" != 'none needed' && break
  8717. done
  8718. LIBS=$ac_save_LIBS
  8719. fi
  8720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  8721. $as_echo "$ac_cv_lib_lex" >&6; }
  8722. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  8723. fi
  8724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  8725. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  8726. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  8727. $as_echo_n "(cached) " >&6
  8728. else
  8729. # POSIX says lex can declare yytext either as a pointer or an array; the
  8730. # default is implementation-dependent. Figure out which it is, since
  8731. # not all implementations provide the %pointer and %array declarations.
  8732. ac_cv_prog_lex_yytext_pointer=no
  8733. ac_save_LIBS=$LIBS
  8734. LIBS="$LEXLIB $ac_save_LIBS"
  8735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8736. /* end confdefs.h. */
  8737. #define YYTEXT_POINTER 1
  8738. `cat $LEX_OUTPUT_ROOT.c`
  8739. _ACEOF
  8740. if ac_fn_c_try_link "$LINENO"; then :
  8741. ac_cv_prog_lex_yytext_pointer=yes
  8742. fi
  8743. rm -f core conftest.err conftest.$ac_objext \
  8744. conftest$ac_exeext conftest.$ac_ext
  8745. LIBS=$ac_save_LIBS
  8746. fi
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  8748. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  8749. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  8750. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  8751. fi
  8752. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  8753. fi
  8754. for ac_prog in 'bison -y' byacc
  8755. do
  8756. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8757. set dummy $ac_prog; ac_word=$2
  8758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8759. $as_echo_n "checking for $ac_word... " >&6; }
  8760. if ${ac_cv_prog_YACC+:} false; then :
  8761. $as_echo_n "(cached) " >&6
  8762. else
  8763. if test -n "$YACC"; then
  8764. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  8765. else
  8766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8767. for as_dir in $PATH
  8768. do
  8769. IFS=$as_save_IFS
  8770. test -z "$as_dir" && as_dir=.
  8771. for ac_exec_ext in '' $ac_executable_extensions; do
  8772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8773. ac_cv_prog_YACC="$ac_prog"
  8774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8775. break 2
  8776. fi
  8777. done
  8778. done
  8779. IFS=$as_save_IFS
  8780. fi
  8781. fi
  8782. YACC=$ac_cv_prog_YACC
  8783. if test -n "$YACC"; then
  8784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  8785. $as_echo "$YACC" >&6; }
  8786. else
  8787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8788. $as_echo "no" >&6; }
  8789. fi
  8790. test -n "$YACC" && break
  8791. done
  8792. test -n "$YACC" || YACC="yacc"
  8793. # Extract the first word of "$YACC", so it can be a program name with args.
  8794. set dummy $YACC; ac_word=$2
  8795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8796. $as_echo_n "checking for $ac_word... " >&6; }
  8797. if ${ac_cv_path_YACC_INST+:} false; then :
  8798. $as_echo_n "(cached) " >&6
  8799. else
  8800. case $YACC_INST in
  8801. [\\/]* | ?:[\\/]*)
  8802. ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
  8803. ;;
  8804. *)
  8805. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8806. for as_dir in $PATH
  8807. do
  8808. IFS=$as_save_IFS
  8809. test -z "$as_dir" && as_dir=.
  8810. for ac_exec_ext in '' $ac_executable_extensions; do
  8811. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8812. ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
  8813. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8814. break 2
  8815. fi
  8816. done
  8817. done
  8818. IFS=$as_save_IFS
  8819. ;;
  8820. esac
  8821. fi
  8822. YACC_INST=$ac_cv_path_YACC_INST
  8823. if test -n "$YACC_INST"; then
  8824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
  8825. $as_echo "$YACC_INST" >&6; }
  8826. else
  8827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8828. $as_echo "no" >&6; }
  8829. fi
  8830. if ! test -f "$srcdir/gram.c"; then
  8831. if test -z "$YACC_INST"; then
  8832. as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
  8833. fi
  8834. fi
  8835. pkg_failed=no
  8836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGC" >&5
  8837. $as_echo_n "checking for XGC... " >&6; }
  8838. if test -n "$XGC_CFLAGS"; then
  8839. pkg_cv_XGC_CFLAGS="$XGC_CFLAGS"
  8840. elif test -n "$PKG_CONFIG"; then
  8841. if test -n "$PKG_CONFIG" && \
  8842. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
  8843. ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
  8844. ac_status=$?
  8845. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8846. test $ac_status = 0; }; then
  8847. pkg_cv_XGC_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xt" 2>/dev/null`
  8848. test "x$?" != "x0" && pkg_failed=yes
  8849. else
  8850. pkg_failed=yes
  8851. fi
  8852. else
  8853. pkg_failed=untried
  8854. fi
  8855. if test -n "$XGC_LIBS"; then
  8856. pkg_cv_XGC_LIBS="$XGC_LIBS"
  8857. elif test -n "$PKG_CONFIG"; then
  8858. if test -n "$PKG_CONFIG" && \
  8859. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xt\""; } >&5
  8860. ($PKG_CONFIG --exists --print-errors "xaw7 xt") 2>&5
  8861. ac_status=$?
  8862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8863. test $ac_status = 0; }; then
  8864. pkg_cv_XGC_LIBS=`$PKG_CONFIG --libs "xaw7 xt" 2>/dev/null`
  8865. test "x$?" != "x0" && pkg_failed=yes
  8866. else
  8867. pkg_failed=yes
  8868. fi
  8869. else
  8870. pkg_failed=untried
  8871. fi
  8872. if test $pkg_failed = yes; then
  8873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8874. $as_echo "no" >&6; }
  8875. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  8876. _pkg_short_errors_supported=yes
  8877. else
  8878. _pkg_short_errors_supported=no
  8879. fi
  8880. if test $_pkg_short_errors_supported = yes; then
  8881. XGC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xt" 2>&1`
  8882. else
  8883. XGC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xt" 2>&1`
  8884. fi
  8885. # Put the nasty error message in config.log where it belongs
  8886. echo "$XGC_PKG_ERRORS" >&5
  8887. as_fn_error $? "Package requirements (xaw7 xt) were not met:
  8888. $XGC_PKG_ERRORS
  8889. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  8890. installed software in a non-standard prefix.
  8891. Alternatively, you may set the environment variables XGC_CFLAGS
  8892. and XGC_LIBS to avoid the need to call pkg-config.
  8893. See the pkg-config man page for more details." "$LINENO" 5
  8894. elif test $pkg_failed = untried; then
  8895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8896. $as_echo "no" >&6; }
  8897. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8898. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8899. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  8900. is in your PATH or set the PKG_CONFIG environment variable to the full
  8901. path to pkg-config.
  8902. Alternatively, you may set the environment variables XGC_CFLAGS
  8903. and XGC_LIBS to avoid the need to call pkg-config.
  8904. See the pkg-config man page for more details.
  8905. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  8906. See \`config.log' for more details" "$LINENO" 5; }
  8907. else
  8908. XGC_CFLAGS=$pkg_cv_XGC_CFLAGS
  8909. XGC_LIBS=$pkg_cv_XGC_LIBS
  8910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8911. $as_echo "yes" >&6; }
  8912. fi
  8913. xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
  8914. # Check whether --with-appdefaultdir was given.
  8915. if test "${with_appdefaultdir+set}" = set; then :
  8916. withval=$with_appdefaultdir; appdefaultdir="$withval"
  8917. else
  8918. appdefaultdir="${xt_appdefaultdir}"
  8919. fi
  8920. ac_config_files="$ac_config_files Makefile man/Makefile"
  8921. cat >confcache <<\_ACEOF
  8922. # This file is a shell script that caches the results of configure
  8923. # tests run on this system so they can be shared between configure
  8924. # scripts and configure runs, see configure's option --config-cache.
  8925. # It is not useful on other systems. If it contains results you don't
  8926. # want to keep, you may remove or edit it.
  8927. #
  8928. # config.status only pays attention to the cache file if you give it
  8929. # the --recheck option to rerun configure.
  8930. #
  8931. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8932. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8933. # following values.
  8934. _ACEOF
  8935. # The following way of writing the cache mishandles newlines in values,
  8936. # but we know of no workaround that is simple, portable, and efficient.
  8937. # So, we kill variables containing newlines.
  8938. # Ultrix sh set writes to stderr and can't be redirected directly,
  8939. # and sets the high bit in the cache file unless we assign to the vars.
  8940. (
  8941. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8942. eval ac_val=\$$ac_var
  8943. case $ac_val in #(
  8944. *${as_nl}*)
  8945. case $ac_var in #(
  8946. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8947. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8948. esac
  8949. case $ac_var in #(
  8950. _ | IFS | as_nl) ;; #(
  8951. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8952. *) { eval $ac_var=; unset $ac_var;} ;;
  8953. esac ;;
  8954. esac
  8955. done
  8956. (set) 2>&1 |
  8957. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8958. *${as_nl}ac_space=\ *)
  8959. # `set' does not quote correctly, so add quotes: double-quote
  8960. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8961. sed -n \
  8962. "s/'/'\\\\''/g;
  8963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8964. ;; #(
  8965. *)
  8966. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8967. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8968. ;;
  8969. esac |
  8970. sort
  8971. ) |
  8972. sed '
  8973. /^ac_cv_env_/b end
  8974. t clear
  8975. :clear
  8976. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8977. t end
  8978. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8979. :end' >>confcache
  8980. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8981. if test -w "$cache_file"; then
  8982. if test "x$cache_file" != "x/dev/null"; then
  8983. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8984. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8985. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8986. cat confcache >"$cache_file"
  8987. else
  8988. case $cache_file in #(
  8989. */* | ?:*)
  8990. mv -f confcache "$cache_file"$$ &&
  8991. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8992. *)
  8993. mv -f confcache "$cache_file" ;;
  8994. esac
  8995. fi
  8996. fi
  8997. else
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8999. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9000. fi
  9001. fi
  9002. rm -f confcache
  9003. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9004. # Let make expand exec_prefix.
  9005. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9006. DEFS=-DHAVE_CONFIG_H
  9007. ac_libobjs=
  9008. ac_ltlibobjs=
  9009. U=
  9010. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9011. # 1. Remove the extension, and $U if already installed.
  9012. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9013. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9014. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9015. # will be set to the directory where LIBOBJS objects are built.
  9016. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9017. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9018. done
  9019. LIBOBJS=$ac_libobjs
  9020. LTLIBOBJS=$ac_ltlibobjs
  9021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9022. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9023. if test -n "$am_sleep_pid"; then
  9024. # Hide warnings about reused PIDs.
  9025. wait $am_sleep_pid 2>/dev/null
  9026. fi
  9027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9028. $as_echo "done" >&6; }
  9029. if test -n "$EXEEXT"; then
  9030. am__EXEEXT_TRUE=
  9031. am__EXEEXT_FALSE='#'
  9032. else
  9033. am__EXEEXT_TRUE='#'
  9034. am__EXEEXT_FALSE=
  9035. fi
  9036. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9037. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9038. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9039. fi
  9040. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9041. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9042. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9043. fi
  9044. : "${CONFIG_STATUS=./config.status}"
  9045. ac_write_fail=0
  9046. ac_clean_files_save=$ac_clean_files
  9047. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9048. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9049. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9050. as_write_fail=0
  9051. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9052. #! $SHELL
  9053. # Generated by $as_me.
  9054. # Run this file to recreate the current configuration.
  9055. # Compiler output produced by configure, useful for debugging
  9056. # configure, is in config.log if it exists.
  9057. debug=false
  9058. ac_cs_recheck=false
  9059. ac_cs_silent=false
  9060. SHELL=\${CONFIG_SHELL-$SHELL}
  9061. export SHELL
  9062. _ASEOF
  9063. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9064. ## -------------------- ##
  9065. ## M4sh Initialization. ##
  9066. ## -------------------- ##
  9067. # Be more Bourne compatible
  9068. DUALCASE=1; export DUALCASE # for MKS sh
  9069. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9070. emulate sh
  9071. NULLCMD=:
  9072. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9073. # is contrary to our usage. Disable this feature.
  9074. alias -g '${1+"$@"}'='"$@"'
  9075. setopt NO_GLOB_SUBST
  9076. else
  9077. case `(set -o) 2>/dev/null` in #(
  9078. *posix*) :
  9079. set -o posix ;; #(
  9080. *) :
  9081. ;;
  9082. esac
  9083. fi
  9084. as_nl='
  9085. '
  9086. export as_nl
  9087. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9088. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9089. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9090. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9091. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9092. # but without wasting forks for bash or zsh.
  9093. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9094. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9095. as_echo='print -r --'
  9096. as_echo_n='print -rn --'
  9097. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9098. as_echo='printf %s\n'
  9099. as_echo_n='printf %s'
  9100. else
  9101. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9102. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9103. as_echo_n='/usr/ucb/echo -n'
  9104. else
  9105. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9106. as_echo_n_body='eval
  9107. arg=$1;
  9108. case $arg in #(
  9109. *"$as_nl"*)
  9110. expr "X$arg" : "X\\(.*\\)$as_nl";
  9111. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9112. esac;
  9113. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9114. '
  9115. export as_echo_n_body
  9116. as_echo_n='sh -c $as_echo_n_body as_echo'
  9117. fi
  9118. export as_echo_body
  9119. as_echo='sh -c $as_echo_body as_echo'
  9120. fi
  9121. # The user is always right.
  9122. if test "${PATH_SEPARATOR+set}" != set; then
  9123. PATH_SEPARATOR=:
  9124. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9125. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9126. PATH_SEPARATOR=';'
  9127. }
  9128. fi
  9129. # IFS
  9130. # We need space, tab and new line, in precisely that order. Quoting is
  9131. # there to prevent editors from complaining about space-tab.
  9132. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9133. # splitting by setting IFS to empty value.)
  9134. IFS=" "" $as_nl"
  9135. # Find who we are. Look in the path if we contain no directory separator.
  9136. as_myself=
  9137. case $0 in #((
  9138. *[\\/]* ) as_myself=$0 ;;
  9139. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9140. for as_dir in $PATH
  9141. do
  9142. IFS=$as_save_IFS
  9143. test -z "$as_dir" && as_dir=.
  9144. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9145. done
  9146. IFS=$as_save_IFS
  9147. ;;
  9148. esac
  9149. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9150. # in which case we are not to be found in the path.
  9151. if test "x$as_myself" = x; then
  9152. as_myself=$0
  9153. fi
  9154. if test ! -f "$as_myself"; then
  9155. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9156. exit 1
  9157. fi
  9158. # Unset variables that we do not need and which cause bugs (e.g. in
  9159. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9160. # suppresses any "Segmentation fault" message there. '((' could
  9161. # trigger a bug in pdksh 5.2.14.
  9162. for as_var in BASH_ENV ENV MAIL MAILPATH
  9163. do eval test x\${$as_var+set} = xset \
  9164. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9165. done
  9166. PS1='$ '
  9167. PS2='> '
  9168. PS4='+ '
  9169. # NLS nuisances.
  9170. LC_ALL=C
  9171. export LC_ALL
  9172. LANGUAGE=C
  9173. export LANGUAGE
  9174. # CDPATH.
  9175. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9176. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9177. # ----------------------------------------
  9178. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9179. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9180. # script with STATUS, using 1 if that was 0.
  9181. as_fn_error ()
  9182. {
  9183. as_status=$1; test $as_status -eq 0 && as_status=1
  9184. if test "$4"; then
  9185. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9186. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9187. fi
  9188. $as_echo "$as_me: error: $2" >&2
  9189. as_fn_exit $as_status
  9190. } # as_fn_error
  9191. # as_fn_set_status STATUS
  9192. # -----------------------
  9193. # Set $? to STATUS, without forking.
  9194. as_fn_set_status ()
  9195. {
  9196. return $1
  9197. } # as_fn_set_status
  9198. # as_fn_exit STATUS
  9199. # -----------------
  9200. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9201. as_fn_exit ()
  9202. {
  9203. set +e
  9204. as_fn_set_status $1
  9205. exit $1
  9206. } # as_fn_exit
  9207. # as_fn_unset VAR
  9208. # ---------------
  9209. # Portably unset VAR.
  9210. as_fn_unset ()
  9211. {
  9212. { eval $1=; unset $1;}
  9213. }
  9214. as_unset=as_fn_unset
  9215. # as_fn_append VAR VALUE
  9216. # ----------------------
  9217. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9218. # advantage of any shell optimizations that allow amortized linear growth over
  9219. # repeated appends, instead of the typical quadratic growth present in naive
  9220. # implementations.
  9221. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9222. eval 'as_fn_append ()
  9223. {
  9224. eval $1+=\$2
  9225. }'
  9226. else
  9227. as_fn_append ()
  9228. {
  9229. eval $1=\$$1\$2
  9230. }
  9231. fi # as_fn_append
  9232. # as_fn_arith ARG...
  9233. # ------------------
  9234. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9235. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9236. # must be portable across $(()) and expr.
  9237. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9238. eval 'as_fn_arith ()
  9239. {
  9240. as_val=$(( $* ))
  9241. }'
  9242. else
  9243. as_fn_arith ()
  9244. {
  9245. as_val=`expr "$@" || test $? -eq 1`
  9246. }
  9247. fi # as_fn_arith
  9248. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9249. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9250. as_expr=expr
  9251. else
  9252. as_expr=false
  9253. fi
  9254. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9255. as_basename=basename
  9256. else
  9257. as_basename=false
  9258. fi
  9259. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9260. as_dirname=dirname
  9261. else
  9262. as_dirname=false
  9263. fi
  9264. as_me=`$as_basename -- "$0" ||
  9265. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9266. X"$0" : 'X\(//\)$' \| \
  9267. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9268. $as_echo X/"$0" |
  9269. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9270. s//\1/
  9271. q
  9272. }
  9273. /^X\/\(\/\/\)$/{
  9274. s//\1/
  9275. q
  9276. }
  9277. /^X\/\(\/\).*/{
  9278. s//\1/
  9279. q
  9280. }
  9281. s/.*/./; q'`
  9282. # Avoid depending upon Character Ranges.
  9283. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9284. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9285. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9286. as_cr_digits='0123456789'
  9287. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9288. ECHO_C= ECHO_N= ECHO_T=
  9289. case `echo -n x` in #(((((
  9290. -n*)
  9291. case `echo 'xy\c'` in
  9292. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  9293. xy) ECHO_C='\c';;
  9294. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  9295. ECHO_T=' ';;
  9296. esac;;
  9297. *)
  9298. ECHO_N='-n';;
  9299. esac
  9300. rm -f conf$$ conf$$.exe conf$$.file
  9301. if test -d conf$$.dir; then
  9302. rm -f conf$$.dir/conf$$.file
  9303. else
  9304. rm -f conf$$.dir
  9305. mkdir conf$$.dir 2>/dev/null
  9306. fi
  9307. if (echo >conf$$.file) 2>/dev/null; then
  9308. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9309. as_ln_s='ln -s'
  9310. # ... but there are two gotchas:
  9311. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  9312. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  9313. # In both cases, we have to default to `cp -pR'.
  9314. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  9315. as_ln_s='cp -pR'
  9316. elif ln conf$$.file conf$$ 2>/dev/null; then
  9317. as_ln_s=ln
  9318. else
  9319. as_ln_s='cp -pR'
  9320. fi
  9321. else
  9322. as_ln_s='cp -pR'
  9323. fi
  9324. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  9325. rmdir conf$$.dir 2>/dev/null
  9326. # as_fn_mkdir_p
  9327. # -------------
  9328. # Create "$as_dir" as a directory, including parents if necessary.
  9329. as_fn_mkdir_p ()
  9330. {
  9331. case $as_dir in #(
  9332. -*) as_dir=./$as_dir;;
  9333. esac
  9334. test -d "$as_dir" || eval $as_mkdir_p || {
  9335. as_dirs=
  9336. while :; do
  9337. case $as_dir in #(
  9338. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  9339. *) as_qdir=$as_dir;;
  9340. esac
  9341. as_dirs="'$as_qdir' $as_dirs"
  9342. as_dir=`$as_dirname -- "$as_dir" ||
  9343. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9344. X"$as_dir" : 'X\(//\)[^/]' \| \
  9345. X"$as_dir" : 'X\(//\)$' \| \
  9346. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  9347. $as_echo X"$as_dir" |
  9348. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9349. s//\1/
  9350. q
  9351. }
  9352. /^X\(\/\/\)[^/].*/{
  9353. s//\1/
  9354. q
  9355. }
  9356. /^X\(\/\/\)$/{
  9357. s//\1/
  9358. q
  9359. }
  9360. /^X\(\/\).*/{
  9361. s//\1/
  9362. q
  9363. }
  9364. s/.*/./; q'`
  9365. test -d "$as_dir" && break
  9366. done
  9367. test -z "$as_dirs" || eval "mkdir $as_dirs"
  9368. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  9369. } # as_fn_mkdir_p
  9370. if mkdir -p . 2>/dev/null; then
  9371. as_mkdir_p='mkdir -p "$as_dir"'
  9372. else
  9373. test -d ./-p && rmdir ./-p
  9374. as_mkdir_p=false
  9375. fi
  9376. # as_fn_executable_p FILE
  9377. # -----------------------
  9378. # Test if FILE is an executable regular file.
  9379. as_fn_executable_p ()
  9380. {
  9381. test -f "$1" && test -x "$1"
  9382. } # as_fn_executable_p
  9383. as_test_x='test -x'
  9384. as_executable_p=as_fn_executable_p
  9385. # Sed expression to map a string onto a valid CPP name.
  9386. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9387. # Sed expression to map a string onto a valid variable name.
  9388. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9389. exec 6>&1
  9390. ## ----------------------------------- ##
  9391. ## Main body of $CONFIG_STATUS script. ##
  9392. ## ----------------------------------- ##
  9393. _ASEOF
  9394. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  9395. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9396. # Save the log message, to keep $0 and so on meaningful, and to
  9397. # report actual input values of CONFIG_FILES etc. instead of their
  9398. # values after options handling.
  9399. ac_log="
  9400. This file was extended by xgc $as_me 1.0.5, which was
  9401. generated by GNU Autoconf 2.69. Invocation command line was
  9402. CONFIG_FILES = $CONFIG_FILES
  9403. CONFIG_HEADERS = $CONFIG_HEADERS
  9404. CONFIG_LINKS = $CONFIG_LINKS
  9405. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9406. $ $0 $@
  9407. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  9408. "
  9409. _ACEOF
  9410. case $ac_config_files in *"
  9411. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  9412. esac
  9413. case $ac_config_headers in *"
  9414. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  9415. esac
  9416. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9417. # Files that config.status was made for.
  9418. config_files="$ac_config_files"
  9419. config_headers="$ac_config_headers"
  9420. config_commands="$ac_config_commands"
  9421. _ACEOF
  9422. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9423. ac_cs_usage="\
  9424. \`$as_me' instantiates files and other configuration actions
  9425. from templates according to the current configuration. Unless the files
  9426. and actions are specified as TAGs, all are instantiated by default.
  9427. Usage: $0 [OPTION]... [TAG]...
  9428. -h, --help print this help, then exit
  9429. -V, --version print version number and configuration settings, then exit
  9430. --config print configuration, then exit
  9431. -q, --quiet, --silent
  9432. do not print progress messages
  9433. -d, --debug don't remove temporary files
  9434. --recheck update $as_me by reconfiguring in the same conditions
  9435. --file=FILE[:TEMPLATE]
  9436. instantiate the configuration file FILE
  9437. --header=FILE[:TEMPLATE]
  9438. instantiate the configuration header FILE
  9439. Configuration files:
  9440. $config_files
  9441. Configuration headers:
  9442. $config_headers
  9443. Configuration commands:
  9444. $config_commands
  9445. Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
  9446. _ACEOF
  9447. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9448. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  9449. ac_cs_version="\\
  9450. xgc config.status 1.0.5
  9451. configured by $0, generated by GNU Autoconf 2.69,
  9452. with options \\"\$ac_cs_config\\"
  9453. Copyright (C) 2012 Free Software Foundation, Inc.
  9454. This config.status script is free software; the Free Software Foundation
  9455. gives unlimited permission to copy, distribute and modify it."
  9456. ac_pwd='$ac_pwd'
  9457. srcdir='$srcdir'
  9458. INSTALL='$INSTALL'
  9459. MKDIR_P='$MKDIR_P'
  9460. AWK='$AWK'
  9461. test -n "\$AWK" || AWK=awk
  9462. _ACEOF
  9463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9464. # The default lists apply if the user does not specify any file.
  9465. ac_need_defaults=:
  9466. while test $# != 0
  9467. do
  9468. case $1 in
  9469. --*=?*)
  9470. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9471. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  9472. ac_shift=:
  9473. ;;
  9474. --*=)
  9475. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  9476. ac_optarg=
  9477. ac_shift=:
  9478. ;;
  9479. *)
  9480. ac_option=$1
  9481. ac_optarg=$2
  9482. ac_shift=shift
  9483. ;;
  9484. esac
  9485. case $ac_option in
  9486. # Handling of the options.
  9487. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9488. ac_cs_recheck=: ;;
  9489. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  9490. $as_echo "$ac_cs_version"; exit ;;
  9491. --config | --confi | --conf | --con | --co | --c )
  9492. $as_echo "$ac_cs_config"; exit ;;
  9493. --debug | --debu | --deb | --de | --d | -d )
  9494. debug=: ;;
  9495. --file | --fil | --fi | --f )
  9496. $ac_shift
  9497. case $ac_optarg in
  9498. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9499. '') as_fn_error $? "missing file argument" ;;
  9500. esac
  9501. as_fn_append CONFIG_FILES " '$ac_optarg'"
  9502. ac_need_defaults=false;;
  9503. --header | --heade | --head | --hea )
  9504. $ac_shift
  9505. case $ac_optarg in
  9506. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9507. esac
  9508. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  9509. ac_need_defaults=false;;
  9510. --he | --h)
  9511. # Conflict between --help and --header
  9512. as_fn_error $? "ambiguous option: \`$1'
  9513. Try \`$0 --help' for more information.";;
  9514. --help | --hel | -h )
  9515. $as_echo "$ac_cs_usage"; exit ;;
  9516. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9517. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9518. ac_cs_silent=: ;;
  9519. # This is an error.
  9520. -*) as_fn_error $? "unrecognized option: \`$1'
  9521. Try \`$0 --help' for more information." ;;
  9522. *) as_fn_append ac_config_targets " $1"
  9523. ac_need_defaults=false ;;
  9524. esac
  9525. shift
  9526. done
  9527. ac_configure_extra_args=
  9528. if $ac_cs_silent; then
  9529. exec 6>/dev/null
  9530. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9531. fi
  9532. _ACEOF
  9533. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9534. if \$ac_cs_recheck; then
  9535. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9536. shift
  9537. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  9538. CONFIG_SHELL='$SHELL'
  9539. export CONFIG_SHELL
  9540. exec "\$@"
  9541. fi
  9542. _ACEOF
  9543. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9544. exec 5>>config.log
  9545. {
  9546. echo
  9547. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9548. ## Running $as_me. ##
  9549. _ASBOX
  9550. $as_echo "$ac_log"
  9551. } >&5
  9552. _ACEOF
  9553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9554. #
  9555. # INIT-COMMANDS
  9556. #
  9557. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  9558. _ACEOF
  9559. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9560. # Handling of arguments.
  9561. for ac_config_target in $ac_config_targets
  9562. do
  9563. case $ac_config_target in
  9564. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9565. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  9566. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9567. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  9568. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  9569. esac
  9570. done
  9571. # If the user did not use the arguments to specify the items to instantiate,
  9572. # then the envvar interface is used. Set only those that are not.
  9573. # We use the long form for the default assignment because of an extremely
  9574. # bizarre bug on SunOS 4.1.3.
  9575. if $ac_need_defaults; then
  9576. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9577. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9578. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  9579. fi
  9580. # Have a temporary directory for convenience. Make it in the build tree
  9581. # simply because there is no reason against having it here, and in addition,
  9582. # creating and moving files from /tmp can sometimes cause problems.
  9583. # Hook for its removal unless debugging.
  9584. # Note that there is a small window in which the directory will not be cleaned:
  9585. # after its creation but before its name has been assigned to `$tmp'.
  9586. $debug ||
  9587. {
  9588. tmp= ac_tmp=
  9589. trap 'exit_status=$?
  9590. : "${ac_tmp:=$tmp}"
  9591. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  9592. ' 0
  9593. trap 'as_fn_exit 1' 1 2 13 15
  9594. }
  9595. # Create a (secure) tmp directory for tmp files.
  9596. {
  9597. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  9598. test -d "$tmp"
  9599. } ||
  9600. {
  9601. tmp=./conf$$-$RANDOM
  9602. (umask 077 && mkdir "$tmp")
  9603. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  9604. ac_tmp=$tmp
  9605. # Set up the scripts for CONFIG_FILES section.
  9606. # No need to generate them if there are no CONFIG_FILES.
  9607. # This happens for instance with `./config.status config.h'.
  9608. if test -n "$CONFIG_FILES"; then
  9609. ac_cr=`echo X | tr X '\015'`
  9610. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  9611. # But we know of no other shell where ac_cr would be empty at this
  9612. # point, so we can use a bashism as a fallback.
  9613. if test "x$ac_cr" = x; then
  9614. eval ac_cr=\$\'\\r\'
  9615. fi
  9616. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  9617. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  9618. ac_cs_awk_cr='\\r'
  9619. else
  9620. ac_cs_awk_cr=$ac_cr
  9621. fi
  9622. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  9623. _ACEOF
  9624. {
  9625. echo "cat >conf$$subs.awk <<_ACEOF" &&
  9626. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  9627. echo "_ACEOF"
  9628. } >conf$$subs.sh ||
  9629. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9630. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  9631. ac_delim='%!_!# '
  9632. for ac_last_try in false false false false false :; do
  9633. . ./conf$$subs.sh ||
  9634. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9635. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  9636. if test $ac_delim_n = $ac_delim_num; then
  9637. break
  9638. elif $ac_last_try; then
  9639. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  9640. else
  9641. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9642. fi
  9643. done
  9644. rm -f conf$$subs.sh
  9645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9646. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  9647. _ACEOF
  9648. sed -n '
  9649. h
  9650. s/^/S["/; s/!.*/"]=/
  9651. p
  9652. g
  9653. s/^[^!]*!//
  9654. :repl
  9655. t repl
  9656. s/'"$ac_delim"'$//
  9657. t delim
  9658. :nl
  9659. h
  9660. s/\(.\{148\}\)..*/\1/
  9661. t more1
  9662. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  9663. p
  9664. n
  9665. b repl
  9666. :more1
  9667. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9668. p
  9669. g
  9670. s/.\{148\}//
  9671. t nl
  9672. :delim
  9673. h
  9674. s/\(.\{148\}\)..*/\1/
  9675. t more2
  9676. s/["\\]/\\&/g; s/^/"/; s/$/"/
  9677. p
  9678. b
  9679. :more2
  9680. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  9681. p
  9682. g
  9683. s/.\{148\}//
  9684. t delim
  9685. ' <conf$$subs.awk | sed '
  9686. /^[^""]/{
  9687. N
  9688. s/\n//
  9689. }
  9690. ' >>$CONFIG_STATUS || ac_write_fail=1
  9691. rm -f conf$$subs.awk
  9692. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9693. _ACAWK
  9694. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  9695. for (key in S) S_is_set[key] = 1
  9696. FS = ""
  9697. }
  9698. {
  9699. line = $ 0
  9700. nfields = split(line, field, "@")
  9701. substed = 0
  9702. len = length(field[1])
  9703. for (i = 2; i < nfields; i++) {
  9704. key = field[i]
  9705. keylen = length(key)
  9706. if (S_is_set[key]) {
  9707. value = S[key]
  9708. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  9709. len += length(value) + length(field[++i])
  9710. substed = 1
  9711. } else
  9712. len += 1 + keylen
  9713. }
  9714. print line
  9715. }
  9716. _ACAWK
  9717. _ACEOF
  9718. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9719. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  9720. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  9721. else
  9722. cat
  9723. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  9724. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  9725. _ACEOF
  9726. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  9727. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  9728. # trailing colons and then remove the whole line if VPATH becomes empty
  9729. # (actually we leave an empty line to preserve line numbers).
  9730. if test "x$srcdir" = x.; then
  9731. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  9732. h
  9733. s///
  9734. s/^/:/
  9735. s/[ ]*$/:/
  9736. s/:\$(srcdir):/:/g
  9737. s/:\${srcdir}:/:/g
  9738. s/:@srcdir@:/:/g
  9739. s/^:*//
  9740. s/:*$//
  9741. x
  9742. s/\(=[ ]*\).*/\1/
  9743. G
  9744. s/\n//
  9745. s/^[^=]*=[ ]*$//
  9746. }'
  9747. fi
  9748. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9749. fi # test -n "$CONFIG_FILES"
  9750. # Set up the scripts for CONFIG_HEADERS section.
  9751. # No need to generate them if there are no CONFIG_HEADERS.
  9752. # This happens for instance with `./config.status Makefile'.
  9753. if test -n "$CONFIG_HEADERS"; then
  9754. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  9755. BEGIN {
  9756. _ACEOF
  9757. # Transform confdefs.h into an awk script `defines.awk', embedded as
  9758. # here-document in config.status, that substitutes the proper values into
  9759. # config.h.in to produce config.h.
  9760. # Create a delimiter string that does not exist in confdefs.h, to ease
  9761. # handling of long lines.
  9762. ac_delim='%!_!# '
  9763. for ac_last_try in false false :; do
  9764. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  9765. if test -z "$ac_tt"; then
  9766. break
  9767. elif $ac_last_try; then
  9768. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  9769. else
  9770. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  9771. fi
  9772. done
  9773. # For the awk script, D is an array of macro values keyed by name,
  9774. # likewise P contains macro parameters if any. Preserve backslash
  9775. # newline sequences.
  9776. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  9777. sed -n '
  9778. s/.\{148\}/&'"$ac_delim"'/g
  9779. t rset
  9780. :rset
  9781. s/^[ ]*#[ ]*define[ ][ ]*/ /
  9782. t def
  9783. d
  9784. :def
  9785. s/\\$//
  9786. t bsnl
  9787. s/["\\]/\\&/g
  9788. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9789. D["\1"]=" \3"/p
  9790. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  9791. d
  9792. :bsnl
  9793. s/["\\]/\\&/g
  9794. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  9795. D["\1"]=" \3\\\\\\n"\\/p
  9796. t cont
  9797. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  9798. t cont
  9799. d
  9800. :cont
  9801. n
  9802. s/.\{148\}/&'"$ac_delim"'/g
  9803. t clear
  9804. :clear
  9805. s/\\$//
  9806. t bsnlc
  9807. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  9808. d
  9809. :bsnlc
  9810. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  9811. b cont
  9812. ' <confdefs.h | sed '
  9813. s/'"$ac_delim"'/"\\\
  9814. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  9815. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9816. for (key in D) D_is_set[key] = 1
  9817. FS = ""
  9818. }
  9819. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  9820. line = \$ 0
  9821. split(line, arg, " ")
  9822. if (arg[1] == "#") {
  9823. defundef = arg[2]
  9824. mac1 = arg[3]
  9825. } else {
  9826. defundef = substr(arg[1], 2)
  9827. mac1 = arg[2]
  9828. }
  9829. split(mac1, mac2, "(") #)
  9830. macro = mac2[1]
  9831. prefix = substr(line, 1, index(line, defundef) - 1)
  9832. if (D_is_set[macro]) {
  9833. # Preserve the white space surrounding the "#".
  9834. print prefix "define", macro P[macro] D[macro]
  9835. next
  9836. } else {
  9837. # Replace #undef with comments. This is necessary, for example,
  9838. # in the case of _POSIX_SOURCE, which is predefined and required
  9839. # on some systems where configure will not decide to define it.
  9840. if (defundef == "undef") {
  9841. print "/*", prefix defundef, macro, "*/"
  9842. next
  9843. }
  9844. }
  9845. }
  9846. { print }
  9847. _ACAWK
  9848. _ACEOF
  9849. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9850. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9851. fi # test -n "$CONFIG_HEADERS"
  9852. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  9853. shift
  9854. for ac_tag
  9855. do
  9856. case $ac_tag in
  9857. :[FHLC]) ac_mode=$ac_tag; continue;;
  9858. esac
  9859. case $ac_mode$ac_tag in
  9860. :[FHL]*:*);;
  9861. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9862. :[FH]-) ac_tag=-:-;;
  9863. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9864. esac
  9865. ac_save_IFS=$IFS
  9866. IFS=:
  9867. set x $ac_tag
  9868. IFS=$ac_save_IFS
  9869. shift
  9870. ac_file=$1
  9871. shift
  9872. case $ac_mode in
  9873. :L) ac_source=$1;;
  9874. :[FH])
  9875. ac_file_inputs=
  9876. for ac_f
  9877. do
  9878. case $ac_f in
  9879. -) ac_f="$ac_tmp/stdin";;
  9880. *) # Look for the file first in the build tree, then in the source tree
  9881. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9882. # because $ac_f cannot contain `:'.
  9883. test -f "$ac_f" ||
  9884. case $ac_f in
  9885. [\\/$]*) false;;
  9886. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9887. esac ||
  9888. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9889. esac
  9890. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9891. as_fn_append ac_file_inputs " '$ac_f'"
  9892. done
  9893. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9894. # use $as_me), people would be surprised to read:
  9895. # /* config.h. Generated by config.status. */
  9896. configure_input='Generated from '`
  9897. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9898. `' by configure.'
  9899. if test x"$ac_file" != x-; then
  9900. configure_input="$ac_file. $configure_input"
  9901. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9902. $as_echo "$as_me: creating $ac_file" >&6;}
  9903. fi
  9904. # Neutralize special characters interpreted by sed in replacement strings.
  9905. case $configure_input in #(
  9906. *\&* | *\|* | *\\* )
  9907. ac_sed_conf_input=`$as_echo "$configure_input" |
  9908. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9909. *) ac_sed_conf_input=$configure_input;;
  9910. esac
  9911. case $ac_tag in
  9912. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9913. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9914. esac
  9915. ;;
  9916. esac
  9917. ac_dir=`$as_dirname -- "$ac_file" ||
  9918. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9919. X"$ac_file" : 'X\(//\)[^/]' \| \
  9920. X"$ac_file" : 'X\(//\)$' \| \
  9921. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9922. $as_echo X"$ac_file" |
  9923. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9924. s//\1/
  9925. q
  9926. }
  9927. /^X\(\/\/\)[^/].*/{
  9928. s//\1/
  9929. q
  9930. }
  9931. /^X\(\/\/\)$/{
  9932. s//\1/
  9933. q
  9934. }
  9935. /^X\(\/\).*/{
  9936. s//\1/
  9937. q
  9938. }
  9939. s/.*/./; q'`
  9940. as_dir="$ac_dir"; as_fn_mkdir_p
  9941. ac_builddir=.
  9942. case "$ac_dir" in
  9943. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9944. *)
  9945. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9946. # A ".." for each directory in $ac_dir_suffix.
  9947. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9948. case $ac_top_builddir_sub in
  9949. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9950. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9951. esac ;;
  9952. esac
  9953. ac_abs_top_builddir=$ac_pwd
  9954. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9955. # for backward compatibility:
  9956. ac_top_builddir=$ac_top_build_prefix
  9957. case $srcdir in
  9958. .) # We are building in place.
  9959. ac_srcdir=.
  9960. ac_top_srcdir=$ac_top_builddir_sub
  9961. ac_abs_top_srcdir=$ac_pwd ;;
  9962. [\\/]* | ?:[\\/]* ) # Absolute name.
  9963. ac_srcdir=$srcdir$ac_dir_suffix;
  9964. ac_top_srcdir=$srcdir
  9965. ac_abs_top_srcdir=$srcdir ;;
  9966. *) # Relative name.
  9967. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9968. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9969. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9970. esac
  9971. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9972. case $ac_mode in
  9973. :F)
  9974. #
  9975. # CONFIG_FILE
  9976. #
  9977. case $INSTALL in
  9978. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9979. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  9980. esac
  9981. ac_MKDIR_P=$MKDIR_P
  9982. case $MKDIR_P in
  9983. [\\/$]* | ?:[\\/]* ) ;;
  9984. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  9985. esac
  9986. _ACEOF
  9987. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9988. # If the template does not know about datarootdir, expand it.
  9989. # FIXME: This hack should be removed a few years after 2.60.
  9990. ac_datarootdir_hack=; ac_datarootdir_seen=
  9991. ac_sed_dataroot='
  9992. /datarootdir/ {
  9993. p
  9994. q
  9995. }
  9996. /@datadir@/p
  9997. /@docdir@/p
  9998. /@infodir@/p
  9999. /@localedir@/p
  10000. /@mandir@/p'
  10001. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10002. *datarootdir*) ac_datarootdir_seen=yes;;
  10003. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10005. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10006. _ACEOF
  10007. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10008. ac_datarootdir_hack='
  10009. s&@datadir@&$datadir&g
  10010. s&@docdir@&$docdir&g
  10011. s&@infodir@&$infodir&g
  10012. s&@localedir@&$localedir&g
  10013. s&@mandir@&$mandir&g
  10014. s&\\\${datarootdir}&$datarootdir&g' ;;
  10015. esac
  10016. _ACEOF
  10017. # Neutralize VPATH when `$srcdir' = `.'.
  10018. # Shell code in configure.ac might set extrasub.
  10019. # FIXME: do we really want to maintain this feature?
  10020. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10021. ac_sed_extra="$ac_vpsub
  10022. $extrasub
  10023. _ACEOF
  10024. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10025. :t
  10026. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10027. s|@configure_input@|$ac_sed_conf_input|;t t
  10028. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10029. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10030. s&@srcdir@&$ac_srcdir&;t t
  10031. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10032. s&@top_srcdir@&$ac_top_srcdir&;t t
  10033. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10034. s&@builddir@&$ac_builddir&;t t
  10035. s&@abs_builddir@&$ac_abs_builddir&;t t
  10036. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10037. s&@INSTALL@&$ac_INSTALL&;t t
  10038. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10039. $ac_datarootdir_hack
  10040. "
  10041. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10042. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10043. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10044. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10045. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10046. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10048. which seems to be undefined. Please make sure it is defined" >&5
  10049. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10050. which seems to be undefined. Please make sure it is defined" >&2;}
  10051. rm -f "$ac_tmp/stdin"
  10052. case $ac_file in
  10053. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10054. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10055. esac \
  10056. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10057. ;;
  10058. :H)
  10059. #
  10060. # CONFIG_HEADER
  10061. #
  10062. if test x"$ac_file" != x-; then
  10063. {
  10064. $as_echo "/* $configure_input */" \
  10065. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  10066. } >"$ac_tmp/config.h" \
  10067. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10068. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  10069. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  10070. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  10071. else
  10072. rm -f "$ac_file"
  10073. mv "$ac_tmp/config.h" "$ac_file" \
  10074. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10075. fi
  10076. else
  10077. $as_echo "/* $configure_input */" \
  10078. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  10079. || as_fn_error $? "could not create -" "$LINENO" 5
  10080. fi
  10081. # Compute "$ac_file"'s index in $config_headers.
  10082. _am_arg="$ac_file"
  10083. _am_stamp_count=1
  10084. for _am_header in $config_headers :; do
  10085. case $_am_header in
  10086. $_am_arg | $_am_arg:* )
  10087. break ;;
  10088. * )
  10089. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  10090. esac
  10091. done
  10092. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  10093. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10094. X"$_am_arg" : 'X\(//\)[^/]' \| \
  10095. X"$_am_arg" : 'X\(//\)$' \| \
  10096. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  10097. $as_echo X"$_am_arg" |
  10098. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10099. s//\1/
  10100. q
  10101. }
  10102. /^X\(\/\/\)[^/].*/{
  10103. s//\1/
  10104. q
  10105. }
  10106. /^X\(\/\/\)$/{
  10107. s//\1/
  10108. q
  10109. }
  10110. /^X\(\/\).*/{
  10111. s//\1/
  10112. q
  10113. }
  10114. s/.*/./; q'`/stamp-h$_am_stamp_count
  10115. ;;
  10116. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10117. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10118. ;;
  10119. esac
  10120. case $ac_file$ac_mode in
  10121. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10122. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10123. # are listed without --file. Let's play safe and only enable the eval
  10124. # if we detect the quoting.
  10125. case $CONFIG_FILES in
  10126. *\'*) eval set x "$CONFIG_FILES" ;;
  10127. *) set x $CONFIG_FILES ;;
  10128. esac
  10129. shift
  10130. for mf
  10131. do
  10132. # Strip MF so we end up with the name of the file.
  10133. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10134. # Check whether this is an Automake generated Makefile or not.
  10135. # We used to match only the files named 'Makefile.in', but
  10136. # some people rename them; so instead we look at the file content.
  10137. # Grep'ing the first line is not enough: some people post-process
  10138. # each Makefile.in and add a new line on top of each file to say so.
  10139. # Grep'ing the whole file is not good either: AIX grep has a line
  10140. # limit of 2048, but all sed's we know have understand at least 4000.
  10141. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10142. dirpart=`$as_dirname -- "$mf" ||
  10143. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10144. X"$mf" : 'X\(//\)[^/]' \| \
  10145. X"$mf" : 'X\(//\)$' \| \
  10146. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10147. $as_echo X"$mf" |
  10148. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10149. s//\1/
  10150. q
  10151. }
  10152. /^X\(\/\/\)[^/].*/{
  10153. s//\1/
  10154. q
  10155. }
  10156. /^X\(\/\/\)$/{
  10157. s//\1/
  10158. q
  10159. }
  10160. /^X\(\/\).*/{
  10161. s//\1/
  10162. q
  10163. }
  10164. s/.*/./; q'`
  10165. else
  10166. continue
  10167. fi
  10168. # Extract the definition of DEPDIR, am__include, and am__quote
  10169. # from the Makefile without running 'make'.
  10170. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10171. test -z "$DEPDIR" && continue
  10172. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10173. test -z "am__include" && continue
  10174. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10175. # Find all dependency output files, they are included files with
  10176. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10177. # simplest approach to changing $(DEPDIR) to its actual value in the
  10178. # expansion.
  10179. for file in `sed -n "
  10180. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10181. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  10182. # Make sure the directory exists.
  10183. test -f "$dirpart/$file" && continue
  10184. fdir=`$as_dirname -- "$file" ||
  10185. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10186. X"$file" : 'X\(//\)[^/]' \| \
  10187. X"$file" : 'X\(//\)$' \| \
  10188. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10189. $as_echo X"$file" |
  10190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10191. s//\1/
  10192. q
  10193. }
  10194. /^X\(\/\/\)[^/].*/{
  10195. s//\1/
  10196. q
  10197. }
  10198. /^X\(\/\/\)$/{
  10199. s//\1/
  10200. q
  10201. }
  10202. /^X\(\/\).*/{
  10203. s//\1/
  10204. q
  10205. }
  10206. s/.*/./; q'`
  10207. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10208. # echo "creating $dirpart/$file"
  10209. echo '# dummy' > "$dirpart/$file"
  10210. done
  10211. done
  10212. }
  10213. ;;
  10214. esac
  10215. done # for ac_tag
  10216. as_fn_exit 0
  10217. _ACEOF
  10218. ac_clean_files=$ac_clean_files_save
  10219. test $ac_write_fail = 0 ||
  10220. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  10221. # configure is writing to config.log, and then calls config.status.
  10222. # config.status does its own redirection, appending to config.log.
  10223. # Unfortunately, on DOS this fails, as config.log is still kept open
  10224. # by configure, so config.status won't be able to write to it; its
  10225. # output is simply discarded. So we exec the FD to /dev/null,
  10226. # effectively closing config.log, so it can be properly (re)opened and
  10227. # appended to by config.status. When coming back to configure, we
  10228. # need to make the FD available again.
  10229. if test "$no_create" != yes; then
  10230. ac_cs_success=:
  10231. ac_config_status_args=
  10232. test "$silent" = yes &&
  10233. ac_config_status_args="$ac_config_status_args --quiet"
  10234. exec 5>/dev/null
  10235. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10236. exec 5>>config.log
  10237. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10238. # would make configure fail if this is the last instruction.
  10239. $ac_cs_success || as_fn_exit 1
  10240. fi
  10241. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  10242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  10243. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  10244. fi