configure 274 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1"
  186. if (eval "$as_required") 2>/dev/null; then :
  187. as_have_required=yes
  188. else
  189. as_have_required=no
  190. fi
  191. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  192. else
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. as_found=false
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. as_found=:
  200. case $as_dir in #(
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. # Try only shells that exist, to save several forks.
  204. as_shell=$as_dir/$as_base
  205. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  206. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  207. CONFIG_SHELL=$as_shell as_have_required=yes
  208. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. break 2
  210. fi
  211. fi
  212. done;;
  213. esac
  214. as_found=false
  215. done
  216. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  217. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  218. CONFIG_SHELL=$SHELL as_have_required=yes
  219. fi; }
  220. IFS=$as_save_IFS
  221. if test "x$CONFIG_SHELL" != x; then :
  222. export CONFIG_SHELL
  223. # We cannot yet assume a decent shell, so we have to provide a
  224. # neutralization value for shells without unset; and this also
  225. # works around shells that cannot unset nonexistent variables.
  226. # Preserve -v and -x to the replacement shell.
  227. BASH_ENV=/dev/null
  228. ENV=/dev/null
  229. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  230. case $- in # ((((
  231. *v*x* | *x*v* ) as_opts=-vx ;;
  232. *v* ) as_opts=-v ;;
  233. *x* ) as_opts=-x ;;
  234. * ) as_opts= ;;
  235. esac
  236. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  237. # Admittedly, this is quite paranoid, since all the known shells bail
  238. # out after a failed `exec'.
  239. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  240. exit 255
  241. fi
  242. if test x$as_have_required = xno; then :
  243. $as_echo "$0: This script requires a shell more modern than all"
  244. $as_echo "$0: the shells that I found on your system."
  245. if test x${ZSH_VERSION+set} = xset ; then
  246. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  247. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  248. else
  249. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  250. $0: including any error possibly output before this
  251. $0: message. Then install a modern shell, or manually run
  252. $0: the script under such a shell if you do have one."
  253. fi
  254. exit 1
  255. fi
  256. fi
  257. fi
  258. SHELL=${CONFIG_SHELL-/bin/sh}
  259. export SHELL
  260. # Unset more variables known to interfere with behavior of common tools.
  261. CLICOLOR_FORCE= GREP_OPTIONS=
  262. unset CLICOLOR_FORCE GREP_OPTIONS
  263. ## --------------------- ##
  264. ## M4sh Shell Functions. ##
  265. ## --------------------- ##
  266. # as_fn_unset VAR
  267. # ---------------
  268. # Portably unset VAR.
  269. as_fn_unset ()
  270. {
  271. { eval $1=; unset $1;}
  272. }
  273. as_unset=as_fn_unset
  274. # as_fn_set_status STATUS
  275. # -----------------------
  276. # Set $? to STATUS, without forking.
  277. as_fn_set_status ()
  278. {
  279. return $1
  280. } # as_fn_set_status
  281. # as_fn_exit STATUS
  282. # -----------------
  283. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  284. as_fn_exit ()
  285. {
  286. set +e
  287. as_fn_set_status $1
  288. exit $1
  289. } # as_fn_exit
  290. # as_fn_mkdir_p
  291. # -------------
  292. # Create "$as_dir" as a directory, including parents if necessary.
  293. as_fn_mkdir_p ()
  294. {
  295. case $as_dir in #(
  296. -*) as_dir=./$as_dir;;
  297. esac
  298. test -d "$as_dir" || eval $as_mkdir_p || {
  299. as_dirs=
  300. while :; do
  301. case $as_dir in #(
  302. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  303. *) as_qdir=$as_dir;;
  304. esac
  305. as_dirs="'$as_qdir' $as_dirs"
  306. as_dir=`$as_dirname -- "$as_dir" ||
  307. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  308. X"$as_dir" : 'X\(//\)[^/]' \| \
  309. X"$as_dir" : 'X\(//\)$' \| \
  310. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  311. $as_echo X"$as_dir" |
  312. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  313. s//\1/
  314. q
  315. }
  316. /^X\(\/\/\)[^/].*/{
  317. s//\1/
  318. q
  319. }
  320. /^X\(\/\/\)$/{
  321. s//\1/
  322. q
  323. }
  324. /^X\(\/\).*/{
  325. s//\1/
  326. q
  327. }
  328. s/.*/./; q'`
  329. test -d "$as_dir" && break
  330. done
  331. test -z "$as_dirs" || eval "mkdir $as_dirs"
  332. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  333. } # as_fn_mkdir_p
  334. # as_fn_executable_p FILE
  335. # -----------------------
  336. # Test if FILE is an executable regular file.
  337. as_fn_executable_p ()
  338. {
  339. test -f "$1" && test -x "$1"
  340. } # as_fn_executable_p
  341. # as_fn_append VAR VALUE
  342. # ----------------------
  343. # Append the text in VALUE to the end of the definition contained in VAR. Take
  344. # advantage of any shell optimizations that allow amortized linear growth over
  345. # repeated appends, instead of the typical quadratic growth present in naive
  346. # implementations.
  347. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  348. eval 'as_fn_append ()
  349. {
  350. eval $1+=\$2
  351. }'
  352. else
  353. as_fn_append ()
  354. {
  355. eval $1=\$$1\$2
  356. }
  357. fi # as_fn_append
  358. # as_fn_arith ARG...
  359. # ------------------
  360. # Perform arithmetic evaluation on the ARGs, and store the result in the
  361. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  362. # must be portable across $(()) and expr.
  363. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  364. eval 'as_fn_arith ()
  365. {
  366. as_val=$(( $* ))
  367. }'
  368. else
  369. as_fn_arith ()
  370. {
  371. as_val=`expr "$@" || test $? -eq 1`
  372. }
  373. fi # as_fn_arith
  374. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  375. # ----------------------------------------
  376. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  377. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  378. # script with STATUS, using 1 if that was 0.
  379. as_fn_error ()
  380. {
  381. as_status=$1; test $as_status -eq 0 && as_status=1
  382. if test "$4"; then
  383. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  384. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  385. fi
  386. $as_echo "$as_me: error: $2" >&2
  387. as_fn_exit $as_status
  388. } # as_fn_error
  389. if expr a : '\(a\)' >/dev/null 2>&1 &&
  390. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  391. as_expr=expr
  392. else
  393. as_expr=false
  394. fi
  395. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  396. as_basename=basename
  397. else
  398. as_basename=false
  399. fi
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. as_me=`$as_basename -- "$0" ||
  406. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  407. X"$0" : 'X\(//\)$' \| \
  408. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  409. $as_echo X/"$0" |
  410. sed '/^.*\/\([^/][^/]*\)\/*$/{
  411. s//\1/
  412. q
  413. }
  414. /^X\/\(\/\/\)$/{
  415. s//\1/
  416. q
  417. }
  418. /^X\/\(\/\).*/{
  419. s//\1/
  420. q
  421. }
  422. s/.*/./; q'`
  423. # Avoid depending upon Character Ranges.
  424. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  425. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  426. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  427. as_cr_digits='0123456789'
  428. as_cr_alnum=$as_cr_Letters$as_cr_digits
  429. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  430. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  431. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  432. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  433. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  434. sed -n '
  435. p
  436. /[$]LINENO/=
  437. ' <$as_myself |
  438. sed '
  439. s/[$]LINENO.*/&-/
  440. t lineno
  441. b
  442. :lineno
  443. N
  444. :loop
  445. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  446. t loop
  447. s/-\n.*//
  448. ' >$as_me.lineno &&
  449. chmod +x "$as_me.lineno" ||
  450. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  451. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  452. # already done that, so ensure we don't try to do so again and fall
  453. # in an infinite loop. This has already happened in practice.
  454. _as_can_reexec=no; export _as_can_reexec
  455. # Don't try to exec as it changes $[0], causing all sort of problems
  456. # (the dirname of $[0] is not the place where we might find the
  457. # original and so on. Autoconf is especially sensitive to this).
  458. . "./$as_me.lineno"
  459. # Exit status is that of the last command.
  460. exit
  461. }
  462. ECHO_C= ECHO_N= ECHO_T=
  463. case `echo -n x` in #(((((
  464. -n*)
  465. case `echo 'xy\c'` in
  466. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  467. xy) ECHO_C='\c';;
  468. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  469. ECHO_T=' ';;
  470. esac;;
  471. *)
  472. ECHO_N='-n';;
  473. esac
  474. rm -f conf$$ conf$$.exe conf$$.file
  475. if test -d conf$$.dir; then
  476. rm -f conf$$.dir/conf$$.file
  477. else
  478. rm -f conf$$.dir
  479. mkdir conf$$.dir 2>/dev/null
  480. fi
  481. if (echo >conf$$.file) 2>/dev/null; then
  482. if ln -s conf$$.file conf$$ 2>/dev/null; then
  483. as_ln_s='ln -s'
  484. # ... but there are two gotchas:
  485. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  486. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  487. # In both cases, we have to default to `cp -pR'.
  488. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  489. as_ln_s='cp -pR'
  490. elif ln conf$$.file conf$$ 2>/dev/null; then
  491. as_ln_s=ln
  492. else
  493. as_ln_s='cp -pR'
  494. fi
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  499. rmdir conf$$.dir 2>/dev/null
  500. if mkdir -p . 2>/dev/null; then
  501. as_mkdir_p='mkdir -p "$as_dir"'
  502. else
  503. test -d ./-p && rmdir ./-p
  504. as_mkdir_p=false
  505. fi
  506. as_test_x='test -x'
  507. as_executable_p=as_fn_executable_p
  508. # Sed expression to map a string onto a valid CPP name.
  509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  510. # Sed expression to map a string onto a valid variable name.
  511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  512. test -n "$DJDIR" || exec 7<&0 </dev/null
  513. exec 6>&1
  514. # Name of the host.
  515. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  516. # so uname gets run too.
  517. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  518. #
  519. # Initializations.
  520. #
  521. ac_default_prefix=/usr/local
  522. ac_clean_files=
  523. ac_config_libobj_dir=.
  524. LIBOBJS=
  525. cross_compiling=no
  526. subdirs=
  527. MFLAGS=
  528. MAKEFLAGS=
  529. # Identity of this package.
  530. PACKAGE_NAME=
  531. PACKAGE_TARNAME=
  532. PACKAGE_VERSION=
  533. PACKAGE_STRING=
  534. PACKAGE_BUGREPORT=
  535. PACKAGE_URL=
  536. ac_unique_file="config/config.h.in"
  537. # Factoring default headers for most tests.
  538. ac_includes_default="\
  539. #include <stdio.h>
  540. #ifdef HAVE_SYS_TYPES_H
  541. # include <sys/types.h>
  542. #endif
  543. #ifdef HAVE_SYS_STAT_H
  544. # include <sys/stat.h>
  545. #endif
  546. #ifdef STDC_HEADERS
  547. # include <stdlib.h>
  548. # include <stddef.h>
  549. #else
  550. # ifdef HAVE_STDLIB_H
  551. # include <stdlib.h>
  552. # endif
  553. #endif
  554. #ifdef HAVE_STRING_H
  555. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  556. # include <memory.h>
  557. # endif
  558. # include <string.h>
  559. #endif
  560. #ifdef HAVE_STRINGS_H
  561. # include <strings.h>
  562. #endif
  563. #ifdef HAVE_INTTYPES_H
  564. # include <inttypes.h>
  565. #endif
  566. #ifdef HAVE_STDINT_H
  567. # include <stdint.h>
  568. #endif
  569. #ifdef HAVE_UNISTD_H
  570. # include <unistd.h>
  571. #endif"
  572. ac_header_list=
  573. ac_subst_vars='LTLIBOBJS
  574. LIBOBJS
  575. CC_RANLIB
  576. CC_AR
  577. PDFOPT
  578. STRIP
  579. RANLIB
  580. AR
  581. XMLTO
  582. ASCIIDOC
  583. NROFF
  584. LIBEXT
  585. INSTALL_DATA
  586. INSTALL_SCRIPT
  587. INSTALL_PROGRAM
  588. SET_MAKE
  589. LN_S
  590. EGREP
  591. GREP
  592. CPP
  593. OBJEXT
  594. EXEEXT
  595. ac_ct_CC
  596. CPPFLAGS
  597. LDFLAGS
  598. CFLAGS
  599. CC
  600. ac_prefix_program
  601. target_alias
  602. host_alias
  603. build_alias
  604. LIBS
  605. ECHO_T
  606. ECHO_N
  607. ECHO_C
  608. DEFS
  609. mandir
  610. localedir
  611. libdir
  612. psdir
  613. pdfdir
  614. dvidir
  615. htmldir
  616. infodir
  617. docdir
  618. oldincludedir
  619. includedir
  620. localstatedir
  621. sharedstatedir
  622. sysconfdir
  623. datadir
  624. datarootdir
  625. libexecdir
  626. sbindir
  627. bindir
  628. program_transform_name
  629. prefix
  630. exec_prefix
  631. PACKAGE_URL
  632. PACKAGE_BUGREPORT
  633. PACKAGE_STRING
  634. PACKAGE_VERSION
  635. PACKAGE_TARNAME
  636. PACKAGE_NAME
  637. PATH_SEPARATOR
  638. SHELL'
  639. ac_subst_files=''
  640. ac_user_opts='
  641. enable_option_checking
  642. enable_largefile
  643. enable_optimization
  644. enable_gdb
  645. enable_panic_abort
  646. enable_pdf_compression
  647. enable_sections
  648. enable_lto
  649. enable_sanitizer
  650. enable_werror
  651. enable_ccache
  652. '
  653. ac_precious_vars='build_alias
  654. host_alias
  655. target_alias
  656. CC
  657. CFLAGS
  658. LDFLAGS
  659. LIBS
  660. CPPFLAGS
  661. CPP'
  662. # Initialize some variables set by options.
  663. ac_init_help=
  664. ac_init_version=false
  665. ac_unrecognized_opts=
  666. ac_unrecognized_sep=
  667. # The variables have the same names as the options, with
  668. # dashes changed to underlines.
  669. cache_file=/dev/null
  670. exec_prefix=NONE
  671. no_create=
  672. no_recursion=
  673. prefix=NONE
  674. program_prefix=NONE
  675. program_suffix=NONE
  676. program_transform_name=s,x,x,
  677. silent=
  678. site=
  679. srcdir=
  680. verbose=
  681. x_includes=NONE
  682. x_libraries=NONE
  683. # Installation directory options.
  684. # These are left unexpanded so users can "make install exec_prefix=/foo"
  685. # and all the variables that are supposed to be based on exec_prefix
  686. # by default will actually change.
  687. # Use braces instead of parens because sh, perl, etc. also accept them.
  688. # (The list follows the same order as the GNU Coding Standards.)
  689. bindir='${exec_prefix}/bin'
  690. sbindir='${exec_prefix}/sbin'
  691. libexecdir='${exec_prefix}/libexec'
  692. datarootdir='${prefix}/share'
  693. datadir='${datarootdir}'
  694. sysconfdir='${prefix}/etc'
  695. sharedstatedir='${prefix}/com'
  696. localstatedir='${prefix}/var'
  697. includedir='${prefix}/include'
  698. oldincludedir='/usr/include'
  699. docdir='${datarootdir}/doc/${PACKAGE}'
  700. infodir='${datarootdir}/info'
  701. htmldir='${docdir}'
  702. dvidir='${docdir}'
  703. pdfdir='${docdir}'
  704. psdir='${docdir}'
  705. libdir='${exec_prefix}/lib'
  706. localedir='${datarootdir}/locale'
  707. mandir='${datarootdir}/man'
  708. ac_prev=
  709. ac_dashdash=
  710. for ac_option
  711. do
  712. # If the previous option needs an argument, assign it.
  713. if test -n "$ac_prev"; then
  714. eval $ac_prev=\$ac_option
  715. ac_prev=
  716. continue
  717. fi
  718. case $ac_option in
  719. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  720. *=) ac_optarg= ;;
  721. *) ac_optarg=yes ;;
  722. esac
  723. # Accept the important Cygnus configure options, so we can diagnose typos.
  724. case $ac_dashdash$ac_option in
  725. --)
  726. ac_dashdash=yes ;;
  727. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  728. ac_prev=bindir ;;
  729. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  730. bindir=$ac_optarg ;;
  731. -build | --build | --buil | --bui | --bu)
  732. ac_prev=build_alias ;;
  733. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  734. build_alias=$ac_optarg ;;
  735. -cache-file | --cache-file | --cache-fil | --cache-fi \
  736. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  737. ac_prev=cache_file ;;
  738. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  739. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  740. cache_file=$ac_optarg ;;
  741. --config-cache | -C)
  742. cache_file=config.cache ;;
  743. -datadir | --datadir | --datadi | --datad)
  744. ac_prev=datadir ;;
  745. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  746. datadir=$ac_optarg ;;
  747. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  748. | --dataroo | --dataro | --datar)
  749. ac_prev=datarootdir ;;
  750. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  751. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  752. datarootdir=$ac_optarg ;;
  753. -disable-* | --disable-*)
  754. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  755. # Reject names that are not valid shell variable names.
  756. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  757. as_fn_error $? "invalid feature name: $ac_useropt"
  758. ac_useropt_orig=$ac_useropt
  759. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  760. case $ac_user_opts in
  761. *"
  762. "enable_$ac_useropt"
  763. "*) ;;
  764. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  765. ac_unrecognized_sep=', ';;
  766. esac
  767. eval enable_$ac_useropt=no ;;
  768. -docdir | --docdir | --docdi | --doc | --do)
  769. ac_prev=docdir ;;
  770. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  771. docdir=$ac_optarg ;;
  772. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  773. ac_prev=dvidir ;;
  774. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  775. dvidir=$ac_optarg ;;
  776. -enable-* | --enable-*)
  777. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  778. # Reject names that are not valid shell variable names.
  779. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  780. as_fn_error $? "invalid feature name: $ac_useropt"
  781. ac_useropt_orig=$ac_useropt
  782. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  783. case $ac_user_opts in
  784. *"
  785. "enable_$ac_useropt"
  786. "*) ;;
  787. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  788. ac_unrecognized_sep=', ';;
  789. esac
  790. eval enable_$ac_useropt=\$ac_optarg ;;
  791. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  792. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  793. | --exec | --exe | --ex)
  794. ac_prev=exec_prefix ;;
  795. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  796. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  797. | --exec=* | --exe=* | --ex=*)
  798. exec_prefix=$ac_optarg ;;
  799. -gas | --gas | --ga | --g)
  800. # Obsolete; use --with-gas.
  801. with_gas=yes ;;
  802. -help | --help | --hel | --he | -h)
  803. ac_init_help=long ;;
  804. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  805. ac_init_help=recursive ;;
  806. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  807. ac_init_help=short ;;
  808. -host | --host | --hos | --ho)
  809. ac_prev=host_alias ;;
  810. -host=* | --host=* | --hos=* | --ho=*)
  811. host_alias=$ac_optarg ;;
  812. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  813. ac_prev=htmldir ;;
  814. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  815. | --ht=*)
  816. htmldir=$ac_optarg ;;
  817. -includedir | --includedir | --includedi | --included | --include \
  818. | --includ | --inclu | --incl | --inc)
  819. ac_prev=includedir ;;
  820. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  821. | --includ=* | --inclu=* | --incl=* | --inc=*)
  822. includedir=$ac_optarg ;;
  823. -infodir | --infodir | --infodi | --infod | --info | --inf)
  824. ac_prev=infodir ;;
  825. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  826. infodir=$ac_optarg ;;
  827. -libdir | --libdir | --libdi | --libd)
  828. ac_prev=libdir ;;
  829. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  830. libdir=$ac_optarg ;;
  831. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  832. | --libexe | --libex | --libe)
  833. ac_prev=libexecdir ;;
  834. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  835. | --libexe=* | --libex=* | --libe=*)
  836. libexecdir=$ac_optarg ;;
  837. -localedir | --localedir | --localedi | --localed | --locale)
  838. ac_prev=localedir ;;
  839. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  840. localedir=$ac_optarg ;;
  841. -localstatedir | --localstatedir | --localstatedi | --localstated \
  842. | --localstate | --localstat | --localsta | --localst | --locals)
  843. ac_prev=localstatedir ;;
  844. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  845. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  846. localstatedir=$ac_optarg ;;
  847. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  848. ac_prev=mandir ;;
  849. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  850. mandir=$ac_optarg ;;
  851. -nfp | --nfp | --nf)
  852. # Obsolete; use --without-fp.
  853. with_fp=no ;;
  854. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  855. | --no-cr | --no-c | -n)
  856. no_create=yes ;;
  857. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  858. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  859. no_recursion=yes ;;
  860. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  861. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  862. | --oldin | --oldi | --old | --ol | --o)
  863. ac_prev=oldincludedir ;;
  864. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  865. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  866. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  867. oldincludedir=$ac_optarg ;;
  868. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  869. ac_prev=prefix ;;
  870. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  871. prefix=$ac_optarg ;;
  872. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  873. | --program-pre | --program-pr | --program-p)
  874. ac_prev=program_prefix ;;
  875. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  876. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  877. program_prefix=$ac_optarg ;;
  878. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  879. | --program-suf | --program-su | --program-s)
  880. ac_prev=program_suffix ;;
  881. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  882. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  883. program_suffix=$ac_optarg ;;
  884. -program-transform-name | --program-transform-name \
  885. | --program-transform-nam | --program-transform-na \
  886. | --program-transform-n | --program-transform- \
  887. | --program-transform | --program-transfor \
  888. | --program-transfo | --program-transf \
  889. | --program-trans | --program-tran \
  890. | --progr-tra | --program-tr | --program-t)
  891. ac_prev=program_transform_name ;;
  892. -program-transform-name=* | --program-transform-name=* \
  893. | --program-transform-nam=* | --program-transform-na=* \
  894. | --program-transform-n=* | --program-transform-=* \
  895. | --program-transform=* | --program-transfor=* \
  896. | --program-transfo=* | --program-transf=* \
  897. | --program-trans=* | --program-tran=* \
  898. | --progr-tra=* | --program-tr=* | --program-t=*)
  899. program_transform_name=$ac_optarg ;;
  900. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  901. ac_prev=pdfdir ;;
  902. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  903. pdfdir=$ac_optarg ;;
  904. -psdir | --psdir | --psdi | --psd | --ps)
  905. ac_prev=psdir ;;
  906. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  907. psdir=$ac_optarg ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. silent=yes ;;
  911. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  912. ac_prev=sbindir ;;
  913. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  914. | --sbi=* | --sb=*)
  915. sbindir=$ac_optarg ;;
  916. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  917. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  918. | --sharedst | --shareds | --shared | --share | --shar \
  919. | --sha | --sh)
  920. ac_prev=sharedstatedir ;;
  921. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  922. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  923. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  924. | --sha=* | --sh=*)
  925. sharedstatedir=$ac_optarg ;;
  926. -site | --site | --sit)
  927. ac_prev=site ;;
  928. -site=* | --site=* | --sit=*)
  929. site=$ac_optarg ;;
  930. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  931. ac_prev=srcdir ;;
  932. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  933. srcdir=$ac_optarg ;;
  934. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  935. | --syscon | --sysco | --sysc | --sys | --sy)
  936. ac_prev=sysconfdir ;;
  937. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  938. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  939. sysconfdir=$ac_optarg ;;
  940. -target | --target | --targe | --targ | --tar | --ta | --t)
  941. ac_prev=target_alias ;;
  942. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  943. target_alias=$ac_optarg ;;
  944. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  945. verbose=yes ;;
  946. -version | --version | --versio | --versi | --vers | -V)
  947. ac_init_version=: ;;
  948. -with-* | --with-*)
  949. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  950. # Reject names that are not valid shell variable names.
  951. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  952. as_fn_error $? "invalid package name: $ac_useropt"
  953. ac_useropt_orig=$ac_useropt
  954. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  955. case $ac_user_opts in
  956. *"
  957. "with_$ac_useropt"
  958. "*) ;;
  959. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  960. ac_unrecognized_sep=', ';;
  961. esac
  962. eval with_$ac_useropt=\$ac_optarg ;;
  963. -without-* | --without-*)
  964. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  965. # Reject names that are not valid shell variable names.
  966. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  967. as_fn_error $? "invalid package name: $ac_useropt"
  968. ac_useropt_orig=$ac_useropt
  969. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  970. case $ac_user_opts in
  971. *"
  972. "with_$ac_useropt"
  973. "*) ;;
  974. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  975. ac_unrecognized_sep=', ';;
  976. esac
  977. eval with_$ac_useropt=no ;;
  978. --x)
  979. # Obsolete; use --with-x.
  980. with_x=yes ;;
  981. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  982. | --x-incl | --x-inc | --x-in | --x-i)
  983. ac_prev=x_includes ;;
  984. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  985. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  986. x_includes=$ac_optarg ;;
  987. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  988. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  989. ac_prev=x_libraries ;;
  990. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  991. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  992. x_libraries=$ac_optarg ;;
  993. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  994. Try \`$0 --help' for more information"
  995. ;;
  996. *=*)
  997. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  998. # Reject names that are not valid shell variable names.
  999. case $ac_envvar in #(
  1000. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1001. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1002. esac
  1003. eval $ac_envvar=\$ac_optarg
  1004. export $ac_envvar ;;
  1005. *)
  1006. # FIXME: should be removed in autoconf 3.0.
  1007. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1008. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1009. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1010. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1011. ;;
  1012. esac
  1013. done
  1014. if test -n "$ac_prev"; then
  1015. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1016. as_fn_error $? "missing argument to $ac_option"
  1017. fi
  1018. if test -n "$ac_unrecognized_opts"; then
  1019. case $enable_option_checking in
  1020. no) ;;
  1021. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1022. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1023. esac
  1024. fi
  1025. # Check all directory arguments for consistency.
  1026. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1027. datadir sysconfdir sharedstatedir localstatedir includedir \
  1028. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1029. libdir localedir mandir
  1030. do
  1031. eval ac_val=\$$ac_var
  1032. # Remove trailing slashes.
  1033. case $ac_val in
  1034. */ )
  1035. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1036. eval $ac_var=\$ac_val;;
  1037. esac
  1038. # Be sure to have absolute directory names.
  1039. case $ac_val in
  1040. [\\/$]* | ?:[\\/]* ) continue;;
  1041. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1042. esac
  1043. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1044. done
  1045. # There might be people who depend on the old broken behavior: `$host'
  1046. # used to hold the argument of --host etc.
  1047. # FIXME: To remove some day.
  1048. build=$build_alias
  1049. host=$host_alias
  1050. target=$target_alias
  1051. # FIXME: To remove some day.
  1052. if test "x$host_alias" != x; then
  1053. if test "x$build_alias" = x; then
  1054. cross_compiling=maybe
  1055. elif test "x$build_alias" != "x$host_alias"; then
  1056. cross_compiling=yes
  1057. fi
  1058. fi
  1059. ac_tool_prefix=
  1060. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1061. test "$silent" = yes && exec 6>/dev/null
  1062. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1063. ac_ls_di=`ls -di .` &&
  1064. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1065. as_fn_error $? "working directory cannot be determined"
  1066. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1067. as_fn_error $? "pwd does not report name of working directory"
  1068. # Find the source files, if location was not specified.
  1069. if test -z "$srcdir"; then
  1070. ac_srcdir_defaulted=yes
  1071. # Try the directory containing this script, then the parent directory.
  1072. ac_confdir=`$as_dirname -- "$as_myself" ||
  1073. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1074. X"$as_myself" : 'X\(//\)[^/]' \| \
  1075. X"$as_myself" : 'X\(//\)$' \| \
  1076. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1077. $as_echo X"$as_myself" |
  1078. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1079. s//\1/
  1080. q
  1081. }
  1082. /^X\(\/\/\)[^/].*/{
  1083. s//\1/
  1084. q
  1085. }
  1086. /^X\(\/\/\)$/{
  1087. s//\1/
  1088. q
  1089. }
  1090. /^X\(\/\).*/{
  1091. s//\1/
  1092. q
  1093. }
  1094. s/.*/./; q'`
  1095. srcdir=$ac_confdir
  1096. if test ! -r "$srcdir/$ac_unique_file"; then
  1097. srcdir=..
  1098. fi
  1099. else
  1100. ac_srcdir_defaulted=no
  1101. fi
  1102. if test ! -r "$srcdir/$ac_unique_file"; then
  1103. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1104. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1105. fi
  1106. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1107. ac_abs_confdir=`(
  1108. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1109. pwd)`
  1110. # When building in place, set srcdir=.
  1111. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1112. srcdir=.
  1113. fi
  1114. # Remove unnecessary trailing slashes from srcdir.
  1115. # Double slashes in file names in object file debugging info
  1116. # mess up M-x gdb in Emacs.
  1117. case $srcdir in
  1118. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1119. esac
  1120. for ac_var in $ac_precious_vars; do
  1121. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1122. eval ac_env_${ac_var}_value=\$${ac_var}
  1123. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1124. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1125. done
  1126. #
  1127. # Report the --help message.
  1128. #
  1129. if test "$ac_init_help" = "long"; then
  1130. # Omit some internal or obsolete options to make the list less imposing.
  1131. # This message is too long to be a string in the A/UX 3.1 sh.
  1132. cat <<_ACEOF
  1133. \`configure' configures this package to adapt to many kinds of systems.
  1134. Usage: $0 [OPTION]... [VAR=VALUE]...
  1135. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1136. VAR=VALUE. See below for descriptions of some of the useful variables.
  1137. Defaults for the options are specified in brackets.
  1138. Configuration:
  1139. -h, --help display this help and exit
  1140. --help=short display options specific to this package
  1141. --help=recursive display the short help of all the included packages
  1142. -V, --version display version information and exit
  1143. -q, --quiet, --silent do not print \`checking ...' messages
  1144. --cache-file=FILE cache test results in FILE [disabled]
  1145. -C, --config-cache alias for \`--cache-file=config.cache'
  1146. -n, --no-create do not create output files
  1147. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1148. Installation directories:
  1149. --prefix=PREFIX install architecture-independent files in PREFIX
  1150. [$ac_default_prefix]
  1151. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1152. [PREFIX]
  1153. By default, \`make install' will install all the files in
  1154. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1155. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1156. for instance \`--prefix=\$HOME'.
  1157. For better control, use the options below.
  1158. Fine tuning of the installation directories:
  1159. --bindir=DIR user executables [EPREFIX/bin]
  1160. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1161. --libexecdir=DIR program executables [EPREFIX/libexec]
  1162. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1163. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1164. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1165. --libdir=DIR object code libraries [EPREFIX/lib]
  1166. --includedir=DIR C header files [PREFIX/include]
  1167. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1168. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1169. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1170. --infodir=DIR info documentation [DATAROOTDIR/info]
  1171. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1172. --mandir=DIR man documentation [DATAROOTDIR/man]
  1173. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1174. --htmldir=DIR html documentation [DOCDIR]
  1175. --dvidir=DIR dvi documentation [DOCDIR]
  1176. --pdfdir=DIR pdf documentation [DOCDIR]
  1177. --psdir=DIR ps documentation [DOCDIR]
  1178. _ACEOF
  1179. cat <<\_ACEOF
  1180. _ACEOF
  1181. fi
  1182. if test -n "$ac_init_help"; then
  1183. cat <<\_ACEOF
  1184. Optional Features:
  1185. --disable-option-checking ignore unrecognized --enable/--with options
  1186. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1187. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1188. --disable-largefile omit support for large files
  1189. --disable-optimization compile without optimization (-O0) to help debugging
  1190. --enable-gdb disable optimization and compile with extra debug
  1191. information for GDB debugger
  1192. --enable-panic-abort call abort() on panic to trap in the debugger
  1193. --disable-pdf-compression
  1194. generate an uncompressed documentation PDF
  1195. --enable-sections compile with function/data section support
  1196. --enable-lto compile with gcc-style link time optimization
  1197. --enable-sanitizer compile with sanitizers enabled
  1198. --enable-werror compile with -Werror to error out on any warning
  1199. --enable-ccache compile with ccache
  1200. Some influential environment variables:
  1201. CC C compiler command
  1202. CFLAGS C compiler flags
  1203. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1204. nonstandard directory <lib dir>
  1205. LIBS libraries to pass to the linker, e.g. -l<library>
  1206. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1207. you have headers in a nonstandard directory <include dir>
  1208. CPP C preprocessor
  1209. Use these variables to override the choices made by `configure' or to help
  1210. it to find libraries and programs with nonstandard names/locations.
  1211. Report bugs to the package provider.
  1212. _ACEOF
  1213. ac_status=$?
  1214. fi
  1215. if test "$ac_init_help" = "recursive"; then
  1216. # If there are subdirs, report their specific --help.
  1217. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1218. test -d "$ac_dir" ||
  1219. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1220. continue
  1221. ac_builddir=.
  1222. case "$ac_dir" in
  1223. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1224. *)
  1225. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1226. # A ".." for each directory in $ac_dir_suffix.
  1227. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1228. case $ac_top_builddir_sub in
  1229. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1230. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1231. esac ;;
  1232. esac
  1233. ac_abs_top_builddir=$ac_pwd
  1234. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1235. # for backward compatibility:
  1236. ac_top_builddir=$ac_top_build_prefix
  1237. case $srcdir in
  1238. .) # We are building in place.
  1239. ac_srcdir=.
  1240. ac_top_srcdir=$ac_top_builddir_sub
  1241. ac_abs_top_srcdir=$ac_pwd ;;
  1242. [\\/]* | ?:[\\/]* ) # Absolute name.
  1243. ac_srcdir=$srcdir$ac_dir_suffix;
  1244. ac_top_srcdir=$srcdir
  1245. ac_abs_top_srcdir=$srcdir ;;
  1246. *) # Relative name.
  1247. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1248. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1249. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1250. esac
  1251. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1252. cd "$ac_dir" || { ac_status=$?; continue; }
  1253. # Check for guested configure.
  1254. if test -f "$ac_srcdir/configure.gnu"; then
  1255. echo &&
  1256. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1257. elif test -f "$ac_srcdir/configure"; then
  1258. echo &&
  1259. $SHELL "$ac_srcdir/configure" --help=recursive
  1260. else
  1261. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1262. fi || ac_status=$?
  1263. cd "$ac_pwd" || { ac_status=$?; break; }
  1264. done
  1265. fi
  1266. test -n "$ac_init_help" && exit $ac_status
  1267. if $ac_init_version; then
  1268. cat <<\_ACEOF
  1269. configure
  1270. generated by GNU Autoconf 2.69
  1271. Copyright (C) 2012 Free Software Foundation, Inc.
  1272. This configure script is free software; the Free Software Foundation
  1273. gives unlimited permission to copy, distribute and modify it.
  1274. _ACEOF
  1275. exit
  1276. fi
  1277. ## ------------------------ ##
  1278. ## Autoconf initialization. ##
  1279. ## ------------------------ ##
  1280. # ac_fn_c_try_compile LINENO
  1281. # --------------------------
  1282. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1283. ac_fn_c_try_compile ()
  1284. {
  1285. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1286. rm -f conftest.$ac_objext
  1287. if { { ac_try="$ac_compile"
  1288. case "(($ac_try" in
  1289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1290. *) ac_try_echo=$ac_try;;
  1291. esac
  1292. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1293. $as_echo "$ac_try_echo"; } >&5
  1294. (eval "$ac_compile") 2>conftest.err
  1295. ac_status=$?
  1296. if test -s conftest.err; then
  1297. grep -v '^ *+' conftest.err >conftest.er1
  1298. cat conftest.er1 >&5
  1299. mv -f conftest.er1 conftest.err
  1300. fi
  1301. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1302. test $ac_status = 0; } && {
  1303. test -z "$ac_c_werror_flag" ||
  1304. test ! -s conftest.err
  1305. } && test -s conftest.$ac_objext; then :
  1306. ac_retval=0
  1307. else
  1308. $as_echo "$as_me: failed program was:" >&5
  1309. sed 's/^/| /' conftest.$ac_ext >&5
  1310. ac_retval=1
  1311. fi
  1312. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1313. as_fn_set_status $ac_retval
  1314. } # ac_fn_c_try_compile
  1315. # ac_fn_c_try_cpp LINENO
  1316. # ----------------------
  1317. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1318. ac_fn_c_try_cpp ()
  1319. {
  1320. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1321. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1322. case "(($ac_try" in
  1323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1324. *) ac_try_echo=$ac_try;;
  1325. esac
  1326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1327. $as_echo "$ac_try_echo"; } >&5
  1328. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1329. ac_status=$?
  1330. if test -s conftest.err; then
  1331. grep -v '^ *+' conftest.err >conftest.er1
  1332. cat conftest.er1 >&5
  1333. mv -f conftest.er1 conftest.err
  1334. fi
  1335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1336. test $ac_status = 0; } > conftest.i && {
  1337. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1338. test ! -s conftest.err
  1339. }; then :
  1340. ac_retval=0
  1341. else
  1342. $as_echo "$as_me: failed program was:" >&5
  1343. sed 's/^/| /' conftest.$ac_ext >&5
  1344. ac_retval=1
  1345. fi
  1346. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1347. as_fn_set_status $ac_retval
  1348. } # ac_fn_c_try_cpp
  1349. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1350. # -------------------------------------------------------
  1351. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1352. # the include files in INCLUDES and setting the cache variable VAR
  1353. # accordingly.
  1354. ac_fn_c_check_header_mongrel ()
  1355. {
  1356. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1357. if eval \${$3+:} false; then :
  1358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1359. $as_echo_n "checking for $2... " >&6; }
  1360. if eval \${$3+:} false; then :
  1361. $as_echo_n "(cached) " >&6
  1362. fi
  1363. eval ac_res=\$$3
  1364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1365. $as_echo "$ac_res" >&6; }
  1366. else
  1367. # Is the header compilable?
  1368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1369. $as_echo_n "checking $2 usability... " >&6; }
  1370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1371. /* end confdefs.h. */
  1372. $4
  1373. #include <$2>
  1374. _ACEOF
  1375. if ac_fn_c_try_compile "$LINENO"; then :
  1376. ac_header_compiler=yes
  1377. else
  1378. ac_header_compiler=no
  1379. fi
  1380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1382. $as_echo "$ac_header_compiler" >&6; }
  1383. # Is the header present?
  1384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1385. $as_echo_n "checking $2 presence... " >&6; }
  1386. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1387. /* end confdefs.h. */
  1388. #include <$2>
  1389. _ACEOF
  1390. if ac_fn_c_try_cpp "$LINENO"; then :
  1391. ac_header_preproc=yes
  1392. else
  1393. ac_header_preproc=no
  1394. fi
  1395. rm -f conftest.err conftest.i conftest.$ac_ext
  1396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1397. $as_echo "$ac_header_preproc" >&6; }
  1398. # So? What about this header?
  1399. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1400. yes:no: )
  1401. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1402. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1403. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1404. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1405. ;;
  1406. no:yes:* )
  1407. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1408. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1409. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1410. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1411. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1412. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1414. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1416. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1417. ;;
  1418. esac
  1419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1420. $as_echo_n "checking for $2... " >&6; }
  1421. if eval \${$3+:} false; then :
  1422. $as_echo_n "(cached) " >&6
  1423. else
  1424. eval "$3=\$ac_header_compiler"
  1425. fi
  1426. eval ac_res=\$$3
  1427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1428. $as_echo "$ac_res" >&6; }
  1429. fi
  1430. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1431. } # ac_fn_c_check_header_mongrel
  1432. # ac_fn_c_try_run LINENO
  1433. # ----------------------
  1434. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1435. # that executables *can* be run.
  1436. ac_fn_c_try_run ()
  1437. {
  1438. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1439. if { { ac_try="$ac_link"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_link") 2>&5
  1447. ac_status=$?
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1450. { { case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_try") 2>&5
  1457. ac_status=$?
  1458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1459. test $ac_status = 0; }; }; then :
  1460. ac_retval=0
  1461. else
  1462. $as_echo "$as_me: program exited with status $ac_status" >&5
  1463. $as_echo "$as_me: failed program was:" >&5
  1464. sed 's/^/| /' conftest.$ac_ext >&5
  1465. ac_retval=$ac_status
  1466. fi
  1467. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1468. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1469. as_fn_set_status $ac_retval
  1470. } # ac_fn_c_try_run
  1471. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1472. # -------------------------------------------------------
  1473. # Tests whether HEADER exists and can be compiled using the include files in
  1474. # INCLUDES, setting the cache variable VAR accordingly.
  1475. ac_fn_c_check_header_compile ()
  1476. {
  1477. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1479. $as_echo_n "checking for $2... " >&6; }
  1480. if eval \${$3+:} false; then :
  1481. $as_echo_n "(cached) " >&6
  1482. else
  1483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1484. /* end confdefs.h. */
  1485. $4
  1486. #include <$2>
  1487. _ACEOF
  1488. if ac_fn_c_try_compile "$LINENO"; then :
  1489. eval "$3=yes"
  1490. else
  1491. eval "$3=no"
  1492. fi
  1493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1494. fi
  1495. eval ac_res=\$$3
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1497. $as_echo "$ac_res" >&6; }
  1498. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1499. } # ac_fn_c_check_header_compile
  1500. # ac_fn_c_try_link LINENO
  1501. # -----------------------
  1502. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_c_try_link ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext conftest$ac_exeext
  1507. if { { ac_try="$ac_link"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_link") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_c_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest$ac_exeext && {
  1526. test "$cross_compiling" = yes ||
  1527. test -x conftest$ac_exeext
  1528. }; then :
  1529. ac_retval=0
  1530. else
  1531. $as_echo "$as_me: failed program was:" >&5
  1532. sed 's/^/| /' conftest.$ac_ext >&5
  1533. ac_retval=1
  1534. fi
  1535. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1536. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1537. # interfere with the next link command; also delete a directory that is
  1538. # left behind by Apple's compiler. We do this before executing the actions.
  1539. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_c_try_link
  1543. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1544. # -------------------------------------------
  1545. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1546. # variable VAR accordingly.
  1547. ac_fn_c_check_type ()
  1548. {
  1549. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1551. $as_echo_n "checking for $2... " >&6; }
  1552. if eval \${$3+:} false; then :
  1553. $as_echo_n "(cached) " >&6
  1554. else
  1555. eval "$3=no"
  1556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1557. /* end confdefs.h. */
  1558. $4
  1559. int
  1560. main ()
  1561. {
  1562. if (sizeof ($2))
  1563. return 0;
  1564. ;
  1565. return 0;
  1566. }
  1567. _ACEOF
  1568. if ac_fn_c_try_compile "$LINENO"; then :
  1569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1570. /* end confdefs.h. */
  1571. $4
  1572. int
  1573. main ()
  1574. {
  1575. if (sizeof (($2)))
  1576. return 0;
  1577. ;
  1578. return 0;
  1579. }
  1580. _ACEOF
  1581. if ac_fn_c_try_compile "$LINENO"; then :
  1582. else
  1583. eval "$3=yes"
  1584. fi
  1585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1586. fi
  1587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1588. fi
  1589. eval ac_res=\$$3
  1590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1591. $as_echo "$ac_res" >&6; }
  1592. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1593. } # ac_fn_c_check_type
  1594. # ac_fn_c_check_func LINENO FUNC VAR
  1595. # ----------------------------------
  1596. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1597. ac_fn_c_check_func ()
  1598. {
  1599. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1601. $as_echo_n "checking for $2... " >&6; }
  1602. if eval \${$3+:} false; then :
  1603. $as_echo_n "(cached) " >&6
  1604. else
  1605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1606. /* end confdefs.h. */
  1607. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1608. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1609. #define $2 innocuous_$2
  1610. /* System header to define __stub macros and hopefully few prototypes,
  1611. which can conflict with char $2 (); below.
  1612. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1613. <limits.h> exists even on freestanding compilers. */
  1614. #ifdef __STDC__
  1615. # include <limits.h>
  1616. #else
  1617. # include <assert.h>
  1618. #endif
  1619. #undef $2
  1620. /* Override any GCC internal prototype to avoid an error.
  1621. Use char because int might match the return type of a GCC
  1622. builtin and then its argument prototype would still apply. */
  1623. #ifdef __cplusplus
  1624. extern "C"
  1625. #endif
  1626. char $2 ();
  1627. /* The GNU C library defines this for functions which it implements
  1628. to always fail with ENOSYS. Some functions are actually named
  1629. something starting with __ and the normal name is an alias. */
  1630. #if defined __stub_$2 || defined __stub___$2
  1631. choke me
  1632. #endif
  1633. int
  1634. main ()
  1635. {
  1636. return $2 ();
  1637. ;
  1638. return 0;
  1639. }
  1640. _ACEOF
  1641. if ac_fn_c_try_link "$LINENO"; then :
  1642. eval "$3=yes"
  1643. else
  1644. eval "$3=no"
  1645. fi
  1646. rm -f core conftest.err conftest.$ac_objext \
  1647. conftest$ac_exeext conftest.$ac_ext
  1648. fi
  1649. eval ac_res=\$$3
  1650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1651. $as_echo "$ac_res" >&6; }
  1652. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1653. } # ac_fn_c_check_func
  1654. # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
  1655. # ---------------------------------------------
  1656. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1657. # accordingly.
  1658. ac_fn_c_check_decl ()
  1659. {
  1660. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1661. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1662. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1664. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1665. if eval \${$3+:} false; then :
  1666. $as_echo_n "(cached) " >&6
  1667. else
  1668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1669. /* end confdefs.h. */
  1670. $4
  1671. int
  1672. main ()
  1673. {
  1674. #ifndef $as_decl_name
  1675. #ifdef __cplusplus
  1676. (void) $as_decl_use;
  1677. #else
  1678. (void) $as_decl_name;
  1679. #endif
  1680. #endif
  1681. ;
  1682. return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_compile "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1691. fi
  1692. eval ac_res=\$$3
  1693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1694. $as_echo "$ac_res" >&6; }
  1695. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1696. } # ac_fn_c_check_decl
  1697. cat >config.log <<_ACEOF
  1698. This file contains any messages produced by compilers while
  1699. running configure, to aid debugging if configure makes a mistake.
  1700. It was created by $as_me, which was
  1701. generated by GNU Autoconf 2.69. Invocation command line was
  1702. $ $0 $@
  1703. _ACEOF
  1704. exec 5>>config.log
  1705. {
  1706. cat <<_ASUNAME
  1707. ## --------- ##
  1708. ## Platform. ##
  1709. ## --------- ##
  1710. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1711. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1712. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1713. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1714. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1715. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1716. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1717. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1718. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1719. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1720. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1721. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1722. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1723. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1724. _ASUNAME
  1725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1726. for as_dir in $PATH
  1727. do
  1728. IFS=$as_save_IFS
  1729. test -z "$as_dir" && as_dir=.
  1730. $as_echo "PATH: $as_dir"
  1731. done
  1732. IFS=$as_save_IFS
  1733. } >&5
  1734. cat >&5 <<_ACEOF
  1735. ## ----------- ##
  1736. ## Core tests. ##
  1737. ## ----------- ##
  1738. _ACEOF
  1739. # Keep a trace of the command line.
  1740. # Strip out --no-create and --no-recursion so they do not pile up.
  1741. # Strip out --silent because we don't want to record it for future runs.
  1742. # Also quote any args containing shell meta-characters.
  1743. # Make two passes to allow for proper duplicate-argument suppression.
  1744. ac_configure_args=
  1745. ac_configure_args0=
  1746. ac_configure_args1=
  1747. ac_must_keep_next=false
  1748. for ac_pass in 1 2
  1749. do
  1750. for ac_arg
  1751. do
  1752. case $ac_arg in
  1753. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1754. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1755. | -silent | --silent | --silen | --sile | --sil)
  1756. continue ;;
  1757. *\'*)
  1758. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1759. esac
  1760. case $ac_pass in
  1761. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1762. 2)
  1763. as_fn_append ac_configure_args1 " '$ac_arg'"
  1764. if test $ac_must_keep_next = true; then
  1765. ac_must_keep_next=false # Got value, back to normal.
  1766. else
  1767. case $ac_arg in
  1768. *=* | --config-cache | -C | -disable-* | --disable-* \
  1769. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1770. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1771. | -with-* | --with-* | -without-* | --without-* | --x)
  1772. case "$ac_configure_args0 " in
  1773. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1774. esac
  1775. ;;
  1776. -* ) ac_must_keep_next=true ;;
  1777. esac
  1778. fi
  1779. as_fn_append ac_configure_args " '$ac_arg'"
  1780. ;;
  1781. esac
  1782. done
  1783. done
  1784. { ac_configure_args0=; unset ac_configure_args0;}
  1785. { ac_configure_args1=; unset ac_configure_args1;}
  1786. # When interrupted or exit'd, cleanup temporary files, and complete
  1787. # config.log. We remove comments because anyway the quotes in there
  1788. # would cause problems or look ugly.
  1789. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1790. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1791. trap 'exit_status=$?
  1792. # Save into config.log some information that might help in debugging.
  1793. {
  1794. echo
  1795. $as_echo "## ---------------- ##
  1796. ## Cache variables. ##
  1797. ## ---------------- ##"
  1798. echo
  1799. # The following way of writing the cache mishandles newlines in values,
  1800. (
  1801. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1802. eval ac_val=\$$ac_var
  1803. case $ac_val in #(
  1804. *${as_nl}*)
  1805. case $ac_var in #(
  1806. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1807. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1808. esac
  1809. case $ac_var in #(
  1810. _ | IFS | as_nl) ;; #(
  1811. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1812. *) { eval $ac_var=; unset $ac_var;} ;;
  1813. esac ;;
  1814. esac
  1815. done
  1816. (set) 2>&1 |
  1817. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1818. *${as_nl}ac_space=\ *)
  1819. sed -n \
  1820. "s/'\''/'\''\\\\'\'''\''/g;
  1821. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1822. ;; #(
  1823. *)
  1824. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1825. ;;
  1826. esac |
  1827. sort
  1828. )
  1829. echo
  1830. $as_echo "## ----------------- ##
  1831. ## Output variables. ##
  1832. ## ----------------- ##"
  1833. echo
  1834. for ac_var in $ac_subst_vars
  1835. do
  1836. eval ac_val=\$$ac_var
  1837. case $ac_val in
  1838. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1839. esac
  1840. $as_echo "$ac_var='\''$ac_val'\''"
  1841. done | sort
  1842. echo
  1843. if test -n "$ac_subst_files"; then
  1844. $as_echo "## ------------------- ##
  1845. ## File substitutions. ##
  1846. ## ------------------- ##"
  1847. echo
  1848. for ac_var in $ac_subst_files
  1849. do
  1850. eval ac_val=\$$ac_var
  1851. case $ac_val in
  1852. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1853. esac
  1854. $as_echo "$ac_var='\''$ac_val'\''"
  1855. done | sort
  1856. echo
  1857. fi
  1858. if test -s confdefs.h; then
  1859. $as_echo "## ----------- ##
  1860. ## confdefs.h. ##
  1861. ## ----------- ##"
  1862. echo
  1863. cat confdefs.h
  1864. echo
  1865. fi
  1866. test "$ac_signal" != 0 &&
  1867. $as_echo "$as_me: caught signal $ac_signal"
  1868. $as_echo "$as_me: exit $exit_status"
  1869. } >&5
  1870. rm -f core *.core core.conftest.* &&
  1871. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1872. exit $exit_status
  1873. ' 0
  1874. for ac_signal in 1 2 13 15; do
  1875. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1876. done
  1877. ac_signal=0
  1878. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1879. rm -f -r conftest* confdefs.h
  1880. $as_echo "/* confdefs.h */" > confdefs.h
  1881. # Predefined preprocessor variables.
  1882. cat >>confdefs.h <<_ACEOF
  1883. #define PACKAGE_NAME "$PACKAGE_NAME"
  1884. _ACEOF
  1885. cat >>confdefs.h <<_ACEOF
  1886. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1887. _ACEOF
  1888. cat >>confdefs.h <<_ACEOF
  1889. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1890. _ACEOF
  1891. cat >>confdefs.h <<_ACEOF
  1892. #define PACKAGE_STRING "$PACKAGE_STRING"
  1893. _ACEOF
  1894. cat >>confdefs.h <<_ACEOF
  1895. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1896. _ACEOF
  1897. cat >>confdefs.h <<_ACEOF
  1898. #define PACKAGE_URL "$PACKAGE_URL"
  1899. _ACEOF
  1900. # Let the site file select an alternate cache file if it wants to.
  1901. # Prefer an explicitly selected file to automatically selected ones.
  1902. ac_site_file1=NONE
  1903. ac_site_file2=NONE
  1904. if test -n "$CONFIG_SITE"; then
  1905. # We do not want a PATH search for config.site.
  1906. case $CONFIG_SITE in #((
  1907. -*) ac_site_file1=./$CONFIG_SITE;;
  1908. */*) ac_site_file1=$CONFIG_SITE;;
  1909. *) ac_site_file1=./$CONFIG_SITE;;
  1910. esac
  1911. elif test "x$prefix" != xNONE; then
  1912. ac_site_file1=$prefix/share/config.site
  1913. ac_site_file2=$prefix/etc/config.site
  1914. else
  1915. ac_site_file1=$ac_default_prefix/share/config.site
  1916. ac_site_file2=$ac_default_prefix/etc/config.site
  1917. fi
  1918. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1919. do
  1920. test "x$ac_site_file" = xNONE && continue
  1921. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1922. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1923. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1924. sed 's/^/| /' "$ac_site_file" >&5
  1925. . "$ac_site_file" \
  1926. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1927. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1928. as_fn_error $? "failed to load site script $ac_site_file
  1929. See \`config.log' for more details" "$LINENO" 5; }
  1930. fi
  1931. done
  1932. if test -r "$cache_file"; then
  1933. # Some versions of bash will fail to source /dev/null (special files
  1934. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1935. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1937. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1938. case $cache_file in
  1939. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1940. *) . "./$cache_file";;
  1941. esac
  1942. fi
  1943. else
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1945. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1946. >$cache_file
  1947. fi
  1948. as_fn_append ac_header_list " stdlib.h"
  1949. as_fn_append ac_header_list " unistd.h"
  1950. as_fn_append ac_header_list " sys/param.h"
  1951. # Check that the precious variables saved in the cache have kept the same
  1952. # value.
  1953. ac_cache_corrupted=false
  1954. for ac_var in $ac_precious_vars; do
  1955. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1956. eval ac_new_set=\$ac_env_${ac_var}_set
  1957. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1958. eval ac_new_val=\$ac_env_${ac_var}_value
  1959. case $ac_old_set,$ac_new_set in
  1960. set,)
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1962. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1963. ac_cache_corrupted=: ;;
  1964. ,set)
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1966. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1967. ac_cache_corrupted=: ;;
  1968. ,);;
  1969. *)
  1970. if test "x$ac_old_val" != "x$ac_new_val"; then
  1971. # differences in whitespace do not lead to failure.
  1972. ac_old_val_w=`echo x $ac_old_val`
  1973. ac_new_val_w=`echo x $ac_new_val`
  1974. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1976. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1977. ac_cache_corrupted=:
  1978. else
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1980. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1981. eval $ac_var=\$ac_old_val
  1982. fi
  1983. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1984. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1986. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1987. fi;;
  1988. esac
  1989. # Pass precious variables to config.status.
  1990. if test "$ac_new_set" = set; then
  1991. case $ac_new_val in
  1992. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1993. *) ac_arg=$ac_var=$ac_new_val ;;
  1994. esac
  1995. case " $ac_configure_args " in
  1996. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1997. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1998. esac
  1999. fi
  2000. done
  2001. if $ac_cache_corrupted; then
  2002. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2003. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2004. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2005. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2006. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2007. fi
  2008. ## -------------------- ##
  2009. ## Main body of script. ##
  2010. ## -------------------- ##
  2011. ac_ext=c
  2012. ac_cpp='$CPP $CPPFLAGS'
  2013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2016. ac_config_headers="$ac_config_headers config/config.h"
  2017. if test "x$prefix" = xNONE; then
  2018. $as_echo_n "checking for prefix by " >&6
  2019. # Extract the first word of "nasm", so it can be a program name with args.
  2020. set dummy nasm; ac_word=$2
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2022. $as_echo_n "checking for $ac_word... " >&6; }
  2023. if ${ac_cv_path_ac_prefix_program+:} false; then :
  2024. $as_echo_n "(cached) " >&6
  2025. else
  2026. case $ac_prefix_program in
  2027. [\\/]* | ?:[\\/]*)
  2028. ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
  2029. ;;
  2030. *)
  2031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2032. for as_dir in $PATH
  2033. do
  2034. IFS=$as_save_IFS
  2035. test -z "$as_dir" && as_dir=.
  2036. for ac_exec_ext in '' $ac_executable_extensions; do
  2037. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2038. ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
  2039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2040. break 2
  2041. fi
  2042. done
  2043. done
  2044. IFS=$as_save_IFS
  2045. ;;
  2046. esac
  2047. fi
  2048. ac_prefix_program=$ac_cv_path_ac_prefix_program
  2049. if test -n "$ac_prefix_program"; then
  2050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prefix_program" >&5
  2051. $as_echo "$ac_prefix_program" >&6; }
  2052. else
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2054. $as_echo "no" >&6; }
  2055. fi
  2056. if test -n "$ac_prefix_program"; then
  2057. prefix=`$as_dirname -- "$ac_prefix_program" ||
  2058. $as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2059. X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
  2060. X"$ac_prefix_program" : 'X\(//\)$' \| \
  2061. X"$ac_prefix_program" : 'X\(/\)' \| . 2>/dev/null ||
  2062. $as_echo X"$ac_prefix_program" |
  2063. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2064. s//\1/
  2065. q
  2066. }
  2067. /^X\(\/\/\)[^/].*/{
  2068. s//\1/
  2069. q
  2070. }
  2071. /^X\(\/\/\)$/{
  2072. s//\1/
  2073. q
  2074. }
  2075. /^X\(\/\).*/{
  2076. s//\1/
  2077. q
  2078. }
  2079. s/.*/./; q'`
  2080. prefix=`$as_dirname -- "$prefix" ||
  2081. $as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  2082. X"$prefix" : 'X\(//\)[^/]' \| \
  2083. X"$prefix" : 'X\(//\)$' \| \
  2084. X"$prefix" : 'X\(/\)' \| . 2>/dev/null ||
  2085. $as_echo X"$prefix" |
  2086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  2087. s//\1/
  2088. q
  2089. }
  2090. /^X\(\/\/\)[^/].*/{
  2091. s//\1/
  2092. q
  2093. }
  2094. /^X\(\/\/\)$/{
  2095. s//\1/
  2096. q
  2097. }
  2098. /^X\(\/\).*/{
  2099. s//\1/
  2100. q
  2101. }
  2102. s/.*/./; q'`
  2103. fi
  2104. fi
  2105. pa_init_cflags="$CFLAGS"
  2106. WINELOADER=/dev/null
  2107. export WINELOADER
  2108. ac_ext=c
  2109. ac_cpp='$CPP $CPPFLAGS'
  2110. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2111. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2112. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2113. if test -n "$ac_tool_prefix"; then
  2114. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2115. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2117. $as_echo_n "checking for $ac_word... " >&6; }
  2118. if ${ac_cv_prog_CC+:} false; then :
  2119. $as_echo_n "(cached) " >&6
  2120. else
  2121. if test -n "$CC"; then
  2122. ac_cv_prog_CC="$CC" # Let the user override the test.
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. for ac_exec_ext in '' $ac_executable_extensions; do
  2130. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2131. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2132. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2133. break 2
  2134. fi
  2135. done
  2136. done
  2137. IFS=$as_save_IFS
  2138. fi
  2139. fi
  2140. CC=$ac_cv_prog_CC
  2141. if test -n "$CC"; then
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2143. $as_echo "$CC" >&6; }
  2144. else
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2146. $as_echo "no" >&6; }
  2147. fi
  2148. fi
  2149. if test -z "$ac_cv_prog_CC"; then
  2150. ac_ct_CC=$CC
  2151. # Extract the first word of "gcc", so it can be a program name with args.
  2152. set dummy gcc; ac_word=$2
  2153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2154. $as_echo_n "checking for $ac_word... " >&6; }
  2155. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2156. $as_echo_n "(cached) " >&6
  2157. else
  2158. if test -n "$ac_ct_CC"; then
  2159. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2160. else
  2161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2162. for as_dir in $PATH
  2163. do
  2164. IFS=$as_save_IFS
  2165. test -z "$as_dir" && as_dir=.
  2166. for ac_exec_ext in '' $ac_executable_extensions; do
  2167. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2168. ac_cv_prog_ac_ct_CC="gcc"
  2169. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2170. break 2
  2171. fi
  2172. done
  2173. done
  2174. IFS=$as_save_IFS
  2175. fi
  2176. fi
  2177. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2178. if test -n "$ac_ct_CC"; then
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2180. $as_echo "$ac_ct_CC" >&6; }
  2181. else
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2183. $as_echo "no" >&6; }
  2184. fi
  2185. if test "x$ac_ct_CC" = x; then
  2186. CC=""
  2187. else
  2188. case $cross_compiling:$ac_tool_warned in
  2189. yes:)
  2190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2191. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2192. ac_tool_warned=yes ;;
  2193. esac
  2194. CC=$ac_ct_CC
  2195. fi
  2196. else
  2197. CC="$ac_cv_prog_CC"
  2198. fi
  2199. if test -z "$CC"; then
  2200. if test -n "$ac_tool_prefix"; then
  2201. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2202. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2204. $as_echo_n "checking for $ac_word... " >&6; }
  2205. if ${ac_cv_prog_CC+:} false; then :
  2206. $as_echo_n "(cached) " >&6
  2207. else
  2208. if test -n "$CC"; then
  2209. ac_cv_prog_CC="$CC" # Let the user override the test.
  2210. else
  2211. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2212. for as_dir in $PATH
  2213. do
  2214. IFS=$as_save_IFS
  2215. test -z "$as_dir" && as_dir=.
  2216. for ac_exec_ext in '' $ac_executable_extensions; do
  2217. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2218. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2219. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2220. break 2
  2221. fi
  2222. done
  2223. done
  2224. IFS=$as_save_IFS
  2225. fi
  2226. fi
  2227. CC=$ac_cv_prog_CC
  2228. if test -n "$CC"; then
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2230. $as_echo "$CC" >&6; }
  2231. else
  2232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2233. $as_echo "no" >&6; }
  2234. fi
  2235. fi
  2236. fi
  2237. if test -z "$CC"; then
  2238. # Extract the first word of "cc", so it can be a program name with args.
  2239. set dummy cc; ac_word=$2
  2240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2241. $as_echo_n "checking for $ac_word... " >&6; }
  2242. if ${ac_cv_prog_CC+:} false; then :
  2243. $as_echo_n "(cached) " >&6
  2244. else
  2245. if test -n "$CC"; then
  2246. ac_cv_prog_CC="$CC" # Let the user override the test.
  2247. else
  2248. ac_prog_rejected=no
  2249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2250. for as_dir in $PATH
  2251. do
  2252. IFS=$as_save_IFS
  2253. test -z "$as_dir" && as_dir=.
  2254. for ac_exec_ext in '' $ac_executable_extensions; do
  2255. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2256. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2257. ac_prog_rejected=yes
  2258. continue
  2259. fi
  2260. ac_cv_prog_CC="cc"
  2261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2262. break 2
  2263. fi
  2264. done
  2265. done
  2266. IFS=$as_save_IFS
  2267. if test $ac_prog_rejected = yes; then
  2268. # We found a bogon in the path, so make sure we never use it.
  2269. set dummy $ac_cv_prog_CC
  2270. shift
  2271. if test $# != 0; then
  2272. # We chose a different compiler from the bogus one.
  2273. # However, it has the same basename, so the bogon will be chosen
  2274. # first if we set CC to just the basename; use the full file name.
  2275. shift
  2276. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2277. fi
  2278. fi
  2279. fi
  2280. fi
  2281. CC=$ac_cv_prog_CC
  2282. if test -n "$CC"; then
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2284. $as_echo "$CC" >&6; }
  2285. else
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2287. $as_echo "no" >&6; }
  2288. fi
  2289. fi
  2290. if test -z "$CC"; then
  2291. if test -n "$ac_tool_prefix"; then
  2292. for ac_prog in cl.exe
  2293. do
  2294. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2295. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2297. $as_echo_n "checking for $ac_word... " >&6; }
  2298. if ${ac_cv_prog_CC+:} false; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. if test -n "$CC"; then
  2302. ac_cv_prog_CC="$CC" # Let the user override the test.
  2303. else
  2304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2305. for as_dir in $PATH
  2306. do
  2307. IFS=$as_save_IFS
  2308. test -z "$as_dir" && as_dir=.
  2309. for ac_exec_ext in '' $ac_executable_extensions; do
  2310. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2311. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2313. break 2
  2314. fi
  2315. done
  2316. done
  2317. IFS=$as_save_IFS
  2318. fi
  2319. fi
  2320. CC=$ac_cv_prog_CC
  2321. if test -n "$CC"; then
  2322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2323. $as_echo "$CC" >&6; }
  2324. else
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2326. $as_echo "no" >&6; }
  2327. fi
  2328. test -n "$CC" && break
  2329. done
  2330. fi
  2331. if test -z "$CC"; then
  2332. ac_ct_CC=$CC
  2333. for ac_prog in cl.exe
  2334. do
  2335. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2336. set dummy $ac_prog; ac_word=$2
  2337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2338. $as_echo_n "checking for $ac_word... " >&6; }
  2339. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2340. $as_echo_n "(cached) " >&6
  2341. else
  2342. if test -n "$ac_ct_CC"; then
  2343. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2344. else
  2345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2346. for as_dir in $PATH
  2347. do
  2348. IFS=$as_save_IFS
  2349. test -z "$as_dir" && as_dir=.
  2350. for ac_exec_ext in '' $ac_executable_extensions; do
  2351. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2352. ac_cv_prog_ac_ct_CC="$ac_prog"
  2353. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2354. break 2
  2355. fi
  2356. done
  2357. done
  2358. IFS=$as_save_IFS
  2359. fi
  2360. fi
  2361. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2362. if test -n "$ac_ct_CC"; then
  2363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2364. $as_echo "$ac_ct_CC" >&6; }
  2365. else
  2366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2367. $as_echo "no" >&6; }
  2368. fi
  2369. test -n "$ac_ct_CC" && break
  2370. done
  2371. if test "x$ac_ct_CC" = x; then
  2372. CC=""
  2373. else
  2374. case $cross_compiling:$ac_tool_warned in
  2375. yes:)
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2377. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2378. ac_tool_warned=yes ;;
  2379. esac
  2380. CC=$ac_ct_CC
  2381. fi
  2382. fi
  2383. fi
  2384. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2385. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2386. as_fn_error $? "no acceptable C compiler found in \$PATH
  2387. See \`config.log' for more details" "$LINENO" 5; }
  2388. # Provide some information about the compiler.
  2389. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2390. set X $ac_compile
  2391. ac_compiler=$2
  2392. for ac_option in --version -v -V -qversion; do
  2393. { { ac_try="$ac_compiler $ac_option >&5"
  2394. case "(($ac_try" in
  2395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2396. *) ac_try_echo=$ac_try;;
  2397. esac
  2398. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2399. $as_echo "$ac_try_echo"; } >&5
  2400. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2401. ac_status=$?
  2402. if test -s conftest.err; then
  2403. sed '10a\
  2404. ... rest of stderr output deleted ...
  2405. 10q' conftest.err >conftest.er1
  2406. cat conftest.er1 >&5
  2407. fi
  2408. rm -f conftest.er1 conftest.err
  2409. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2410. test $ac_status = 0; }
  2411. done
  2412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2413. /* end confdefs.h. */
  2414. int
  2415. main ()
  2416. {
  2417. ;
  2418. return 0;
  2419. }
  2420. _ACEOF
  2421. ac_clean_files_save=$ac_clean_files
  2422. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2423. # Try to create an executable without -o first, disregard a.out.
  2424. # It will help us diagnose broken compilers, and finding out an intuition
  2425. # of exeext.
  2426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2427. $as_echo_n "checking whether the C compiler works... " >&6; }
  2428. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2429. # The possible output files:
  2430. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2431. ac_rmfiles=
  2432. for ac_file in $ac_files
  2433. do
  2434. case $ac_file in
  2435. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2436. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2437. esac
  2438. done
  2439. rm -f $ac_rmfiles
  2440. if { { ac_try="$ac_link_default"
  2441. case "(($ac_try" in
  2442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2443. *) ac_try_echo=$ac_try;;
  2444. esac
  2445. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2446. $as_echo "$ac_try_echo"; } >&5
  2447. (eval "$ac_link_default") 2>&5
  2448. ac_status=$?
  2449. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2450. test $ac_status = 0; }; then :
  2451. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2452. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2453. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2454. # so that the user can short-circuit this test for compilers unknown to
  2455. # Autoconf.
  2456. for ac_file in $ac_files ''
  2457. do
  2458. test -f "$ac_file" || continue
  2459. case $ac_file in
  2460. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2461. ;;
  2462. [ab].out )
  2463. # We found the default executable, but exeext='' is most
  2464. # certainly right.
  2465. break;;
  2466. *.* )
  2467. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2468. then :; else
  2469. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2470. fi
  2471. # We set ac_cv_exeext here because the later test for it is not
  2472. # safe: cross compilers may not add the suffix if given an `-o'
  2473. # argument, so we may need to know it at that point already.
  2474. # Even if this section looks crufty: it has the advantage of
  2475. # actually working.
  2476. break;;
  2477. * )
  2478. break;;
  2479. esac
  2480. done
  2481. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2482. else
  2483. ac_file=''
  2484. fi
  2485. if test -z "$ac_file"; then :
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2487. $as_echo "no" >&6; }
  2488. $as_echo "$as_me: failed program was:" >&5
  2489. sed 's/^/| /' conftest.$ac_ext >&5
  2490. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2491. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2492. as_fn_error 77 "C compiler cannot create executables
  2493. See \`config.log' for more details" "$LINENO" 5; }
  2494. else
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2496. $as_echo "yes" >&6; }
  2497. fi
  2498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2499. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2501. $as_echo "$ac_file" >&6; }
  2502. ac_exeext=$ac_cv_exeext
  2503. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2504. ac_clean_files=$ac_clean_files_save
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2506. $as_echo_n "checking for suffix of executables... " >&6; }
  2507. if { { ac_try="$ac_link"
  2508. case "(($ac_try" in
  2509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2510. *) ac_try_echo=$ac_try;;
  2511. esac
  2512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2513. $as_echo "$ac_try_echo"; } >&5
  2514. (eval "$ac_link") 2>&5
  2515. ac_status=$?
  2516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2517. test $ac_status = 0; }; then :
  2518. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2519. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2520. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2521. # `rm'.
  2522. for ac_file in conftest.exe conftest conftest.*; do
  2523. test -f "$ac_file" || continue
  2524. case $ac_file in
  2525. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2526. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2527. break;;
  2528. * ) break;;
  2529. esac
  2530. done
  2531. else
  2532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2534. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2535. See \`config.log' for more details" "$LINENO" 5; }
  2536. fi
  2537. rm -f conftest conftest$ac_cv_exeext
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2539. $as_echo "$ac_cv_exeext" >&6; }
  2540. rm -f conftest.$ac_ext
  2541. EXEEXT=$ac_cv_exeext
  2542. ac_exeext=$EXEEXT
  2543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2544. /* end confdefs.h. */
  2545. #include <stdio.h>
  2546. int
  2547. main ()
  2548. {
  2549. FILE *f = fopen ("conftest.out", "w");
  2550. return ferror (f) || fclose (f) != 0;
  2551. ;
  2552. return 0;
  2553. }
  2554. _ACEOF
  2555. ac_clean_files="$ac_clean_files conftest.out"
  2556. # Check that the compiler produces executables we can run. If not, either
  2557. # the compiler is broken, or we cross compile.
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2559. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2560. if test "$cross_compiling" != yes; then
  2561. { { ac_try="$ac_link"
  2562. case "(($ac_try" in
  2563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2564. *) ac_try_echo=$ac_try;;
  2565. esac
  2566. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2567. $as_echo "$ac_try_echo"; } >&5
  2568. (eval "$ac_link") 2>&5
  2569. ac_status=$?
  2570. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2571. test $ac_status = 0; }
  2572. if { ac_try='./conftest$ac_cv_exeext'
  2573. { { case "(($ac_try" in
  2574. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2575. *) ac_try_echo=$ac_try;;
  2576. esac
  2577. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2578. $as_echo "$ac_try_echo"; } >&5
  2579. (eval "$ac_try") 2>&5
  2580. ac_status=$?
  2581. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2582. test $ac_status = 0; }; }; then
  2583. cross_compiling=no
  2584. else
  2585. if test "$cross_compiling" = maybe; then
  2586. cross_compiling=yes
  2587. else
  2588. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2589. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2590. as_fn_error $? "cannot run C compiled programs.
  2591. If you meant to cross compile, use \`--host'.
  2592. See \`config.log' for more details" "$LINENO" 5; }
  2593. fi
  2594. fi
  2595. fi
  2596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2597. $as_echo "$cross_compiling" >&6; }
  2598. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2599. ac_clean_files=$ac_clean_files_save
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2601. $as_echo_n "checking for suffix of object files... " >&6; }
  2602. if ${ac_cv_objext+:} false; then :
  2603. $as_echo_n "(cached) " >&6
  2604. else
  2605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2606. /* end confdefs.h. */
  2607. int
  2608. main ()
  2609. {
  2610. ;
  2611. return 0;
  2612. }
  2613. _ACEOF
  2614. rm -f conftest.o conftest.obj
  2615. if { { ac_try="$ac_compile"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2621. $as_echo "$ac_try_echo"; } >&5
  2622. (eval "$ac_compile") 2>&5
  2623. ac_status=$?
  2624. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2625. test $ac_status = 0; }; then :
  2626. for ac_file in conftest.o conftest.obj conftest.*; do
  2627. test -f "$ac_file" || continue;
  2628. case $ac_file in
  2629. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2630. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2631. break;;
  2632. esac
  2633. done
  2634. else
  2635. $as_echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2638. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2639. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2640. See \`config.log' for more details" "$LINENO" 5; }
  2641. fi
  2642. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2643. fi
  2644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2645. $as_echo "$ac_cv_objext" >&6; }
  2646. OBJEXT=$ac_cv_objext
  2647. ac_objext=$OBJEXT
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2649. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2650. if ${ac_cv_c_compiler_gnu+:} false; then :
  2651. $as_echo_n "(cached) " >&6
  2652. else
  2653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2654. /* end confdefs.h. */
  2655. int
  2656. main ()
  2657. {
  2658. #ifndef __GNUC__
  2659. choke me
  2660. #endif
  2661. ;
  2662. return 0;
  2663. }
  2664. _ACEOF
  2665. if ac_fn_c_try_compile "$LINENO"; then :
  2666. ac_compiler_gnu=yes
  2667. else
  2668. ac_compiler_gnu=no
  2669. fi
  2670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2671. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2672. fi
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2674. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2675. if test $ac_compiler_gnu = yes; then
  2676. GCC=yes
  2677. else
  2678. GCC=
  2679. fi
  2680. ac_test_CFLAGS=${CFLAGS+set}
  2681. ac_save_CFLAGS=$CFLAGS
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2683. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2684. if ${ac_cv_prog_cc_g+:} false; then :
  2685. $as_echo_n "(cached) " >&6
  2686. else
  2687. ac_save_c_werror_flag=$ac_c_werror_flag
  2688. ac_c_werror_flag=yes
  2689. ac_cv_prog_cc_g=no
  2690. CFLAGS="-g"
  2691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2692. /* end confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. if ac_fn_c_try_compile "$LINENO"; then :
  2701. ac_cv_prog_cc_g=yes
  2702. else
  2703. CFLAGS=""
  2704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2705. /* end confdefs.h. */
  2706. int
  2707. main ()
  2708. {
  2709. ;
  2710. return 0;
  2711. }
  2712. _ACEOF
  2713. if ac_fn_c_try_compile "$LINENO"; then :
  2714. else
  2715. ac_c_werror_flag=$ac_save_c_werror_flag
  2716. CFLAGS="-g"
  2717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2718. /* end confdefs.h. */
  2719. int
  2720. main ()
  2721. {
  2722. ;
  2723. return 0;
  2724. }
  2725. _ACEOF
  2726. if ac_fn_c_try_compile "$LINENO"; then :
  2727. ac_cv_prog_cc_g=yes
  2728. fi
  2729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2730. fi
  2731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2732. fi
  2733. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2734. ac_c_werror_flag=$ac_save_c_werror_flag
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2737. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2738. if test "$ac_test_CFLAGS" = set; then
  2739. CFLAGS=$ac_save_CFLAGS
  2740. elif test $ac_cv_prog_cc_g = yes; then
  2741. if test "$GCC" = yes; then
  2742. CFLAGS="-g -O2"
  2743. else
  2744. CFLAGS="-g"
  2745. fi
  2746. else
  2747. if test "$GCC" = yes; then
  2748. CFLAGS="-O2"
  2749. else
  2750. CFLAGS=
  2751. fi
  2752. fi
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2754. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2755. if ${ac_cv_prog_cc_c89+:} false; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. ac_cv_prog_cc_c89=no
  2759. ac_save_CC=$CC
  2760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2761. /* end confdefs.h. */
  2762. #include <stdarg.h>
  2763. #include <stdio.h>
  2764. struct stat;
  2765. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2766. struct buf { int x; };
  2767. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2768. static char *e (p, i)
  2769. char **p;
  2770. int i;
  2771. {
  2772. return p[i];
  2773. }
  2774. static char *f (char * (*g) (char **, int), char **p, ...)
  2775. {
  2776. char *s;
  2777. va_list v;
  2778. va_start (v,p);
  2779. s = g (p, va_arg (v,int));
  2780. va_end (v);
  2781. return s;
  2782. }
  2783. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2784. function prototypes and stuff, but not '\xHH' hex character constants.
  2785. These don't provoke an error unfortunately, instead are silently treated
  2786. as 'x'. The following induces an error, until -std is added to get
  2787. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2788. array size at least. It's necessary to write '\x00'==0 to get something
  2789. that's true only with -std. */
  2790. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2791. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2792. inside strings and character constants. */
  2793. #define FOO(x) 'x'
  2794. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2795. int test (int i, double x);
  2796. struct s1 {int (*f) (int a);};
  2797. struct s2 {int (*f) (double a);};
  2798. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2799. int argc;
  2800. char **argv;
  2801. int
  2802. main ()
  2803. {
  2804. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2805. ;
  2806. return 0;
  2807. }
  2808. _ACEOF
  2809. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2810. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2811. do
  2812. CC="$ac_save_CC $ac_arg"
  2813. if ac_fn_c_try_compile "$LINENO"; then :
  2814. ac_cv_prog_cc_c89=$ac_arg
  2815. fi
  2816. rm -f core conftest.err conftest.$ac_objext
  2817. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2818. done
  2819. rm -f conftest.$ac_ext
  2820. CC=$ac_save_CC
  2821. fi
  2822. # AC_CACHE_VAL
  2823. case "x$ac_cv_prog_cc_c89" in
  2824. x)
  2825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  2826. $as_echo "none needed" >&6; } ;;
  2827. xno)
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  2829. $as_echo "unsupported" >&6; } ;;
  2830. *)
  2831. CC="$CC $ac_cv_prog_cc_c89"
  2832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  2833. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  2834. esac
  2835. if test "x$ac_cv_prog_cc_c89" != xno; then :
  2836. fi
  2837. ac_ext=c
  2838. ac_cpp='$CPP $CPPFLAGS'
  2839. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2840. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2841. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2842. ac_ext=c
  2843. ac_cpp='$CPP $CPPFLAGS'
  2844. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2845. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2846. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  2848. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  2849. # On Suns, sometimes $CPP names a directory.
  2850. if test -n "$CPP" && test -d "$CPP"; then
  2851. CPP=
  2852. fi
  2853. if test -z "$CPP"; then
  2854. if ${ac_cv_prog_CPP+:} false; then :
  2855. $as_echo_n "(cached) " >&6
  2856. else
  2857. # Double quotes because CPP needs to be expanded
  2858. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2859. do
  2860. ac_preproc_ok=false
  2861. for ac_c_preproc_warn_flag in '' yes
  2862. do
  2863. # Use a header file that comes with gcc, so configuring glibc
  2864. # with a fresh cross-compiler works.
  2865. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2866. # <limits.h> exists even on freestanding compilers.
  2867. # On the NeXT, cc -E runs the code through the compiler's parser,
  2868. # not just through cpp. "Syntax error" is here to catch this case.
  2869. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2870. /* end confdefs.h. */
  2871. #ifdef __STDC__
  2872. # include <limits.h>
  2873. #else
  2874. # include <assert.h>
  2875. #endif
  2876. Syntax error
  2877. _ACEOF
  2878. if ac_fn_c_try_cpp "$LINENO"; then :
  2879. else
  2880. # Broken: fails on valid input.
  2881. continue
  2882. fi
  2883. rm -f conftest.err conftest.i conftest.$ac_ext
  2884. # OK, works on sane cases. Now check whether nonexistent headers
  2885. # can be detected and how.
  2886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2887. /* end confdefs.h. */
  2888. #include <ac_nonexistent.h>
  2889. _ACEOF
  2890. if ac_fn_c_try_cpp "$LINENO"; then :
  2891. # Broken: success on invalid input.
  2892. continue
  2893. else
  2894. # Passes both tests.
  2895. ac_preproc_ok=:
  2896. break
  2897. fi
  2898. rm -f conftest.err conftest.i conftest.$ac_ext
  2899. done
  2900. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2901. rm -f conftest.i conftest.err conftest.$ac_ext
  2902. if $ac_preproc_ok; then :
  2903. break
  2904. fi
  2905. done
  2906. ac_cv_prog_CPP=$CPP
  2907. fi
  2908. CPP=$ac_cv_prog_CPP
  2909. else
  2910. ac_cv_prog_CPP=$CPP
  2911. fi
  2912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  2913. $as_echo "$CPP" >&6; }
  2914. ac_preproc_ok=false
  2915. for ac_c_preproc_warn_flag in '' yes
  2916. do
  2917. # Use a header file that comes with gcc, so configuring glibc
  2918. # with a fresh cross-compiler works.
  2919. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2920. # <limits.h> exists even on freestanding compilers.
  2921. # On the NeXT, cc -E runs the code through the compiler's parser,
  2922. # not just through cpp. "Syntax error" is here to catch this case.
  2923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2924. /* end confdefs.h. */
  2925. #ifdef __STDC__
  2926. # include <limits.h>
  2927. #else
  2928. # include <assert.h>
  2929. #endif
  2930. Syntax error
  2931. _ACEOF
  2932. if ac_fn_c_try_cpp "$LINENO"; then :
  2933. else
  2934. # Broken: fails on valid input.
  2935. continue
  2936. fi
  2937. rm -f conftest.err conftest.i conftest.$ac_ext
  2938. # OK, works on sane cases. Now check whether nonexistent headers
  2939. # can be detected and how.
  2940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2941. /* end confdefs.h. */
  2942. #include <ac_nonexistent.h>
  2943. _ACEOF
  2944. if ac_fn_c_try_cpp "$LINENO"; then :
  2945. # Broken: success on invalid input.
  2946. continue
  2947. else
  2948. # Passes both tests.
  2949. ac_preproc_ok=:
  2950. break
  2951. fi
  2952. rm -f conftest.err conftest.i conftest.$ac_ext
  2953. done
  2954. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2955. rm -f conftest.i conftest.err conftest.$ac_ext
  2956. if $ac_preproc_ok; then :
  2957. else
  2958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  2961. See \`config.log' for more details" "$LINENO" 5; }
  2962. fi
  2963. ac_ext=c
  2964. ac_cpp='$CPP $CPPFLAGS'
  2965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  2969. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  2970. if ${ac_cv_path_GREP+:} false; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if test -z "$GREP"; then
  2974. ac_path_GREP_found=false
  2975. # Loop through the user's path and test for each of PROGNAME-LIST
  2976. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2977. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2978. do
  2979. IFS=$as_save_IFS
  2980. test -z "$as_dir" && as_dir=.
  2981. for ac_prog in grep ggrep; do
  2982. for ac_exec_ext in '' $ac_executable_extensions; do
  2983. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2984. as_fn_executable_p "$ac_path_GREP" || continue
  2985. # Check for GNU ac_path_GREP and select it if it is found.
  2986. # Check for GNU $ac_path_GREP
  2987. case `"$ac_path_GREP" --version 2>&1` in
  2988. *GNU*)
  2989. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2990. *)
  2991. ac_count=0
  2992. $as_echo_n 0123456789 >"conftest.in"
  2993. while :
  2994. do
  2995. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2996. mv "conftest.tmp" "conftest.in"
  2997. cp "conftest.in" "conftest.nl"
  2998. $as_echo 'GREP' >> "conftest.nl"
  2999. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3000. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3001. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3002. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3003. # Best one so far, save it but keep looking for a better one
  3004. ac_cv_path_GREP="$ac_path_GREP"
  3005. ac_path_GREP_max=$ac_count
  3006. fi
  3007. # 10*(2^10) chars as input seems more than enough
  3008. test $ac_count -gt 10 && break
  3009. done
  3010. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3011. esac
  3012. $ac_path_GREP_found && break 3
  3013. done
  3014. done
  3015. done
  3016. IFS=$as_save_IFS
  3017. if test -z "$ac_cv_path_GREP"; then
  3018. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3019. fi
  3020. else
  3021. ac_cv_path_GREP=$GREP
  3022. fi
  3023. fi
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3025. $as_echo "$ac_cv_path_GREP" >&6; }
  3026. GREP="$ac_cv_path_GREP"
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3028. $as_echo_n "checking for egrep... " >&6; }
  3029. if ${ac_cv_path_EGREP+:} false; then :
  3030. $as_echo_n "(cached) " >&6
  3031. else
  3032. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3033. then ac_cv_path_EGREP="$GREP -E"
  3034. else
  3035. if test -z "$EGREP"; then
  3036. ac_path_EGREP_found=false
  3037. # Loop through the user's path and test for each of PROGNAME-LIST
  3038. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3039. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3040. do
  3041. IFS=$as_save_IFS
  3042. test -z "$as_dir" && as_dir=.
  3043. for ac_prog in egrep; do
  3044. for ac_exec_ext in '' $ac_executable_extensions; do
  3045. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3046. as_fn_executable_p "$ac_path_EGREP" || continue
  3047. # Check for GNU ac_path_EGREP and select it if it is found.
  3048. # Check for GNU $ac_path_EGREP
  3049. case `"$ac_path_EGREP" --version 2>&1` in
  3050. *GNU*)
  3051. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3052. *)
  3053. ac_count=0
  3054. $as_echo_n 0123456789 >"conftest.in"
  3055. while :
  3056. do
  3057. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3058. mv "conftest.tmp" "conftest.in"
  3059. cp "conftest.in" "conftest.nl"
  3060. $as_echo 'EGREP' >> "conftest.nl"
  3061. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3062. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3063. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3064. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3065. # Best one so far, save it but keep looking for a better one
  3066. ac_cv_path_EGREP="$ac_path_EGREP"
  3067. ac_path_EGREP_max=$ac_count
  3068. fi
  3069. # 10*(2^10) chars as input seems more than enough
  3070. test $ac_count -gt 10 && break
  3071. done
  3072. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3073. esac
  3074. $ac_path_EGREP_found && break 3
  3075. done
  3076. done
  3077. done
  3078. IFS=$as_save_IFS
  3079. if test -z "$ac_cv_path_EGREP"; then
  3080. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3081. fi
  3082. else
  3083. ac_cv_path_EGREP=$EGREP
  3084. fi
  3085. fi
  3086. fi
  3087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3088. $as_echo "$ac_cv_path_EGREP" >&6; }
  3089. EGREP="$ac_cv_path_EGREP"
  3090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3091. $as_echo_n "checking for ANSI C header files... " >&6; }
  3092. if ${ac_cv_header_stdc+:} false; then :
  3093. $as_echo_n "(cached) " >&6
  3094. else
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. #include <stdlib.h>
  3098. #include <stdarg.h>
  3099. #include <string.h>
  3100. #include <float.h>
  3101. int
  3102. main ()
  3103. {
  3104. ;
  3105. return 0;
  3106. }
  3107. _ACEOF
  3108. if ac_fn_c_try_compile "$LINENO"; then :
  3109. ac_cv_header_stdc=yes
  3110. else
  3111. ac_cv_header_stdc=no
  3112. fi
  3113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3114. if test $ac_cv_header_stdc = yes; then
  3115. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h. */
  3118. #include <string.h>
  3119. _ACEOF
  3120. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3121. $EGREP "memchr" >/dev/null 2>&1; then :
  3122. else
  3123. ac_cv_header_stdc=no
  3124. fi
  3125. rm -f conftest*
  3126. fi
  3127. if test $ac_cv_header_stdc = yes; then
  3128. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3130. /* end confdefs.h. */
  3131. #include <stdlib.h>
  3132. _ACEOF
  3133. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3134. $EGREP "free" >/dev/null 2>&1; then :
  3135. else
  3136. ac_cv_header_stdc=no
  3137. fi
  3138. rm -f conftest*
  3139. fi
  3140. if test $ac_cv_header_stdc = yes; then
  3141. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3142. if test "$cross_compiling" = yes; then :
  3143. :
  3144. else
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. #include <ctype.h>
  3148. #include <stdlib.h>
  3149. #if ((' ' & 0x0FF) == 0x020)
  3150. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3151. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3152. #else
  3153. # define ISLOWER(c) \
  3154. (('a' <= (c) && (c) <= 'i') \
  3155. || ('j' <= (c) && (c) <= 'r') \
  3156. || ('s' <= (c) && (c) <= 'z'))
  3157. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3158. #endif
  3159. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3160. int
  3161. main ()
  3162. {
  3163. int i;
  3164. for (i = 0; i < 256; i++)
  3165. if (XOR (islower (i), ISLOWER (i))
  3166. || toupper (i) != TOUPPER (i))
  3167. return 2;
  3168. return 0;
  3169. }
  3170. _ACEOF
  3171. if ac_fn_c_try_run "$LINENO"; then :
  3172. else
  3173. ac_cv_header_stdc=no
  3174. fi
  3175. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3176. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3177. fi
  3178. fi
  3179. fi
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3181. $as_echo "$ac_cv_header_stdc" >&6; }
  3182. if test $ac_cv_header_stdc = yes; then
  3183. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3184. fi
  3185. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3186. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3187. inttypes.h stdint.h unistd.h
  3188. do :
  3189. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3190. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3191. "
  3192. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3193. cat >>confdefs.h <<_ACEOF
  3194. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3195. _ACEOF
  3196. fi
  3197. done
  3198. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3199. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3200. MINIX=yes
  3201. else
  3202. MINIX=
  3203. fi
  3204. if test "$MINIX" = yes; then
  3205. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3206. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3207. $as_echo "#define _MINIX 1" >>confdefs.h
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3210. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3211. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3215. /* end confdefs.h. */
  3216. # define __EXTENSIONS__ 1
  3217. $ac_includes_default
  3218. int
  3219. main ()
  3220. {
  3221. ;
  3222. return 0;
  3223. }
  3224. _ACEOF
  3225. if ac_fn_c_try_compile "$LINENO"; then :
  3226. ac_cv_safe_to_define___extensions__=yes
  3227. else
  3228. ac_cv_safe_to_define___extensions__=no
  3229. fi
  3230. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3231. fi
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3233. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3234. test $ac_cv_safe_to_define___extensions__ = yes &&
  3235. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3236. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3237. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3238. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3239. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3240. # Check whether --enable-largefile was given.
  3241. if test "${enable_largefile+set}" = set; then :
  3242. enableval=$enable_largefile;
  3243. fi
  3244. if test "$enable_largefile" != no; then
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3246. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3247. if ${ac_cv_sys_largefile_CC+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. ac_cv_sys_largefile_CC=no
  3251. if test "$GCC" != yes; then
  3252. ac_save_CC=$CC
  3253. while :; do
  3254. # IRIX 6.2 and later do not support large files by default,
  3255. # so use the C compiler's -n32 option if that helps.
  3256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3257. /* end confdefs.h. */
  3258. #include <sys/types.h>
  3259. /* Check that off_t can represent 2**63 - 1 correctly.
  3260. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3261. since some C++ compilers masquerading as C compilers
  3262. incorrectly reject 9223372036854775807. */
  3263. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3264. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3265. && LARGE_OFF_T % 2147483647 == 1)
  3266. ? 1 : -1];
  3267. int
  3268. main ()
  3269. {
  3270. ;
  3271. return 0;
  3272. }
  3273. _ACEOF
  3274. if ac_fn_c_try_compile "$LINENO"; then :
  3275. break
  3276. fi
  3277. rm -f core conftest.err conftest.$ac_objext
  3278. CC="$CC -n32"
  3279. if ac_fn_c_try_compile "$LINENO"; then :
  3280. ac_cv_sys_largefile_CC=' -n32'; break
  3281. fi
  3282. rm -f core conftest.err conftest.$ac_objext
  3283. break
  3284. done
  3285. CC=$ac_save_CC
  3286. rm -f conftest.$ac_ext
  3287. fi
  3288. fi
  3289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3290. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3291. if test "$ac_cv_sys_largefile_CC" != no; then
  3292. CC=$CC$ac_cv_sys_largefile_CC
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3295. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3296. if ${ac_cv_sys_file_offset_bits+:} false; then :
  3297. $as_echo_n "(cached) " >&6
  3298. else
  3299. while :; do
  3300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h. */
  3302. #include <sys/types.h>
  3303. /* Check that off_t can represent 2**63 - 1 correctly.
  3304. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3305. since some C++ compilers masquerading as C compilers
  3306. incorrectly reject 9223372036854775807. */
  3307. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3308. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3309. && LARGE_OFF_T % 2147483647 == 1)
  3310. ? 1 : -1];
  3311. int
  3312. main ()
  3313. {
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. if ac_fn_c_try_compile "$LINENO"; then :
  3319. ac_cv_sys_file_offset_bits=no; break
  3320. fi
  3321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3323. /* end confdefs.h. */
  3324. #define _FILE_OFFSET_BITS 64
  3325. #include <sys/types.h>
  3326. /* Check that off_t can represent 2**63 - 1 correctly.
  3327. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3328. since some C++ compilers masquerading as C compilers
  3329. incorrectly reject 9223372036854775807. */
  3330. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3331. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3332. && LARGE_OFF_T % 2147483647 == 1)
  3333. ? 1 : -1];
  3334. int
  3335. main ()
  3336. {
  3337. ;
  3338. return 0;
  3339. }
  3340. _ACEOF
  3341. if ac_fn_c_try_compile "$LINENO"; then :
  3342. ac_cv_sys_file_offset_bits=64; break
  3343. fi
  3344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. ac_cv_sys_file_offset_bits=unknown
  3346. break
  3347. done
  3348. fi
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3350. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3351. case $ac_cv_sys_file_offset_bits in #(
  3352. no | unknown) ;;
  3353. *)
  3354. cat >>confdefs.h <<_ACEOF
  3355. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3356. _ACEOF
  3357. ;;
  3358. esac
  3359. rm -rf conftest*
  3360. if test $ac_cv_sys_file_offset_bits = unknown; then
  3361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3362. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3363. if ${ac_cv_sys_large_files+:} false; then :
  3364. $as_echo_n "(cached) " >&6
  3365. else
  3366. while :; do
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <sys/types.h>
  3370. /* Check that off_t can represent 2**63 - 1 correctly.
  3371. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3372. since some C++ compilers masquerading as C compilers
  3373. incorrectly reject 9223372036854775807. */
  3374. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3375. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3376. && LARGE_OFF_T % 2147483647 == 1)
  3377. ? 1 : -1];
  3378. int
  3379. main ()
  3380. {
  3381. ;
  3382. return 0;
  3383. }
  3384. _ACEOF
  3385. if ac_fn_c_try_compile "$LINENO"; then :
  3386. ac_cv_sys_large_files=no; break
  3387. fi
  3388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3389. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3390. /* end confdefs.h. */
  3391. #define _LARGE_FILES 1
  3392. #include <sys/types.h>
  3393. /* Check that off_t can represent 2**63 - 1 correctly.
  3394. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3395. since some C++ compilers masquerading as C compilers
  3396. incorrectly reject 9223372036854775807. */
  3397. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3398. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3399. && LARGE_OFF_T % 2147483647 == 1)
  3400. ? 1 : -1];
  3401. int
  3402. main ()
  3403. {
  3404. ;
  3405. return 0;
  3406. }
  3407. _ACEOF
  3408. if ac_fn_c_try_compile "$LINENO"; then :
  3409. ac_cv_sys_large_files=1; break
  3410. fi
  3411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3412. ac_cv_sys_large_files=unknown
  3413. break
  3414. done
  3415. fi
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  3417. $as_echo "$ac_cv_sys_large_files" >&6; }
  3418. case $ac_cv_sys_large_files in #(
  3419. no | unknown) ;;
  3420. *)
  3421. cat >>confdefs.h <<_ACEOF
  3422. #define _LARGE_FILES $ac_cv_sys_large_files
  3423. _ACEOF
  3424. ;;
  3425. esac
  3426. rm -rf conftest*
  3427. fi
  3428. fi
  3429. ac_ext=c
  3430. ac_cpp='$CPP $CPPFLAGS'
  3431. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3432. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3433. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3434. if test -n "$ac_tool_prefix"; then
  3435. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3436. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3438. $as_echo_n "checking for $ac_word... " >&6; }
  3439. if ${ac_cv_prog_CC+:} false; then :
  3440. $as_echo_n "(cached) " >&6
  3441. else
  3442. if test -n "$CC"; then
  3443. ac_cv_prog_CC="$CC" # Let the user override the test.
  3444. else
  3445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3446. for as_dir in $PATH
  3447. do
  3448. IFS=$as_save_IFS
  3449. test -z "$as_dir" && as_dir=.
  3450. for ac_exec_ext in '' $ac_executable_extensions; do
  3451. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3452. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3454. break 2
  3455. fi
  3456. done
  3457. done
  3458. IFS=$as_save_IFS
  3459. fi
  3460. fi
  3461. CC=$ac_cv_prog_CC
  3462. if test -n "$CC"; then
  3463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3464. $as_echo "$CC" >&6; }
  3465. else
  3466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3467. $as_echo "no" >&6; }
  3468. fi
  3469. fi
  3470. if test -z "$ac_cv_prog_CC"; then
  3471. ac_ct_CC=$CC
  3472. # Extract the first word of "gcc", so it can be a program name with args.
  3473. set dummy gcc; ac_word=$2
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3475. $as_echo_n "checking for $ac_word... " >&6; }
  3476. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. if test -n "$ac_ct_CC"; then
  3480. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3481. else
  3482. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3483. for as_dir in $PATH
  3484. do
  3485. IFS=$as_save_IFS
  3486. test -z "$as_dir" && as_dir=.
  3487. for ac_exec_ext in '' $ac_executable_extensions; do
  3488. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3489. ac_cv_prog_ac_ct_CC="gcc"
  3490. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3491. break 2
  3492. fi
  3493. done
  3494. done
  3495. IFS=$as_save_IFS
  3496. fi
  3497. fi
  3498. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3499. if test -n "$ac_ct_CC"; then
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3501. $as_echo "$ac_ct_CC" >&6; }
  3502. else
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3504. $as_echo "no" >&6; }
  3505. fi
  3506. if test "x$ac_ct_CC" = x; then
  3507. CC=""
  3508. else
  3509. case $cross_compiling:$ac_tool_warned in
  3510. yes:)
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3512. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3513. ac_tool_warned=yes ;;
  3514. esac
  3515. CC=$ac_ct_CC
  3516. fi
  3517. else
  3518. CC="$ac_cv_prog_CC"
  3519. fi
  3520. if test -z "$CC"; then
  3521. if test -n "$ac_tool_prefix"; then
  3522. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3523. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3525. $as_echo_n "checking for $ac_word... " >&6; }
  3526. if ${ac_cv_prog_CC+:} false; then :
  3527. $as_echo_n "(cached) " >&6
  3528. else
  3529. if test -n "$CC"; then
  3530. ac_cv_prog_CC="$CC" # Let the user override the test.
  3531. else
  3532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3533. for as_dir in $PATH
  3534. do
  3535. IFS=$as_save_IFS
  3536. test -z "$as_dir" && as_dir=.
  3537. for ac_exec_ext in '' $ac_executable_extensions; do
  3538. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3539. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3540. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3541. break 2
  3542. fi
  3543. done
  3544. done
  3545. IFS=$as_save_IFS
  3546. fi
  3547. fi
  3548. CC=$ac_cv_prog_CC
  3549. if test -n "$CC"; then
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3551. $as_echo "$CC" >&6; }
  3552. else
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3554. $as_echo "no" >&6; }
  3555. fi
  3556. fi
  3557. fi
  3558. if test -z "$CC"; then
  3559. # Extract the first word of "cc", so it can be a program name with args.
  3560. set dummy cc; ac_word=$2
  3561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3562. $as_echo_n "checking for $ac_word... " >&6; }
  3563. if ${ac_cv_prog_CC+:} false; then :
  3564. $as_echo_n "(cached) " >&6
  3565. else
  3566. if test -n "$CC"; then
  3567. ac_cv_prog_CC="$CC" # Let the user override the test.
  3568. else
  3569. ac_prog_rejected=no
  3570. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3571. for as_dir in $PATH
  3572. do
  3573. IFS=$as_save_IFS
  3574. test -z "$as_dir" && as_dir=.
  3575. for ac_exec_ext in '' $ac_executable_extensions; do
  3576. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3577. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3578. ac_prog_rejected=yes
  3579. continue
  3580. fi
  3581. ac_cv_prog_CC="cc"
  3582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3583. break 2
  3584. fi
  3585. done
  3586. done
  3587. IFS=$as_save_IFS
  3588. if test $ac_prog_rejected = yes; then
  3589. # We found a bogon in the path, so make sure we never use it.
  3590. set dummy $ac_cv_prog_CC
  3591. shift
  3592. if test $# != 0; then
  3593. # We chose a different compiler from the bogus one.
  3594. # However, it has the same basename, so the bogon will be chosen
  3595. # first if we set CC to just the basename; use the full file name.
  3596. shift
  3597. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3598. fi
  3599. fi
  3600. fi
  3601. fi
  3602. CC=$ac_cv_prog_CC
  3603. if test -n "$CC"; then
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3605. $as_echo "$CC" >&6; }
  3606. else
  3607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3608. $as_echo "no" >&6; }
  3609. fi
  3610. fi
  3611. if test -z "$CC"; then
  3612. if test -n "$ac_tool_prefix"; then
  3613. for ac_prog in cl.exe
  3614. do
  3615. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3616. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. $as_echo_n "checking for $ac_word... " >&6; }
  3619. if ${ac_cv_prog_CC+:} false; then :
  3620. $as_echo_n "(cached) " >&6
  3621. else
  3622. if test -n "$CC"; then
  3623. ac_cv_prog_CC="$CC" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3632. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634. break 2
  3635. fi
  3636. done
  3637. done
  3638. IFS=$as_save_IFS
  3639. fi
  3640. fi
  3641. CC=$ac_cv_prog_CC
  3642. if test -n "$CC"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3644. $as_echo "$CC" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. test -n "$CC" && break
  3650. done
  3651. fi
  3652. if test -z "$CC"; then
  3653. ac_ct_CC=$CC
  3654. for ac_prog in cl.exe
  3655. do
  3656. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3657. set dummy $ac_prog; ac_word=$2
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3659. $as_echo_n "checking for $ac_word... " >&6; }
  3660. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. if test -n "$ac_ct_CC"; then
  3664. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3665. else
  3666. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3667. for as_dir in $PATH
  3668. do
  3669. IFS=$as_save_IFS
  3670. test -z "$as_dir" && as_dir=.
  3671. for ac_exec_ext in '' $ac_executable_extensions; do
  3672. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3673. ac_cv_prog_ac_ct_CC="$ac_prog"
  3674. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3675. break 2
  3676. fi
  3677. done
  3678. done
  3679. IFS=$as_save_IFS
  3680. fi
  3681. fi
  3682. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3683. if test -n "$ac_ct_CC"; then
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3685. $as_echo "$ac_ct_CC" >&6; }
  3686. else
  3687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3688. $as_echo "no" >&6; }
  3689. fi
  3690. test -n "$ac_ct_CC" && break
  3691. done
  3692. if test "x$ac_ct_CC" = x; then
  3693. CC=""
  3694. else
  3695. case $cross_compiling:$ac_tool_warned in
  3696. yes:)
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3698. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3699. ac_tool_warned=yes ;;
  3700. esac
  3701. CC=$ac_ct_CC
  3702. fi
  3703. fi
  3704. fi
  3705. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3706. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3707. as_fn_error $? "no acceptable C compiler found in \$PATH
  3708. See \`config.log' for more details" "$LINENO" 5; }
  3709. # Provide some information about the compiler.
  3710. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3711. set X $ac_compile
  3712. ac_compiler=$2
  3713. for ac_option in --version -v -V -qversion; do
  3714. { { ac_try="$ac_compiler $ac_option >&5"
  3715. case "(($ac_try" in
  3716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3717. *) ac_try_echo=$ac_try;;
  3718. esac
  3719. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3720. $as_echo "$ac_try_echo"; } >&5
  3721. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3722. ac_status=$?
  3723. if test -s conftest.err; then
  3724. sed '10a\
  3725. ... rest of stderr output deleted ...
  3726. 10q' conftest.err >conftest.er1
  3727. cat conftest.er1 >&5
  3728. fi
  3729. rm -f conftest.er1 conftest.err
  3730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3731. test $ac_status = 0; }
  3732. done
  3733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3734. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3735. if ${ac_cv_c_compiler_gnu+:} false; then :
  3736. $as_echo_n "(cached) " >&6
  3737. else
  3738. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3739. /* end confdefs.h. */
  3740. int
  3741. main ()
  3742. {
  3743. #ifndef __GNUC__
  3744. choke me
  3745. #endif
  3746. ;
  3747. return 0;
  3748. }
  3749. _ACEOF
  3750. if ac_fn_c_try_compile "$LINENO"; then :
  3751. ac_compiler_gnu=yes
  3752. else
  3753. ac_compiler_gnu=no
  3754. fi
  3755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3756. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3757. fi
  3758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3759. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3760. if test $ac_compiler_gnu = yes; then
  3761. GCC=yes
  3762. else
  3763. GCC=
  3764. fi
  3765. ac_test_CFLAGS=${CFLAGS+set}
  3766. ac_save_CFLAGS=$CFLAGS
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3768. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3769. if ${ac_cv_prog_cc_g+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. ac_save_c_werror_flag=$ac_c_werror_flag
  3773. ac_c_werror_flag=yes
  3774. ac_cv_prog_cc_g=no
  3775. CFLAGS="-g"
  3776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3777. /* end confdefs.h. */
  3778. int
  3779. main ()
  3780. {
  3781. ;
  3782. return 0;
  3783. }
  3784. _ACEOF
  3785. if ac_fn_c_try_compile "$LINENO"; then :
  3786. ac_cv_prog_cc_g=yes
  3787. else
  3788. CFLAGS=""
  3789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3790. /* end confdefs.h. */
  3791. int
  3792. main ()
  3793. {
  3794. ;
  3795. return 0;
  3796. }
  3797. _ACEOF
  3798. if ac_fn_c_try_compile "$LINENO"; then :
  3799. else
  3800. ac_c_werror_flag=$ac_save_c_werror_flag
  3801. CFLAGS="-g"
  3802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3803. /* end confdefs.h. */
  3804. int
  3805. main ()
  3806. {
  3807. ;
  3808. return 0;
  3809. }
  3810. _ACEOF
  3811. if ac_fn_c_try_compile "$LINENO"; then :
  3812. ac_cv_prog_cc_g=yes
  3813. fi
  3814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3815. fi
  3816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3817. fi
  3818. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3819. ac_c_werror_flag=$ac_save_c_werror_flag
  3820. fi
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3822. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3823. if test "$ac_test_CFLAGS" = set; then
  3824. CFLAGS=$ac_save_CFLAGS
  3825. elif test $ac_cv_prog_cc_g = yes; then
  3826. if test "$GCC" = yes; then
  3827. CFLAGS="-g -O2"
  3828. else
  3829. CFLAGS="-g"
  3830. fi
  3831. else
  3832. if test "$GCC" = yes; then
  3833. CFLAGS="-O2"
  3834. else
  3835. CFLAGS=
  3836. fi
  3837. fi
  3838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3839. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3840. if ${ac_cv_prog_cc_c89+:} false; then :
  3841. $as_echo_n "(cached) " >&6
  3842. else
  3843. ac_cv_prog_cc_c89=no
  3844. ac_save_CC=$CC
  3845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3846. /* end confdefs.h. */
  3847. #include <stdarg.h>
  3848. #include <stdio.h>
  3849. struct stat;
  3850. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3851. struct buf { int x; };
  3852. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3853. static char *e (p, i)
  3854. char **p;
  3855. int i;
  3856. {
  3857. return p[i];
  3858. }
  3859. static char *f (char * (*g) (char **, int), char **p, ...)
  3860. {
  3861. char *s;
  3862. va_list v;
  3863. va_start (v,p);
  3864. s = g (p, va_arg (v,int));
  3865. va_end (v);
  3866. return s;
  3867. }
  3868. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3869. function prototypes and stuff, but not '\xHH' hex character constants.
  3870. These don't provoke an error unfortunately, instead are silently treated
  3871. as 'x'. The following induces an error, until -std is added to get
  3872. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3873. array size at least. It's necessary to write '\x00'==0 to get something
  3874. that's true only with -std. */
  3875. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3876. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3877. inside strings and character constants. */
  3878. #define FOO(x) 'x'
  3879. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3880. int test (int i, double x);
  3881. struct s1 {int (*f) (int a);};
  3882. struct s2 {int (*f) (double a);};
  3883. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3884. int argc;
  3885. char **argv;
  3886. int
  3887. main ()
  3888. {
  3889. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3890. ;
  3891. return 0;
  3892. }
  3893. _ACEOF
  3894. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3895. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3896. do
  3897. CC="$ac_save_CC $ac_arg"
  3898. if ac_fn_c_try_compile "$LINENO"; then :
  3899. ac_cv_prog_cc_c89=$ac_arg
  3900. fi
  3901. rm -f core conftest.err conftest.$ac_objext
  3902. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3903. done
  3904. rm -f conftest.$ac_ext
  3905. CC=$ac_save_CC
  3906. fi
  3907. # AC_CACHE_VAL
  3908. case "x$ac_cv_prog_cc_c89" in
  3909. x)
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3911. $as_echo "none needed" >&6; } ;;
  3912. xno)
  3913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3914. $as_echo "unsupported" >&6; } ;;
  3915. *)
  3916. CC="$CC $ac_cv_prog_cc_c89"
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3918. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3919. esac
  3920. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3921. fi
  3922. ac_ext=c
  3923. ac_cpp='$CPP $CPPFLAGS'
  3924. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3925. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3926. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3927. case $ac_cv_prog_cc_stdc in #(
  3928. no) :
  3929. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  3930. *) :
  3931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3932. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3933. if ${ac_cv_prog_cc_c99+:} false; then :
  3934. $as_echo_n "(cached) " >&6
  3935. else
  3936. ac_cv_prog_cc_c99=no
  3937. ac_save_CC=$CC
  3938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3939. /* end confdefs.h. */
  3940. #include <stdarg.h>
  3941. #include <stdbool.h>
  3942. #include <stdlib.h>
  3943. #include <wchar.h>
  3944. #include <stdio.h>
  3945. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3946. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3947. #define showlist(...) puts (#__VA_ARGS__)
  3948. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3949. static void
  3950. test_varargs_macros (void)
  3951. {
  3952. int x = 1234;
  3953. int y = 5678;
  3954. debug ("Flag");
  3955. debug ("X = %d\n", x);
  3956. showlist (The first, second, and third items.);
  3957. report (x>y, "x is %d but y is %d", x, y);
  3958. }
  3959. // Check long long types.
  3960. #define BIG64 18446744073709551615ull
  3961. #define BIG32 4294967295ul
  3962. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3963. #if !BIG_OK
  3964. your preprocessor is broken;
  3965. #endif
  3966. #if BIG_OK
  3967. #else
  3968. your preprocessor is broken;
  3969. #endif
  3970. static long long int bignum = -9223372036854775807LL;
  3971. static unsigned long long int ubignum = BIG64;
  3972. struct incomplete_array
  3973. {
  3974. int datasize;
  3975. double data[];
  3976. };
  3977. struct named_init {
  3978. int number;
  3979. const wchar_t *name;
  3980. double average;
  3981. };
  3982. typedef const char *ccp;
  3983. static inline int
  3984. test_restrict (ccp restrict text)
  3985. {
  3986. // See if C++-style comments work.
  3987. // Iterate through items via the restricted pointer.
  3988. // Also check for declarations in for loops.
  3989. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3990. continue;
  3991. return 0;
  3992. }
  3993. // Check varargs and va_copy.
  3994. static void
  3995. test_varargs (const char *format, ...)
  3996. {
  3997. va_list args;
  3998. va_start (args, format);
  3999. va_list args_copy;
  4000. va_copy (args_copy, args);
  4001. const char *str;
  4002. int number;
  4003. float fnumber;
  4004. while (*format)
  4005. {
  4006. switch (*format++)
  4007. {
  4008. case 's': // string
  4009. str = va_arg (args_copy, const char *);
  4010. break;
  4011. case 'd': // int
  4012. number = va_arg (args_copy, int);
  4013. break;
  4014. case 'f': // float
  4015. fnumber = va_arg (args_copy, double);
  4016. break;
  4017. default:
  4018. break;
  4019. }
  4020. }
  4021. va_end (args_copy);
  4022. va_end (args);
  4023. }
  4024. int
  4025. main ()
  4026. {
  4027. // Check bool.
  4028. _Bool success = false;
  4029. // Check restrict.
  4030. if (test_restrict ("String literal") == 0)
  4031. success = true;
  4032. char *restrict newvar = "Another string";
  4033. // Check varargs.
  4034. test_varargs ("s, d' f .", "string", 65, 34.234);
  4035. test_varargs_macros ();
  4036. // Check flexible array members.
  4037. struct incomplete_array *ia =
  4038. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  4039. ia->datasize = 10;
  4040. for (int i = 0; i < ia->datasize; ++i)
  4041. ia->data[i] = i * 1.234;
  4042. // Check named initializers.
  4043. struct named_init ni = {
  4044. .number = 34,
  4045. .name = L"Test wide string",
  4046. .average = 543.34343,
  4047. };
  4048. ni.number = 58;
  4049. int dynamic_array[ni.number];
  4050. dynamic_array[ni.number - 1] = 543;
  4051. // work around unused variable warnings
  4052. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  4053. || dynamic_array[ni.number - 1] != 543);
  4054. ;
  4055. return 0;
  4056. }
  4057. _ACEOF
  4058. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  4059. do
  4060. CC="$ac_save_CC $ac_arg"
  4061. if ac_fn_c_try_compile "$LINENO"; then :
  4062. ac_cv_prog_cc_c99=$ac_arg
  4063. fi
  4064. rm -f core conftest.err conftest.$ac_objext
  4065. test "x$ac_cv_prog_cc_c99" != "xno" && break
  4066. done
  4067. rm -f conftest.$ac_ext
  4068. CC=$ac_save_CC
  4069. fi
  4070. # AC_CACHE_VAL
  4071. case "x$ac_cv_prog_cc_c99" in
  4072. x)
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4074. $as_echo "none needed" >&6; } ;;
  4075. xno)
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4077. $as_echo "unsupported" >&6; } ;;
  4078. *)
  4079. CC="$CC $ac_cv_prog_cc_c99"
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  4081. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  4082. esac
  4083. if test "x$ac_cv_prog_cc_c99" != xno; then :
  4084. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  4085. else
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4087. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4088. if ${ac_cv_prog_cc_c89+:} false; then :
  4089. $as_echo_n "(cached) " >&6
  4090. else
  4091. ac_cv_prog_cc_c89=no
  4092. ac_save_CC=$CC
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. #include <stdarg.h>
  4096. #include <stdio.h>
  4097. struct stat;
  4098. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4099. struct buf { int x; };
  4100. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4101. static char *e (p, i)
  4102. char **p;
  4103. int i;
  4104. {
  4105. return p[i];
  4106. }
  4107. static char *f (char * (*g) (char **, int), char **p, ...)
  4108. {
  4109. char *s;
  4110. va_list v;
  4111. va_start (v,p);
  4112. s = g (p, va_arg (v,int));
  4113. va_end (v);
  4114. return s;
  4115. }
  4116. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4117. function prototypes and stuff, but not '\xHH' hex character constants.
  4118. These don't provoke an error unfortunately, instead are silently treated
  4119. as 'x'. The following induces an error, until -std is added to get
  4120. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4121. array size at least. It's necessary to write '\x00'==0 to get something
  4122. that's true only with -std. */
  4123. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4124. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4125. inside strings and character constants. */
  4126. #define FOO(x) 'x'
  4127. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4128. int test (int i, double x);
  4129. struct s1 {int (*f) (int a);};
  4130. struct s2 {int (*f) (double a);};
  4131. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4132. int argc;
  4133. char **argv;
  4134. int
  4135. main ()
  4136. {
  4137. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4138. ;
  4139. return 0;
  4140. }
  4141. _ACEOF
  4142. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4143. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4144. do
  4145. CC="$ac_save_CC $ac_arg"
  4146. if ac_fn_c_try_compile "$LINENO"; then :
  4147. ac_cv_prog_cc_c89=$ac_arg
  4148. fi
  4149. rm -f core conftest.err conftest.$ac_objext
  4150. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4151. done
  4152. rm -f conftest.$ac_ext
  4153. CC=$ac_save_CC
  4154. fi
  4155. # AC_CACHE_VAL
  4156. case "x$ac_cv_prog_cc_c89" in
  4157. x)
  4158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4159. $as_echo "none needed" >&6; } ;;
  4160. xno)
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4162. $as_echo "unsupported" >&6; } ;;
  4163. *)
  4164. CC="$CC $ac_cv_prog_cc_c89"
  4165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4166. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4167. esac
  4168. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4169. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4170. else
  4171. ac_cv_prog_cc_stdc=no
  4172. fi
  4173. fi
  4174. ;;
  4175. esac
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  4177. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4178. if ${ac_cv_prog_cc_stdc+:} false; then :
  4179. $as_echo_n "(cached) " >&6
  4180. fi
  4181. case $ac_cv_prog_cc_stdc in #(
  4182. no) :
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4184. $as_echo "unsupported" >&6; } ;; #(
  4185. '') :
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4187. $as_echo "none needed" >&6; } ;; #(
  4188. *) :
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  4190. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4191. esac
  4192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4193. $as_echo_n "checking whether ln -s works... " >&6; }
  4194. LN_S=$as_ln_s
  4195. if test "$LN_S" = "ln -s"; then
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4197. $as_echo "yes" >&6; }
  4198. else
  4199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4200. $as_echo "no, using $LN_S" >&6; }
  4201. fi
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4203. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4204. set x ${MAKE-make}
  4205. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4206. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. cat >conftest.make <<\_ACEOF
  4210. SHELL = /bin/sh
  4211. all:
  4212. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4213. _ACEOF
  4214. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4215. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4216. *@@@%%%=?*=@@@%%%*)
  4217. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4218. *)
  4219. eval ac_cv_prog_make_${ac_make}_set=no;;
  4220. esac
  4221. rm -f conftest.make
  4222. fi
  4223. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4225. $as_echo "yes" >&6; }
  4226. SET_MAKE=
  4227. else
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4229. $as_echo "no" >&6; }
  4230. SET_MAKE="MAKE=${MAKE-make}"
  4231. fi
  4232. ac_aux_dir=
  4233. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4234. if test -f "$ac_dir/install-sh"; then
  4235. ac_aux_dir=$ac_dir
  4236. ac_install_sh="$ac_aux_dir/install-sh -c"
  4237. break
  4238. elif test -f "$ac_dir/install.sh"; then
  4239. ac_aux_dir=$ac_dir
  4240. ac_install_sh="$ac_aux_dir/install.sh -c"
  4241. break
  4242. elif test -f "$ac_dir/shtool"; then
  4243. ac_aux_dir=$ac_dir
  4244. ac_install_sh="$ac_aux_dir/shtool install -c"
  4245. break
  4246. fi
  4247. done
  4248. if test -z "$ac_aux_dir"; then
  4249. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4250. fi
  4251. # These three variables are undocumented and unsupported,
  4252. # and are intended to be withdrawn in a future Autoconf release.
  4253. # They can cause serious problems if a builder's source tree is in a directory
  4254. # whose full name contains unusual characters.
  4255. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4256. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4257. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4258. # Find a good install program. We prefer a C program (faster),
  4259. # so one script is as good as another. But avoid the broken or
  4260. # incompatible versions:
  4261. # SysV /etc/install, /usr/sbin/install
  4262. # SunOS /usr/etc/install
  4263. # IRIX /sbin/install
  4264. # AIX /bin/install
  4265. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4266. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4267. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4268. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4269. # OS/2's system install, which has a completely different semantic
  4270. # ./install, which can be erroneously created by make from ./install.sh.
  4271. # Reject install programs that cannot install multiple files.
  4272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  4273. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4274. if test -z "$INSTALL"; then
  4275. if ${ac_cv_path_install+:} false; then :
  4276. $as_echo_n "(cached) " >&6
  4277. else
  4278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4279. for as_dir in $PATH
  4280. do
  4281. IFS=$as_save_IFS
  4282. test -z "$as_dir" && as_dir=.
  4283. # Account for people who put trailing slashes in PATH elements.
  4284. case $as_dir/ in #((
  4285. ./ | .// | /[cC]/* | \
  4286. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4287. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  4288. /usr/ucb/* ) ;;
  4289. *)
  4290. # OSF1 and SCO ODT 3.0 have their own names for install.
  4291. # Don't use installbsd from OSF since it installs stuff as root
  4292. # by default.
  4293. for ac_prog in ginstall scoinst install; do
  4294. for ac_exec_ext in '' $ac_executable_extensions; do
  4295. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4296. if test $ac_prog = install &&
  4297. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4298. # AIX install. It has an incompatible calling convention.
  4299. :
  4300. elif test $ac_prog = install &&
  4301. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4302. # program-specific install script used by HP pwplus--don't use.
  4303. :
  4304. else
  4305. rm -rf conftest.one conftest.two conftest.dir
  4306. echo one > conftest.one
  4307. echo two > conftest.two
  4308. mkdir conftest.dir
  4309. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4310. test -s conftest.one && test -s conftest.two &&
  4311. test -s conftest.dir/conftest.one &&
  4312. test -s conftest.dir/conftest.two
  4313. then
  4314. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4315. break 3
  4316. fi
  4317. fi
  4318. fi
  4319. done
  4320. done
  4321. ;;
  4322. esac
  4323. done
  4324. IFS=$as_save_IFS
  4325. rm -rf conftest.one conftest.two conftest.dir
  4326. fi
  4327. if test "${ac_cv_path_install+set}" = set; then
  4328. INSTALL=$ac_cv_path_install
  4329. else
  4330. # As a last resort, use the slow shell script. Don't cache a
  4331. # value for INSTALL within a source directory, because that will
  4332. # break other packages using the cache if that directory is
  4333. # removed, or if the value is a relative name.
  4334. INSTALL=$ac_install_sh
  4335. fi
  4336. fi
  4337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  4338. $as_echo "$INSTALL" >&6; }
  4339. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4340. # It thinks the first close brace ends the variable substitution.
  4341. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4342. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4343. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4344. # Check whether --enable-optimization was given.
  4345. if test "${enable_optimization+set}" = set; then :
  4346. enableval=$enable_optimization;
  4347. else
  4348. enableval=yes
  4349. fi
  4350. if test x"$enableval" = xno; then :
  4351. pa_optimize=-O0
  4352. else
  4353. pa_optimize=-O3
  4354. fi
  4355. # Check whether --enable-gdb was given.
  4356. if test "${enable_gdb+set}" = set; then :
  4357. enableval=$enable_gdb;
  4358. else
  4359. enableval=no
  4360. fi
  4361. if test x"$enableval" != xno; then :
  4362. pa_optimize='-O0'
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ggdb3" >&5
  4364. $as_echo_n "checking if $CC accepts -ggdb3... " >&6; }
  4365. pa_add_cflags__old_cflags="$CFLAGS"
  4366. CFLAGS="$CFLAGS -ggdb3"
  4367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4368. /* end confdefs.h. */
  4369. $ac_includes_default
  4370. int
  4371. main ()
  4372. {
  4373. printf("Hello, World!\n");
  4374. ;
  4375. return 0;
  4376. }
  4377. _ACEOF
  4378. if ac_fn_c_try_link "$LINENO"; then :
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4380. $as_echo "yes" >&6; }
  4381. CFLAGS="$pa_add_cflags__old_cflags -ggdb3"
  4382. $as_echo "#define CFLAG_GGDB3 1" >>confdefs.h
  4383. else
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4385. $as_echo "no" >&6; }
  4386. CFLAGS="$pa_add_cflags__old_cflags"
  4387. fi
  4388. rm -f core conftest.err conftest.$ac_objext \
  4389. conftest$ac_exeext conftest.$ac_ext
  4390. fi
  4391. if test x"$pa_init_cflags" = x; then :
  4392. CFLAGS=`echo "$CFLAGS" | sed -e "s/-O2/$pa_optimize/"`
  4393. fi
  4394. if test x"$pa_optimize" = "x-O0"; then :
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
  4396. $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
  4397. pa_add_cflags__old_cflags="$CFLAGS"
  4398. CFLAGS="$CFLAGS -fno-omit-frame-pointer"
  4399. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4400. /* end confdefs.h. */
  4401. $ac_includes_default
  4402. int
  4403. main ()
  4404. {
  4405. printf("Hello, World!\n");
  4406. ;
  4407. return 0;
  4408. }
  4409. _ACEOF
  4410. if ac_fn_c_try_link "$LINENO"; then :
  4411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4412. $as_echo "yes" >&6; }
  4413. CFLAGS="$pa_add_cflags__old_cflags -fno-omit-frame-pointer"
  4414. $as_echo "#define CFLAG_FNO_OMIT_FRAME_POINTER 1" >>confdefs.h
  4415. else
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4417. $as_echo "no" >&6; }
  4418. CFLAGS="$pa_add_cflags__old_cflags"
  4419. fi
  4420. rm -f core conftest.err conftest.$ac_objext \
  4421. conftest$ac_exeext conftest.$ac_ext
  4422. fi
  4423. # Check whether --enable-panic-abort was given.
  4424. if test "${enable_panic_abort+set}" = set; then :
  4425. enableval=$enable_panic_abort;
  4426. else
  4427. enableval=no
  4428. fi
  4429. if test x"$enableval" != xno; then :
  4430. $as_echo "#define ABORT_ON_PANIC 1" >>confdefs.h
  4431. fi
  4432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of library files" >&5
  4433. $as_echo_n "checking for suffix of library files... " >&6; }
  4434. if test x"$LIBEXT" = x; then
  4435. case "$OBJEXT" in
  4436. obj )
  4437. LIBEXT=lib
  4438. ;;
  4439. *)
  4440. LIBEXT=a
  4441. ;;
  4442. esac
  4443. fi
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXT" >&5
  4445. $as_echo "$LIBEXT" >&6; }
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  4447. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  4448. if ${ac_cv_c_const+:} false; then :
  4449. $as_echo_n "(cached) " >&6
  4450. else
  4451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4452. /* end confdefs.h. */
  4453. int
  4454. main ()
  4455. {
  4456. #ifndef __cplusplus
  4457. /* Ultrix mips cc rejects this sort of thing. */
  4458. typedef int charset[2];
  4459. const charset cs = { 0, 0 };
  4460. /* SunOS 4.1.1 cc rejects this. */
  4461. char const *const *pcpcc;
  4462. char **ppc;
  4463. /* NEC SVR4.0.2 mips cc rejects this. */
  4464. struct point {int x, y;};
  4465. static struct point const zero = {0,0};
  4466. /* AIX XL C 1.02.0.0 rejects this.
  4467. It does not let you subtract one const X* pointer from another in
  4468. an arm of an if-expression whose if-part is not a constant
  4469. expression */
  4470. const char *g = "string";
  4471. pcpcc = &g + (g ? g-g : 0);
  4472. /* HPUX 7.0 cc rejects these. */
  4473. ++pcpcc;
  4474. ppc = (char**) pcpcc;
  4475. pcpcc = (char const *const *) ppc;
  4476. { /* SCO 3.2v4 cc rejects this sort of thing. */
  4477. char tx;
  4478. char *t = &tx;
  4479. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4480. *t++ = 0;
  4481. if (s) return 0;
  4482. }
  4483. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4484. int x[] = {25, 17};
  4485. const int *foo = &x[0];
  4486. ++foo;
  4487. }
  4488. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4489. typedef const int *iptr;
  4490. iptr p = 0;
  4491. ++p;
  4492. }
  4493. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  4494. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4495. struct s { int j; const int *ap[3]; } bx;
  4496. struct s *b = &bx; b->j = 5;
  4497. }
  4498. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4499. const int foo = 10;
  4500. if (!foo) return 0;
  4501. }
  4502. return !cs[0] && !zero.x;
  4503. #endif
  4504. ;
  4505. return 0;
  4506. }
  4507. _ACEOF
  4508. if ac_fn_c_try_compile "$LINENO"; then :
  4509. ac_cv_c_const=yes
  4510. else
  4511. ac_cv_c_const=no
  4512. fi
  4513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4514. fi
  4515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  4516. $as_echo "$ac_cv_c_const" >&6; }
  4517. if test $ac_cv_c_const = no; then
  4518. $as_echo "#define const /**/" >>confdefs.h
  4519. fi
  4520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  4521. $as_echo_n "checking for inline... " >&6; }
  4522. if ${ac_cv_c_inline+:} false; then :
  4523. $as_echo_n "(cached) " >&6
  4524. else
  4525. ac_cv_c_inline=no
  4526. for ac_kw in inline __inline__ __inline; do
  4527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4528. /* end confdefs.h. */
  4529. #ifndef __cplusplus
  4530. typedef int foo_t;
  4531. static $ac_kw foo_t static_foo () {return 0; }
  4532. $ac_kw foo_t foo () {return 0; }
  4533. #endif
  4534. _ACEOF
  4535. if ac_fn_c_try_compile "$LINENO"; then :
  4536. ac_cv_c_inline=$ac_kw
  4537. fi
  4538. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4539. test "$ac_cv_c_inline" != no && break
  4540. done
  4541. fi
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  4543. $as_echo "$ac_cv_c_inline" >&6; }
  4544. case $ac_cv_c_inline in
  4545. inline | yes) ;;
  4546. *)
  4547. case $ac_cv_c_inline in
  4548. no) ac_val=;;
  4549. *) ac_val=$ac_cv_c_inline;;
  4550. esac
  4551. cat >>confdefs.h <<_ACEOF
  4552. #ifndef __cplusplus
  4553. #define inline $ac_val
  4554. #endif
  4555. _ACEOF
  4556. ;;
  4557. esac
  4558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
  4559. $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
  4560. if ${ac_cv_c_restrict+:} false; then :
  4561. $as_echo_n "(cached) " >&6
  4562. else
  4563. ac_cv_c_restrict=no
  4564. # The order here caters to the fact that C++ does not require restrict.
  4565. for ac_kw in __restrict __restrict__ _Restrict restrict; do
  4566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4567. /* end confdefs.h. */
  4568. typedef int * int_ptr;
  4569. int foo (int_ptr $ac_kw ip) {
  4570. return ip[0];
  4571. }
  4572. int
  4573. main ()
  4574. {
  4575. int s[1];
  4576. int * $ac_kw t = s;
  4577. t[0] = 0;
  4578. return foo(t)
  4579. ;
  4580. return 0;
  4581. }
  4582. _ACEOF
  4583. if ac_fn_c_try_compile "$LINENO"; then :
  4584. ac_cv_c_restrict=$ac_kw
  4585. fi
  4586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4587. test "$ac_cv_c_restrict" != no && break
  4588. done
  4589. fi
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
  4591. $as_echo "$ac_cv_c_restrict" >&6; }
  4592. case $ac_cv_c_restrict in
  4593. restrict) ;;
  4594. no) $as_echo "#define restrict /**/" >>confdefs.h
  4595. ;;
  4596. *) cat >>confdefs.h <<_ACEOF
  4597. #define restrict $ac_cv_c_restrict
  4598. _ACEOF
  4599. ;;
  4600. esac
  4601. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  4602. if test "x$ac_cv_type_size_t" = xyes; then :
  4603. else
  4604. cat >>confdefs.h <<_ACEOF
  4605. #define size_t unsigned int
  4606. _ACEOF
  4607. fi
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  4609. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  4610. if ${ac_cv_c_bigendian+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. ac_cv_c_bigendian=unknown
  4614. # See if we're dealing with a universal compiler.
  4615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4616. /* end confdefs.h. */
  4617. #ifndef __APPLE_CC__
  4618. not a universal capable compiler
  4619. #endif
  4620. typedef int dummy;
  4621. _ACEOF
  4622. if ac_fn_c_try_compile "$LINENO"; then :
  4623. # Check for potential -arch flags. It is not universal unless
  4624. # there are at least two -arch flags with different values.
  4625. ac_arch=
  4626. ac_prev=
  4627. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  4628. if test -n "$ac_prev"; then
  4629. case $ac_word in
  4630. i?86 | x86_64 | ppc | ppc64)
  4631. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  4632. ac_arch=$ac_word
  4633. else
  4634. ac_cv_c_bigendian=universal
  4635. break
  4636. fi
  4637. ;;
  4638. esac
  4639. ac_prev=
  4640. elif test "x$ac_word" = "x-arch"; then
  4641. ac_prev=arch
  4642. fi
  4643. done
  4644. fi
  4645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4646. if test $ac_cv_c_bigendian = unknown; then
  4647. # See if sys/param.h defines the BYTE_ORDER macro.
  4648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4649. /* end confdefs.h. */
  4650. #include <sys/types.h>
  4651. #include <sys/param.h>
  4652. int
  4653. main ()
  4654. {
  4655. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  4656. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  4657. && LITTLE_ENDIAN)
  4658. bogus endian macros
  4659. #endif
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. if ac_fn_c_try_compile "$LINENO"; then :
  4665. # It does; now see whether it defined to BIG_ENDIAN or not.
  4666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4667. /* end confdefs.h. */
  4668. #include <sys/types.h>
  4669. #include <sys/param.h>
  4670. int
  4671. main ()
  4672. {
  4673. #if BYTE_ORDER != BIG_ENDIAN
  4674. not big endian
  4675. #endif
  4676. ;
  4677. return 0;
  4678. }
  4679. _ACEOF
  4680. if ac_fn_c_try_compile "$LINENO"; then :
  4681. ac_cv_c_bigendian=yes
  4682. else
  4683. ac_cv_c_bigendian=no
  4684. fi
  4685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. if test $ac_cv_c_bigendian = unknown; then
  4690. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  4691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4692. /* end confdefs.h. */
  4693. #include <limits.h>
  4694. int
  4695. main ()
  4696. {
  4697. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  4698. bogus endian macros
  4699. #endif
  4700. ;
  4701. return 0;
  4702. }
  4703. _ACEOF
  4704. if ac_fn_c_try_compile "$LINENO"; then :
  4705. # It does; now see whether it defined to _BIG_ENDIAN or not.
  4706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4707. /* end confdefs.h. */
  4708. #include <limits.h>
  4709. int
  4710. main ()
  4711. {
  4712. #ifndef _BIG_ENDIAN
  4713. not big endian
  4714. #endif
  4715. ;
  4716. return 0;
  4717. }
  4718. _ACEOF
  4719. if ac_fn_c_try_compile "$LINENO"; then :
  4720. ac_cv_c_bigendian=yes
  4721. else
  4722. ac_cv_c_bigendian=no
  4723. fi
  4724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4725. fi
  4726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4727. fi
  4728. if test $ac_cv_c_bigendian = unknown; then
  4729. # Compile a test program.
  4730. if test "$cross_compiling" = yes; then :
  4731. # Try to guess by grepping values from an object file.
  4732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4733. /* end confdefs.h. */
  4734. short int ascii_mm[] =
  4735. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4736. short int ascii_ii[] =
  4737. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4738. int use_ascii (int i) {
  4739. return ascii_mm[i] + ascii_ii[i];
  4740. }
  4741. short int ebcdic_ii[] =
  4742. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4743. short int ebcdic_mm[] =
  4744. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4745. int use_ebcdic (int i) {
  4746. return ebcdic_mm[i] + ebcdic_ii[i];
  4747. }
  4748. extern int foo;
  4749. int
  4750. main ()
  4751. {
  4752. return use_ascii (foo) == use_ebcdic (foo);
  4753. ;
  4754. return 0;
  4755. }
  4756. _ACEOF
  4757. if ac_fn_c_try_compile "$LINENO"; then :
  4758. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  4759. ac_cv_c_bigendian=yes
  4760. fi
  4761. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4762. if test "$ac_cv_c_bigendian" = unknown; then
  4763. ac_cv_c_bigendian=no
  4764. else
  4765. # finding both strings is unlikely to happen, but who knows?
  4766. ac_cv_c_bigendian=unknown
  4767. fi
  4768. fi
  4769. fi
  4770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4771. else
  4772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4773. /* end confdefs.h. */
  4774. $ac_includes_default
  4775. int
  4776. main ()
  4777. {
  4778. /* Are we little or big endian? From Harbison&Steele. */
  4779. union
  4780. {
  4781. long int l;
  4782. char c[sizeof (long int)];
  4783. } u;
  4784. u.l = 1;
  4785. return u.c[sizeof (long int) - 1] == 1;
  4786. ;
  4787. return 0;
  4788. }
  4789. _ACEOF
  4790. if ac_fn_c_try_run "$LINENO"; then :
  4791. ac_cv_c_bigendian=no
  4792. else
  4793. ac_cv_c_bigendian=yes
  4794. fi
  4795. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4796. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4797. fi
  4798. fi
  4799. fi
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  4801. $as_echo "$ac_cv_c_bigendian" >&6; }
  4802. case $ac_cv_c_bigendian in #(
  4803. yes)
  4804. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  4805. ;; #(
  4806. no)
  4807. $as_echo "#define WORDS_LITTLEENDIAN 1" >>confdefs.h
  4808. ;; #(
  4809. universal)
  4810. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  4811. ;; #(
  4812. *)
  4813. as_fn_error $? "unknown endianness
  4814. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  4815. esac
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fwrapv" >&5
  4817. $as_echo_n "checking if $CC accepts -fwrapv... " >&6; }
  4818. pa_add_cflags__old_cflags="$CFLAGS"
  4819. CFLAGS="$CFLAGS -fwrapv"
  4820. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4821. /* end confdefs.h. */
  4822. $ac_includes_default
  4823. int
  4824. main ()
  4825. {
  4826. printf("Hello, World!\n");
  4827. ;
  4828. return 0;
  4829. }
  4830. _ACEOF
  4831. if ac_fn_c_try_link "$LINENO"; then :
  4832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4833. $as_echo "yes" >&6; }
  4834. CFLAGS="$pa_add_cflags__old_cflags -fwrapv"
  4835. $as_echo "#define CFLAG_FWRAPV 1" >>confdefs.h
  4836. else
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4838. $as_echo "no" >&6; }
  4839. CFLAGS="$pa_add_cflags__old_cflags"
  4840. fi
  4841. rm -f core conftest.err conftest.$ac_objext \
  4842. conftest$ac_exeext conftest.$ac_ext
  4843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -U__STRICT_ANSI__" >&5
  4844. $as_echo_n "checking if $CC accepts -U__STRICT_ANSI__... " >&6; }
  4845. pa_add_cflags__old_cflags="$CFLAGS"
  4846. CFLAGS="$CFLAGS -U__STRICT_ANSI__"
  4847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4848. /* end confdefs.h. */
  4849. $ac_includes_default
  4850. int
  4851. main ()
  4852. {
  4853. printf("Hello, World!\n");
  4854. ;
  4855. return 0;
  4856. }
  4857. _ACEOF
  4858. if ac_fn_c_try_link "$LINENO"; then :
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4860. $as_echo "yes" >&6; }
  4861. CFLAGS="$pa_add_cflags__old_cflags -U__STRICT_ANSI__"
  4862. $as_echo "#define CFLAG_U_STRICT_ANSI 1" >>confdefs.h
  4863. else
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4865. $as_echo "no" >&6; }
  4866. CFLAGS="$pa_add_cflags__old_cflags"
  4867. fi
  4868. rm -f core conftest.err conftest.$ac_objext \
  4869. conftest$ac_exeext conftest.$ac_ext
  4870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-common" >&5
  4871. $as_echo_n "checking if $CC accepts -fno-common... " >&6; }
  4872. pa_add_cflags__old_cflags="$CFLAGS"
  4873. CFLAGS="$CFLAGS -fno-common"
  4874. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4875. /* end confdefs.h. */
  4876. $ac_includes_default
  4877. int
  4878. main ()
  4879. {
  4880. printf("Hello, World!\n");
  4881. ;
  4882. return 0;
  4883. }
  4884. _ACEOF
  4885. if ac_fn_c_try_link "$LINENO"; then :
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4887. $as_echo "yes" >&6; }
  4888. CFLAGS="$pa_add_cflags__old_cflags -fno-common"
  4889. $as_echo "#define CFLAG_FNO_COMMON 1" >>confdefs.h
  4890. else
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4892. $as_echo "no" >&6; }
  4893. CFLAGS="$pa_add_cflags__old_cflags"
  4894. fi
  4895. rm -f core conftest.err conftest.$ac_objext \
  4896. conftest$ac_exeext conftest.$ac_ext
  4897. for ac_prog in nroff
  4898. do
  4899. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4900. set dummy $ac_prog; ac_word=$2
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4902. $as_echo_n "checking for $ac_word... " >&6; }
  4903. if ${ac_cv_prog_NROFF+:} false; then :
  4904. $as_echo_n "(cached) " >&6
  4905. else
  4906. if test -n "$NROFF"; then
  4907. ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
  4908. else
  4909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4910. for as_dir in $PATH
  4911. do
  4912. IFS=$as_save_IFS
  4913. test -z "$as_dir" && as_dir=.
  4914. for ac_exec_ext in '' $ac_executable_extensions; do
  4915. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4916. ac_cv_prog_NROFF="$ac_prog"
  4917. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4918. break 2
  4919. fi
  4920. done
  4921. done
  4922. IFS=$as_save_IFS
  4923. fi
  4924. fi
  4925. NROFF=$ac_cv_prog_NROFF
  4926. if test -n "$NROFF"; then
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
  4928. $as_echo "$NROFF" >&6; }
  4929. else
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4931. $as_echo "no" >&6; }
  4932. fi
  4933. test -n "$NROFF" && break
  4934. done
  4935. test -n "$NROFF" || NROFF="false"
  4936. for ac_prog in asciidoc
  4937. do
  4938. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4939. set dummy $ac_prog; ac_word=$2
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4941. $as_echo_n "checking for $ac_word... " >&6; }
  4942. if ${ac_cv_prog_ASCIIDOC+:} false; then :
  4943. $as_echo_n "(cached) " >&6
  4944. else
  4945. if test -n "$ASCIIDOC"; then
  4946. ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
  4947. else
  4948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4949. for as_dir in $PATH
  4950. do
  4951. IFS=$as_save_IFS
  4952. test -z "$as_dir" && as_dir=.
  4953. for ac_exec_ext in '' $ac_executable_extensions; do
  4954. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4955. ac_cv_prog_ASCIIDOC="$ac_prog"
  4956. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4957. break 2
  4958. fi
  4959. done
  4960. done
  4961. IFS=$as_save_IFS
  4962. fi
  4963. fi
  4964. ASCIIDOC=$ac_cv_prog_ASCIIDOC
  4965. if test -n "$ASCIIDOC"; then
  4966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
  4967. $as_echo "$ASCIIDOC" >&6; }
  4968. else
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4970. $as_echo "no" >&6; }
  4971. fi
  4972. test -n "$ASCIIDOC" && break
  4973. done
  4974. test -n "$ASCIIDOC" || ASCIIDOC="false"
  4975. for ac_prog in xmlto
  4976. do
  4977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4978. set dummy $ac_prog; ac_word=$2
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4980. $as_echo_n "checking for $ac_word... " >&6; }
  4981. if ${ac_cv_prog_XMLTO+:} false; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. if test -n "$XMLTO"; then
  4985. ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
  4986. else
  4987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4988. for as_dir in $PATH
  4989. do
  4990. IFS=$as_save_IFS
  4991. test -z "$as_dir" && as_dir=.
  4992. for ac_exec_ext in '' $ac_executable_extensions; do
  4993. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4994. ac_cv_prog_XMLTO="$ac_prog"
  4995. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4996. break 2
  4997. fi
  4998. done
  4999. done
  5000. IFS=$as_save_IFS
  5001. fi
  5002. fi
  5003. XMLTO=$ac_cv_prog_XMLTO
  5004. if test -n "$XMLTO"; then
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
  5006. $as_echo "$XMLTO" >&6; }
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5009. $as_echo "no" >&6; }
  5010. fi
  5011. test -n "$XMLTO" && break
  5012. done
  5013. test -n "$XMLTO" || XMLTO="false"
  5014. if test $ASCIIDOC = false; then :
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No asciidoc package found" >&5
  5016. $as_echo "$as_me: WARNING: No asciidoc package found" >&2;}
  5017. fi
  5018. if test $XMLTO = false; then :
  5019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No xmlto package found" >&5
  5020. $as_echo "$as_me: WARNING: No xmlto package found" >&2;}
  5021. fi
  5022. if test -n "$ac_tool_prefix"; then
  5023. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5024. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5026. $as_echo_n "checking for $ac_word... " >&6; }
  5027. if ${ac_cv_prog_AR+:} false; then :
  5028. $as_echo_n "(cached) " >&6
  5029. else
  5030. if test -n "$AR"; then
  5031. ac_cv_prog_AR="$AR" # Let the user override the test.
  5032. else
  5033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5034. for as_dir in $PATH
  5035. do
  5036. IFS=$as_save_IFS
  5037. test -z "$as_dir" && as_dir=.
  5038. for ac_exec_ext in '' $ac_executable_extensions; do
  5039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5040. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5042. break 2
  5043. fi
  5044. done
  5045. done
  5046. IFS=$as_save_IFS
  5047. fi
  5048. fi
  5049. AR=$ac_cv_prog_AR
  5050. if test -n "$AR"; then
  5051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5052. $as_echo "$AR" >&6; }
  5053. else
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5055. $as_echo "no" >&6; }
  5056. fi
  5057. fi
  5058. if test -z "$ac_cv_prog_AR"; then
  5059. ac_ct_AR=$AR
  5060. # Extract the first word of "ar", so it can be a program name with args.
  5061. set dummy ar; ac_word=$2
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5063. $as_echo_n "checking for $ac_word... " >&6; }
  5064. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5065. $as_echo_n "(cached) " >&6
  5066. else
  5067. if test -n "$ac_ct_AR"; then
  5068. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5069. else
  5070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5071. for as_dir in $PATH
  5072. do
  5073. IFS=$as_save_IFS
  5074. test -z "$as_dir" && as_dir=.
  5075. for ac_exec_ext in '' $ac_executable_extensions; do
  5076. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5077. ac_cv_prog_ac_ct_AR="ar"
  5078. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5079. break 2
  5080. fi
  5081. done
  5082. done
  5083. IFS=$as_save_IFS
  5084. fi
  5085. fi
  5086. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5087. if test -n "$ac_ct_AR"; then
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5089. $as_echo "$ac_ct_AR" >&6; }
  5090. else
  5091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5092. $as_echo "no" >&6; }
  5093. fi
  5094. if test "x$ac_ct_AR" = x; then
  5095. AR=""
  5096. else
  5097. case $cross_compiling:$ac_tool_warned in
  5098. yes:)
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5100. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5101. ac_tool_warned=yes ;;
  5102. esac
  5103. AR=$ac_ct_AR
  5104. fi
  5105. else
  5106. AR="$ac_cv_prog_AR"
  5107. fi
  5108. if test -n "$ac_tool_prefix"; then
  5109. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5110. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5112. $as_echo_n "checking for $ac_word... " >&6; }
  5113. if ${ac_cv_prog_RANLIB+:} false; then :
  5114. $as_echo_n "(cached) " >&6
  5115. else
  5116. if test -n "$RANLIB"; then
  5117. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5118. else
  5119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5120. for as_dir in $PATH
  5121. do
  5122. IFS=$as_save_IFS
  5123. test -z "$as_dir" && as_dir=.
  5124. for ac_exec_ext in '' $ac_executable_extensions; do
  5125. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5126. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5127. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5128. break 2
  5129. fi
  5130. done
  5131. done
  5132. IFS=$as_save_IFS
  5133. fi
  5134. fi
  5135. RANLIB=$ac_cv_prog_RANLIB
  5136. if test -n "$RANLIB"; then
  5137. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5138. $as_echo "$RANLIB" >&6; }
  5139. else
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5141. $as_echo "no" >&6; }
  5142. fi
  5143. fi
  5144. if test -z "$ac_cv_prog_RANLIB"; then
  5145. ac_ct_RANLIB=$RANLIB
  5146. # Extract the first word of "ranlib", so it can be a program name with args.
  5147. set dummy ranlib; ac_word=$2
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5149. $as_echo_n "checking for $ac_word... " >&6; }
  5150. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5151. $as_echo_n "(cached) " >&6
  5152. else
  5153. if test -n "$ac_ct_RANLIB"; then
  5154. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5155. else
  5156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. for as_dir in $PATH
  5158. do
  5159. IFS=$as_save_IFS
  5160. test -z "$as_dir" && as_dir=.
  5161. for ac_exec_ext in '' $ac_executable_extensions; do
  5162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5163. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5165. break 2
  5166. fi
  5167. done
  5168. done
  5169. IFS=$as_save_IFS
  5170. fi
  5171. fi
  5172. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5173. if test -n "$ac_ct_RANLIB"; then
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5175. $as_echo "$ac_ct_RANLIB" >&6; }
  5176. else
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5178. $as_echo "no" >&6; }
  5179. fi
  5180. if test "x$ac_ct_RANLIB" = x; then
  5181. RANLIB=":"
  5182. else
  5183. case $cross_compiling:$ac_tool_warned in
  5184. yes:)
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5186. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5187. ac_tool_warned=yes ;;
  5188. esac
  5189. RANLIB=$ac_ct_RANLIB
  5190. fi
  5191. else
  5192. RANLIB="$ac_cv_prog_RANLIB"
  5193. fi
  5194. if test -n "$ac_tool_prefix"; then
  5195. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5196. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5198. $as_echo_n "checking for $ac_word... " >&6; }
  5199. if ${ac_cv_prog_STRIP+:} false; then :
  5200. $as_echo_n "(cached) " >&6
  5201. else
  5202. if test -n "$STRIP"; then
  5203. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5204. else
  5205. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5206. for as_dir in $PATH
  5207. do
  5208. IFS=$as_save_IFS
  5209. test -z "$as_dir" && as_dir=.
  5210. for ac_exec_ext in '' $ac_executable_extensions; do
  5211. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5212. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5213. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5214. break 2
  5215. fi
  5216. done
  5217. done
  5218. IFS=$as_save_IFS
  5219. fi
  5220. fi
  5221. STRIP=$ac_cv_prog_STRIP
  5222. if test -n "$STRIP"; then
  5223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5224. $as_echo "$STRIP" >&6; }
  5225. else
  5226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5227. $as_echo "no" >&6; }
  5228. fi
  5229. fi
  5230. if test -z "$ac_cv_prog_STRIP"; then
  5231. ac_ct_STRIP=$STRIP
  5232. # Extract the first word of "strip", so it can be a program name with args.
  5233. set dummy strip; ac_word=$2
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5235. $as_echo_n "checking for $ac_word... " >&6; }
  5236. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5237. $as_echo_n "(cached) " >&6
  5238. else
  5239. if test -n "$ac_ct_STRIP"; then
  5240. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5241. else
  5242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5243. for as_dir in $PATH
  5244. do
  5245. IFS=$as_save_IFS
  5246. test -z "$as_dir" && as_dir=.
  5247. for ac_exec_ext in '' $ac_executable_extensions; do
  5248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5249. ac_cv_prog_ac_ct_STRIP="strip"
  5250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5251. break 2
  5252. fi
  5253. done
  5254. done
  5255. IFS=$as_save_IFS
  5256. fi
  5257. fi
  5258. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5259. if test -n "$ac_ct_STRIP"; then
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5261. $as_echo "$ac_ct_STRIP" >&6; }
  5262. else
  5263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5264. $as_echo "no" >&6; }
  5265. fi
  5266. if test "x$ac_ct_STRIP" = x; then
  5267. STRIP=""
  5268. else
  5269. case $cross_compiling:$ac_tool_warned in
  5270. yes:)
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5272. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5273. ac_tool_warned=yes ;;
  5274. esac
  5275. STRIP=$ac_ct_STRIP
  5276. fi
  5277. else
  5278. STRIP="$ac_cv_prog_STRIP"
  5279. fi
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5281. $as_echo_n "checking for ANSI C header files... " >&6; }
  5282. if ${ac_cv_header_stdc+:} false; then :
  5283. $as_echo_n "(cached) " >&6
  5284. else
  5285. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5286. /* end confdefs.h. */
  5287. #include <stdlib.h>
  5288. #include <stdarg.h>
  5289. #include <string.h>
  5290. #include <float.h>
  5291. int
  5292. main ()
  5293. {
  5294. ;
  5295. return 0;
  5296. }
  5297. _ACEOF
  5298. if ac_fn_c_try_compile "$LINENO"; then :
  5299. ac_cv_header_stdc=yes
  5300. else
  5301. ac_cv_header_stdc=no
  5302. fi
  5303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5304. if test $ac_cv_header_stdc = yes; then
  5305. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5307. /* end confdefs.h. */
  5308. #include <string.h>
  5309. _ACEOF
  5310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5311. $EGREP "memchr" >/dev/null 2>&1; then :
  5312. else
  5313. ac_cv_header_stdc=no
  5314. fi
  5315. rm -f conftest*
  5316. fi
  5317. if test $ac_cv_header_stdc = yes; then
  5318. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5319. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5320. /* end confdefs.h. */
  5321. #include <stdlib.h>
  5322. _ACEOF
  5323. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5324. $EGREP "free" >/dev/null 2>&1; then :
  5325. else
  5326. ac_cv_header_stdc=no
  5327. fi
  5328. rm -f conftest*
  5329. fi
  5330. if test $ac_cv_header_stdc = yes; then
  5331. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5332. if test "$cross_compiling" = yes; then :
  5333. :
  5334. else
  5335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5336. /* end confdefs.h. */
  5337. #include <ctype.h>
  5338. #include <stdlib.h>
  5339. #if ((' ' & 0x0FF) == 0x020)
  5340. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5341. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5342. #else
  5343. # define ISLOWER(c) \
  5344. (('a' <= (c) && (c) <= 'i') \
  5345. || ('j' <= (c) && (c) <= 'r') \
  5346. || ('s' <= (c) && (c) <= 'z'))
  5347. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5348. #endif
  5349. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5350. int
  5351. main ()
  5352. {
  5353. int i;
  5354. for (i = 0; i < 256; i++)
  5355. if (XOR (islower (i), ISLOWER (i))
  5356. || toupper (i) != TOUPPER (i))
  5357. return 2;
  5358. return 0;
  5359. }
  5360. _ACEOF
  5361. if ac_fn_c_try_run "$LINENO"; then :
  5362. else
  5363. ac_cv_header_stdc=no
  5364. fi
  5365. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5366. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5367. fi
  5368. fi
  5369. fi
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5371. $as_echo "$ac_cv_header_stdc" >&6; }
  5372. if test $ac_cv_header_stdc = yes; then
  5373. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5374. fi
  5375. for ac_header in inttypes.h
  5376. do :
  5377. ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  5378. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  5379. cat >>confdefs.h <<_ACEOF
  5380. #define HAVE_INTTYPES_H 1
  5381. _ACEOF
  5382. fi
  5383. done
  5384. for ac_header in strings.h
  5385. do :
  5386. ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
  5387. if test "x$ac_cv_header_strings_h" = xyes; then :
  5388. cat >>confdefs.h <<_ACEOF
  5389. #define HAVE_STRINGS_H 1
  5390. _ACEOF
  5391. fi
  5392. done
  5393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  5394. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  5395. if ${ac_cv_header_stdbool_h+:} false; then :
  5396. $as_echo_n "(cached) " >&6
  5397. else
  5398. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5399. /* end confdefs.h. */
  5400. #include <stdbool.h>
  5401. #ifndef bool
  5402. "error: bool is not defined"
  5403. #endif
  5404. #ifndef false
  5405. "error: false is not defined"
  5406. #endif
  5407. #if false
  5408. "error: false is not 0"
  5409. #endif
  5410. #ifndef true
  5411. "error: true is not defined"
  5412. #endif
  5413. #if true != 1
  5414. "error: true is not 1"
  5415. #endif
  5416. #ifndef __bool_true_false_are_defined
  5417. "error: __bool_true_false_are_defined is not defined"
  5418. #endif
  5419. struct s { _Bool s: 1; _Bool t; } s;
  5420. char a[true == 1 ? 1 : -1];
  5421. char b[false == 0 ? 1 : -1];
  5422. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5423. char d[(bool) 0.5 == true ? 1 : -1];
  5424. /* See body of main program for 'e'. */
  5425. char f[(_Bool) 0.0 == false ? 1 : -1];
  5426. char g[true];
  5427. char h[sizeof (_Bool)];
  5428. char i[sizeof s.t];
  5429. enum { j = false, k = true, l = false * true, m = true * 256 };
  5430. /* The following fails for
  5431. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  5432. _Bool n[m];
  5433. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  5434. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  5435. /* Catch a bug in an HP-UX C compiler. See
  5436. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  5437. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  5438. */
  5439. _Bool q = true;
  5440. _Bool *pq = &q;
  5441. int
  5442. main ()
  5443. {
  5444. bool e = &s;
  5445. *pq |= q;
  5446. *pq |= ! q;
  5447. /* Refer to every declared value, to avoid compiler optimizations. */
  5448. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  5449. + !m + !n + !o + !p + !q + !pq);
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_c_try_compile "$LINENO"; then :
  5455. ac_cv_header_stdbool_h=yes
  5456. else
  5457. ac_cv_header_stdbool_h=no
  5458. fi
  5459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5460. fi
  5461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  5462. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  5463. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  5464. if test "x$ac_cv_type__Bool" = xyes; then :
  5465. cat >>confdefs.h <<_ACEOF
  5466. #define HAVE__BOOL 1
  5467. _ACEOF
  5468. fi
  5469. if test $ac_cv_header_stdbool_h = yes; then
  5470. $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
  5471. fi
  5472. for ac_header in stdnoreturn.h
  5473. do :
  5474. ac_fn_c_check_header_mongrel "$LINENO" "stdnoreturn.h" "ac_cv_header_stdnoreturn_h" "$ac_includes_default"
  5475. if test "x$ac_cv_header_stdnoreturn_h" = xyes; then :
  5476. cat >>confdefs.h <<_ACEOF
  5477. #define HAVE_STDNORETURN_H 1
  5478. _ACEOF
  5479. fi
  5480. done
  5481. for ac_header in io.h
  5482. do :
  5483. ac_fn_c_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
  5484. if test "x$ac_cv_header_io_h" = xyes; then :
  5485. cat >>confdefs.h <<_ACEOF
  5486. #define HAVE_IO_H 1
  5487. _ACEOF
  5488. fi
  5489. done
  5490. for ac_header in fcntl.h
  5491. do :
  5492. ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  5493. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  5494. cat >>confdefs.h <<_ACEOF
  5495. #define HAVE_FCNTL_H 1
  5496. _ACEOF
  5497. fi
  5498. done
  5499. for ac_header in unistd.h
  5500. do :
  5501. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  5502. if test "x$ac_cv_header_unistd_h" = xyes; then :
  5503. cat >>confdefs.h <<_ACEOF
  5504. #define HAVE_UNISTD_H 1
  5505. _ACEOF
  5506. fi
  5507. done
  5508. for ac_header in sys/mman.h
  5509. do :
  5510. ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
  5511. if test "x$ac_cv_header_sys_mman_h" = xyes; then :
  5512. cat >>confdefs.h <<_ACEOF
  5513. #define HAVE_SYS_MMAN_H 1
  5514. _ACEOF
  5515. fi
  5516. done
  5517. for ac_header in sys/types.h
  5518. do :
  5519. ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  5520. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  5521. cat >>confdefs.h <<_ACEOF
  5522. #define HAVE_SYS_TYPES_H 1
  5523. _ACEOF
  5524. fi
  5525. done
  5526. for ac_header in sys/stat.h
  5527. do :
  5528. ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  5529. if test "x$ac_cv_header_sys_stat_h" = xyes; then :
  5530. cat >>confdefs.h <<_ACEOF
  5531. #define HAVE_SYS_STAT_H 1
  5532. _ACEOF
  5533. fi
  5534. done
  5535. for ac_func in strcasecmp stricmp
  5536. do :
  5537. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5538. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5539. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5540. cat >>confdefs.h <<_ACEOF
  5541. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5542. _ACEOF
  5543. fi
  5544. done
  5545. for ac_func in strncasecmp strnicmp
  5546. do :
  5547. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5548. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5549. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5550. cat >>confdefs.h <<_ACEOF
  5551. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5552. _ACEOF
  5553. fi
  5554. done
  5555. for ac_func in strsep
  5556. do :
  5557. ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
  5558. if test "x$ac_cv_func_strsep" = xyes; then :
  5559. cat >>confdefs.h <<_ACEOF
  5560. #define HAVE_STRSEP 1
  5561. _ACEOF
  5562. fi
  5563. done
  5564. for ac_func in strnlen
  5565. do :
  5566. ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
  5567. if test "x$ac_cv_func_strnlen" = xyes; then :
  5568. cat >>confdefs.h <<_ACEOF
  5569. #define HAVE_STRNLEN 1
  5570. _ACEOF
  5571. fi
  5572. done
  5573. for ac_func in strrchrnul
  5574. do :
  5575. ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
  5576. if test "x$ac_cv_func_strrchrnul" = xyes; then :
  5577. cat >>confdefs.h <<_ACEOF
  5578. #define HAVE_STRRCHRNUL 1
  5579. _ACEOF
  5580. fi
  5581. done
  5582. for ac_func in getuid
  5583. do :
  5584. ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
  5585. if test "x$ac_cv_func_getuid" = xyes; then :
  5586. cat >>confdefs.h <<_ACEOF
  5587. #define HAVE_GETUID 1
  5588. _ACEOF
  5589. fi
  5590. done
  5591. for ac_func in getgid
  5592. do :
  5593. ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid"
  5594. if test "x$ac_cv_func_getgid" = xyes; then :
  5595. cat >>confdefs.h <<_ACEOF
  5596. #define HAVE_GETGID 1
  5597. _ACEOF
  5598. fi
  5599. done
  5600. for ac_func in realpath
  5601. do :
  5602. ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
  5603. if test "x$ac_cv_func_realpath" = xyes; then :
  5604. cat >>confdefs.h <<_ACEOF
  5605. #define HAVE_REALPATH 1
  5606. _ACEOF
  5607. fi
  5608. done
  5609. for ac_func in canonicalize_file_name
  5610. do :
  5611. ac_fn_c_check_func "$LINENO" "canonicalize_file_name" "ac_cv_func_canonicalize_file_name"
  5612. if test "x$ac_cv_func_canonicalize_file_name" = xyes; then :
  5613. cat >>confdefs.h <<_ACEOF
  5614. #define HAVE_CANONICALIZE_FILE_NAME 1
  5615. _ACEOF
  5616. fi
  5617. done
  5618. for ac_func in _fullpath
  5619. do :
  5620. ac_fn_c_check_func "$LINENO" "_fullpath" "ac_cv_func__fullpath"
  5621. if test "x$ac_cv_func__fullpath" = xyes; then :
  5622. cat >>confdefs.h <<_ACEOF
  5623. #define HAVE__FULLPATH 1
  5624. _ACEOF
  5625. fi
  5626. done
  5627. for ac_func in pathconf
  5628. do :
  5629. ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
  5630. if test "x$ac_cv_func_pathconf" = xyes; then :
  5631. cat >>confdefs.h <<_ACEOF
  5632. #define HAVE_PATHCONF 1
  5633. _ACEOF
  5634. fi
  5635. done
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  5637. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  5638. if ${ac_cv_sys_largefile_source+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. while :; do
  5642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5643. /* end confdefs.h. */
  5644. #include <sys/types.h> /* for off_t */
  5645. #include <stdio.h>
  5646. int
  5647. main ()
  5648. {
  5649. int (*fp) (FILE *, off_t, int) = fseeko;
  5650. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  5651. ;
  5652. return 0;
  5653. }
  5654. _ACEOF
  5655. if ac_fn_c_try_link "$LINENO"; then :
  5656. ac_cv_sys_largefile_source=no; break
  5657. fi
  5658. rm -f core conftest.err conftest.$ac_objext \
  5659. conftest$ac_exeext conftest.$ac_ext
  5660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5661. /* end confdefs.h. */
  5662. #define _LARGEFILE_SOURCE 1
  5663. #include <sys/types.h> /* for off_t */
  5664. #include <stdio.h>
  5665. int
  5666. main ()
  5667. {
  5668. int (*fp) (FILE *, off_t, int) = fseeko;
  5669. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  5670. ;
  5671. return 0;
  5672. }
  5673. _ACEOF
  5674. if ac_fn_c_try_link "$LINENO"; then :
  5675. ac_cv_sys_largefile_source=1; break
  5676. fi
  5677. rm -f core conftest.err conftest.$ac_objext \
  5678. conftest$ac_exeext conftest.$ac_ext
  5679. ac_cv_sys_largefile_source=unknown
  5680. break
  5681. done
  5682. fi
  5683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  5684. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  5685. case $ac_cv_sys_largefile_source in #(
  5686. no | unknown) ;;
  5687. *)
  5688. cat >>confdefs.h <<_ACEOF
  5689. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  5690. _ACEOF
  5691. ;;
  5692. esac
  5693. rm -rf conftest*
  5694. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  5695. # in glibc 2.1.3, but that breaks too many other things.
  5696. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  5697. if test $ac_cv_sys_largefile_source != unknown; then
  5698. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  5699. fi
  5700. for ac_func in _fseeki64
  5701. do :
  5702. ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
  5703. if test "x$ac_cv_func__fseeki64" = xyes; then :
  5704. cat >>confdefs.h <<_ACEOF
  5705. #define HAVE__FSEEKI64 1
  5706. _ACEOF
  5707. fi
  5708. done
  5709. for ac_func in ftruncate _chsize _chsize_s
  5710. do :
  5711. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5712. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5713. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5714. cat >>confdefs.h <<_ACEOF
  5715. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5716. _ACEOF
  5717. fi
  5718. done
  5719. for ac_func in fileno _fileno
  5720. do :
  5721. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5722. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5723. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5724. cat >>confdefs.h <<_ACEOF
  5725. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5726. _ACEOF
  5727. fi
  5728. done
  5729. for ac_func in _filelengthi64
  5730. do :
  5731. ac_fn_c_check_func "$LINENO" "_filelengthi64" "ac_cv_func__filelengthi64"
  5732. if test "x$ac_cv_func__filelengthi64" = xyes; then :
  5733. cat >>confdefs.h <<_ACEOF
  5734. #define HAVE__FILELENGTHI64 1
  5735. _ACEOF
  5736. fi
  5737. done
  5738. for ac_header in $ac_header_list
  5739. do :
  5740. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5741. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5742. "
  5743. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5744. cat >>confdefs.h <<_ACEOF
  5745. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5746. _ACEOF
  5747. fi
  5748. done
  5749. for ac_func in getpagesize
  5750. do :
  5751. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  5752. if test "x$ac_cv_func_getpagesize" = xyes; then :
  5753. cat >>confdefs.h <<_ACEOF
  5754. #define HAVE_GETPAGESIZE 1
  5755. _ACEOF
  5756. fi
  5757. done
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  5759. $as_echo_n "checking for working mmap... " >&6; }
  5760. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test "$cross_compiling" = yes; then :
  5764. ac_cv_func_mmap_fixed_mapped=no
  5765. else
  5766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5767. /* end confdefs.h. */
  5768. $ac_includes_default
  5769. /* malloc might have been renamed as rpl_malloc. */
  5770. #undef malloc
  5771. /* Thanks to Mike Haertel and Jim Avera for this test.
  5772. Here is a matrix of mmap possibilities:
  5773. mmap private not fixed
  5774. mmap private fixed at somewhere currently unmapped
  5775. mmap private fixed at somewhere already mapped
  5776. mmap shared not fixed
  5777. mmap shared fixed at somewhere currently unmapped
  5778. mmap shared fixed at somewhere already mapped
  5779. For private mappings, we should verify that changes cannot be read()
  5780. back from the file, nor mmap's back from the file at a different
  5781. address. (There have been systems where private was not correctly
  5782. implemented like the infamous i386 svr4.0, and systems where the
  5783. VM page cache was not coherent with the file system buffer cache
  5784. like early versions of FreeBSD and possibly contemporary NetBSD.)
  5785. For shared mappings, we should conversely verify that changes get
  5786. propagated back to all the places they're supposed to be.
  5787. Grep wants private fixed already mapped.
  5788. The main things grep needs to know about mmap are:
  5789. * does it exist and is it safe to write into the mmap'd area
  5790. * how to use it (BSD variants) */
  5791. #include <fcntl.h>
  5792. #include <sys/mman.h>
  5793. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  5794. char *malloc ();
  5795. #endif
  5796. /* This mess was copied from the GNU getpagesize.h. */
  5797. #ifndef HAVE_GETPAGESIZE
  5798. # ifdef _SC_PAGESIZE
  5799. # define getpagesize() sysconf(_SC_PAGESIZE)
  5800. # else /* no _SC_PAGESIZE */
  5801. # ifdef HAVE_SYS_PARAM_H
  5802. # include <sys/param.h>
  5803. # ifdef EXEC_PAGESIZE
  5804. # define getpagesize() EXEC_PAGESIZE
  5805. # else /* no EXEC_PAGESIZE */
  5806. # ifdef NBPG
  5807. # define getpagesize() NBPG * CLSIZE
  5808. # ifndef CLSIZE
  5809. # define CLSIZE 1
  5810. # endif /* no CLSIZE */
  5811. # else /* no NBPG */
  5812. # ifdef NBPC
  5813. # define getpagesize() NBPC
  5814. # else /* no NBPC */
  5815. # ifdef PAGESIZE
  5816. # define getpagesize() PAGESIZE
  5817. # endif /* PAGESIZE */
  5818. # endif /* no NBPC */
  5819. # endif /* no NBPG */
  5820. # endif /* no EXEC_PAGESIZE */
  5821. # else /* no HAVE_SYS_PARAM_H */
  5822. # define getpagesize() 8192 /* punt totally */
  5823. # endif /* no HAVE_SYS_PARAM_H */
  5824. # endif /* no _SC_PAGESIZE */
  5825. #endif /* no HAVE_GETPAGESIZE */
  5826. int
  5827. main ()
  5828. {
  5829. char *data, *data2, *data3;
  5830. const char *cdata2;
  5831. int i, pagesize;
  5832. int fd, fd2;
  5833. pagesize = getpagesize ();
  5834. /* First, make a file with some known garbage in it. */
  5835. data = (char *) malloc (pagesize);
  5836. if (!data)
  5837. return 1;
  5838. for (i = 0; i < pagesize; ++i)
  5839. *(data + i) = rand ();
  5840. umask (0);
  5841. fd = creat ("conftest.mmap", 0600);
  5842. if (fd < 0)
  5843. return 2;
  5844. if (write (fd, data, pagesize) != pagesize)
  5845. return 3;
  5846. close (fd);
  5847. /* Next, check that the tail of a page is zero-filled. File must have
  5848. non-zero length, otherwise we risk SIGBUS for entire page. */
  5849. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  5850. if (fd2 < 0)
  5851. return 4;
  5852. cdata2 = "";
  5853. if (write (fd2, cdata2, 1) != 1)
  5854. return 5;
  5855. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  5856. if (data2 == MAP_FAILED)
  5857. return 6;
  5858. for (i = 0; i < pagesize; ++i)
  5859. if (*(data2 + i))
  5860. return 7;
  5861. close (fd2);
  5862. if (munmap (data2, pagesize))
  5863. return 8;
  5864. /* Next, try to mmap the file at a fixed address which already has
  5865. something else allocated at it. If we can, also make sure that
  5866. we see the same garbage. */
  5867. fd = open ("conftest.mmap", O_RDWR);
  5868. if (fd < 0)
  5869. return 9;
  5870. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  5871. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  5872. return 10;
  5873. for (i = 0; i < pagesize; ++i)
  5874. if (*(data + i) != *(data2 + i))
  5875. return 11;
  5876. /* Finally, make sure that changes to the mapped area do not
  5877. percolate back to the file as seen by read(). (This is a bug on
  5878. some variants of i386 svr4.0.) */
  5879. for (i = 0; i < pagesize; ++i)
  5880. *(data2 + i) = *(data2 + i) + 1;
  5881. data3 = (char *) malloc (pagesize);
  5882. if (!data3)
  5883. return 12;
  5884. if (read (fd, data3, pagesize) != pagesize)
  5885. return 13;
  5886. for (i = 0; i < pagesize; ++i)
  5887. if (*(data + i) != *(data3 + i))
  5888. return 14;
  5889. close (fd);
  5890. return 0;
  5891. }
  5892. _ACEOF
  5893. if ac_fn_c_try_run "$LINENO"; then :
  5894. ac_cv_func_mmap_fixed_mapped=yes
  5895. else
  5896. ac_cv_func_mmap_fixed_mapped=no
  5897. fi
  5898. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5899. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5900. fi
  5901. fi
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  5903. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  5904. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  5905. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  5906. fi
  5907. rm -f conftest.mmap conftest.txt
  5908. for ac_func in getpagesize
  5909. do :
  5910. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  5911. if test "x$ac_cv_func_getpagesize" = xyes; then :
  5912. cat >>confdefs.h <<_ACEOF
  5913. #define HAVE_GETPAGESIZE 1
  5914. _ACEOF
  5915. fi
  5916. done
  5917. for ac_func in sysconf
  5918. do :
  5919. ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
  5920. if test "x$ac_cv_func_sysconf" = xyes; then :
  5921. cat >>confdefs.h <<_ACEOF
  5922. #define HAVE_SYSCONF 1
  5923. _ACEOF
  5924. fi
  5925. done
  5926. for ac_func in access _access faccessat
  5927. do :
  5928. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5929. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5930. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  5931. cat >>confdefs.h <<_ACEOF
  5932. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5933. _ACEOF
  5934. fi
  5935. done
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
  5937. $as_echo_n "checking for __builtin_expect... " >&6; }
  5938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5939. /* end confdefs.h. */
  5940. $ac_includes_default
  5941. int main(void) {
  5942. (void)__builtin_expect(1,1);
  5943. return 0;
  5944. }
  5945. _ACEOF
  5946. if ac_fn_c_try_link "$LINENO"; then :
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5948. $as_echo "yes" >&6; }
  5949. $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
  5950. else
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5952. $as_echo "no" >&6; }
  5953. fi
  5954. rm -f core conftest.err conftest.$ac_objext \
  5955. conftest$ac_exeext conftest.$ac_ext
  5956. for ac_header in intrin.h
  5957. do :
  5958. ac_fn_c_check_header_mongrel "$LINENO" "intrin.h" "ac_cv_header_intrin_h" "$ac_includes_default"
  5959. if test "x$ac_cv_header_intrin_h" = xyes; then :
  5960. cat >>confdefs.h <<_ACEOF
  5961. #define HAVE_INTRIN_H 1
  5962. _ACEOF
  5963. ac_includes_default="$ac_includes_default
  5964. #include <intrin.h>"
  5965. fi
  5966. done
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
  5968. $as_echo_n "checking for __builtin_clz... " >&6; }
  5969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5970. /* end confdefs.h. */
  5971. $ac_includes_default
  5972. int main(void) {
  5973. (void)__builtin_clz(0U);
  5974. return 0;
  5975. }
  5976. _ACEOF
  5977. if ac_fn_c_try_link "$LINENO"; then :
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5979. $as_echo "yes" >&6; }
  5980. $as_echo "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
  5981. else
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5983. $as_echo "no" >&6; }
  5984. fi
  5985. rm -f core conftest.err conftest.$ac_objext \
  5986. conftest$ac_exeext conftest.$ac_ext
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5
  5988. $as_echo_n "checking for __builtin_clzl... " >&6; }
  5989. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5990. /* end confdefs.h. */
  5991. $ac_includes_default
  5992. int main(void) {
  5993. (void)__builtin_clzl(0UL);
  5994. return 0;
  5995. }
  5996. _ACEOF
  5997. if ac_fn_c_try_link "$LINENO"; then :
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5999. $as_echo "yes" >&6; }
  6000. $as_echo "#define HAVE___BUILTIN_CLZL 1" >>confdefs.h
  6001. else
  6002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6003. $as_echo "no" >&6; }
  6004. fi
  6005. rm -f core conftest.err conftest.$ac_objext \
  6006. conftest$ac_exeext conftest.$ac_ext
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
  6008. $as_echo_n "checking for __builtin_clzll... " >&6; }
  6009. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6010. /* end confdefs.h. */
  6011. $ac_includes_default
  6012. int main(void) {
  6013. (void)__builtin_clzll(0ULL);
  6014. return 0;
  6015. }
  6016. _ACEOF
  6017. if ac_fn_c_try_link "$LINENO"; then :
  6018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6019. $as_echo "yes" >&6; }
  6020. $as_echo "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
  6021. else
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6023. $as_echo "no" >&6; }
  6024. fi
  6025. rm -f core conftest.err conftest.$ac_objext \
  6026. conftest$ac_exeext conftest.$ac_ext
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse" >&5
  6028. $as_echo_n "checking for _BitScanReverse... " >&6; }
  6029. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6030. /* end confdefs.h. */
  6031. $ac_includes_default
  6032. int main(void) {
  6033. (void)_BitScanReverse(0);
  6034. return 0;
  6035. }
  6036. _ACEOF
  6037. if ac_fn_c_try_link "$LINENO"; then :
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6039. $as_echo "yes" >&6; }
  6040. $as_echo "#define HAVE__BITSCANREVERSE 1" >>confdefs.h
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. rm -f core conftest.err conftest.$ac_objext \
  6046. conftest$ac_exeext conftest.$ac_ext
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _BitScanReverse64" >&5
  6048. $as_echo_n "checking for _BitScanReverse64... " >&6; }
  6049. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6050. /* end confdefs.h. */
  6051. $ac_includes_default
  6052. int main(void) {
  6053. (void)_BitScanReverse64(0);
  6054. return 0;
  6055. }
  6056. _ACEOF
  6057. if ac_fn_c_try_link "$LINENO"; then :
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6059. $as_echo "yes" >&6; }
  6060. $as_echo "#define HAVE__BITSCANREVERSE64 1" >>confdefs.h
  6061. else
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6063. $as_echo "no" >&6; }
  6064. fi
  6065. rm -f core conftest.err conftest.$ac_objext \
  6066. conftest$ac_exeext conftest.$ac_ext
  6067. for ac_func in vsnprintf _vsnprintf
  6068. do :
  6069. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6070. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6071. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6072. cat >>confdefs.h <<_ACEOF
  6073. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6074. _ACEOF
  6075. fi
  6076. done
  6077. for ac_func in snprintf _snprintf
  6078. do :
  6079. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6080. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6081. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6082. cat >>confdefs.h <<_ACEOF
  6083. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6084. _ACEOF
  6085. fi
  6086. done
  6087. for ac_func in strlcpy
  6088. do :
  6089. ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
  6090. if test "x$ac_cv_func_strlcpy" = xyes; then :
  6091. cat >>confdefs.h <<_ACEOF
  6092. #define HAVE_STRLCPY 1
  6093. _ACEOF
  6094. fi
  6095. done
  6096. for ac_func in strrchrnul
  6097. do :
  6098. ac_fn_c_check_func "$LINENO" "strrchrnul" "ac_cv_func_strrchrnul"
  6099. if test "x$ac_cv_func_strrchrnul" = xyes; then :
  6100. cat >>confdefs.h <<_ACEOF
  6101. #define HAVE_STRRCHRNUL 1
  6102. _ACEOF
  6103. fi
  6104. done
  6105. ac_fn_c_check_type "$LINENO" "struct _stati64" "ac_cv_type_struct__stati64" "$ac_includes_default"
  6106. if test "x$ac_cv_type_struct__stati64" = xyes; then :
  6107. cat >>confdefs.h <<_ACEOF
  6108. #define HAVE_STRUCT__STATI64 1
  6109. _ACEOF
  6110. fi
  6111. ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
  6112. if test "x$ac_cv_type_struct_stat" = xyes; then :
  6113. cat >>confdefs.h <<_ACEOF
  6114. #define HAVE_STRUCT_STAT 1
  6115. _ACEOF
  6116. fi
  6117. for ac_func in stat _stati64
  6118. do :
  6119. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6120. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6121. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6122. cat >>confdefs.h <<_ACEOF
  6123. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6124. _ACEOF
  6125. fi
  6126. done
  6127. for ac_func in fstat _fstati64
  6128. do :
  6129. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6130. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6131. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  6132. cat >>confdefs.h <<_ACEOF
  6133. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6134. _ACEOF
  6135. fi
  6136. done
  6137. ac_fn_c_check_decl "$LINENO" "strcasecmp" "ac_cv_have_decl_strcasecmp" "$ac_includes_default"
  6138. if test "x$ac_cv_have_decl_strcasecmp" = xyes; then :
  6139. ac_have_decl=1
  6140. else
  6141. ac_have_decl=0
  6142. fi
  6143. cat >>confdefs.h <<_ACEOF
  6144. #define HAVE_DECL_STRCASECMP $ac_have_decl
  6145. _ACEOF
  6146. ac_fn_c_check_decl "$LINENO" "stricmp" "ac_cv_have_decl_stricmp" "$ac_includes_default"
  6147. if test "x$ac_cv_have_decl_stricmp" = xyes; then :
  6148. ac_have_decl=1
  6149. else
  6150. ac_have_decl=0
  6151. fi
  6152. cat >>confdefs.h <<_ACEOF
  6153. #define HAVE_DECL_STRICMP $ac_have_decl
  6154. _ACEOF
  6155. ac_fn_c_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default"
  6156. if test "x$ac_cv_have_decl_strncasecmp" = xyes; then :
  6157. ac_have_decl=1
  6158. else
  6159. ac_have_decl=0
  6160. fi
  6161. cat >>confdefs.h <<_ACEOF
  6162. #define HAVE_DECL_STRNCASECMP $ac_have_decl
  6163. _ACEOF
  6164. ac_fn_c_check_decl "$LINENO" "strnicmp" "ac_cv_have_decl_strnicmp" "$ac_includes_default"
  6165. if test "x$ac_cv_have_decl_strnicmp" = xyes; then :
  6166. ac_have_decl=1
  6167. else
  6168. ac_have_decl=0
  6169. fi
  6170. cat >>confdefs.h <<_ACEOF
  6171. #define HAVE_DECL_STRNICMP $ac_have_decl
  6172. _ACEOF
  6173. ac_fn_c_check_decl "$LINENO" "strsep" "ac_cv_have_decl_strsep" "$ac_includes_default"
  6174. if test "x$ac_cv_have_decl_strsep" = xyes; then :
  6175. ac_have_decl=1
  6176. else
  6177. ac_have_decl=0
  6178. fi
  6179. cat >>confdefs.h <<_ACEOF
  6180. #define HAVE_DECL_STRSEP $ac_have_decl
  6181. _ACEOF
  6182. ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "$ac_includes_default"
  6183. if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
  6184. ac_have_decl=1
  6185. else
  6186. ac_have_decl=0
  6187. fi
  6188. cat >>confdefs.h <<_ACEOF
  6189. #define HAVE_DECL_STRLCPY $ac_have_decl
  6190. _ACEOF
  6191. ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
  6192. if test "x$ac_cv_have_decl_strnlen" = xyes; then :
  6193. ac_have_decl=1
  6194. else
  6195. ac_have_decl=0
  6196. fi
  6197. cat >>confdefs.h <<_ACEOF
  6198. #define HAVE_DECL_STRNLEN $ac_have_decl
  6199. _ACEOF
  6200. ac_fn_c_check_decl "$LINENO" "strrchrnul" "ac_cv_have_decl_strrchrnul" "$ac_includes_default"
  6201. if test "x$ac_cv_have_decl_strrchrnul" = xyes; then :
  6202. ac_have_decl=1
  6203. else
  6204. ac_have_decl=0
  6205. fi
  6206. cat >>confdefs.h <<_ACEOF
  6207. #define HAVE_DECL_STRRCHRNUL $ac_have_decl
  6208. _ACEOF
  6209. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  6210. if test "x$ac_cv_type_uintptr_t" = xyes; then :
  6211. $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
  6212. else
  6213. for ac_type in 'unsigned int' 'unsigned long int' \
  6214. 'unsigned long long int'; do
  6215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6216. /* end confdefs.h. */
  6217. $ac_includes_default
  6218. int
  6219. main ()
  6220. {
  6221. static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
  6222. test_array [0] = 0;
  6223. return test_array [0];
  6224. ;
  6225. return 0;
  6226. }
  6227. _ACEOF
  6228. if ac_fn_c_try_compile "$LINENO"; then :
  6229. cat >>confdefs.h <<_ACEOF
  6230. #define uintptr_t $ac_type
  6231. _ACEOF
  6232. ac_type=
  6233. fi
  6234. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6235. test -z "$ac_type" && break
  6236. done
  6237. fi
  6238. # Check whether --enable-pdf-compression was given.
  6239. if test "${enable_pdf_compression+set}" = set; then :
  6240. enableval=$enable_pdf_compression;
  6241. else
  6242. enableval=yes
  6243. fi
  6244. if test x"$enableval" = xno; then :
  6245. PDFOPT='-nocompress'
  6246. fi
  6247. for ac_header in endian.h
  6248. do :
  6249. ac_fn_c_check_header_mongrel "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
  6250. if test "x$ac_cv_header_endian_h" = xyes; then :
  6251. cat >>confdefs.h <<_ACEOF
  6252. #define HAVE_ENDIAN_H 1
  6253. _ACEOF
  6254. ac_includes_default="$ac_includes_default
  6255. #include <endian.h>"
  6256. fi
  6257. done
  6258. for ac_header in sys/endian.h
  6259. do :
  6260. ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
  6261. if test "x$ac_cv_header_sys_endian_h" = xyes; then :
  6262. cat >>confdefs.h <<_ACEOF
  6263. #define HAVE_SYS_ENDIAN_H 1
  6264. _ACEOF
  6265. ac_includes_default="$ac_includes_default
  6266. #include <sys/endian.h>"
  6267. fi
  6268. done
  6269. for ac_header in machine/endian.h
  6270. do :
  6271. ac_fn_c_check_header_mongrel "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default"
  6272. if test "x$ac_cv_header_machine_endian_h" = xyes; then :
  6273. cat >>confdefs.h <<_ACEOF
  6274. #define HAVE_MACHINE_ENDIAN_H 1
  6275. _ACEOF
  6276. ac_includes_default="$ac_includes_default
  6277. #include <machine/endian.h>"
  6278. fi
  6279. done
  6280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le16" >&5
  6281. $as_echo_n "checking for cpu_to_le16... " >&6; }
  6282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6283. /* end confdefs.h. */
  6284. $ac_includes_default
  6285. int main(void) {
  6286. (void)cpu_to_le16(0);
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. if ac_fn_c_try_link "$LINENO"; then :
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6292. $as_echo "yes" >&6; }
  6293. $as_echo "#define HAVE_CPU_TO_LE16 1" >>confdefs.h
  6294. else
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6296. $as_echo "no" >&6; }
  6297. fi
  6298. rm -f core conftest.err conftest.$ac_objext \
  6299. conftest$ac_exeext conftest.$ac_ext
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le32" >&5
  6301. $as_echo_n "checking for cpu_to_le32... " >&6; }
  6302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6303. /* end confdefs.h. */
  6304. $ac_includes_default
  6305. int main(void) {
  6306. (void)cpu_to_le32(0);
  6307. return 0;
  6308. }
  6309. _ACEOF
  6310. if ac_fn_c_try_link "$LINENO"; then :
  6311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6312. $as_echo "yes" >&6; }
  6313. $as_echo "#define HAVE_CPU_TO_LE32 1" >>confdefs.h
  6314. else
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6316. $as_echo "no" >&6; }
  6317. fi
  6318. rm -f core conftest.err conftest.$ac_objext \
  6319. conftest$ac_exeext conftest.$ac_ext
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpu_to_le64" >&5
  6321. $as_echo_n "checking for cpu_to_le64... " >&6; }
  6322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6323. /* end confdefs.h. */
  6324. $ac_includes_default
  6325. int main(void) {
  6326. (void)cpu_to_le64(0);
  6327. return 0;
  6328. }
  6329. _ACEOF
  6330. if ac_fn_c_try_link "$LINENO"; then :
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6332. $as_echo "yes" >&6; }
  6333. $as_echo "#define HAVE_CPU_TO_LE64 1" >>confdefs.h
  6334. else
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6336. $as_echo "no" >&6; }
  6337. fi
  6338. rm -f core conftest.err conftest.$ac_objext \
  6339. conftest$ac_exeext conftest.$ac_ext
  6340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le16" >&5
  6341. $as_echo_n "checking for __cpu_to_le16... " >&6; }
  6342. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6343. /* end confdefs.h. */
  6344. $ac_includes_default
  6345. int main(void) {
  6346. (void)__cpu_to_le16(0);
  6347. return 0;
  6348. }
  6349. _ACEOF
  6350. if ac_fn_c_try_link "$LINENO"; then :
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6352. $as_echo "yes" >&6; }
  6353. $as_echo "#define HAVE___CPU_TO_LE16 1" >>confdefs.h
  6354. else
  6355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6356. $as_echo "no" >&6; }
  6357. fi
  6358. rm -f core conftest.err conftest.$ac_objext \
  6359. conftest$ac_exeext conftest.$ac_ext
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le32" >&5
  6361. $as_echo_n "checking for __cpu_to_le32... " >&6; }
  6362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6363. /* end confdefs.h. */
  6364. $ac_includes_default
  6365. int main(void) {
  6366. (void)__cpu_to_le32(0);
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. if ac_fn_c_try_link "$LINENO"; then :
  6371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6372. $as_echo "yes" >&6; }
  6373. $as_echo "#define HAVE___CPU_TO_LE32 1" >>confdefs.h
  6374. else
  6375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6376. $as_echo "no" >&6; }
  6377. fi
  6378. rm -f core conftest.err conftest.$ac_objext \
  6379. conftest$ac_exeext conftest.$ac_ext
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpu_to_le64" >&5
  6381. $as_echo_n "checking for __cpu_to_le64... " >&6; }
  6382. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6383. /* end confdefs.h. */
  6384. $ac_includes_default
  6385. int main(void) {
  6386. (void)__cpu_to_le64(0);
  6387. return 0;
  6388. }
  6389. _ACEOF
  6390. if ac_fn_c_try_link "$LINENO"; then :
  6391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6392. $as_echo "yes" >&6; }
  6393. $as_echo "#define HAVE___CPU_TO_LE64 1" >>confdefs.h
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6396. $as_echo "no" >&6; }
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext \
  6399. conftest$ac_exeext conftest.$ac_ext
  6400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole16" >&5
  6401. $as_echo_n "checking for htole16... " >&6; }
  6402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6403. /* end confdefs.h. */
  6404. $ac_includes_default
  6405. int main(void) {
  6406. (void)htole16(0);
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. if ac_fn_c_try_link "$LINENO"; then :
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6412. $as_echo "yes" >&6; }
  6413. $as_echo "#define HAVE_HTOLE16 1" >>confdefs.h
  6414. else
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6416. $as_echo "no" >&6; }
  6417. fi
  6418. rm -f core conftest.err conftest.$ac_objext \
  6419. conftest$ac_exeext conftest.$ac_ext
  6420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole32" >&5
  6421. $as_echo_n "checking for htole32... " >&6; }
  6422. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6423. /* end confdefs.h. */
  6424. $ac_includes_default
  6425. int main(void) {
  6426. (void)htole32(0);
  6427. return 0;
  6428. }
  6429. _ACEOF
  6430. if ac_fn_c_try_link "$LINENO"; then :
  6431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6432. $as_echo "yes" >&6; }
  6433. $as_echo "#define HAVE_HTOLE32 1" >>confdefs.h
  6434. else
  6435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6436. $as_echo "no" >&6; }
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htole64" >&5
  6441. $as_echo_n "checking for htole64... " >&6; }
  6442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6443. /* end confdefs.h. */
  6444. $ac_includes_default
  6445. int main(void) {
  6446. (void)htole64(0);
  6447. return 0;
  6448. }
  6449. _ACEOF
  6450. if ac_fn_c_try_link "$LINENO"; then :
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6452. $as_echo "yes" >&6; }
  6453. $as_echo "#define HAVE_HTOLE64 1" >>confdefs.h
  6454. else
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6456. $as_echo "no" >&6; }
  6457. fi
  6458. rm -f core conftest.err conftest.$ac_objext \
  6459. conftest$ac_exeext conftest.$ac_ext
  6460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_16" >&5
  6461. $as_echo_n "checking for __bswap_16... " >&6; }
  6462. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6463. /* end confdefs.h. */
  6464. $ac_includes_default
  6465. int main(void) {
  6466. (void)__bswap_16(0);
  6467. return 0;
  6468. }
  6469. _ACEOF
  6470. if ac_fn_c_try_link "$LINENO"; then :
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6472. $as_echo "yes" >&6; }
  6473. $as_echo "#define HAVE___BSWAP_16 1" >>confdefs.h
  6474. else
  6475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6476. $as_echo "no" >&6; }
  6477. fi
  6478. rm -f core conftest.err conftest.$ac_objext \
  6479. conftest$ac_exeext conftest.$ac_ext
  6480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_32" >&5
  6481. $as_echo_n "checking for __bswap_32... " >&6; }
  6482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6483. /* end confdefs.h. */
  6484. $ac_includes_default
  6485. int main(void) {
  6486. (void)__bswap_32(0);
  6487. return 0;
  6488. }
  6489. _ACEOF
  6490. if ac_fn_c_try_link "$LINENO"; then :
  6491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6492. $as_echo "yes" >&6; }
  6493. $as_echo "#define HAVE___BSWAP_32 1" >>confdefs.h
  6494. else
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6496. $as_echo "no" >&6; }
  6497. fi
  6498. rm -f core conftest.err conftest.$ac_objext \
  6499. conftest$ac_exeext conftest.$ac_ext
  6500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __bswap_64" >&5
  6501. $as_echo_n "checking for __bswap_64... " >&6; }
  6502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. int main(void) {
  6506. (void)__bswap_64(0);
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. if ac_fn_c_try_link "$LINENO"; then :
  6511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6512. $as_echo "yes" >&6; }
  6513. $as_echo "#define HAVE___BSWAP_64 1" >>confdefs.h
  6514. else
  6515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6516. $as_echo "no" >&6; }
  6517. fi
  6518. rm -f core conftest.err conftest.$ac_objext \
  6519. conftest$ac_exeext conftest.$ac_ext
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5
  6521. $as_echo_n "checking for __builtin_bswap16... " >&6; }
  6522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6523. /* end confdefs.h. */
  6524. $ac_includes_default
  6525. int main(void) {
  6526. (void)__builtin_bswap16(0);
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. if ac_fn_c_try_link "$LINENO"; then :
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6532. $as_echo "yes" >&6; }
  6533. $as_echo "#define HAVE___BUILTIN_BSWAP16 1" >>confdefs.h
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. rm -f core conftest.err conftest.$ac_objext \
  6539. conftest$ac_exeext conftest.$ac_ext
  6540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
  6541. $as_echo_n "checking for __builtin_bswap32... " >&6; }
  6542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6543. /* end confdefs.h. */
  6544. $ac_includes_default
  6545. int main(void) {
  6546. (void)__builtin_bswap32(0);
  6547. return 0;
  6548. }
  6549. _ACEOF
  6550. if ac_fn_c_try_link "$LINENO"; then :
  6551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6552. $as_echo "yes" >&6; }
  6553. $as_echo "#define HAVE___BUILTIN_BSWAP32 1" >>confdefs.h
  6554. else
  6555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6556. $as_echo "no" >&6; }
  6557. fi
  6558. rm -f core conftest.err conftest.$ac_objext \
  6559. conftest$ac_exeext conftest.$ac_ext
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
  6561. $as_echo_n "checking for __builtin_bswap64... " >&6; }
  6562. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6563. /* end confdefs.h. */
  6564. $ac_includes_default
  6565. int main(void) {
  6566. (void)__builtin_bswap64(0);
  6567. return 0;
  6568. }
  6569. _ACEOF
  6570. if ac_fn_c_try_link "$LINENO"; then :
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6572. $as_echo "yes" >&6; }
  6573. $as_echo "#define HAVE___BUILTIN_BSWAP64 1" >>confdefs.h
  6574. else
  6575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6576. $as_echo "no" >&6; }
  6577. fi
  6578. rm -f core conftest.err conftest.$ac_objext \
  6579. conftest$ac_exeext conftest.$ac_ext
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ushort" >&5
  6581. $as_echo_n "checking for _byteswap_ushort... " >&6; }
  6582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6583. /* end confdefs.h. */
  6584. $ac_includes_default
  6585. int main(void) {
  6586. (void)_byteswap_ushort(0);
  6587. return 0;
  6588. }
  6589. _ACEOF
  6590. if ac_fn_c_try_link "$LINENO"; then :
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6592. $as_echo "yes" >&6; }
  6593. $as_echo "#define HAVE__BYTESWAP_USHORT 1" >>confdefs.h
  6594. else
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6596. $as_echo "no" >&6; }
  6597. fi
  6598. rm -f core conftest.err conftest.$ac_objext \
  6599. conftest$ac_exeext conftest.$ac_ext
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_ulong" >&5
  6601. $as_echo_n "checking for _byteswap_ulong... " >&6; }
  6602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6603. /* end confdefs.h. */
  6604. $ac_includes_default
  6605. int main(void) {
  6606. (void)_byteswap_ulong(0);
  6607. return 0;
  6608. }
  6609. _ACEOF
  6610. if ac_fn_c_try_link "$LINENO"; then :
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6612. $as_echo "yes" >&6; }
  6613. $as_echo "#define HAVE__BYTESWAP_ULONG 1" >>confdefs.h
  6614. else
  6615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6616. $as_echo "no" >&6; }
  6617. fi
  6618. rm -f core conftest.err conftest.$ac_objext \
  6619. conftest$ac_exeext conftest.$ac_ext
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _byteswap_uint64" >&5
  6621. $as_echo_n "checking for _byteswap_uint64... " >&6; }
  6622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6623. /* end confdefs.h. */
  6624. $ac_includes_default
  6625. int main(void) {
  6626. (void)_byteswap_uint64(0);
  6627. return 0;
  6628. }
  6629. _ACEOF
  6630. if ac_fn_c_try_link "$LINENO"; then :
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6632. $as_echo "yes" >&6; }
  6633. $as_echo "#define HAVE__BYTESWAP_UINT64 1" >>confdefs.h
  6634. else
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6636. $as_echo "no" >&6; }
  6637. fi
  6638. rm -f core conftest.err conftest.$ac_objext \
  6639. conftest$ac_exeext conftest.$ac_ext
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5
  6641. $as_echo_n "checking for __builtin_constant_p... " >&6; }
  6642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6643. /* end confdefs.h. */
  6644. $ac_includes_default
  6645. int main(void) {
  6646. (void)__builtin_constant_p(0);
  6647. return 0;
  6648. }
  6649. _ACEOF
  6650. if ac_fn_c_try_link "$LINENO"; then :
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6652. $as_echo "yes" >&6; }
  6653. $as_echo "#define HAVE___BUILTIN_CONSTANT_P 1" >>confdefs.h
  6654. else
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6656. $as_echo "no" >&6; }
  6657. fi
  6658. rm -f core conftest.err conftest.$ac_objext \
  6659. conftest$ac_exeext conftest.$ac_ext
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=attributes" >&5
  6661. $as_echo_n "checking if $CC accepts -Werror=attributes... " >&6; }
  6662. pa_add_cflags__old_cflags="$CFLAGS"
  6663. CFLAGS="$CFLAGS -Werror=attributes"
  6664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6665. /* end confdefs.h. */
  6666. $ac_includes_default
  6667. int
  6668. main ()
  6669. {
  6670. printf("Hello, World!\n");
  6671. ;
  6672. return 0;
  6673. }
  6674. _ACEOF
  6675. if ac_fn_c_try_link "$LINENO"; then :
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6677. $as_echo "yes" >&6; }
  6678. CFLAGS="$pa_add_cflags__old_cflags -Werror=attributes"
  6679. $as_echo "#define CFLAG_WERROR_ATTRIBUTES 1" >>confdefs.h
  6680. else
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6682. $as_echo "no" >&6; }
  6683. CFLAGS="$pa_add_cflags__old_cflags"
  6684. fi
  6685. rm -f core conftest.err conftest.$ac_objext \
  6686. conftest$ac_exeext conftest.$ac_ext
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the noreturn function attribute" >&5
  6688. $as_echo_n "checking if $CC supports the noreturn function attribute... " >&6; }
  6689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6690. /* end confdefs.h. */
  6691. $ac_includes_default
  6692. extern void * __attribute__((noreturn))
  6693. bar(int);
  6694. void * foo(void);
  6695. void * foo(void)
  6696. {
  6697. return
  6698. bar(1);
  6699. }
  6700. _ACEOF
  6701. if ac_fn_c_try_compile "$LINENO"; then :
  6702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6703. $as_echo "yes" >&6; }
  6704. $as_echo "#define HAVE_FUNC_ATTRIBUTE_NORETURN 1" >>confdefs.h
  6705. else
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6707. $as_echo "no" >&6; }
  6708. fi
  6709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the returns_nonnull function attribute" >&5
  6711. $as_echo_n "checking if $CC supports the returns_nonnull function attribute... " >&6; }
  6712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6713. /* end confdefs.h. */
  6714. $ac_includes_default
  6715. extern void * __attribute__((returns_nonnull))
  6716. bar(int);
  6717. void * foo(void);
  6718. void * foo(void)
  6719. {
  6720. return
  6721. bar(1);
  6722. }
  6723. _ACEOF
  6724. if ac_fn_c_try_compile "$LINENO"; then :
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6726. $as_echo "yes" >&6; }
  6727. $as_echo "#define HAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL 1" >>confdefs.h
  6728. else
  6729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6730. $as_echo "no" >&6; }
  6731. fi
  6732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the malloc function attribute" >&5
  6734. $as_echo_n "checking if $CC supports the malloc function attribute... " >&6; }
  6735. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6736. /* end confdefs.h. */
  6737. $ac_includes_default
  6738. extern void * __attribute__((malloc))
  6739. bar(int);
  6740. void * foo(void);
  6741. void * foo(void)
  6742. {
  6743. return
  6744. bar(1);
  6745. }
  6746. _ACEOF
  6747. if ac_fn_c_try_compile "$LINENO"; then :
  6748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6749. $as_echo "yes" >&6; }
  6750. $as_echo "#define HAVE_FUNC_ATTRIBUTE_MALLOC 1" >>confdefs.h
  6751. else
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6753. $as_echo "no" >&6; }
  6754. fi
  6755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the alloc_size function attribute" >&5
  6757. $as_echo_n "checking if $CC supports the alloc_size function attribute... " >&6; }
  6758. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6759. /* end confdefs.h. */
  6760. $ac_includes_default
  6761. extern void * __attribute__((alloc_size(1)))
  6762. bar(int);
  6763. void * foo(void);
  6764. void * foo(void)
  6765. {
  6766. return
  6767. bar(1);
  6768. }
  6769. _ACEOF
  6770. if ac_fn_c_try_compile "$LINENO"; then :
  6771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6772. $as_echo "yes" >&6; }
  6773. $as_echo "#define HAVE_FUNC_ATTRIBUTE_ALLOC_SIZE 1" >>confdefs.h
  6774. else
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6776. $as_echo "no" >&6; }
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the sentinel function attribute" >&5
  6780. $as_echo_n "checking if $CC supports the sentinel function attribute... " >&6; }
  6781. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6782. /* end confdefs.h. */
  6783. $ac_includes_default
  6784. extern void * __attribute__((sentinel))
  6785. bar(const char *, ...);
  6786. void * foo(void);
  6787. void * foo(void)
  6788. {
  6789. return
  6790. bar("a","b",NULL);
  6791. }
  6792. _ACEOF
  6793. if ac_fn_c_try_compile "$LINENO"; then :
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6795. $as_echo "yes" >&6; }
  6796. $as_echo "#define HAVE_FUNC_ATTRIBUTE_SENTINEL 1" >>confdefs.h
  6797. else
  6798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6799. $as_echo "no" >&6; }
  6800. fi
  6801. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the format function attribute" >&5
  6803. $as_echo_n "checking if $CC supports the format function attribute... " >&6; }
  6804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6805. /* end confdefs.h. */
  6806. $ac_includes_default
  6807. extern int __attribute__((format(printf,1,2)))
  6808. bar(const char *, ...);
  6809. int foo(void);
  6810. int foo(void)
  6811. {
  6812. return
  6813. bar("%d",1);
  6814. }
  6815. _ACEOF
  6816. if ac_fn_c_try_compile "$LINENO"; then :
  6817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6818. $as_echo "yes" >&6; }
  6819. $as_echo "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
  6820. else
  6821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6822. $as_echo "no" >&6; }
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6825. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the const function attribute" >&5
  6826. $as_echo_n "checking if $CC supports the const function attribute... " >&6; }
  6827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6828. /* end confdefs.h. */
  6829. $ac_includes_default
  6830. extern void * __attribute__((const))
  6831. bar(int);
  6832. void * foo(void);
  6833. void * foo(void)
  6834. {
  6835. return
  6836. bar(1);
  6837. }
  6838. _ACEOF
  6839. if ac_fn_c_try_compile "$LINENO"; then :
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6841. $as_echo "yes" >&6; }
  6842. $as_echo "#define HAVE_FUNC_ATTRIBUTE_CONST 1" >>confdefs.h
  6843. else
  6844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6845. $as_echo "no" >&6; }
  6846. fi
  6847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the pure function attribute" >&5
  6849. $as_echo_n "checking if $CC supports the pure function attribute... " >&6; }
  6850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6851. /* end confdefs.h. */
  6852. $ac_includes_default
  6853. extern void * __attribute__((pure))
  6854. bar(int);
  6855. void * foo(void);
  6856. void * foo(void)
  6857. {
  6858. return
  6859. bar(1);
  6860. }
  6861. _ACEOF
  6862. if ac_fn_c_try_compile "$LINENO"; then :
  6863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6864. $as_echo "yes" >&6; }
  6865. $as_echo "#define HAVE_FUNC_ATTRIBUTE_PURE 1" >>confdefs.h
  6866. else
  6867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6868. $as_echo "no" >&6; }
  6869. fi
  6870. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the cold function attribute" >&5
  6872. $as_echo_n "checking if $CC supports the cold function attribute... " >&6; }
  6873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6874. /* end confdefs.h. */
  6875. $ac_includes_default
  6876. extern void * __attribute__((cold))
  6877. bar(int);
  6878. void * foo(void);
  6879. void * foo(void)
  6880. {
  6881. return
  6882. bar(1);
  6883. }
  6884. _ACEOF
  6885. if ac_fn_c_try_compile "$LINENO"; then :
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6887. $as_echo "yes" >&6; }
  6888. $as_echo "#define HAVE_FUNC_ATTRIBUTE_COLD 1" >>confdefs.h
  6889. else
  6890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6891. $as_echo "no" >&6; }
  6892. fi
  6893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the error function attribute" >&5
  6895. $as_echo_n "checking if $CC supports the error function attribute... " >&6; }
  6896. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6897. /* end confdefs.h. */
  6898. $ac_includes_default
  6899. extern void __attribute__((error("message"))) barf(void);
  6900. void foo(void);
  6901. void foo(void)
  6902. {
  6903. if (0)
  6904. barf();
  6905. }
  6906. _ACEOF
  6907. if ac_fn_c_try_compile "$LINENO"; then :
  6908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6909. $as_echo "yes" >&6; }
  6910. $as_echo "#define HAVE_FUNC_ATTRIBUTE_ERROR 1" >>confdefs.h
  6911. else
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6913. $as_echo "no" >&6; }
  6914. fi
  6915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6916. # Check whether --enable-sections was given.
  6917. if test "${enable_sections+set}" = set; then :
  6918. enableval=$enable_sections;
  6919. else
  6920. enableval=no
  6921. fi
  6922. if test x"$enableval" != xno; then :
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -ffunction-sections" >&5
  6924. $as_echo_n "checking if $CC accepts -ffunction-sections... " >&6; }
  6925. pa_add_cldflags__old_cflags="$CFLAGS"
  6926. CFLAGS="$CFLAGS -ffunction-sections"
  6927. pa_add_cldflags__old_ldflags="$LDFLAGS"
  6928. LDFLAGS="$LDFLAGS -ffunction-sections"
  6929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6930. /* end confdefs.h. */
  6931. $ac_includes_default
  6932. int
  6933. main ()
  6934. {
  6935. printf("Hello, World!\n");
  6936. ;
  6937. return 0;
  6938. }
  6939. _ACEOF
  6940. if ac_fn_c_try_link "$LINENO"; then :
  6941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6942. $as_echo "yes" >&6; }
  6943. CFLAGS="$pa_add_cldflags__old_cflags -ffunction-sections"
  6944. LDFLAGS="$pa_add_cldflags__old_ldflags -ffunction-sections"
  6945. $as_echo "#define CFLAG_FFUNCTION_SECTIONS 1" >>confdefs.h
  6946. else
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6948. $as_echo "no" >&6; }
  6949. CFLAGS="$pa_add_cldflags__old_cflags"
  6950. LDFLAGS="$pa_add_cldflags__old_ldflags"
  6951. fi
  6952. rm -f core conftest.err conftest.$ac_objext \
  6953. conftest$ac_exeext conftest.$ac_ext
  6954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fdata-sections" >&5
  6955. $as_echo_n "checking if $CC accepts -fdata-sections... " >&6; }
  6956. pa_add_cldflags__old_cflags="$CFLAGS"
  6957. CFLAGS="$CFLAGS -fdata-sections"
  6958. pa_add_cldflags__old_ldflags="$LDFLAGS"
  6959. LDFLAGS="$LDFLAGS -fdata-sections"
  6960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6961. /* end confdefs.h. */
  6962. $ac_includes_default
  6963. int
  6964. main ()
  6965. {
  6966. printf("Hello, World!\n");
  6967. ;
  6968. return 0;
  6969. }
  6970. _ACEOF
  6971. if ac_fn_c_try_link "$LINENO"; then :
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6973. $as_echo "yes" >&6; }
  6974. CFLAGS="$pa_add_cldflags__old_cflags -fdata-sections"
  6975. LDFLAGS="$pa_add_cldflags__old_ldflags -fdata-sections"
  6976. $as_echo "#define CFLAG_FDATA_SECTIONS 1" >>confdefs.h
  6977. else
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6979. $as_echo "no" >&6; }
  6980. CFLAGS="$pa_add_cldflags__old_cflags"
  6981. LDFLAGS="$pa_add_cldflags__old_ldflags"
  6982. fi
  6983. rm -f core conftest.err conftest.$ac_objext \
  6984. conftest$ac_exeext conftest.$ac_ext
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wl,--gc-sections" >&5
  6986. $as_echo_n "checking if $CC accepts -Wl,--gc-sections... " >&6; }
  6987. pa_add_cldflags__old_cflags="$CFLAGS"
  6988. CFLAGS="$CFLAGS -Wl,--gc-sections"
  6989. pa_add_cldflags__old_ldflags="$LDFLAGS"
  6990. LDFLAGS="$LDFLAGS -Wl,--gc-sections"
  6991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6992. /* end confdefs.h. */
  6993. $ac_includes_default
  6994. int
  6995. main ()
  6996. {
  6997. printf("Hello, World!\n");
  6998. ;
  6999. return 0;
  7000. }
  7001. _ACEOF
  7002. if ac_fn_c_try_link "$LINENO"; then :
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7004. $as_echo "yes" >&6; }
  7005. CFLAGS="$pa_add_cldflags__old_cflags -Wl,--gc-sections"
  7006. LDFLAGS="$pa_add_cldflags__old_ldflags -Wl,--gc-sections"
  7007. $as_echo "#define CFLAG_WL_GC_SECTIONS 1" >>confdefs.h
  7008. else
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7010. $as_echo "no" >&6; }
  7011. CFLAGS="$pa_add_cldflags__old_cflags"
  7012. LDFLAGS="$pa_add_cldflags__old_ldflags"
  7013. fi
  7014. rm -f core conftest.err conftest.$ac_objext \
  7015. conftest$ac_exeext conftest.$ac_ext
  7016. fi
  7017. # Check whether --enable-lto was given.
  7018. if test "${enable_lto+set}" = set; then :
  7019. enableval=$enable_lto;
  7020. else
  7021. enableval=no
  7022. fi
  7023. if test x"$enableval" != xno; then :
  7024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -flto" >&5
  7025. $as_echo_n "checking if $CC accepts -flto... " >&6; }
  7026. pa_add_cldflags__old_cflags="$CFLAGS"
  7027. CFLAGS="$CFLAGS -flto"
  7028. pa_add_cldflags__old_ldflags="$LDFLAGS"
  7029. LDFLAGS="$LDFLAGS -flto"
  7030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7031. /* end confdefs.h. */
  7032. $ac_includes_default
  7033. int
  7034. main ()
  7035. {
  7036. printf("Hello, World!\n");
  7037. ;
  7038. return 0;
  7039. }
  7040. _ACEOF
  7041. if ac_fn_c_try_link "$LINENO"; then :
  7042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7043. $as_echo "yes" >&6; }
  7044. CFLAGS="$pa_add_cldflags__old_cflags -flto"
  7045. LDFLAGS="$pa_add_cldflags__old_ldflags -flto"
  7046. $as_echo "#define CFLAG_FLTO 1" >>confdefs.h
  7047. else
  7048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7049. $as_echo "no" >&6; }
  7050. CFLAGS="$pa_add_cldflags__old_cflags"
  7051. LDFLAGS="$pa_add_cldflags__old_ldflags"
  7052. fi
  7053. rm -f core conftest.err conftest.$ac_objext \
  7054. conftest$ac_exeext conftest.$ac_ext
  7055. ccbase=`echo "$CC" | awk '{ print $1; }'`
  7056. for ac_prog in ${ccbase}-ar
  7057. do
  7058. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7059. set dummy $ac_prog; ac_word=$2
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7061. $as_echo_n "checking for $ac_word... " >&6; }
  7062. if ${ac_cv_prog_CC_AR+:} false; then :
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. if test -n "$CC_AR"; then
  7066. ac_cv_prog_CC_AR="$CC_AR" # Let the user override the test.
  7067. else
  7068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7069. for as_dir in $PATH
  7070. do
  7071. IFS=$as_save_IFS
  7072. test -z "$as_dir" && as_dir=.
  7073. for ac_exec_ext in '' $ac_executable_extensions; do
  7074. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7075. ac_cv_prog_CC_AR="$ac_prog"
  7076. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7077. break 2
  7078. fi
  7079. done
  7080. done
  7081. IFS=$as_save_IFS
  7082. fi
  7083. fi
  7084. CC_AR=$ac_cv_prog_CC_AR
  7085. if test -n "$CC_AR"; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_AR" >&5
  7087. $as_echo "$CC_AR" >&6; }
  7088. else
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7090. $as_echo "no" >&6; }
  7091. fi
  7092. test -n "$CC_AR" && break
  7093. done
  7094. test -n "$CC_AR" || CC_AR="$ac_cv_prog_AR"
  7095. AR="$CC_AR"
  7096. for ac_prog in ${ccbase}-ranlib
  7097. do
  7098. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7099. set dummy $ac_prog; ac_word=$2
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7101. $as_echo_n "checking for $ac_word... " >&6; }
  7102. if ${ac_cv_prog_CC_RANLIB+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. if test -n "$CC_RANLIB"; then
  7106. ac_cv_prog_CC_RANLIB="$CC_RANLIB" # Let the user override the test.
  7107. else
  7108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7109. for as_dir in $PATH
  7110. do
  7111. IFS=$as_save_IFS
  7112. test -z "$as_dir" && as_dir=.
  7113. for ac_exec_ext in '' $ac_executable_extensions; do
  7114. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7115. ac_cv_prog_CC_RANLIB="$ac_prog"
  7116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7117. break 2
  7118. fi
  7119. done
  7120. done
  7121. IFS=$as_save_IFS
  7122. fi
  7123. fi
  7124. CC_RANLIB=$ac_cv_prog_CC_RANLIB
  7125. if test -n "$CC_RANLIB"; then
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_RANLIB" >&5
  7127. $as_echo "$CC_RANLIB" >&6; }
  7128. else
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7130. $as_echo "no" >&6; }
  7131. fi
  7132. test -n "$CC_RANLIB" && break
  7133. done
  7134. test -n "$CC_RANLIB" || CC_RANLIB="$ac_cv_prog_RANLIB"
  7135. RANLIB="$CC_RANLIB"
  7136. fi
  7137. # Check whether --enable-sanitizer was given.
  7138. if test "${enable_sanitizer+set}" = set; then :
  7139. enableval=$enable_sanitizer;
  7140. else
  7141. enableval=no
  7142. fi
  7143. if test x"$enableval" != xno; then :
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-omit-frame-pointer" >&5
  7145. $as_echo_n "checking if $CC accepts -fno-omit-frame-pointer... " >&6; }
  7146. pa_add_cflags__old_cflags="$CFLAGS"
  7147. CFLAGS="$CFLAGS -fno-omit-frame-pointer"
  7148. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7149. /* end confdefs.h. */
  7150. $ac_includes_default
  7151. int
  7152. main ()
  7153. {
  7154. printf("Hello, World!\n");
  7155. ;
  7156. return 0;
  7157. }
  7158. _ACEOF
  7159. if ac_fn_c_try_link "$LINENO"; then :
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7161. $as_echo "yes" >&6; }
  7162. CFLAGS="$pa_add_cflags__old_cflags -fno-omit-frame-pointer"
  7163. $as_echo "#define CFLAG_FNO_OMIT_FRAME_POINTER 1" >>confdefs.h
  7164. else
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7166. $as_echo "no" >&6; }
  7167. CFLAGS="$pa_add_cflags__old_cflags"
  7168. fi
  7169. rm -f core conftest.err conftest.$ac_objext \
  7170. conftest$ac_exeext conftest.$ac_ext
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fsanitize=address" >&5
  7172. $as_echo_n "checking if $CC accepts -fsanitize=address... " >&6; }
  7173. pa_add_cldflags__old_cflags="$CFLAGS"
  7174. CFLAGS="$CFLAGS -fsanitize=address"
  7175. pa_add_cldflags__old_ldflags="$LDFLAGS"
  7176. LDFLAGS="$LDFLAGS -fsanitize=address"
  7177. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7178. /* end confdefs.h. */
  7179. $ac_includes_default
  7180. int
  7181. main ()
  7182. {
  7183. printf("Hello, World!\n");
  7184. ;
  7185. return 0;
  7186. }
  7187. _ACEOF
  7188. if ac_fn_c_try_link "$LINENO"; then :
  7189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7190. $as_echo "yes" >&6; }
  7191. CFLAGS="$pa_add_cldflags__old_cflags -fsanitize=address"
  7192. LDFLAGS="$pa_add_cldflags__old_ldflags -fsanitize=address"
  7193. $as_echo "#define CFLAG_FSANITIZE_ADDRESS 1" >>confdefs.h
  7194. else
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7196. $as_echo "no" >&6; }
  7197. CFLAGS="$pa_add_cldflags__old_cflags"
  7198. LDFLAGS="$pa_add_cldflags__old_ldflags"
  7199. fi
  7200. rm -f core conftest.err conftest.$ac_objext \
  7201. conftest$ac_exeext conftest.$ac_ext
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fsanitize=undefined" >&5
  7203. $as_echo_n "checking if $CC accepts -fsanitize=undefined... " >&6; }
  7204. pa_add_cldflags__old_cflags="$CFLAGS"
  7205. CFLAGS="$CFLAGS -fsanitize=undefined"
  7206. pa_add_cldflags__old_ldflags="$LDFLAGS"
  7207. LDFLAGS="$LDFLAGS -fsanitize=undefined"
  7208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7209. /* end confdefs.h. */
  7210. $ac_includes_default
  7211. int
  7212. main ()
  7213. {
  7214. printf("Hello, World!\n");
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. if ac_fn_c_try_link "$LINENO"; then :
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7221. $as_echo "yes" >&6; }
  7222. CFLAGS="$pa_add_cldflags__old_cflags -fsanitize=undefined"
  7223. LDFLAGS="$pa_add_cldflags__old_ldflags -fsanitize=undefined"
  7224. $as_echo "#define CFLAG_FSANITIZE_UNDEFINED 1" >>confdefs.h
  7225. else
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7227. $as_echo "no" >&6; }
  7228. CFLAGS="$pa_add_cldflags__old_cflags"
  7229. LDFLAGS="$pa_add_cldflags__old_ldflags"
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext \
  7232. conftest$ac_exeext conftest.$ac_ext
  7233. fi
  7234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fvisibility=hidden" >&5
  7235. $as_echo_n "checking if $CC accepts -fvisibility=hidden... " >&6; }
  7236. pa_add_cldflags__old_cflags="$CFLAGS"
  7237. CFLAGS="$CFLAGS -fvisibility=hidden"
  7238. pa_add_cldflags__old_ldflags="$LDFLAGS"
  7239. LDFLAGS="$LDFLAGS -fvisibility=hidden"
  7240. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7241. /* end confdefs.h. */
  7242. $ac_includes_default
  7243. int
  7244. main ()
  7245. {
  7246. printf("Hello, World!\n");
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. if ac_fn_c_try_link "$LINENO"; then :
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7253. $as_echo "yes" >&6; }
  7254. CFLAGS="$pa_add_cldflags__old_cflags -fvisibility=hidden"
  7255. LDFLAGS="$pa_add_cldflags__old_ldflags -fvisibility=hidden"
  7256. $as_echo "#define CFLAG_FVISIBILITY_HIDDEN 1" >>confdefs.h
  7257. else
  7258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7259. $as_echo "no" >&6; }
  7260. CFLAGS="$pa_add_cldflags__old_cflags"
  7261. LDFLAGS="$pa_add_cldflags__old_ldflags"
  7262. fi
  7263. rm -f core conftest.err conftest.$ac_objext \
  7264. conftest$ac_exeext conftest.$ac_ext
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -W" >&5
  7266. $as_echo_n "checking if $CC accepts -W... " >&6; }
  7267. pa_add_cflags__old_cflags="$CFLAGS"
  7268. CFLAGS="$CFLAGS -W"
  7269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7270. /* end confdefs.h. */
  7271. $ac_includes_default
  7272. int
  7273. main ()
  7274. {
  7275. printf("Hello, World!\n");
  7276. ;
  7277. return 0;
  7278. }
  7279. _ACEOF
  7280. if ac_fn_c_try_link "$LINENO"; then :
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7282. $as_echo "yes" >&6; }
  7283. CFLAGS="$pa_add_cflags__old_cflags -W"
  7284. $as_echo "#define CFLAG_W 1" >>confdefs.h
  7285. else
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7287. $as_echo "no" >&6; }
  7288. CFLAGS="$pa_add_cflags__old_cflags"
  7289. fi
  7290. rm -f core conftest.err conftest.$ac_objext \
  7291. conftest$ac_exeext conftest.$ac_ext
  7292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wall" >&5
  7293. $as_echo_n "checking if $CC accepts -Wall... " >&6; }
  7294. pa_add_cflags__old_cflags="$CFLAGS"
  7295. CFLAGS="$CFLAGS -Wall"
  7296. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7297. /* end confdefs.h. */
  7298. $ac_includes_default
  7299. int
  7300. main ()
  7301. {
  7302. printf("Hello, World!\n");
  7303. ;
  7304. return 0;
  7305. }
  7306. _ACEOF
  7307. if ac_fn_c_try_link "$LINENO"; then :
  7308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7309. $as_echo "yes" >&6; }
  7310. CFLAGS="$pa_add_cflags__old_cflags -Wall"
  7311. $as_echo "#define CFLAG_WALL 1" >>confdefs.h
  7312. else
  7313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7314. $as_echo "no" >&6; }
  7315. CFLAGS="$pa_add_cflags__old_cflags"
  7316. fi
  7317. rm -f core conftest.err conftest.$ac_objext \
  7318. conftest$ac_exeext conftest.$ac_ext
  7319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -pedantic" >&5
  7320. $as_echo_n "checking if $CC accepts -pedantic... " >&6; }
  7321. pa_add_cflags__old_cflags="$CFLAGS"
  7322. CFLAGS="$CFLAGS -pedantic"
  7323. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7324. /* end confdefs.h. */
  7325. $ac_includes_default
  7326. int
  7327. main ()
  7328. {
  7329. printf("Hello, World!\n");
  7330. ;
  7331. return 0;
  7332. }
  7333. _ACEOF
  7334. if ac_fn_c_try_link "$LINENO"; then :
  7335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7336. $as_echo "yes" >&6; }
  7337. CFLAGS="$pa_add_cflags__old_cflags -pedantic"
  7338. $as_echo "#define CFLAG_PEDANTIC 1" >>confdefs.h
  7339. else
  7340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7341. $as_echo "no" >&6; }
  7342. CFLAGS="$pa_add_cflags__old_cflags"
  7343. fi
  7344. rm -f core conftest.err conftest.$ac_objext \
  7345. conftest$ac_exeext conftest.$ac_ext
  7346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=unknown-warning-option" >&5
  7347. $as_echo_n "checking if $CC accepts -Werror=unknown-warning-option... " >&6; }
  7348. pa_add_cflags__old_cflags="$CFLAGS"
  7349. CFLAGS="$CFLAGS -Werror=unknown-warning-option"
  7350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7351. /* end confdefs.h. */
  7352. $ac_includes_default
  7353. int
  7354. main ()
  7355. {
  7356. printf("Hello, World!\n");
  7357. ;
  7358. return 0;
  7359. }
  7360. _ACEOF
  7361. if ac_fn_c_try_link "$LINENO"; then :
  7362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7363. $as_echo "yes" >&6; }
  7364. CFLAGS="$pa_add_cflags__old_cflags -Werror=unknown-warning-option"
  7365. $as_echo "#define CFLAG_WERROR_UNKNOWN_WARNING_OPTION 1" >>confdefs.h
  7366. else
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7368. $as_echo "no" >&6; }
  7369. CFLAGS="$pa_add_cflags__old_cflags"
  7370. fi
  7371. rm -f core conftest.err conftest.$ac_objext \
  7372. conftest$ac_exeext conftest.$ac_ext
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wpedantic-ms-format" >&5
  7374. $as_echo_n "checking if $CC accepts -Wpedantic-ms-format... " >&6; }
  7375. pa_add_cflags__old_cflags="$CFLAGS"
  7376. CFLAGS="$CFLAGS -Wpedantic-ms-format"
  7377. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7378. /* end confdefs.h. */
  7379. $ac_includes_default
  7380. int
  7381. main ()
  7382. {
  7383. printf("Hello, World!\n");
  7384. ;
  7385. return 0;
  7386. }
  7387. _ACEOF
  7388. if ac_fn_c_try_link "$LINENO"; then :
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7390. $as_echo "yes" >&6; }
  7391. CFLAGS="$pa_add_cflags__old_cflags -Wno-pedantic-ms-format"
  7392. $as_echo "#define CFLAG_WPEDANTIC_MS_FORMAT 1" >>confdefs.h
  7393. else
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7395. $as_echo "no" >&6; }
  7396. CFLAGS="$pa_add_cflags__old_cflags"
  7397. fi
  7398. rm -f core conftest.err conftest.$ac_objext \
  7399. conftest$ac_exeext conftest.$ac_ext
  7400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wc90-c99-compat" >&5
  7401. $as_echo_n "checking if $CC accepts -Wc90-c99-compat... " >&6; }
  7402. pa_add_cflags__old_cflags="$CFLAGS"
  7403. CFLAGS="$CFLAGS -Wc90-c99-compat"
  7404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7405. /* end confdefs.h. */
  7406. $ac_includes_default
  7407. int
  7408. main ()
  7409. {
  7410. printf("Hello, World!\n");
  7411. ;
  7412. return 0;
  7413. }
  7414. _ACEOF
  7415. if ac_fn_c_try_link "$LINENO"; then :
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7417. $as_echo "yes" >&6; }
  7418. CFLAGS="$pa_add_cflags__old_cflags -Wc90-c99-compat"
  7419. $as_echo "#define CFLAG_WC90_C99_COMPAT 1" >>confdefs.h
  7420. else
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7422. $as_echo "no" >&6; }
  7423. CFLAGS="$pa_add_cflags__old_cflags"
  7424. fi
  7425. rm -f core conftest.err conftest.$ac_objext \
  7426. conftest$ac_exeext conftest.$ac_ext
  7427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wlong-long" >&5
  7428. $as_echo_n "checking if $CC accepts -Wlong-long... " >&6; }
  7429. pa_add_cflags__old_cflags="$CFLAGS"
  7430. CFLAGS="$CFLAGS -Wlong-long"
  7431. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7432. /* end confdefs.h. */
  7433. $ac_includes_default
  7434. int
  7435. main ()
  7436. {
  7437. printf("Hello, World!\n");
  7438. ;
  7439. return 0;
  7440. }
  7441. _ACEOF
  7442. if ac_fn_c_try_link "$LINENO"; then :
  7443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7444. $as_echo "yes" >&6; }
  7445. CFLAGS="$pa_add_cflags__old_cflags -Wno-long-long"
  7446. $as_echo "#define CFLAG_WLONG_LONG 1" >>confdefs.h
  7447. else
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7449. $as_echo "no" >&6; }
  7450. CFLAGS="$pa_add_cflags__old_cflags"
  7451. fi
  7452. rm -f core conftest.err conftest.$ac_objext \
  7453. conftest$ac_exeext conftest.$ac_ext
  7454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wstringop-truncation" >&5
  7455. $as_echo_n "checking if $CC accepts -Wstringop-truncation... " >&6; }
  7456. pa_add_cflags__old_cflags="$CFLAGS"
  7457. CFLAGS="$CFLAGS -Wstringop-truncation"
  7458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7459. /* end confdefs.h. */
  7460. $ac_includes_default
  7461. int
  7462. main ()
  7463. {
  7464. printf("Hello, World!\n");
  7465. ;
  7466. return 0;
  7467. }
  7468. _ACEOF
  7469. if ac_fn_c_try_link "$LINENO"; then :
  7470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7471. $as_echo "yes" >&6; }
  7472. CFLAGS="$pa_add_cflags__old_cflags -Wno-stringop-truncation"
  7473. $as_echo "#define CFLAG_WSTRINGOP_TRUNCATION 1" >>confdefs.h
  7474. else
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7476. $as_echo "no" >&6; }
  7477. CFLAGS="$pa_add_cflags__old_cflags"
  7478. fi
  7479. rm -f core conftest.err conftest.$ac_objext \
  7480. conftest$ac_exeext conftest.$ac_ext
  7481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Wshift-negative-value" >&5
  7482. $as_echo_n "checking if $CC accepts -Wshift-negative-value... " >&6; }
  7483. pa_add_cflags__old_cflags="$CFLAGS"
  7484. CFLAGS="$CFLAGS -Wshift-negative-value"
  7485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7486. /* end confdefs.h. */
  7487. $ac_includes_default
  7488. int
  7489. main ()
  7490. {
  7491. printf("Hello, World!\n");
  7492. ;
  7493. return 0;
  7494. }
  7495. _ACEOF
  7496. if ac_fn_c_try_link "$LINENO"; then :
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7498. $as_echo "yes" >&6; }
  7499. CFLAGS="$pa_add_cflags__old_cflags -Wno-shift-negative-value"
  7500. $as_echo "#define CFLAG_WSHIFT_NEGATIVE_VALUE 1" >>confdefs.h
  7501. else
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7503. $as_echo "no" >&6; }
  7504. CFLAGS="$pa_add_cflags__old_cflags"
  7505. fi
  7506. rm -f core conftest.err conftest.$ac_objext \
  7507. conftest$ac_exeext conftest.$ac_ext
  7508. # Check whether --enable-werror was given.
  7509. if test "${enable_werror+set}" = set; then :
  7510. enableval=$enable_werror;
  7511. else
  7512. enableval=no
  7513. fi
  7514. if test x"$enableval" != xno; then :
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror" >&5
  7516. $as_echo_n "checking if $CC accepts -Werror... " >&6; }
  7517. pa_add_cflags__old_cflags="$CFLAGS"
  7518. CFLAGS="$CFLAGS -Werror"
  7519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7520. /* end confdefs.h. */
  7521. $ac_includes_default
  7522. int
  7523. main ()
  7524. {
  7525. printf("Hello, World!\n");
  7526. ;
  7527. return 0;
  7528. }
  7529. _ACEOF
  7530. if ac_fn_c_try_link "$LINENO"; then :
  7531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7532. $as_echo "yes" >&6; }
  7533. CFLAGS="$pa_add_cflags__old_cflags -Werror"
  7534. $as_echo "#define CFLAG_WERROR 1" >>confdefs.h
  7535. else
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7537. $as_echo "no" >&6; }
  7538. CFLAGS="$pa_add_cflags__old_cflags"
  7539. fi
  7540. rm -f core conftest.err conftest.$ac_objext \
  7541. conftest$ac_exeext conftest.$ac_ext
  7542. else
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=implicit" >&5
  7544. $as_echo_n "checking if $CC accepts -Werror=implicit... " >&6; }
  7545. pa_add_cflags__old_cflags="$CFLAGS"
  7546. CFLAGS="$CFLAGS -Werror=implicit"
  7547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7548. /* end confdefs.h. */
  7549. $ac_includes_default
  7550. int
  7551. main ()
  7552. {
  7553. printf("Hello, World!\n");
  7554. ;
  7555. return 0;
  7556. }
  7557. _ACEOF
  7558. if ac_fn_c_try_link "$LINENO"; then :
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7560. $as_echo "yes" >&6; }
  7561. CFLAGS="$pa_add_cflags__old_cflags -Werror=implicit"
  7562. $as_echo "#define CFLAG_WERROR_IMPLICIT 1" >>confdefs.h
  7563. else
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7565. $as_echo "no" >&6; }
  7566. CFLAGS="$pa_add_cflags__old_cflags"
  7567. fi
  7568. rm -f core conftest.err conftest.$ac_objext \
  7569. conftest$ac_exeext conftest.$ac_ext
  7570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-braces" >&5
  7571. $as_echo_n "checking if $CC accepts -Werror=missing-braces... " >&6; }
  7572. pa_add_cflags__old_cflags="$CFLAGS"
  7573. CFLAGS="$CFLAGS -Werror=missing-braces"
  7574. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7575. /* end confdefs.h. */
  7576. $ac_includes_default
  7577. int
  7578. main ()
  7579. {
  7580. printf("Hello, World!\n");
  7581. ;
  7582. return 0;
  7583. }
  7584. _ACEOF
  7585. if ac_fn_c_try_link "$LINENO"; then :
  7586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7587. $as_echo "yes" >&6; }
  7588. CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-braces"
  7589. $as_echo "#define CFLAG_WERROR_MISSING_BRACES 1" >>confdefs.h
  7590. else
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7592. $as_echo "no" >&6; }
  7593. CFLAGS="$pa_add_cflags__old_cflags"
  7594. fi
  7595. rm -f core conftest.err conftest.$ac_objext \
  7596. conftest$ac_exeext conftest.$ac_ext
  7597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=return-type" >&5
  7598. $as_echo_n "checking if $CC accepts -Werror=return-type... " >&6; }
  7599. pa_add_cflags__old_cflags="$CFLAGS"
  7600. CFLAGS="$CFLAGS -Werror=return-type"
  7601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7602. /* end confdefs.h. */
  7603. $ac_includes_default
  7604. int
  7605. main ()
  7606. {
  7607. printf("Hello, World!\n");
  7608. ;
  7609. return 0;
  7610. }
  7611. _ACEOF
  7612. if ac_fn_c_try_link "$LINENO"; then :
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7614. $as_echo "yes" >&6; }
  7615. CFLAGS="$pa_add_cflags__old_cflags -Werror=return-type"
  7616. $as_echo "#define CFLAG_WERROR_RETURN_TYPE 1" >>confdefs.h
  7617. else
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7619. $as_echo "no" >&6; }
  7620. CFLAGS="$pa_add_cflags__old_cflags"
  7621. fi
  7622. rm -f core conftest.err conftest.$ac_objext \
  7623. conftest$ac_exeext conftest.$ac_ext
  7624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=trigraphs" >&5
  7625. $as_echo_n "checking if $CC accepts -Werror=trigraphs... " >&6; }
  7626. pa_add_cflags__old_cflags="$CFLAGS"
  7627. CFLAGS="$CFLAGS -Werror=trigraphs"
  7628. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7629. /* end confdefs.h. */
  7630. $ac_includes_default
  7631. int
  7632. main ()
  7633. {
  7634. printf("Hello, World!\n");
  7635. ;
  7636. return 0;
  7637. }
  7638. _ACEOF
  7639. if ac_fn_c_try_link "$LINENO"; then :
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7641. $as_echo "yes" >&6; }
  7642. CFLAGS="$pa_add_cflags__old_cflags -Werror=trigraphs"
  7643. $as_echo "#define CFLAG_WERROR_TRIGRAPHS 1" >>confdefs.h
  7644. else
  7645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7646. $as_echo "no" >&6; }
  7647. CFLAGS="$pa_add_cflags__old_cflags"
  7648. fi
  7649. rm -f core conftest.err conftest.$ac_objext \
  7650. conftest$ac_exeext conftest.$ac_ext
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=pointer-arith" >&5
  7652. $as_echo_n "checking if $CC accepts -Werror=pointer-arith... " >&6; }
  7653. pa_add_cflags__old_cflags="$CFLAGS"
  7654. CFLAGS="$CFLAGS -Werror=pointer-arith"
  7655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7656. /* end confdefs.h. */
  7657. $ac_includes_default
  7658. int
  7659. main ()
  7660. {
  7661. printf("Hello, World!\n");
  7662. ;
  7663. return 0;
  7664. }
  7665. _ACEOF
  7666. if ac_fn_c_try_link "$LINENO"; then :
  7667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7668. $as_echo "yes" >&6; }
  7669. CFLAGS="$pa_add_cflags__old_cflags -Werror=pointer-arith"
  7670. $as_echo "#define CFLAG_WERROR_POINTER_ARITH 1" >>confdefs.h
  7671. else
  7672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7673. $as_echo "no" >&6; }
  7674. CFLAGS="$pa_add_cflags__old_cflags"
  7675. fi
  7676. rm -f core conftest.err conftest.$ac_objext \
  7677. conftest$ac_exeext conftest.$ac_ext
  7678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=strict-prototypes" >&5
  7679. $as_echo_n "checking if $CC accepts -Werror=strict-prototypes... " >&6; }
  7680. pa_add_cflags__old_cflags="$CFLAGS"
  7681. CFLAGS="$CFLAGS -Werror=strict-prototypes"
  7682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7683. /* end confdefs.h. */
  7684. $ac_includes_default
  7685. int
  7686. main ()
  7687. {
  7688. printf("Hello, World!\n");
  7689. ;
  7690. return 0;
  7691. }
  7692. _ACEOF
  7693. if ac_fn_c_try_link "$LINENO"; then :
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7695. $as_echo "yes" >&6; }
  7696. CFLAGS="$pa_add_cflags__old_cflags -Werror=strict-prototypes"
  7697. $as_echo "#define CFLAG_WERROR_STRICT_PROTOTYPES 1" >>confdefs.h
  7698. else
  7699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7700. $as_echo "no" >&6; }
  7701. CFLAGS="$pa_add_cflags__old_cflags"
  7702. fi
  7703. rm -f core conftest.err conftest.$ac_objext \
  7704. conftest$ac_exeext conftest.$ac_ext
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-prototypes" >&5
  7706. $as_echo_n "checking if $CC accepts -Werror=missing-prototypes... " >&6; }
  7707. pa_add_cflags__old_cflags="$CFLAGS"
  7708. CFLAGS="$CFLAGS -Werror=missing-prototypes"
  7709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7710. /* end confdefs.h. */
  7711. $ac_includes_default
  7712. int
  7713. main ()
  7714. {
  7715. printf("Hello, World!\n");
  7716. ;
  7717. return 0;
  7718. }
  7719. _ACEOF
  7720. if ac_fn_c_try_link "$LINENO"; then :
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7722. $as_echo "yes" >&6; }
  7723. CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-prototypes"
  7724. $as_echo "#define CFLAG_WERROR_MISSING_PROTOTYPES 1" >>confdefs.h
  7725. else
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7727. $as_echo "no" >&6; }
  7728. CFLAGS="$pa_add_cflags__old_cflags"
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext \
  7731. conftest$ac_exeext conftest.$ac_ext
  7732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=missing-declarations" >&5
  7733. $as_echo_n "checking if $CC accepts -Werror=missing-declarations... " >&6; }
  7734. pa_add_cflags__old_cflags="$CFLAGS"
  7735. CFLAGS="$CFLAGS -Werror=missing-declarations"
  7736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7737. /* end confdefs.h. */
  7738. $ac_includes_default
  7739. int
  7740. main ()
  7741. {
  7742. printf("Hello, World!\n");
  7743. ;
  7744. return 0;
  7745. }
  7746. _ACEOF
  7747. if ac_fn_c_try_link "$LINENO"; then :
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7749. $as_echo "yes" >&6; }
  7750. CFLAGS="$pa_add_cflags__old_cflags -Werror=missing-declarations"
  7751. $as_echo "#define CFLAG_WERROR_MISSING_DECLARATIONS 1" >>confdefs.h
  7752. else
  7753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7754. $as_echo "no" >&6; }
  7755. CFLAGS="$pa_add_cflags__old_cflags"
  7756. fi
  7757. rm -f core conftest.err conftest.$ac_objext \
  7758. conftest$ac_exeext conftest.$ac_ext
  7759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=comment" >&5
  7760. $as_echo_n "checking if $CC accepts -Werror=comment... " >&6; }
  7761. pa_add_cflags__old_cflags="$CFLAGS"
  7762. CFLAGS="$CFLAGS -Werror=comment"
  7763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7764. /* end confdefs.h. */
  7765. $ac_includes_default
  7766. int
  7767. main ()
  7768. {
  7769. printf("Hello, World!\n");
  7770. ;
  7771. return 0;
  7772. }
  7773. _ACEOF
  7774. if ac_fn_c_try_link "$LINENO"; then :
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7776. $as_echo "yes" >&6; }
  7777. CFLAGS="$pa_add_cflags__old_cflags -Werror=comment"
  7778. $as_echo "#define CFLAG_WERROR_COMMENT 1" >>confdefs.h
  7779. else
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7781. $as_echo "no" >&6; }
  7782. CFLAGS="$pa_add_cflags__old_cflags"
  7783. fi
  7784. rm -f core conftest.err conftest.$ac_objext \
  7785. conftest$ac_exeext conftest.$ac_ext
  7786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -Werror=vla" >&5
  7787. $as_echo_n "checking if $CC accepts -Werror=vla... " >&6; }
  7788. pa_add_cflags__old_cflags="$CFLAGS"
  7789. CFLAGS="$CFLAGS -Werror=vla"
  7790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7791. /* end confdefs.h. */
  7792. $ac_includes_default
  7793. int
  7794. main ()
  7795. {
  7796. printf("Hello, World!\n");
  7797. ;
  7798. return 0;
  7799. }
  7800. _ACEOF
  7801. if ac_fn_c_try_link "$LINENO"; then :
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7803. $as_echo "yes" >&6; }
  7804. CFLAGS="$pa_add_cflags__old_cflags -Werror=vla"
  7805. $as_echo "#define CFLAG_WERROR_VLA 1" >>confdefs.h
  7806. else
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7808. $as_echo "no" >&6; }
  7809. CFLAGS="$pa_add_cflags__old_cflags"
  7810. fi
  7811. rm -f core conftest.err conftest.$ac_objext \
  7812. conftest$ac_exeext conftest.$ac_ext
  7813. fi
  7814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports C99 external inlines" >&5
  7815. $as_echo_n "checking if $CC supports C99 external inlines... " >&6; }
  7816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7817. /* end confdefs.h. */
  7818. $ac_includes_default
  7819. /* Don't mistake GNU inlines for c99 */
  7820. #ifdef __GNUC_GNU_INLINE__
  7821. # error "Using gnu inline standard"
  7822. #endif
  7823. inline int foo(int x)
  7824. {
  7825. return x+1;
  7826. }
  7827. _ACEOF
  7828. if ac_fn_c_try_compile "$LINENO"; then :
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7830. $as_echo "yes" >&6; }
  7831. $as_echo "#define HAVE_STDC_INLINE 1" >>confdefs.h
  7832. else
  7833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7834. $as_echo "no" >&6; }
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fgnu89-inline" >&5
  7836. $as_echo_n "checking if $CC accepts -fgnu89-inline... " >&6; }
  7837. pa_add_cflags__old_cflags="$CFLAGS"
  7838. CFLAGS="$CFLAGS -fgnu89-inline"
  7839. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7840. /* end confdefs.h. */
  7841. $ac_includes_default
  7842. int
  7843. main ()
  7844. {
  7845. printf("Hello, World!\n");
  7846. ;
  7847. return 0;
  7848. }
  7849. _ACEOF
  7850. if ac_fn_c_try_link "$LINENO"; then :
  7851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7852. $as_echo "yes" >&6; }
  7853. CFLAGS="$pa_add_cflags__old_cflags -fgnu89-inline"
  7854. $as_echo "#define CFLAG_FGNU89_INLINE 1" >>confdefs.h
  7855. else
  7856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7857. $as_echo "no" >&6; }
  7858. CFLAGS="$pa_add_cflags__old_cflags"
  7859. fi
  7860. rm -f core conftest.err conftest.$ac_objext \
  7861. conftest$ac_exeext conftest.$ac_ext
  7862. fi
  7863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7864. # Check whether --enable-ccache was given.
  7865. if test "${enable_ccache+set}" = set; then :
  7866. enableval=$enable_ccache;
  7867. else
  7868. enableval=no
  7869. fi
  7870. if test x"$enableval" != xno; then :
  7871. CC="ccache $CC"
  7872. fi
  7873. ac_config_commands="$ac_config_commands default-1"
  7874. ac_config_files="$ac_config_files Makefile doc/Makefile"
  7875. cat >confcache <<\_ACEOF
  7876. # This file is a shell script that caches the results of configure
  7877. # tests run on this system so they can be shared between configure
  7878. # scripts and configure runs, see configure's option --config-cache.
  7879. # It is not useful on other systems. If it contains results you don't
  7880. # want to keep, you may remove or edit it.
  7881. #
  7882. # config.status only pays attention to the cache file if you give it
  7883. # the --recheck option to rerun configure.
  7884. #
  7885. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7886. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7887. # following values.
  7888. _ACEOF
  7889. # The following way of writing the cache mishandles newlines in values,
  7890. # but we know of no workaround that is simple, portable, and efficient.
  7891. # So, we kill variables containing newlines.
  7892. # Ultrix sh set writes to stderr and can't be redirected directly,
  7893. # and sets the high bit in the cache file unless we assign to the vars.
  7894. (
  7895. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7896. eval ac_val=\$$ac_var
  7897. case $ac_val in #(
  7898. *${as_nl}*)
  7899. case $ac_var in #(
  7900. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7901. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7902. esac
  7903. case $ac_var in #(
  7904. _ | IFS | as_nl) ;; #(
  7905. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7906. *) { eval $ac_var=; unset $ac_var;} ;;
  7907. esac ;;
  7908. esac
  7909. done
  7910. (set) 2>&1 |
  7911. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7912. *${as_nl}ac_space=\ *)
  7913. # `set' does not quote correctly, so add quotes: double-quote
  7914. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7915. sed -n \
  7916. "s/'/'\\\\''/g;
  7917. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7918. ;; #(
  7919. *)
  7920. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7921. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7922. ;;
  7923. esac |
  7924. sort
  7925. ) |
  7926. sed '
  7927. /^ac_cv_env_/b end
  7928. t clear
  7929. :clear
  7930. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7931. t end
  7932. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7933. :end' >>confcache
  7934. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7935. if test -w "$cache_file"; then
  7936. if test "x$cache_file" != "x/dev/null"; then
  7937. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7938. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7939. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7940. cat confcache >"$cache_file"
  7941. else
  7942. case $cache_file in #(
  7943. */* | ?:*)
  7944. mv -f confcache "$cache_file"$$ &&
  7945. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7946. *)
  7947. mv -f confcache "$cache_file" ;;
  7948. esac
  7949. fi
  7950. fi
  7951. else
  7952. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7953. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7954. fi
  7955. fi
  7956. rm -f confcache
  7957. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7958. # Let make expand exec_prefix.
  7959. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7960. DEFS=-DHAVE_CONFIG_H
  7961. ac_libobjs=
  7962. ac_ltlibobjs=
  7963. U=
  7964. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7965. # 1. Remove the extension, and $U if already installed.
  7966. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  7967. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  7968. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  7969. # will be set to the directory where LIBOBJS objects are built.
  7970. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  7971. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  7972. done
  7973. LIBOBJS=$ac_libobjs
  7974. LTLIBOBJS=$ac_ltlibobjs
  7975. : "${CONFIG_STATUS=./config.status}"
  7976. ac_write_fail=0
  7977. ac_clean_files_save=$ac_clean_files
  7978. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7979. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  7980. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7981. as_write_fail=0
  7982. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  7983. #! $SHELL
  7984. # Generated by $as_me.
  7985. # Run this file to recreate the current configuration.
  7986. # Compiler output produced by configure, useful for debugging
  7987. # configure, is in config.log if it exists.
  7988. debug=false
  7989. ac_cs_recheck=false
  7990. ac_cs_silent=false
  7991. SHELL=\${CONFIG_SHELL-$SHELL}
  7992. export SHELL
  7993. _ASEOF
  7994. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  7995. ## -------------------- ##
  7996. ## M4sh Initialization. ##
  7997. ## -------------------- ##
  7998. # Be more Bourne compatible
  7999. DUALCASE=1; export DUALCASE # for MKS sh
  8000. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8001. emulate sh
  8002. NULLCMD=:
  8003. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8004. # is contrary to our usage. Disable this feature.
  8005. alias -g '${1+"$@"}'='"$@"'
  8006. setopt NO_GLOB_SUBST
  8007. else
  8008. case `(set -o) 2>/dev/null` in #(
  8009. *posix*) :
  8010. set -o posix ;; #(
  8011. *) :
  8012. ;;
  8013. esac
  8014. fi
  8015. as_nl='
  8016. '
  8017. export as_nl
  8018. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8019. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8020. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8021. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8022. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8023. # but without wasting forks for bash or zsh.
  8024. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8025. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8026. as_echo='print -r --'
  8027. as_echo_n='print -rn --'
  8028. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8029. as_echo='printf %s\n'
  8030. as_echo_n='printf %s'
  8031. else
  8032. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8033. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8034. as_echo_n='/usr/ucb/echo -n'
  8035. else
  8036. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8037. as_echo_n_body='eval
  8038. arg=$1;
  8039. case $arg in #(
  8040. *"$as_nl"*)
  8041. expr "X$arg" : "X\\(.*\\)$as_nl";
  8042. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8043. esac;
  8044. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8045. '
  8046. export as_echo_n_body
  8047. as_echo_n='sh -c $as_echo_n_body as_echo'
  8048. fi
  8049. export as_echo_body
  8050. as_echo='sh -c $as_echo_body as_echo'
  8051. fi
  8052. # The user is always right.
  8053. if test "${PATH_SEPARATOR+set}" != set; then
  8054. PATH_SEPARATOR=:
  8055. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8056. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8057. PATH_SEPARATOR=';'
  8058. }
  8059. fi
  8060. # IFS
  8061. # We need space, tab and new line, in precisely that order. Quoting is
  8062. # there to prevent editors from complaining about space-tab.
  8063. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8064. # splitting by setting IFS to empty value.)
  8065. IFS=" "" $as_nl"
  8066. # Find who we are. Look in the path if we contain no directory separator.
  8067. as_myself=
  8068. case $0 in #((
  8069. *[\\/]* ) as_myself=$0 ;;
  8070. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8071. for as_dir in $PATH
  8072. do
  8073. IFS=$as_save_IFS
  8074. test -z "$as_dir" && as_dir=.
  8075. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8076. done
  8077. IFS=$as_save_IFS
  8078. ;;
  8079. esac
  8080. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8081. # in which case we are not to be found in the path.
  8082. if test "x$as_myself" = x; then
  8083. as_myself=$0
  8084. fi
  8085. if test ! -f "$as_myself"; then
  8086. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8087. exit 1
  8088. fi
  8089. # Unset variables that we do not need and which cause bugs (e.g. in
  8090. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8091. # suppresses any "Segmentation fault" message there. '((' could
  8092. # trigger a bug in pdksh 5.2.14.
  8093. for as_var in BASH_ENV ENV MAIL MAILPATH
  8094. do eval test x\${$as_var+set} = xset \
  8095. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8096. done
  8097. PS1='$ '
  8098. PS2='> '
  8099. PS4='+ '
  8100. # NLS nuisances.
  8101. LC_ALL=C
  8102. export LC_ALL
  8103. LANGUAGE=C
  8104. export LANGUAGE
  8105. # CDPATH.
  8106. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8107. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8108. # ----------------------------------------
  8109. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8110. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8111. # script with STATUS, using 1 if that was 0.
  8112. as_fn_error ()
  8113. {
  8114. as_status=$1; test $as_status -eq 0 && as_status=1
  8115. if test "$4"; then
  8116. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8117. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8118. fi
  8119. $as_echo "$as_me: error: $2" >&2
  8120. as_fn_exit $as_status
  8121. } # as_fn_error
  8122. # as_fn_set_status STATUS
  8123. # -----------------------
  8124. # Set $? to STATUS, without forking.
  8125. as_fn_set_status ()
  8126. {
  8127. return $1
  8128. } # as_fn_set_status
  8129. # as_fn_exit STATUS
  8130. # -----------------
  8131. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8132. as_fn_exit ()
  8133. {
  8134. set +e
  8135. as_fn_set_status $1
  8136. exit $1
  8137. } # as_fn_exit
  8138. # as_fn_unset VAR
  8139. # ---------------
  8140. # Portably unset VAR.
  8141. as_fn_unset ()
  8142. {
  8143. { eval $1=; unset $1;}
  8144. }
  8145. as_unset=as_fn_unset
  8146. # as_fn_append VAR VALUE
  8147. # ----------------------
  8148. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8149. # advantage of any shell optimizations that allow amortized linear growth over
  8150. # repeated appends, instead of the typical quadratic growth present in naive
  8151. # implementations.
  8152. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8153. eval 'as_fn_append ()
  8154. {
  8155. eval $1+=\$2
  8156. }'
  8157. else
  8158. as_fn_append ()
  8159. {
  8160. eval $1=\$$1\$2
  8161. }
  8162. fi # as_fn_append
  8163. # as_fn_arith ARG...
  8164. # ------------------
  8165. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8166. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8167. # must be portable across $(()) and expr.
  8168. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8169. eval 'as_fn_arith ()
  8170. {
  8171. as_val=$(( $* ))
  8172. }'
  8173. else
  8174. as_fn_arith ()
  8175. {
  8176. as_val=`expr "$@" || test $? -eq 1`
  8177. }
  8178. fi # as_fn_arith
  8179. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8180. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8181. as_expr=expr
  8182. else
  8183. as_expr=false
  8184. fi
  8185. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8186. as_basename=basename
  8187. else
  8188. as_basename=false
  8189. fi
  8190. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8191. as_dirname=dirname
  8192. else
  8193. as_dirname=false
  8194. fi
  8195. as_me=`$as_basename -- "$0" ||
  8196. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8197. X"$0" : 'X\(//\)$' \| \
  8198. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8199. $as_echo X/"$0" |
  8200. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8201. s//\1/
  8202. q
  8203. }
  8204. /^X\/\(\/\/\)$/{
  8205. s//\1/
  8206. q
  8207. }
  8208. /^X\/\(\/\).*/{
  8209. s//\1/
  8210. q
  8211. }
  8212. s/.*/./; q'`
  8213. # Avoid depending upon Character Ranges.
  8214. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8215. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8216. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8217. as_cr_digits='0123456789'
  8218. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8219. ECHO_C= ECHO_N= ECHO_T=
  8220. case `echo -n x` in #(((((
  8221. -n*)
  8222. case `echo 'xy\c'` in
  8223. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8224. xy) ECHO_C='\c';;
  8225. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8226. ECHO_T=' ';;
  8227. esac;;
  8228. *)
  8229. ECHO_N='-n';;
  8230. esac
  8231. rm -f conf$$ conf$$.exe conf$$.file
  8232. if test -d conf$$.dir; then
  8233. rm -f conf$$.dir/conf$$.file
  8234. else
  8235. rm -f conf$$.dir
  8236. mkdir conf$$.dir 2>/dev/null
  8237. fi
  8238. if (echo >conf$$.file) 2>/dev/null; then
  8239. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8240. as_ln_s='ln -s'
  8241. # ... but there are two gotchas:
  8242. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8243. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8244. # In both cases, we have to default to `cp -pR'.
  8245. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8246. as_ln_s='cp -pR'
  8247. elif ln conf$$.file conf$$ 2>/dev/null; then
  8248. as_ln_s=ln
  8249. else
  8250. as_ln_s='cp -pR'
  8251. fi
  8252. else
  8253. as_ln_s='cp -pR'
  8254. fi
  8255. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8256. rmdir conf$$.dir 2>/dev/null
  8257. # as_fn_mkdir_p
  8258. # -------------
  8259. # Create "$as_dir" as a directory, including parents if necessary.
  8260. as_fn_mkdir_p ()
  8261. {
  8262. case $as_dir in #(
  8263. -*) as_dir=./$as_dir;;
  8264. esac
  8265. test -d "$as_dir" || eval $as_mkdir_p || {
  8266. as_dirs=
  8267. while :; do
  8268. case $as_dir in #(
  8269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8270. *) as_qdir=$as_dir;;
  8271. esac
  8272. as_dirs="'$as_qdir' $as_dirs"
  8273. as_dir=`$as_dirname -- "$as_dir" ||
  8274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8275. X"$as_dir" : 'X\(//\)[^/]' \| \
  8276. X"$as_dir" : 'X\(//\)$' \| \
  8277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8278. $as_echo X"$as_dir" |
  8279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8280. s//\1/
  8281. q
  8282. }
  8283. /^X\(\/\/\)[^/].*/{
  8284. s//\1/
  8285. q
  8286. }
  8287. /^X\(\/\/\)$/{
  8288. s//\1/
  8289. q
  8290. }
  8291. /^X\(\/\).*/{
  8292. s//\1/
  8293. q
  8294. }
  8295. s/.*/./; q'`
  8296. test -d "$as_dir" && break
  8297. done
  8298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8299. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8300. } # as_fn_mkdir_p
  8301. if mkdir -p . 2>/dev/null; then
  8302. as_mkdir_p='mkdir -p "$as_dir"'
  8303. else
  8304. test -d ./-p && rmdir ./-p
  8305. as_mkdir_p=false
  8306. fi
  8307. # as_fn_executable_p FILE
  8308. # -----------------------
  8309. # Test if FILE is an executable regular file.
  8310. as_fn_executable_p ()
  8311. {
  8312. test -f "$1" && test -x "$1"
  8313. } # as_fn_executable_p
  8314. as_test_x='test -x'
  8315. as_executable_p=as_fn_executable_p
  8316. # Sed expression to map a string onto a valid CPP name.
  8317. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8318. # Sed expression to map a string onto a valid variable name.
  8319. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8320. exec 6>&1
  8321. ## ----------------------------------- ##
  8322. ## Main body of $CONFIG_STATUS script. ##
  8323. ## ----------------------------------- ##
  8324. _ASEOF
  8325. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8326. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8327. # Save the log message, to keep $0 and so on meaningful, and to
  8328. # report actual input values of CONFIG_FILES etc. instead of their
  8329. # values after options handling.
  8330. ac_log="
  8331. This file was extended by $as_me, which was
  8332. generated by GNU Autoconf 2.69. Invocation command line was
  8333. CONFIG_FILES = $CONFIG_FILES
  8334. CONFIG_HEADERS = $CONFIG_HEADERS
  8335. CONFIG_LINKS = $CONFIG_LINKS
  8336. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8337. $ $0 $@
  8338. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8339. "
  8340. _ACEOF
  8341. case $ac_config_files in *"
  8342. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8343. esac
  8344. case $ac_config_headers in *"
  8345. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8346. esac
  8347. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8348. # Files that config.status was made for.
  8349. config_files="$ac_config_files"
  8350. config_headers="$ac_config_headers"
  8351. config_commands="$ac_config_commands"
  8352. _ACEOF
  8353. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8354. ac_cs_usage="\
  8355. \`$as_me' instantiates files and other configuration actions
  8356. from templates according to the current configuration. Unless the files
  8357. and actions are specified as TAGs, all are instantiated by default.
  8358. Usage: $0 [OPTION]... [TAG]...
  8359. -h, --help print this help, then exit
  8360. -V, --version print version number and configuration settings, then exit
  8361. --config print configuration, then exit
  8362. -q, --quiet, --silent
  8363. do not print progress messages
  8364. -d, --debug don't remove temporary files
  8365. --recheck update $as_me by reconfiguring in the same conditions
  8366. --file=FILE[:TEMPLATE]
  8367. instantiate the configuration file FILE
  8368. --header=FILE[:TEMPLATE]
  8369. instantiate the configuration header FILE
  8370. Configuration files:
  8371. $config_files
  8372. Configuration headers:
  8373. $config_headers
  8374. Configuration commands:
  8375. $config_commands
  8376. Report bugs to the package provider."
  8377. _ACEOF
  8378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8379. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8380. ac_cs_version="\\
  8381. config.status
  8382. configured by $0, generated by GNU Autoconf 2.69,
  8383. with options \\"\$ac_cs_config\\"
  8384. Copyright (C) 2012 Free Software Foundation, Inc.
  8385. This config.status script is free software; the Free Software Foundation
  8386. gives unlimited permission to copy, distribute and modify it."
  8387. ac_pwd='$ac_pwd'
  8388. srcdir='$srcdir'
  8389. INSTALL='$INSTALL'
  8390. test -n "\$AWK" || AWK=awk
  8391. _ACEOF
  8392. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8393. # The default lists apply if the user does not specify any file.
  8394. ac_need_defaults=:
  8395. while test $# != 0
  8396. do
  8397. case $1 in
  8398. --*=?*)
  8399. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8400. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8401. ac_shift=:
  8402. ;;
  8403. --*=)
  8404. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8405. ac_optarg=
  8406. ac_shift=:
  8407. ;;
  8408. *)
  8409. ac_option=$1
  8410. ac_optarg=$2
  8411. ac_shift=shift
  8412. ;;
  8413. esac
  8414. case $ac_option in
  8415. # Handling of the options.
  8416. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8417. ac_cs_recheck=: ;;
  8418. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8419. $as_echo "$ac_cs_version"; exit ;;
  8420. --config | --confi | --conf | --con | --co | --c )
  8421. $as_echo "$ac_cs_config"; exit ;;
  8422. --debug | --debu | --deb | --de | --d | -d )
  8423. debug=: ;;
  8424. --file | --fil | --fi | --f )
  8425. $ac_shift
  8426. case $ac_optarg in
  8427. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8428. '') as_fn_error $? "missing file argument" ;;
  8429. esac
  8430. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8431. ac_need_defaults=false;;
  8432. --header | --heade | --head | --hea )
  8433. $ac_shift
  8434. case $ac_optarg in
  8435. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8436. esac
  8437. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8438. ac_need_defaults=false;;
  8439. --he | --h)
  8440. # Conflict between --help and --header
  8441. as_fn_error $? "ambiguous option: \`$1'
  8442. Try \`$0 --help' for more information.";;
  8443. --help | --hel | -h )
  8444. $as_echo "$ac_cs_usage"; exit ;;
  8445. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8446. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8447. ac_cs_silent=: ;;
  8448. # This is an error.
  8449. -*) as_fn_error $? "unrecognized option: \`$1'
  8450. Try \`$0 --help' for more information." ;;
  8451. *) as_fn_append ac_config_targets " $1"
  8452. ac_need_defaults=false ;;
  8453. esac
  8454. shift
  8455. done
  8456. ac_configure_extra_args=
  8457. if $ac_cs_silent; then
  8458. exec 6>/dev/null
  8459. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8460. fi
  8461. _ACEOF
  8462. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8463. if \$ac_cs_recheck; then
  8464. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8465. shift
  8466. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8467. CONFIG_SHELL='$SHELL'
  8468. export CONFIG_SHELL
  8469. exec "\$@"
  8470. fi
  8471. _ACEOF
  8472. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8473. exec 5>>config.log
  8474. {
  8475. echo
  8476. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8477. ## Running $as_me. ##
  8478. _ASBOX
  8479. $as_echo "$ac_log"
  8480. } >&5
  8481. _ACEOF
  8482. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8483. #
  8484. # INIT-COMMANDS
  8485. #
  8486. _ACEOF
  8487. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8488. # Handling of arguments.
  8489. for ac_config_target in $ac_config_targets
  8490. do
  8491. case $ac_config_target in
  8492. "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
  8493. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  8494. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8495. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  8496. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8497. esac
  8498. done
  8499. # If the user did not use the arguments to specify the items to instantiate,
  8500. # then the envvar interface is used. Set only those that are not.
  8501. # We use the long form for the default assignment because of an extremely
  8502. # bizarre bug on SunOS 4.1.3.
  8503. if $ac_need_defaults; then
  8504. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8505. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8506. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  8507. fi
  8508. # Have a temporary directory for convenience. Make it in the build tree
  8509. # simply because there is no reason against having it here, and in addition,
  8510. # creating and moving files from /tmp can sometimes cause problems.
  8511. # Hook for its removal unless debugging.
  8512. # Note that there is a small window in which the directory will not be cleaned:
  8513. # after its creation but before its name has been assigned to `$tmp'.
  8514. $debug ||
  8515. {
  8516. tmp= ac_tmp=
  8517. trap 'exit_status=$?
  8518. : "${ac_tmp:=$tmp}"
  8519. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8520. ' 0
  8521. trap 'as_fn_exit 1' 1 2 13 15
  8522. }
  8523. # Create a (secure) tmp directory for tmp files.
  8524. {
  8525. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8526. test -d "$tmp"
  8527. } ||
  8528. {
  8529. tmp=./conf$$-$RANDOM
  8530. (umask 077 && mkdir "$tmp")
  8531. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8532. ac_tmp=$tmp
  8533. # Set up the scripts for CONFIG_FILES section.
  8534. # No need to generate them if there are no CONFIG_FILES.
  8535. # This happens for instance with `./config.status config.h'.
  8536. if test -n "$CONFIG_FILES"; then
  8537. ac_cr=`echo X | tr X '\015'`
  8538. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8539. # But we know of no other shell where ac_cr would be empty at this
  8540. # point, so we can use a bashism as a fallback.
  8541. if test "x$ac_cr" = x; then
  8542. eval ac_cr=\$\'\\r\'
  8543. fi
  8544. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8545. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8546. ac_cs_awk_cr='\\r'
  8547. else
  8548. ac_cs_awk_cr=$ac_cr
  8549. fi
  8550. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8551. _ACEOF
  8552. {
  8553. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8554. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8555. echo "_ACEOF"
  8556. } >conf$$subs.sh ||
  8557. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8558. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8559. ac_delim='%!_!# '
  8560. for ac_last_try in false false false false false :; do
  8561. . ./conf$$subs.sh ||
  8562. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8563. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8564. if test $ac_delim_n = $ac_delim_num; then
  8565. break
  8566. elif $ac_last_try; then
  8567. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8568. else
  8569. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8570. fi
  8571. done
  8572. rm -f conf$$subs.sh
  8573. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8574. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8575. _ACEOF
  8576. sed -n '
  8577. h
  8578. s/^/S["/; s/!.*/"]=/
  8579. p
  8580. g
  8581. s/^[^!]*!//
  8582. :repl
  8583. t repl
  8584. s/'"$ac_delim"'$//
  8585. t delim
  8586. :nl
  8587. h
  8588. s/\(.\{148\}\)..*/\1/
  8589. t more1
  8590. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8591. p
  8592. n
  8593. b repl
  8594. :more1
  8595. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8596. p
  8597. g
  8598. s/.\{148\}//
  8599. t nl
  8600. :delim
  8601. h
  8602. s/\(.\{148\}\)..*/\1/
  8603. t more2
  8604. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8605. p
  8606. b
  8607. :more2
  8608. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8609. p
  8610. g
  8611. s/.\{148\}//
  8612. t delim
  8613. ' <conf$$subs.awk | sed '
  8614. /^[^""]/{
  8615. N
  8616. s/\n//
  8617. }
  8618. ' >>$CONFIG_STATUS || ac_write_fail=1
  8619. rm -f conf$$subs.awk
  8620. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8621. _ACAWK
  8622. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8623. for (key in S) S_is_set[key] = 1
  8624. FS = ""
  8625. }
  8626. {
  8627. line = $ 0
  8628. nfields = split(line, field, "@")
  8629. substed = 0
  8630. len = length(field[1])
  8631. for (i = 2; i < nfields; i++) {
  8632. key = field[i]
  8633. keylen = length(key)
  8634. if (S_is_set[key]) {
  8635. value = S[key]
  8636. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8637. len += length(value) + length(field[++i])
  8638. substed = 1
  8639. } else
  8640. len += 1 + keylen
  8641. }
  8642. print line
  8643. }
  8644. _ACAWK
  8645. _ACEOF
  8646. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8647. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8648. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8649. else
  8650. cat
  8651. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8652. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8653. _ACEOF
  8654. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8655. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8656. # trailing colons and then remove the whole line if VPATH becomes empty
  8657. # (actually we leave an empty line to preserve line numbers).
  8658. if test "x$srcdir" = x.; then
  8659. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8660. h
  8661. s///
  8662. s/^/:/
  8663. s/[ ]*$/:/
  8664. s/:\$(srcdir):/:/g
  8665. s/:\${srcdir}:/:/g
  8666. s/:@srcdir@:/:/g
  8667. s/^:*//
  8668. s/:*$//
  8669. x
  8670. s/\(=[ ]*\).*/\1/
  8671. G
  8672. s/\n//
  8673. s/^[^=]*=[ ]*$//
  8674. }'
  8675. fi
  8676. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8677. fi # test -n "$CONFIG_FILES"
  8678. # Set up the scripts for CONFIG_HEADERS section.
  8679. # No need to generate them if there are no CONFIG_HEADERS.
  8680. # This happens for instance with `./config.status Makefile'.
  8681. if test -n "$CONFIG_HEADERS"; then
  8682. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8683. BEGIN {
  8684. _ACEOF
  8685. # Transform confdefs.h into an awk script `defines.awk', embedded as
  8686. # here-document in config.status, that substitutes the proper values into
  8687. # config.h.in to produce config.h.
  8688. # Create a delimiter string that does not exist in confdefs.h, to ease
  8689. # handling of long lines.
  8690. ac_delim='%!_!# '
  8691. for ac_last_try in false false :; do
  8692. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  8693. if test -z "$ac_tt"; then
  8694. break
  8695. elif $ac_last_try; then
  8696. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8697. else
  8698. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8699. fi
  8700. done
  8701. # For the awk script, D is an array of macro values keyed by name,
  8702. # likewise P contains macro parameters if any. Preserve backslash
  8703. # newline sequences.
  8704. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8705. sed -n '
  8706. s/.\{148\}/&'"$ac_delim"'/g
  8707. t rset
  8708. :rset
  8709. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8710. t def
  8711. d
  8712. :def
  8713. s/\\$//
  8714. t bsnl
  8715. s/["\\]/\\&/g
  8716. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8717. D["\1"]=" \3"/p
  8718. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8719. d
  8720. :bsnl
  8721. s/["\\]/\\&/g
  8722. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8723. D["\1"]=" \3\\\\\\n"\\/p
  8724. t cont
  8725. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8726. t cont
  8727. d
  8728. :cont
  8729. n
  8730. s/.\{148\}/&'"$ac_delim"'/g
  8731. t clear
  8732. :clear
  8733. s/\\$//
  8734. t bsnlc
  8735. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8736. d
  8737. :bsnlc
  8738. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8739. b cont
  8740. ' <confdefs.h | sed '
  8741. s/'"$ac_delim"'/"\\\
  8742. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8743. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8744. for (key in D) D_is_set[key] = 1
  8745. FS = ""
  8746. }
  8747. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8748. line = \$ 0
  8749. split(line, arg, " ")
  8750. if (arg[1] == "#") {
  8751. defundef = arg[2]
  8752. mac1 = arg[3]
  8753. } else {
  8754. defundef = substr(arg[1], 2)
  8755. mac1 = arg[2]
  8756. }
  8757. split(mac1, mac2, "(") #)
  8758. macro = mac2[1]
  8759. prefix = substr(line, 1, index(line, defundef) - 1)
  8760. if (D_is_set[macro]) {
  8761. # Preserve the white space surrounding the "#".
  8762. print prefix "define", macro P[macro] D[macro]
  8763. next
  8764. } else {
  8765. # Replace #undef with comments. This is necessary, for example,
  8766. # in the case of _POSIX_SOURCE, which is predefined and required
  8767. # on some systems where configure will not decide to define it.
  8768. if (defundef == "undef") {
  8769. print "/*", prefix defundef, macro, "*/"
  8770. next
  8771. }
  8772. }
  8773. }
  8774. { print }
  8775. _ACAWK
  8776. _ACEOF
  8777. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8778. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  8779. fi # test -n "$CONFIG_HEADERS"
  8780. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  8781. shift
  8782. for ac_tag
  8783. do
  8784. case $ac_tag in
  8785. :[FHLC]) ac_mode=$ac_tag; continue;;
  8786. esac
  8787. case $ac_mode$ac_tag in
  8788. :[FHL]*:*);;
  8789. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  8790. :[FH]-) ac_tag=-:-;;
  8791. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  8792. esac
  8793. ac_save_IFS=$IFS
  8794. IFS=:
  8795. set x $ac_tag
  8796. IFS=$ac_save_IFS
  8797. shift
  8798. ac_file=$1
  8799. shift
  8800. case $ac_mode in
  8801. :L) ac_source=$1;;
  8802. :[FH])
  8803. ac_file_inputs=
  8804. for ac_f
  8805. do
  8806. case $ac_f in
  8807. -) ac_f="$ac_tmp/stdin";;
  8808. *) # Look for the file first in the build tree, then in the source tree
  8809. # (if the path is not absolute). The absolute path cannot be DOS-style,
  8810. # because $ac_f cannot contain `:'.
  8811. test -f "$ac_f" ||
  8812. case $ac_f in
  8813. [\\/$]*) false;;
  8814. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  8815. esac ||
  8816. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  8817. esac
  8818. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  8819. as_fn_append ac_file_inputs " '$ac_f'"
  8820. done
  8821. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8822. # use $as_me), people would be surprised to read:
  8823. # /* config.h. Generated by config.status. */
  8824. configure_input='Generated from '`
  8825. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  8826. `' by configure.'
  8827. if test x"$ac_file" != x-; then
  8828. configure_input="$ac_file. $configure_input"
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  8830. $as_echo "$as_me: creating $ac_file" >&6;}
  8831. fi
  8832. # Neutralize special characters interpreted by sed in replacement strings.
  8833. case $configure_input in #(
  8834. *\&* | *\|* | *\\* )
  8835. ac_sed_conf_input=`$as_echo "$configure_input" |
  8836. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  8837. *) ac_sed_conf_input=$configure_input;;
  8838. esac
  8839. case $ac_tag in
  8840. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  8841. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  8842. esac
  8843. ;;
  8844. esac
  8845. ac_dir=`$as_dirname -- "$ac_file" ||
  8846. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8847. X"$ac_file" : 'X\(//\)[^/]' \| \
  8848. X"$ac_file" : 'X\(//\)$' \| \
  8849. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  8850. $as_echo X"$ac_file" |
  8851. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8852. s//\1/
  8853. q
  8854. }
  8855. /^X\(\/\/\)[^/].*/{
  8856. s//\1/
  8857. q
  8858. }
  8859. /^X\(\/\/\)$/{
  8860. s//\1/
  8861. q
  8862. }
  8863. /^X\(\/\).*/{
  8864. s//\1/
  8865. q
  8866. }
  8867. s/.*/./; q'`
  8868. as_dir="$ac_dir"; as_fn_mkdir_p
  8869. ac_builddir=.
  8870. case "$ac_dir" in
  8871. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8872. *)
  8873. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  8874. # A ".." for each directory in $ac_dir_suffix.
  8875. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  8876. case $ac_top_builddir_sub in
  8877. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  8878. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  8879. esac ;;
  8880. esac
  8881. ac_abs_top_builddir=$ac_pwd
  8882. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  8883. # for backward compatibility:
  8884. ac_top_builddir=$ac_top_build_prefix
  8885. case $srcdir in
  8886. .) # We are building in place.
  8887. ac_srcdir=.
  8888. ac_top_srcdir=$ac_top_builddir_sub
  8889. ac_abs_top_srcdir=$ac_pwd ;;
  8890. [\\/]* | ?:[\\/]* ) # Absolute name.
  8891. ac_srcdir=$srcdir$ac_dir_suffix;
  8892. ac_top_srcdir=$srcdir
  8893. ac_abs_top_srcdir=$srcdir ;;
  8894. *) # Relative name.
  8895. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  8896. ac_top_srcdir=$ac_top_build_prefix$srcdir
  8897. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  8898. esac
  8899. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  8900. case $ac_mode in
  8901. :F)
  8902. #
  8903. # CONFIG_FILE
  8904. #
  8905. case $INSTALL in
  8906. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8907. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  8908. esac
  8909. _ACEOF
  8910. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8911. # If the template does not know about datarootdir, expand it.
  8912. # FIXME: This hack should be removed a few years after 2.60.
  8913. ac_datarootdir_hack=; ac_datarootdir_seen=
  8914. ac_sed_dataroot='
  8915. /datarootdir/ {
  8916. p
  8917. q
  8918. }
  8919. /@datadir@/p
  8920. /@docdir@/p
  8921. /@infodir@/p
  8922. /@localedir@/p
  8923. /@mandir@/p'
  8924. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  8925. *datarootdir*) ac_datarootdir_seen=yes;;
  8926. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  8927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  8928. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  8929. _ACEOF
  8930. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8931. ac_datarootdir_hack='
  8932. s&@datadir@&$datadir&g
  8933. s&@docdir@&$docdir&g
  8934. s&@infodir@&$infodir&g
  8935. s&@localedir@&$localedir&g
  8936. s&@mandir@&$mandir&g
  8937. s&\\\${datarootdir}&$datarootdir&g' ;;
  8938. esac
  8939. _ACEOF
  8940. # Neutralize VPATH when `$srcdir' = `.'.
  8941. # Shell code in configure.ac might set extrasub.
  8942. # FIXME: do we really want to maintain this feature?
  8943. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8944. ac_sed_extra="$ac_vpsub
  8945. $extrasub
  8946. _ACEOF
  8947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8948. :t
  8949. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8950. s|@configure_input@|$ac_sed_conf_input|;t t
  8951. s&@top_builddir@&$ac_top_builddir_sub&;t t
  8952. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  8953. s&@srcdir@&$ac_srcdir&;t t
  8954. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  8955. s&@top_srcdir@&$ac_top_srcdir&;t t
  8956. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  8957. s&@builddir@&$ac_builddir&;t t
  8958. s&@abs_builddir@&$ac_abs_builddir&;t t
  8959. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  8960. s&@INSTALL@&$ac_INSTALL&;t t
  8961. $ac_datarootdir_hack
  8962. "
  8963. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  8964. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8965. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  8966. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  8967. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  8968. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8970. which seems to be undefined. Please make sure it is defined" >&5
  8971. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  8972. which seems to be undefined. Please make sure it is defined" >&2;}
  8973. rm -f "$ac_tmp/stdin"
  8974. case $ac_file in
  8975. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  8976. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  8977. esac \
  8978. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8979. ;;
  8980. :H)
  8981. #
  8982. # CONFIG_HEADER
  8983. #
  8984. if test x"$ac_file" != x-; then
  8985. {
  8986. $as_echo "/* $configure_input */" \
  8987. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  8988. } >"$ac_tmp/config.h" \
  8989. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8990. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  8992. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  8993. else
  8994. rm -f "$ac_file"
  8995. mv "$ac_tmp/config.h" "$ac_file" \
  8996. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  8997. fi
  8998. else
  8999. $as_echo "/* $configure_input */" \
  9000. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9001. || as_fn_error $? "could not create -" "$LINENO" 5
  9002. fi
  9003. ;;
  9004. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  9005. $as_echo "$as_me: executing $ac_file commands" >&6;}
  9006. ;;
  9007. esac
  9008. case $ac_file$ac_mode in
  9009. "default-1":C) mkdir -p config nasmlib nsis output stdlib x86 asm disasm rdoff macros common ;;
  9010. esac
  9011. done # for ac_tag
  9012. as_fn_exit 0
  9013. _ACEOF
  9014. ac_clean_files=$ac_clean_files_save
  9015. test $ac_write_fail = 0 ||
  9016. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9017. # configure is writing to config.log, and then calls config.status.
  9018. # config.status does its own redirection, appending to config.log.
  9019. # Unfortunately, on DOS this fails, as config.log is still kept open
  9020. # by configure, so config.status won't be able to write to it; its
  9021. # output is simply discarded. So we exec the FD to /dev/null,
  9022. # effectively closing config.log, so it can be properly (re)opened and
  9023. # appended to by config.status. When coming back to configure, we
  9024. # need to make the FD available again.
  9025. if test "$no_create" != yes; then
  9026. ac_cs_success=:
  9027. ac_config_status_args=
  9028. test "$silent" = yes &&
  9029. ac_config_status_args="$ac_config_status_args --quiet"
  9030. exec 5>/dev/null
  9031. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9032. exec 5>>config.log
  9033. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9034. # would make configure fail if this is the last instruction.
  9035. $ac_cs_success || as_fn_exit 1
  9036. fi
  9037. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9039. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9040. fi