configure 296 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839
  1. #! /bin/sh
  2. # From configure.ac Revision.
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.69.
  5. #
  6. #
  7. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  8. #
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. #
  13. # Copyright (c) Bryan Drewery
  14. ## -------------------- ##
  15. ## M4sh Initialization. ##
  16. ## -------------------- ##
  17. # Be more Bourne compatible
  18. DUALCASE=1; export DUALCASE # for MKS sh
  19. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  20. emulate sh
  21. NULLCMD=:
  22. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  23. # is contrary to our usage. Disable this feature.
  24. alias -g '${1+"$@"}'='"$@"'
  25. setopt NO_GLOB_SUBST
  26. else
  27. case `(set -o) 2>/dev/null` in #(
  28. *posix*) :
  29. set -o posix ;; #(
  30. *) :
  31. ;;
  32. esac
  33. fi
  34. as_nl='
  35. '
  36. export as_nl
  37. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  38. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41. # Prefer a ksh shell builtin over an external printf program on Solaris,
  42. # but without wasting forks for bash or zsh.
  43. if test -z "$BASH_VERSION$ZSH_VERSION" \
  44. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='print -r --'
  46. as_echo_n='print -rn --'
  47. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  48. as_echo='printf %s\n'
  49. as_echo_n='printf %s'
  50. else
  51. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  52. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  53. as_echo_n='/usr/ucb/echo -n'
  54. else
  55. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  56. as_echo_n_body='eval
  57. arg=$1;
  58. case $arg in #(
  59. *"$as_nl"*)
  60. expr "X$arg" : "X\\(.*\\)$as_nl";
  61. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  62. esac;
  63. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  64. '
  65. export as_echo_n_body
  66. as_echo_n='sh -c $as_echo_n_body as_echo'
  67. fi
  68. export as_echo_body
  69. as_echo='sh -c $as_echo_body as_echo'
  70. fi
  71. # The user is always right.
  72. if test "${PATH_SEPARATOR+set}" != set; then
  73. PATH_SEPARATOR=:
  74. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  75. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  76. PATH_SEPARATOR=';'
  77. }
  78. fi
  79. # IFS
  80. # We need space, tab and new line, in precisely that order. Quoting is
  81. # there to prevent editors from complaining about space-tab.
  82. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  83. # splitting by setting IFS to empty value.)
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. as_myself=
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. # Use a proper internal environment variable to ensure we don't fall
  127. # into an infinite loop, continuously re-executing ourselves.
  128. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  129. _as_can_reexec=no; export _as_can_reexec;
  130. # We cannot yet assume a decent shell, so we have to provide a
  131. # neutralization value for shells without unset; and this also
  132. # works around shells that cannot unset nonexistent variables.
  133. # Preserve -v and -x to the replacement shell.
  134. BASH_ENV=/dev/null
  135. ENV=/dev/null
  136. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  137. case $- in # ((((
  138. *v*x* | *x*v* ) as_opts=-vx ;;
  139. *v* ) as_opts=-v ;;
  140. *x* ) as_opts=-x ;;
  141. * ) as_opts= ;;
  142. esac
  143. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  144. # Admittedly, this is quite paranoid, since all the known shells bail
  145. # out after a failed `exec'.
  146. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  147. as_fn_exit 255
  148. fi
  149. # We don't want this to propagate to other subprocesses.
  150. { _as_can_reexec=; unset _as_can_reexec;}
  151. if test "x$CONFIG_SHELL" = x; then
  152. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  153. emulate sh
  154. NULLCMD=:
  155. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  156. # is contrary to our usage. Disable this feature.
  157. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  158. setopt NO_GLOB_SUBST
  159. else
  160. case \`(set -o) 2>/dev/null\` in #(
  161. *posix*) :
  162. set -o posix ;; #(
  163. *) :
  164. ;;
  165. esac
  166. fi
  167. "
  168. as_required="as_fn_return () { (exit \$1); }
  169. as_fn_success () { as_fn_return 0; }
  170. as_fn_failure () { as_fn_return 1; }
  171. as_fn_ret_success () { return 0; }
  172. as_fn_ret_failure () { return 1; }
  173. exitcode=0
  174. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  175. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  176. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  177. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  178. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  179. else
  180. exitcode=1; echo positional parameters were not saved.
  181. fi
  182. test x\$exitcode = x0 || exit 1
  183. test -x / || exit 1"
  184. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  185. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  186. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  187. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  188. test \$(( 1 + 1 )) = 2 || exit 1"
  189. if (eval "$as_required") 2>/dev/null; then :
  190. as_have_required=yes
  191. else
  192. as_have_required=no
  193. fi
  194. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  195. else
  196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197. as_found=false
  198. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199. do
  200. IFS=$as_save_IFS
  201. test -z "$as_dir" && as_dir=.
  202. as_found=:
  203. case $as_dir in #(
  204. /*)
  205. for as_base in sh bash ksh sh5; do
  206. # Try only shells that exist, to save several forks.
  207. as_shell=$as_dir/$as_base
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  210. CONFIG_SHELL=$as_shell as_have_required=yes
  211. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  212. break 2
  213. fi
  214. fi
  215. done;;
  216. esac
  217. as_found=false
  218. done
  219. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  220. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  221. CONFIG_SHELL=$SHELL as_have_required=yes
  222. fi; }
  223. IFS=$as_save_IFS
  224. if test "x$CONFIG_SHELL" != x; then :
  225. export CONFIG_SHELL
  226. # We cannot yet assume a decent shell, so we have to provide a
  227. # neutralization value for shells without unset; and this also
  228. # works around shells that cannot unset nonexistent variables.
  229. # Preserve -v and -x to the replacement shell.
  230. BASH_ENV=/dev/null
  231. ENV=/dev/null
  232. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  233. case $- in # ((((
  234. *v*x* | *x*v* ) as_opts=-vx ;;
  235. *v* ) as_opts=-v ;;
  236. *x* ) as_opts=-x ;;
  237. * ) as_opts= ;;
  238. esac
  239. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  240. # Admittedly, this is quite paranoid, since all the known shells bail
  241. # out after a failed `exec'.
  242. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  243. exit 255
  244. fi
  245. if test x$as_have_required = xno; then :
  246. $as_echo "$0: This script requires a shell more modern than all"
  247. $as_echo "$0: the shells that I found on your system."
  248. if test x${ZSH_VERSION+set} = xset ; then
  249. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  250. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  251. else
  252. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  253. $0: including any error possibly output before this
  254. $0: message. Then install a modern shell, or manually run
  255. $0: the script under such a shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. test -n "$DJDIR" || exec 7<&0 </dev/null
  516. exec 6>&1
  517. # Name of the host.
  518. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  519. # so uname gets run too.
  520. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  521. #
  522. # Initializations.
  523. #
  524. ac_default_prefix=/usr/local
  525. ac_clean_files=
  526. ac_config_libobj_dir=.
  527. LIBOBJS=
  528. cross_compiling=no
  529. subdirs=
  530. MFLAGS=
  531. MAKEFLAGS=
  532. # Identity of this package.
  533. PACKAGE_NAME=
  534. PACKAGE_TARNAME=
  535. PACKAGE_VERSION=
  536. PACKAGE_STRING=
  537. PACKAGE_BUGREPORT=
  538. PACKAGE_URL=
  539. ac_unique_file="wraith"
  540. ac_unique_file="src/eggdrop.h"
  541. # Factoring default headers for most tests.
  542. ac_includes_default="\
  543. #include <stdio.h>
  544. #ifdef HAVE_SYS_TYPES_H
  545. # include <sys/types.h>
  546. #endif
  547. #ifdef HAVE_SYS_STAT_H
  548. # include <sys/stat.h>
  549. #endif
  550. #ifdef STDC_HEADERS
  551. # include <stdlib.h>
  552. # include <stddef.h>
  553. #else
  554. # ifdef HAVE_STDLIB_H
  555. # include <stdlib.h>
  556. # endif
  557. #endif
  558. #ifdef HAVE_STRING_H
  559. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  560. # include <memory.h>
  561. # endif
  562. # include <string.h>
  563. #endif
  564. #ifdef HAVE_STRINGS_H
  565. # include <strings.h>
  566. #endif
  567. #ifdef HAVE_INTTYPES_H
  568. # include <inttypes.h>
  569. #endif
  570. #ifdef HAVE_STDINT_H
  571. # include <stdint.h>
  572. #endif
  573. #ifdef HAVE_UNISTD_H
  574. # include <unistd.h>
  575. #endif"
  576. ac_header_list=
  577. enable_option_checking=no
  578. ac_subst_vars='LTLIBOBJS
  579. subdirs
  580. NUMVER
  581. VERSION
  582. LIBOBJS
  583. TCL_LIBS
  584. TCL_REQS
  585. DEFAULT_MAKE
  586. TCLINCFN
  587. TCL_INCLUDES
  588. TCLLIBFN
  589. TCLLIB
  590. SSL_LIBS
  591. SSL_INCLUDES
  592. LIBELF_LIB
  593. LIBELF_BUNDLED
  594. EGREP
  595. GREP
  596. DEBLDFLAGS
  597. DEBCXXFLAGS
  598. STATIC
  599. BUILDARCH
  600. BUILDOS
  601. UNAME
  602. DIFF
  603. STRIP
  604. OBJCOPY
  605. BASENAME
  606. AWK
  607. HEAD_1
  608. SED
  609. SET_MAKE
  610. GCC4DEB
  611. GCC3DEB
  612. GCC3_CXXFLAGS
  613. GCC3_CFLAGS
  614. CCDEPMODE
  615. HAVE_CXX14
  616. HAVE_CXX11
  617. CXXCPP
  618. CC
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CXX
  622. CPPFLAGS
  623. LDFLAGS
  624. CXXFLAGS
  625. CXX
  626. egg_ac_parameters
  627. target_alias
  628. host_alias
  629. build_alias
  630. LIBS
  631. ECHO_T
  632. ECHO_N
  633. ECHO_C
  634. DEFS
  635. mandir
  636. localedir
  637. libdir
  638. psdir
  639. pdfdir
  640. dvidir
  641. htmldir
  642. infodir
  643. docdir
  644. oldincludedir
  645. includedir
  646. localstatedir
  647. sharedstatedir
  648. sysconfdir
  649. datadir
  650. datarootdir
  651. libexecdir
  652. sbindir
  653. bindir
  654. program_transform_name
  655. prefix
  656. exec_prefix
  657. PACKAGE_URL
  658. PACKAGE_BUGREPORT
  659. PACKAGE_STRING
  660. PACKAGE_VERSION
  661. PACKAGE_TARNAME
  662. PACKAGE_NAME
  663. PATH_SEPARATOR
  664. SHELL'
  665. ac_subst_files=''
  666. ac_user_opts='
  667. enable_option_checking
  668. enable_ipv6
  669. with_openssl
  670. with_tcllib
  671. with_tclinc
  672. enable_script_tcl
  673. '
  674. ac_precious_vars='build_alias
  675. host_alias
  676. target_alias
  677. CXX
  678. CXXFLAGS
  679. LDFLAGS
  680. LIBS
  681. CPPFLAGS
  682. CCC
  683. CXXCPP'
  684. ac_subdirs_all='lib/bdlib
  685. lib/libelf'
  686. # Initialize some variables set by options.
  687. ac_init_help=
  688. ac_init_version=false
  689. ac_unrecognized_opts=
  690. ac_unrecognized_sep=
  691. # The variables have the same names as the options, with
  692. # dashes changed to underlines.
  693. cache_file=/dev/null
  694. exec_prefix=NONE
  695. no_create=
  696. no_recursion=
  697. prefix=NONE
  698. program_prefix=NONE
  699. program_suffix=NONE
  700. program_transform_name=s,x,x,
  701. silent=
  702. site=
  703. srcdir=
  704. verbose=
  705. x_includes=NONE
  706. x_libraries=NONE
  707. # Installation directory options.
  708. # These are left unexpanded so users can "make install exec_prefix=/foo"
  709. # and all the variables that are supposed to be based on exec_prefix
  710. # by default will actually change.
  711. # Use braces instead of parens because sh, perl, etc. also accept them.
  712. # (The list follows the same order as the GNU Coding Standards.)
  713. bindir='${exec_prefix}/bin'
  714. sbindir='${exec_prefix}/sbin'
  715. libexecdir='${exec_prefix}/libexec'
  716. datarootdir='${prefix}/share'
  717. datadir='${datarootdir}'
  718. sysconfdir='${prefix}/etc'
  719. sharedstatedir='${prefix}/com'
  720. localstatedir='${prefix}/var'
  721. includedir='${prefix}/include'
  722. oldincludedir='/usr/include'
  723. docdir='${datarootdir}/doc/${PACKAGE}'
  724. infodir='${datarootdir}/info'
  725. htmldir='${docdir}'
  726. dvidir='${docdir}'
  727. pdfdir='${docdir}'
  728. psdir='${docdir}'
  729. libdir='${exec_prefix}/lib'
  730. localedir='${datarootdir}/locale'
  731. mandir='${datarootdir}/man'
  732. ac_prev=
  733. ac_dashdash=
  734. for ac_option
  735. do
  736. # If the previous option needs an argument, assign it.
  737. if test -n "$ac_prev"; then
  738. eval $ac_prev=\$ac_option
  739. ac_prev=
  740. continue
  741. fi
  742. case $ac_option in
  743. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  744. *=) ac_optarg= ;;
  745. *) ac_optarg=yes ;;
  746. esac
  747. # Accept the important Cygnus configure options, so we can diagnose typos.
  748. case $ac_dashdash$ac_option in
  749. --)
  750. ac_dashdash=yes ;;
  751. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  752. ac_prev=bindir ;;
  753. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  754. bindir=$ac_optarg ;;
  755. -build | --build | --buil | --bui | --bu)
  756. ac_prev=build_alias ;;
  757. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  758. build_alias=$ac_optarg ;;
  759. -cache-file | --cache-file | --cache-fil | --cache-fi \
  760. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  761. ac_prev=cache_file ;;
  762. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  763. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  764. cache_file=$ac_optarg ;;
  765. --config-cache | -C)
  766. cache_file=config.cache ;;
  767. -datadir | --datadir | --datadi | --datad)
  768. ac_prev=datadir ;;
  769. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  770. datadir=$ac_optarg ;;
  771. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  772. | --dataroo | --dataro | --datar)
  773. ac_prev=datarootdir ;;
  774. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  775. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  776. datarootdir=$ac_optarg ;;
  777. -disable-* | --disable-*)
  778. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  779. # Reject names that are not valid shell variable names.
  780. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  781. as_fn_error $? "invalid feature name: $ac_useropt"
  782. ac_useropt_orig=$ac_useropt
  783. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  784. case $ac_user_opts in
  785. *"
  786. "enable_$ac_useropt"
  787. "*) ;;
  788. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  789. ac_unrecognized_sep=', ';;
  790. esac
  791. eval enable_$ac_useropt=no ;;
  792. -docdir | --docdir | --docdi | --doc | --do)
  793. ac_prev=docdir ;;
  794. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  795. docdir=$ac_optarg ;;
  796. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  797. ac_prev=dvidir ;;
  798. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  799. dvidir=$ac_optarg ;;
  800. -enable-* | --enable-*)
  801. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  802. # Reject names that are not valid shell variable names.
  803. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  804. as_fn_error $? "invalid feature name: $ac_useropt"
  805. ac_useropt_orig=$ac_useropt
  806. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  807. case $ac_user_opts in
  808. *"
  809. "enable_$ac_useropt"
  810. "*) ;;
  811. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  812. ac_unrecognized_sep=', ';;
  813. esac
  814. eval enable_$ac_useropt=\$ac_optarg ;;
  815. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  816. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  817. | --exec | --exe | --ex)
  818. ac_prev=exec_prefix ;;
  819. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  820. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  821. | --exec=* | --exe=* | --ex=*)
  822. exec_prefix=$ac_optarg ;;
  823. -gas | --gas | --ga | --g)
  824. # Obsolete; use --with-gas.
  825. with_gas=yes ;;
  826. -help | --help | --hel | --he | -h)
  827. ac_init_help=long ;;
  828. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  829. ac_init_help=recursive ;;
  830. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  831. ac_init_help=short ;;
  832. -host | --host | --hos | --ho)
  833. ac_prev=host_alias ;;
  834. -host=* | --host=* | --hos=* | --ho=*)
  835. host_alias=$ac_optarg ;;
  836. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  837. ac_prev=htmldir ;;
  838. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  839. | --ht=*)
  840. htmldir=$ac_optarg ;;
  841. -includedir | --includedir | --includedi | --included | --include \
  842. | --includ | --inclu | --incl | --inc)
  843. ac_prev=includedir ;;
  844. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  845. | --includ=* | --inclu=* | --incl=* | --inc=*)
  846. includedir=$ac_optarg ;;
  847. -infodir | --infodir | --infodi | --infod | --info | --inf)
  848. ac_prev=infodir ;;
  849. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  850. infodir=$ac_optarg ;;
  851. -libdir | --libdir | --libdi | --libd)
  852. ac_prev=libdir ;;
  853. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  854. libdir=$ac_optarg ;;
  855. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  856. | --libexe | --libex | --libe)
  857. ac_prev=libexecdir ;;
  858. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  859. | --libexe=* | --libex=* | --libe=*)
  860. libexecdir=$ac_optarg ;;
  861. -localedir | --localedir | --localedi | --localed | --locale)
  862. ac_prev=localedir ;;
  863. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  864. localedir=$ac_optarg ;;
  865. -localstatedir | --localstatedir | --localstatedi | --localstated \
  866. | --localstate | --localstat | --localsta | --localst | --locals)
  867. ac_prev=localstatedir ;;
  868. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  869. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  870. localstatedir=$ac_optarg ;;
  871. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  872. ac_prev=mandir ;;
  873. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  874. mandir=$ac_optarg ;;
  875. -nfp | --nfp | --nf)
  876. # Obsolete; use --without-fp.
  877. with_fp=no ;;
  878. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  879. | --no-cr | --no-c | -n)
  880. no_create=yes ;;
  881. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  882. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  883. no_recursion=yes ;;
  884. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  885. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  886. | --oldin | --oldi | --old | --ol | --o)
  887. ac_prev=oldincludedir ;;
  888. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  889. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  890. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  891. oldincludedir=$ac_optarg ;;
  892. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  893. ac_prev=prefix ;;
  894. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  895. prefix=$ac_optarg ;;
  896. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  897. | --program-pre | --program-pr | --program-p)
  898. ac_prev=program_prefix ;;
  899. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  900. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  901. program_prefix=$ac_optarg ;;
  902. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  903. | --program-suf | --program-su | --program-s)
  904. ac_prev=program_suffix ;;
  905. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  906. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  907. program_suffix=$ac_optarg ;;
  908. -program-transform-name | --program-transform-name \
  909. | --program-transform-nam | --program-transform-na \
  910. | --program-transform-n | --program-transform- \
  911. | --program-transform | --program-transfor \
  912. | --program-transfo | --program-transf \
  913. | --program-trans | --program-tran \
  914. | --progr-tra | --program-tr | --program-t)
  915. ac_prev=program_transform_name ;;
  916. -program-transform-name=* | --program-transform-name=* \
  917. | --program-transform-nam=* | --program-transform-na=* \
  918. | --program-transform-n=* | --program-transform-=* \
  919. | --program-transform=* | --program-transfor=* \
  920. | --program-transfo=* | --program-transf=* \
  921. | --program-trans=* | --program-tran=* \
  922. | --progr-tra=* | --program-tr=* | --program-t=*)
  923. program_transform_name=$ac_optarg ;;
  924. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  925. ac_prev=pdfdir ;;
  926. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  927. pdfdir=$ac_optarg ;;
  928. -psdir | --psdir | --psdi | --psd | --ps)
  929. ac_prev=psdir ;;
  930. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  931. psdir=$ac_optarg ;;
  932. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  933. | -silent | --silent | --silen | --sile | --sil)
  934. silent=yes ;;
  935. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  936. ac_prev=sbindir ;;
  937. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  938. | --sbi=* | --sb=*)
  939. sbindir=$ac_optarg ;;
  940. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  941. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  942. | --sharedst | --shareds | --shared | --share | --shar \
  943. | --sha | --sh)
  944. ac_prev=sharedstatedir ;;
  945. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  946. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  947. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  948. | --sha=* | --sh=*)
  949. sharedstatedir=$ac_optarg ;;
  950. -site | --site | --sit)
  951. ac_prev=site ;;
  952. -site=* | --site=* | --sit=*)
  953. site=$ac_optarg ;;
  954. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  955. ac_prev=srcdir ;;
  956. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  957. srcdir=$ac_optarg ;;
  958. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  959. | --syscon | --sysco | --sysc | --sys | --sy)
  960. ac_prev=sysconfdir ;;
  961. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  962. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  963. sysconfdir=$ac_optarg ;;
  964. -target | --target | --targe | --targ | --tar | --ta | --t)
  965. ac_prev=target_alias ;;
  966. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  967. target_alias=$ac_optarg ;;
  968. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  969. verbose=yes ;;
  970. -version | --version | --versio | --versi | --vers | -V)
  971. ac_init_version=: ;;
  972. -with-* | --with-*)
  973. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  974. # Reject names that are not valid shell variable names.
  975. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  976. as_fn_error $? "invalid package name: $ac_useropt"
  977. ac_useropt_orig=$ac_useropt
  978. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  979. case $ac_user_opts in
  980. *"
  981. "with_$ac_useropt"
  982. "*) ;;
  983. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  984. ac_unrecognized_sep=', ';;
  985. esac
  986. eval with_$ac_useropt=\$ac_optarg ;;
  987. -without-* | --without-*)
  988. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  991. as_fn_error $? "invalid package name: $ac_useropt"
  992. ac_useropt_orig=$ac_useropt
  993. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  994. case $ac_user_opts in
  995. *"
  996. "with_$ac_useropt"
  997. "*) ;;
  998. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  999. ac_unrecognized_sep=', ';;
  1000. esac
  1001. eval with_$ac_useropt=no ;;
  1002. --x)
  1003. # Obsolete; use --with-x.
  1004. with_x=yes ;;
  1005. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1006. | --x-incl | --x-inc | --x-in | --x-i)
  1007. ac_prev=x_includes ;;
  1008. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1009. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1010. x_includes=$ac_optarg ;;
  1011. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1012. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1013. ac_prev=x_libraries ;;
  1014. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1015. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1016. x_libraries=$ac_optarg ;;
  1017. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1018. Try \`$0 --help' for more information"
  1019. ;;
  1020. *=*)
  1021. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1022. # Reject names that are not valid shell variable names.
  1023. case $ac_envvar in #(
  1024. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1025. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1026. esac
  1027. eval $ac_envvar=\$ac_optarg
  1028. export $ac_envvar ;;
  1029. *)
  1030. # FIXME: should be removed in autoconf 3.0.
  1031. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1032. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1033. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1034. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1035. ;;
  1036. esac
  1037. done
  1038. if test -n "$ac_prev"; then
  1039. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1040. as_fn_error $? "missing argument to $ac_option"
  1041. fi
  1042. if test -n "$ac_unrecognized_opts"; then
  1043. case $enable_option_checking in
  1044. no) ;;
  1045. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1046. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1047. esac
  1048. fi
  1049. # Check all directory arguments for consistency.
  1050. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1051. datadir sysconfdir sharedstatedir localstatedir includedir \
  1052. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1053. libdir localedir mandir
  1054. do
  1055. eval ac_val=\$$ac_var
  1056. # Remove trailing slashes.
  1057. case $ac_val in
  1058. */ )
  1059. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1060. eval $ac_var=\$ac_val;;
  1061. esac
  1062. # Be sure to have absolute directory names.
  1063. case $ac_val in
  1064. [\\/$]* | ?:[\\/]* ) continue;;
  1065. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1066. esac
  1067. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1068. done
  1069. # There might be people who depend on the old broken behavior: `$host'
  1070. # used to hold the argument of --host etc.
  1071. # FIXME: To remove some day.
  1072. build=$build_alias
  1073. host=$host_alias
  1074. target=$target_alias
  1075. # FIXME: To remove some day.
  1076. if test "x$host_alias" != x; then
  1077. if test "x$build_alias" = x; then
  1078. cross_compiling=maybe
  1079. elif test "x$build_alias" != "x$host_alias"; then
  1080. cross_compiling=yes
  1081. fi
  1082. fi
  1083. ac_tool_prefix=
  1084. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1085. test "$silent" = yes && exec 6>/dev/null
  1086. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1087. ac_ls_di=`ls -di .` &&
  1088. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1089. as_fn_error $? "working directory cannot be determined"
  1090. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1091. as_fn_error $? "pwd does not report name of working directory"
  1092. # Find the source files, if location was not specified.
  1093. if test -z "$srcdir"; then
  1094. ac_srcdir_defaulted=yes
  1095. # Try the directory containing this script, then the parent directory.
  1096. ac_confdir=`$as_dirname -- "$as_myself" ||
  1097. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1098. X"$as_myself" : 'X\(//\)[^/]' \| \
  1099. X"$as_myself" : 'X\(//\)$' \| \
  1100. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1101. $as_echo X"$as_myself" |
  1102. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1103. s//\1/
  1104. q
  1105. }
  1106. /^X\(\/\/\)[^/].*/{
  1107. s//\1/
  1108. q
  1109. }
  1110. /^X\(\/\/\)$/{
  1111. s//\1/
  1112. q
  1113. }
  1114. /^X\(\/\).*/{
  1115. s//\1/
  1116. q
  1117. }
  1118. s/.*/./; q'`
  1119. srcdir=$ac_confdir
  1120. if test ! -r "$srcdir/$ac_unique_file"; then
  1121. srcdir=..
  1122. fi
  1123. else
  1124. ac_srcdir_defaulted=no
  1125. fi
  1126. if test ! -r "$srcdir/$ac_unique_file"; then
  1127. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1128. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1129. fi
  1130. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1131. ac_abs_confdir=`(
  1132. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1133. pwd)`
  1134. # When building in place, set srcdir=.
  1135. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1136. srcdir=.
  1137. fi
  1138. # Remove unnecessary trailing slashes from srcdir.
  1139. # Double slashes in file names in object file debugging info
  1140. # mess up M-x gdb in Emacs.
  1141. case $srcdir in
  1142. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1143. esac
  1144. for ac_var in $ac_precious_vars; do
  1145. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1146. eval ac_env_${ac_var}_value=\$${ac_var}
  1147. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1148. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1149. done
  1150. #
  1151. # Report the --help message.
  1152. #
  1153. if test "$ac_init_help" = "long"; then
  1154. # Omit some internal or obsolete options to make the list less imposing.
  1155. # This message is too long to be a string in the A/UX 3.1 sh.
  1156. cat <<_ACEOF
  1157. \`configure' configures this package to adapt to many kinds of systems.
  1158. Usage: $0 [OPTION]... [VAR=VALUE]...
  1159. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1160. VAR=VALUE. See below for descriptions of some of the useful variables.
  1161. Defaults for the options are specified in brackets.
  1162. Configuration:
  1163. -h, --help display this help and exit
  1164. --help=short display options specific to this package
  1165. --help=recursive display the short help of all the included packages
  1166. -V, --version display version information and exit
  1167. -q, --quiet, --silent do not print \`checking ...' messages
  1168. --cache-file=FILE cache test results in FILE [disabled]
  1169. -C, --config-cache alias for \`--cache-file=config.cache'
  1170. -n, --no-create do not create output files
  1171. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1172. Installation directories:
  1173. --prefix=PREFIX install architecture-independent files in PREFIX
  1174. [$ac_default_prefix]
  1175. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1176. [PREFIX]
  1177. By default, \`make install' will install all the files in
  1178. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1179. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1180. for instance \`--prefix=\$HOME'.
  1181. For better control, use the options below.
  1182. Fine tuning of the installation directories:
  1183. --bindir=DIR user executables [EPREFIX/bin]
  1184. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1185. --libexecdir=DIR program executables [EPREFIX/libexec]
  1186. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1187. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1188. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1189. --libdir=DIR object code libraries [EPREFIX/lib]
  1190. --includedir=DIR C header files [PREFIX/include]
  1191. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1192. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1193. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1194. --infodir=DIR info documentation [DATAROOTDIR/info]
  1195. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1196. --mandir=DIR man documentation [DATAROOTDIR/man]
  1197. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1198. --htmldir=DIR html documentation [DOCDIR]
  1199. --dvidir=DIR dvi documentation [DOCDIR]
  1200. --pdfdir=DIR pdf documentation [DOCDIR]
  1201. --psdir=DIR ps documentation [DOCDIR]
  1202. _ACEOF
  1203. cat <<\_ACEOF
  1204. _ACEOF
  1205. fi
  1206. if test -n "$ac_init_help"; then
  1207. cat <<\_ACEOF
  1208. Optional Features:
  1209. --disable-option-checking ignore unrecognized --enable/--with options
  1210. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1211. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1212. --disable-ipv6 disable IPv6 support
  1213. --disable-script-tcl disable TCL Script support
  1214. Optional Packages:
  1215. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1216. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1217. --with-openssl=PATH Path to OpenSSL
  1218. --with-tcllib=PATH full path to Tcl library
  1219. --with-tclinc=PATH full path to Tcl header
  1220. Some influential environment variables:
  1221. CXX C++ compiler command
  1222. CXXFLAGS C++ compiler flags
  1223. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1224. nonstandard directory <lib dir>
  1225. LIBS libraries to pass to the linker, e.g. -l<library>
  1226. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1227. you have headers in a nonstandard directory <include dir>
  1228. CXXCPP C++ preprocessor
  1229. Use these variables to override the choices made by `configure' or to help
  1230. it to find libraries and programs with nonstandard names/locations.
  1231. Report bugs to the package provider.
  1232. _ACEOF
  1233. ac_status=$?
  1234. fi
  1235. if test "$ac_init_help" = "recursive"; then
  1236. # If there are subdirs, report their specific --help.
  1237. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1238. test -d "$ac_dir" ||
  1239. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1240. continue
  1241. ac_builddir=.
  1242. case "$ac_dir" in
  1243. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1244. *)
  1245. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1246. # A ".." for each directory in $ac_dir_suffix.
  1247. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1248. case $ac_top_builddir_sub in
  1249. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1250. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1251. esac ;;
  1252. esac
  1253. ac_abs_top_builddir=$ac_pwd
  1254. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1255. # for backward compatibility:
  1256. ac_top_builddir=$ac_top_build_prefix
  1257. case $srcdir in
  1258. .) # We are building in place.
  1259. ac_srcdir=.
  1260. ac_top_srcdir=$ac_top_builddir_sub
  1261. ac_abs_top_srcdir=$ac_pwd ;;
  1262. [\\/]* | ?:[\\/]* ) # Absolute name.
  1263. ac_srcdir=$srcdir$ac_dir_suffix;
  1264. ac_top_srcdir=$srcdir
  1265. ac_abs_top_srcdir=$srcdir ;;
  1266. *) # Relative name.
  1267. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1268. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1269. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1270. esac
  1271. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1272. cd "$ac_dir" || { ac_status=$?; continue; }
  1273. # Check for guested configure.
  1274. if test -f "$ac_srcdir/configure.gnu"; then
  1275. echo &&
  1276. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1277. elif test -f "$ac_srcdir/configure"; then
  1278. echo &&
  1279. $SHELL "$ac_srcdir/configure" --help=recursive
  1280. else
  1281. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1282. fi || ac_status=$?
  1283. cd "$ac_pwd" || { ac_status=$?; break; }
  1284. done
  1285. fi
  1286. test -n "$ac_init_help" && exit $ac_status
  1287. if $ac_init_version; then
  1288. cat <<\_ACEOF
  1289. configure
  1290. generated by GNU Autoconf 2.69
  1291. Copyright (C) 2012 Free Software Foundation, Inc.
  1292. This configure script is free software; the Free Software Foundation
  1293. gives unlimited permission to copy, distribute and modify it.
  1294. Copyright (c) Bryan Drewery
  1295. _ACEOF
  1296. exit
  1297. fi
  1298. ## ------------------------ ##
  1299. ## Autoconf initialization. ##
  1300. ## ------------------------ ##
  1301. # ac_fn_cxx_try_compile LINENO
  1302. # ----------------------------
  1303. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1304. ac_fn_cxx_try_compile ()
  1305. {
  1306. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1307. rm -f conftest.$ac_objext
  1308. if { { ac_try="$ac_compile"
  1309. case "(($ac_try" in
  1310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1311. *) ac_try_echo=$ac_try;;
  1312. esac
  1313. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1314. $as_echo "$ac_try_echo"; } >&5
  1315. (eval "$ac_compile") 2>conftest.err
  1316. ac_status=$?
  1317. if test -s conftest.err; then
  1318. grep -v '^ *+' conftest.err >conftest.er1
  1319. cat conftest.er1 >&5
  1320. mv -f conftest.er1 conftest.err
  1321. fi
  1322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1323. test $ac_status = 0; } && {
  1324. test -z "$ac_cxx_werror_flag" ||
  1325. test ! -s conftest.err
  1326. } && test -s conftest.$ac_objext; then :
  1327. ac_retval=0
  1328. else
  1329. $as_echo "$as_me: failed program was:" >&5
  1330. sed 's/^/| /' conftest.$ac_ext >&5
  1331. ac_retval=1
  1332. fi
  1333. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1334. as_fn_set_status $ac_retval
  1335. } # ac_fn_cxx_try_compile
  1336. # ac_fn_cxx_try_cpp LINENO
  1337. # ------------------------
  1338. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1339. ac_fn_cxx_try_cpp ()
  1340. {
  1341. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1342. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1343. case "(($ac_try" in
  1344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1345. *) ac_try_echo=$ac_try;;
  1346. esac
  1347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1348. $as_echo "$ac_try_echo"; } >&5
  1349. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1350. ac_status=$?
  1351. if test -s conftest.err; then
  1352. grep -v '^ *+' conftest.err >conftest.er1
  1353. cat conftest.er1 >&5
  1354. mv -f conftest.er1 conftest.err
  1355. fi
  1356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1357. test $ac_status = 0; } > conftest.i && {
  1358. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1359. test ! -s conftest.err
  1360. }; then :
  1361. ac_retval=0
  1362. else
  1363. $as_echo "$as_me: failed program was:" >&5
  1364. sed 's/^/| /' conftest.$ac_ext >&5
  1365. ac_retval=1
  1366. fi
  1367. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1368. as_fn_set_status $ac_retval
  1369. } # ac_fn_cxx_try_cpp
  1370. # ac_fn_cxx_try_link LINENO
  1371. # -------------------------
  1372. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1373. ac_fn_cxx_try_link ()
  1374. {
  1375. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1376. rm -f conftest.$ac_objext conftest$ac_exeext
  1377. if { { ac_try="$ac_link"
  1378. case "(($ac_try" in
  1379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1380. *) ac_try_echo=$ac_try;;
  1381. esac
  1382. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1383. $as_echo "$ac_try_echo"; } >&5
  1384. (eval "$ac_link") 2>conftest.err
  1385. ac_status=$?
  1386. if test -s conftest.err; then
  1387. grep -v '^ *+' conftest.err >conftest.er1
  1388. cat conftest.er1 >&5
  1389. mv -f conftest.er1 conftest.err
  1390. fi
  1391. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1392. test $ac_status = 0; } && {
  1393. test -z "$ac_cxx_werror_flag" ||
  1394. test ! -s conftest.err
  1395. } && test -s conftest$ac_exeext && {
  1396. test "$cross_compiling" = yes ||
  1397. test -x conftest$ac_exeext
  1398. }; then :
  1399. ac_retval=0
  1400. else
  1401. $as_echo "$as_me: failed program was:" >&5
  1402. sed 's/^/| /' conftest.$ac_ext >&5
  1403. ac_retval=1
  1404. fi
  1405. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1406. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1407. # interfere with the next link command; also delete a directory that is
  1408. # left behind by Apple's compiler. We do this before executing the actions.
  1409. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1410. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1411. as_fn_set_status $ac_retval
  1412. } # ac_fn_cxx_try_link
  1413. # ac_fn_cxx_try_run LINENO
  1414. # ------------------------
  1415. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1416. # that executables *can* be run.
  1417. ac_fn_cxx_try_run ()
  1418. {
  1419. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1420. if { { ac_try="$ac_link"
  1421. case "(($ac_try" in
  1422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1423. *) ac_try_echo=$ac_try;;
  1424. esac
  1425. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1426. $as_echo "$ac_try_echo"; } >&5
  1427. (eval "$ac_link") 2>&5
  1428. ac_status=$?
  1429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1430. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1431. { { case "(($ac_try" in
  1432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1433. *) ac_try_echo=$ac_try;;
  1434. esac
  1435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1436. $as_echo "$ac_try_echo"; } >&5
  1437. (eval "$ac_try") 2>&5
  1438. ac_status=$?
  1439. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1440. test $ac_status = 0; }; }; then :
  1441. ac_retval=0
  1442. else
  1443. $as_echo "$as_me: program exited with status $ac_status" >&5
  1444. $as_echo "$as_me: failed program was:" >&5
  1445. sed 's/^/| /' conftest.$ac_ext >&5
  1446. ac_retval=$ac_status
  1447. fi
  1448. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1449. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1450. as_fn_set_status $ac_retval
  1451. } # ac_fn_cxx_try_run
  1452. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1453. # ---------------------------------------------------------
  1454. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1455. # the include files in INCLUDES and setting the cache variable VAR
  1456. # accordingly.
  1457. ac_fn_cxx_check_header_mongrel ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. if eval \${$3+:} false; then :
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if eval \${$3+:} false; then :
  1464. $as_echo_n "(cached) " >&6
  1465. fi
  1466. eval ac_res=\$$3
  1467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1468. $as_echo "$ac_res" >&6; }
  1469. else
  1470. # Is the header compilable?
  1471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1472. $as_echo_n "checking $2 usability... " >&6; }
  1473. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1474. /* end build/confdefs.h. */
  1475. $4
  1476. #include <$2>
  1477. _ACEOF
  1478. if ac_fn_cxx_try_compile "$LINENO"; then :
  1479. ac_header_compiler=yes
  1480. else
  1481. ac_header_compiler=no
  1482. fi
  1483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1485. $as_echo "$ac_header_compiler" >&6; }
  1486. # Is the header present?
  1487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1488. $as_echo_n "checking $2 presence... " >&6; }
  1489. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1490. /* end build/confdefs.h. */
  1491. #include <$2>
  1492. _ACEOF
  1493. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1494. ac_header_preproc=yes
  1495. else
  1496. ac_header_preproc=no
  1497. fi
  1498. rm -f conftest.err conftest.i conftest.$ac_ext
  1499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1500. $as_echo "$ac_header_preproc" >&6; }
  1501. # So? What about this header?
  1502. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1503. yes:no: )
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1505. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1507. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1508. ;;
  1509. no:yes:* )
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1511. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1512. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1513. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1515. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1516. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1517. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1519. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1520. ;;
  1521. esac
  1522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1523. $as_echo_n "checking for $2... " >&6; }
  1524. if eval \${$3+:} false; then :
  1525. $as_echo_n "(cached) " >&6
  1526. else
  1527. eval "$3=\$ac_header_compiler"
  1528. fi
  1529. eval ac_res=\$$3
  1530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1531. $as_echo "$ac_res" >&6; }
  1532. fi
  1533. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1534. } # ac_fn_cxx_check_header_mongrel
  1535. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1536. # ---------------------------------------------------------
  1537. # Tests whether HEADER exists and can be compiled using the include files in
  1538. # INCLUDES, setting the cache variable VAR accordingly.
  1539. ac_fn_cxx_check_header_compile ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1543. $as_echo_n "checking for $2... " >&6; }
  1544. if eval \${$3+:} false; then :
  1545. $as_echo_n "(cached) " >&6
  1546. else
  1547. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1548. /* end build/confdefs.h. */
  1549. $4
  1550. #include <$2>
  1551. _ACEOF
  1552. if ac_fn_cxx_try_compile "$LINENO"; then :
  1553. eval "$3=yes"
  1554. else
  1555. eval "$3=no"
  1556. fi
  1557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1558. fi
  1559. eval ac_res=\$$3
  1560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1561. $as_echo "$ac_res" >&6; }
  1562. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1563. } # ac_fn_cxx_check_header_compile
  1564. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  1565. # ---------------------------------------------
  1566. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1567. # variable VAR accordingly.
  1568. ac_fn_cxx_check_type ()
  1569. {
  1570. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1572. $as_echo_n "checking for $2... " >&6; }
  1573. if eval \${$3+:} false; then :
  1574. $as_echo_n "(cached) " >&6
  1575. else
  1576. eval "$3=no"
  1577. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1578. /* end build/confdefs.h. */
  1579. $4
  1580. int
  1581. main ()
  1582. {
  1583. if (sizeof ($2))
  1584. return 0;
  1585. ;
  1586. return 0;
  1587. }
  1588. _ACEOF
  1589. if ac_fn_cxx_try_compile "$LINENO"; then :
  1590. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end build/confdefs.h. */
  1592. $4
  1593. int
  1594. main ()
  1595. {
  1596. if (sizeof (($2)))
  1597. return 0;
  1598. ;
  1599. return 0;
  1600. }
  1601. _ACEOF
  1602. if ac_fn_cxx_try_compile "$LINENO"; then :
  1603. else
  1604. eval "$3=yes"
  1605. fi
  1606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1607. fi
  1608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1609. fi
  1610. eval ac_res=\$$3
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1612. $as_echo "$ac_res" >&6; }
  1613. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1614. } # ac_fn_cxx_check_type
  1615. # ac_fn_c_find_intX_t LINENO BITS VAR
  1616. # -----------------------------------
  1617. # Finds a signed integer type with width BITS, setting cache variable VAR
  1618. # accordingly.
  1619. ac_fn_c_find_intX_t ()
  1620. {
  1621. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1623. $as_echo_n "checking for int$2_t... " >&6; }
  1624. if eval \${$3+:} false; then :
  1625. $as_echo_n "(cached) " >&6
  1626. else
  1627. eval "$3=no"
  1628. # Order is important - never check a type that is potentially smaller
  1629. # than half of the expected target width.
  1630. for ac_type in int$2_t 'int' 'long int' \
  1631. 'long long int' 'short int' 'signed char'; do
  1632. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1633. /* end build/confdefs.h. */
  1634. $ac_includes_default
  1635. enum { N = $2 / 2 - 1 };
  1636. int
  1637. main ()
  1638. {
  1639. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1640. test_array [0] = 0;
  1641. return test_array [0];
  1642. ;
  1643. return 0;
  1644. }
  1645. _ACEOF
  1646. if ac_fn_cxx_try_compile "$LINENO"; then :
  1647. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1648. /* end build/confdefs.h. */
  1649. $ac_includes_default
  1650. enum { N = $2 / 2 - 1 };
  1651. int
  1652. main ()
  1653. {
  1654. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1655. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1656. test_array [0] = 0;
  1657. return test_array [0];
  1658. ;
  1659. return 0;
  1660. }
  1661. _ACEOF
  1662. if ac_fn_cxx_try_compile "$LINENO"; then :
  1663. else
  1664. case $ac_type in #(
  1665. int$2_t) :
  1666. eval "$3=yes" ;; #(
  1667. *) :
  1668. eval "$3=\$ac_type" ;;
  1669. esac
  1670. fi
  1671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. fi
  1673. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1674. if eval test \"x\$"$3"\" = x"no"; then :
  1675. else
  1676. break
  1677. fi
  1678. done
  1679. fi
  1680. eval ac_res=\$$3
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1682. $as_echo "$ac_res" >&6; }
  1683. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1684. } # ac_fn_c_find_intX_t
  1685. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1686. # ------------------------------------
  1687. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1688. # accordingly.
  1689. ac_fn_c_find_uintX_t ()
  1690. {
  1691. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1693. $as_echo_n "checking for uint$2_t... " >&6; }
  1694. if eval \${$3+:} false; then :
  1695. $as_echo_n "(cached) " >&6
  1696. else
  1697. eval "$3=no"
  1698. # Order is important - never check a type that is potentially smaller
  1699. # than half of the expected target width.
  1700. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1701. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1702. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1703. /* end build/confdefs.h. */
  1704. $ac_includes_default
  1705. int
  1706. main ()
  1707. {
  1708. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1709. test_array [0] = 0;
  1710. return test_array [0];
  1711. ;
  1712. return 0;
  1713. }
  1714. _ACEOF
  1715. if ac_fn_cxx_try_compile "$LINENO"; then :
  1716. case $ac_type in #(
  1717. uint$2_t) :
  1718. eval "$3=yes" ;; #(
  1719. *) :
  1720. eval "$3=\$ac_type" ;;
  1721. esac
  1722. fi
  1723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1724. if eval test \"x\$"$3"\" = x"no"; then :
  1725. else
  1726. break
  1727. fi
  1728. done
  1729. fi
  1730. eval ac_res=\$$3
  1731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1732. $as_echo "$ac_res" >&6; }
  1733. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1734. } # ac_fn_c_find_uintX_t
  1735. # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
  1736. # ------------------------------------------------------
  1737. # Tries to find if the field MEMBER exists in type AGGR, after including
  1738. # INCLUDES, setting cache variable VAR accordingly.
  1739. ac_fn_cxx_check_member ()
  1740. {
  1741. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1743. $as_echo_n "checking for $2.$3... " >&6; }
  1744. if eval \${$4+:} false; then :
  1745. $as_echo_n "(cached) " >&6
  1746. else
  1747. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1748. /* end build/confdefs.h. */
  1749. $5
  1750. int
  1751. main ()
  1752. {
  1753. static $2 ac_aggr;
  1754. if (ac_aggr.$3)
  1755. return 0;
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_cxx_try_compile "$LINENO"; then :
  1761. eval "$4=yes"
  1762. else
  1763. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1764. /* end build/confdefs.h. */
  1765. $5
  1766. int
  1767. main ()
  1768. {
  1769. static $2 ac_aggr;
  1770. if (sizeof ac_aggr.$3)
  1771. return 0;
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. if ac_fn_cxx_try_compile "$LINENO"; then :
  1777. eval "$4=yes"
  1778. else
  1779. eval "$4=no"
  1780. fi
  1781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1782. fi
  1783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1784. fi
  1785. eval ac_res=\$$4
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1787. $as_echo "$ac_res" >&6; }
  1788. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1789. } # ac_fn_cxx_check_member
  1790. # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
  1791. # -----------------------------------------------
  1792. # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
  1793. # accordingly.
  1794. ac_fn_cxx_check_decl ()
  1795. {
  1796. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1797. as_decl_name=`echo $2|sed 's/ *(.*//'`
  1798. as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  1799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  1800. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  1801. if eval \${$3+:} false; then :
  1802. $as_echo_n "(cached) " >&6
  1803. else
  1804. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1805. /* end build/confdefs.h. */
  1806. $4
  1807. int
  1808. main ()
  1809. {
  1810. #ifndef $as_decl_name
  1811. #ifdef __cplusplus
  1812. (void) $as_decl_use;
  1813. #else
  1814. (void) $as_decl_name;
  1815. #endif
  1816. #endif
  1817. ;
  1818. return 0;
  1819. }
  1820. _ACEOF
  1821. if ac_fn_cxx_try_compile "$LINENO"; then :
  1822. eval "$3=yes"
  1823. else
  1824. eval "$3=no"
  1825. fi
  1826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_cxx_check_decl
  1833. # ac_fn_cxx_check_func LINENO FUNC VAR
  1834. # ------------------------------------
  1835. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1836. ac_fn_cxx_check_func ()
  1837. {
  1838. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1840. $as_echo_n "checking for $2... " >&6; }
  1841. if eval \${$3+:} false; then :
  1842. $as_echo_n "(cached) " >&6
  1843. else
  1844. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  1845. /* end build/confdefs.h. */
  1846. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1848. #define $2 innocuous_$2
  1849. /* System header to define __stub macros and hopefully few prototypes,
  1850. which can conflict with char $2 (); below.
  1851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1852. <limits.h> exists even on freestanding compilers. */
  1853. #ifdef __STDC__
  1854. # include <limits.h>
  1855. #else
  1856. # include <assert.h>
  1857. #endif
  1858. #undef $2
  1859. /* Override any GCC internal prototype to avoid an error.
  1860. Use char because int might match the return type of a GCC
  1861. builtin and then its argument prototype would still apply. */
  1862. #ifdef __cplusplus
  1863. extern "C"
  1864. #endif
  1865. char $2 ();
  1866. /* The GNU C library defines this for functions which it implements
  1867. to always fail with ENOSYS. Some functions are actually named
  1868. something starting with __ and the normal name is an alias. */
  1869. #if defined __stub_$2 || defined __stub___$2
  1870. choke me
  1871. #endif
  1872. int
  1873. main ()
  1874. {
  1875. return $2 ();
  1876. ;
  1877. return 0;
  1878. }
  1879. _ACEOF
  1880. if ac_fn_cxx_try_link "$LINENO"; then :
  1881. eval "$3=yes"
  1882. else
  1883. eval "$3=no"
  1884. fi
  1885. rm -f core conftest.err conftest.$ac_objext \
  1886. conftest$ac_exeext conftest.$ac_ext
  1887. fi
  1888. eval ac_res=\$$3
  1889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1890. $as_echo "$ac_res" >&6; }
  1891. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1892. } # ac_fn_cxx_check_func
  1893. cat >build/config.log <<_ACEOF
  1894. This file contains any messages produced by compilers while
  1895. running configure, to aid debugging if configure makes a mistake.
  1896. It was created by $as_me, which was
  1897. generated by GNU Autoconf 2.69. Invocation command line was
  1898. $ $0 $@
  1899. _ACEOF
  1900. exec 5>>build/config.log
  1901. {
  1902. cat <<_ASUNAME
  1903. ## --------- ##
  1904. ## Platform. ##
  1905. ## --------- ##
  1906. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1907. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1908. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1909. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1910. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1911. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1912. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1913. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1914. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1915. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1916. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1917. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1918. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1919. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1920. _ASUNAME
  1921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1922. for as_dir in $PATH
  1923. do
  1924. IFS=$as_save_IFS
  1925. test -z "$as_dir" && as_dir=.
  1926. $as_echo "PATH: $as_dir"
  1927. done
  1928. IFS=$as_save_IFS
  1929. } >&5
  1930. cat >&5 <<_ACEOF
  1931. ## ----------- ##
  1932. ## Core tests. ##
  1933. ## ----------- ##
  1934. _ACEOF
  1935. # Keep a trace of the command line.
  1936. # Strip out --no-create and --no-recursion so they do not pile up.
  1937. # Strip out --silent because we don't want to record it for future runs.
  1938. # Also quote any args containing shell meta-characters.
  1939. # Make two passes to allow for proper duplicate-argument suppression.
  1940. ac_configure_args=
  1941. ac_configure_args0=
  1942. ac_configure_args1=
  1943. ac_must_keep_next=false
  1944. for ac_pass in 1 2
  1945. do
  1946. for ac_arg
  1947. do
  1948. case $ac_arg in
  1949. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1950. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1951. | -silent | --silent | --silen | --sile | --sil)
  1952. continue ;;
  1953. *\'*)
  1954. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1955. esac
  1956. case $ac_pass in
  1957. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1958. 2)
  1959. as_fn_append ac_configure_args1 " '$ac_arg'"
  1960. if test $ac_must_keep_next = true; then
  1961. ac_must_keep_next=false # Got value, back to normal.
  1962. else
  1963. case $ac_arg in
  1964. *=* | --config-cache | -C | -disable-* | --disable-* \
  1965. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1966. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1967. | -with-* | --with-* | -without-* | --without-* | --x)
  1968. case "$ac_configure_args0 " in
  1969. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1970. esac
  1971. ;;
  1972. -* ) ac_must_keep_next=true ;;
  1973. esac
  1974. fi
  1975. as_fn_append ac_configure_args " '$ac_arg'"
  1976. ;;
  1977. esac
  1978. done
  1979. done
  1980. { ac_configure_args0=; unset ac_configure_args0;}
  1981. { ac_configure_args1=; unset ac_configure_args1;}
  1982. # When interrupted or exit'd, cleanup temporary files, and complete
  1983. # build/config.log. We remove comments because anyway the quotes in there
  1984. # would cause problems or look ugly.
  1985. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1986. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1987. trap 'exit_status=$?
  1988. # Save into build/config.log some information that might help in debugging.
  1989. {
  1990. echo
  1991. $as_echo "## ---------------- ##
  1992. ## Cache variables. ##
  1993. ## ---------------- ##"
  1994. echo
  1995. # The following way of writing the cache mishandles newlines in values,
  1996. (
  1997. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1998. eval ac_val=\$$ac_var
  1999. case $ac_val in #(
  2000. *${as_nl}*)
  2001. case $ac_var in #(
  2002. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2003. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2004. esac
  2005. case $ac_var in #(
  2006. _ | IFS | as_nl) ;; #(
  2007. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2008. *) { eval $ac_var=; unset $ac_var;} ;;
  2009. esac ;;
  2010. esac
  2011. done
  2012. (set) 2>&1 |
  2013. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2014. *${as_nl}ac_space=\ *)
  2015. sed -n \
  2016. "s/'\''/'\''\\\\'\'''\''/g;
  2017. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2018. ;; #(
  2019. *)
  2020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2021. ;;
  2022. esac |
  2023. sort
  2024. )
  2025. echo
  2026. $as_echo "## ----------------- ##
  2027. ## Output variables. ##
  2028. ## ----------------- ##"
  2029. echo
  2030. for ac_var in $ac_subst_vars
  2031. do
  2032. eval ac_val=\$$ac_var
  2033. case $ac_val in
  2034. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2035. esac
  2036. $as_echo "$ac_var='\''$ac_val'\''"
  2037. done | sort
  2038. echo
  2039. if test -n "$ac_subst_files"; then
  2040. $as_echo "## ------------------- ##
  2041. ## File substitutions. ##
  2042. ## ------------------- ##"
  2043. echo
  2044. for ac_var in $ac_subst_files
  2045. do
  2046. eval ac_val=\$$ac_var
  2047. case $ac_val in
  2048. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2049. esac
  2050. $as_echo "$ac_var='\''$ac_val'\''"
  2051. done | sort
  2052. echo
  2053. fi
  2054. if test -s build/confdefs.h; then
  2055. $as_echo "## ----------- ##
  2056. ## build/confdefs.h. ##
  2057. ## ----------- ##"
  2058. echo
  2059. cat build/confdefs.h
  2060. echo
  2061. fi
  2062. test "$ac_signal" != 0 &&
  2063. $as_echo "$as_me: caught signal $ac_signal"
  2064. $as_echo "$as_me: exit $exit_status"
  2065. } >&5
  2066. rm -f core *.core core.conftest.* &&
  2067. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2068. exit $exit_status
  2069. ' 0
  2070. for ac_signal in 1 2 13 15; do
  2071. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2072. done
  2073. ac_signal=0
  2074. # build/confdefs.h avoids OS command line length limits that DEFS can exceed.
  2075. rm -f -r conftest* build/confdefs.h
  2076. $as_echo "/* build/confdefs.h */" > build/confdefs.h
  2077. # Predefined preprocessor variables.
  2078. cat >>build/confdefs.h <<_ACEOF
  2079. #define PACKAGE_NAME "$PACKAGE_NAME"
  2080. _ACEOF
  2081. cat >>build/confdefs.h <<_ACEOF
  2082. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2083. _ACEOF
  2084. cat >>build/confdefs.h <<_ACEOF
  2085. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2086. _ACEOF
  2087. cat >>build/confdefs.h <<_ACEOF
  2088. #define PACKAGE_STRING "$PACKAGE_STRING"
  2089. _ACEOF
  2090. cat >>build/confdefs.h <<_ACEOF
  2091. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2092. _ACEOF
  2093. cat >>build/confdefs.h <<_ACEOF
  2094. #define PACKAGE_URL "$PACKAGE_URL"
  2095. _ACEOF
  2096. # Let the site file select an alternate cache file if it wants to.
  2097. # Prefer an explicitly selected file to automatically selected ones.
  2098. ac_site_file1=NONE
  2099. ac_site_file2=NONE
  2100. if test -n "$CONFIG_SITE"; then
  2101. # We do not want a PATH search for config.site.
  2102. case $CONFIG_SITE in #((
  2103. -*) ac_site_file1=./$CONFIG_SITE;;
  2104. */*) ac_site_file1=$CONFIG_SITE;;
  2105. *) ac_site_file1=./$CONFIG_SITE;;
  2106. esac
  2107. elif test "x$prefix" != xNONE; then
  2108. ac_site_file1=$prefix/share/config.site
  2109. ac_site_file2=$prefix/etc/config.site
  2110. else
  2111. ac_site_file1=$ac_default_prefix/share/config.site
  2112. ac_site_file2=$ac_default_prefix/etc/config.site
  2113. fi
  2114. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2115. do
  2116. test "x$ac_site_file" = xNONE && continue
  2117. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2119. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2120. sed 's/^/| /' "$ac_site_file" >&5
  2121. . "$ac_site_file" \
  2122. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2123. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2124. as_fn_error $? "failed to load site script $ac_site_file
  2125. See \`build/config.log' for more details" "$LINENO" 5; }
  2126. fi
  2127. done
  2128. if test -r "$cache_file"; then
  2129. # Some versions of bash will fail to source /dev/null (special files
  2130. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2131. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2133. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2134. case $cache_file in
  2135. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2136. *) . "./$cache_file";;
  2137. esac
  2138. fi
  2139. else
  2140. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2141. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2142. >$cache_file
  2143. fi
  2144. as_fn_append ac_header_list " stdlib.h"
  2145. as_fn_append ac_header_list " unistd.h"
  2146. as_fn_append ac_header_list " sys/param.h"
  2147. # Check that the precious variables saved in the cache have kept the same
  2148. # value.
  2149. ac_cache_corrupted=false
  2150. for ac_var in $ac_precious_vars; do
  2151. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2152. eval ac_new_set=\$ac_env_${ac_var}_set
  2153. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2154. eval ac_new_val=\$ac_env_${ac_var}_value
  2155. case $ac_old_set,$ac_new_set in
  2156. set,)
  2157. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2158. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2159. ac_cache_corrupted=: ;;
  2160. ,set)
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2162. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2163. ac_cache_corrupted=: ;;
  2164. ,);;
  2165. *)
  2166. if test "x$ac_old_val" != "x$ac_new_val"; then
  2167. # differences in whitespace do not lead to failure.
  2168. ac_old_val_w=`echo x $ac_old_val`
  2169. ac_new_val_w=`echo x $ac_new_val`
  2170. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2171. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2172. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2173. ac_cache_corrupted=:
  2174. else
  2175. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2176. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2177. eval $ac_var=\$ac_old_val
  2178. fi
  2179. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2180. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2182. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2183. fi;;
  2184. esac
  2185. # Pass precious variables to build/config.status.
  2186. if test "$ac_new_set" = set; then
  2187. case $ac_new_val in
  2188. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2189. *) ac_arg=$ac_var=$ac_new_val ;;
  2190. esac
  2191. case " $ac_configure_args " in
  2192. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2193. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2194. esac
  2195. fi
  2196. done
  2197. if $ac_cache_corrupted; then
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2199. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2201. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2202. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2203. fi
  2204. ## -------------------- ##
  2205. ## Main body of script. ##
  2206. ## -------------------- ##
  2207. ac_ext=c
  2208. ac_cpp='$CPP $CPPFLAGS'
  2209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2212. ac_config_headers="$ac_config_headers src/config.h"
  2213. ac_aux_dir=
  2214. for ac_dir in build/autotools "$srcdir"/build/autotools; do
  2215. if test -f "$ac_dir/install-sh"; then
  2216. ac_aux_dir=$ac_dir
  2217. ac_install_sh="$ac_aux_dir/install-sh -c"
  2218. break
  2219. elif test -f "$ac_dir/install.sh"; then
  2220. ac_aux_dir=$ac_dir
  2221. ac_install_sh="$ac_aux_dir/install.sh -c"
  2222. break
  2223. elif test -f "$ac_dir/shtool"; then
  2224. ac_aux_dir=$ac_dir
  2225. ac_install_sh="$ac_aux_dir/shtool install -c"
  2226. break
  2227. fi
  2228. done
  2229. if test -z "$ac_aux_dir"; then
  2230. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autotools \"$srcdir\"/build/autotools" "$LINENO" 5
  2231. fi
  2232. # These three variables are undocumented and unsupported,
  2233. # and are intended to be withdrawn in a future Autoconf release.
  2234. # They can cause serious problems if a builder's source tree is in a directory
  2235. # whose full name contains unusual characters.
  2236. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2237. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2238. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2239. # Remove --cache-file and --srcdir arguments so they do not pile up.
  2240. egg_ac_parameters=
  2241. ac_prev=
  2242. for ac_arg in $ac_configure_args; do
  2243. if test -n "$ac_prev"; then
  2244. ac_prev=
  2245. continue
  2246. fi
  2247. case $ac_arg in
  2248. -cache-file | --cache-file | --cache-fil | --cache-fi \
  2249. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  2250. ac_prev=cache_file ;;
  2251. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  2252. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  2253. | --c=*)
  2254. ;;
  2255. --config-cache | -C)
  2256. ;;
  2257. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  2258. ac_prev=srcdir ;;
  2259. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  2260. ;;
  2261. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  2262. esac
  2263. done
  2264. # Setup build environment
  2265. #AC_REQUIRE_CPP
  2266. ac_ext=cpp
  2267. ac_cpp='$CXXCPP $CPPFLAGS'
  2268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2271. ac_ext=cpp
  2272. ac_cpp='$CXXCPP $CPPFLAGS'
  2273. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2274. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2275. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2276. if test -z "$CXX"; then
  2277. if test -n "$CCC"; then
  2278. CXX=$CCC
  2279. else
  2280. if test -n "$ac_tool_prefix"; then
  2281. for ac_prog in clang++90 clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++9 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2282. do
  2283. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2284. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2286. $as_echo_n "checking for $ac_word... " >&6; }
  2287. if ${ac_cv_prog_CXX+:} false; then :
  2288. $as_echo_n "(cached) " >&6
  2289. else
  2290. if test -n "$CXX"; then
  2291. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2292. else
  2293. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2294. for as_dir in $PATH
  2295. do
  2296. IFS=$as_save_IFS
  2297. test -z "$as_dir" && as_dir=.
  2298. for ac_exec_ext in '' $ac_executable_extensions; do
  2299. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2300. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2301. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2302. break 2
  2303. fi
  2304. done
  2305. done
  2306. IFS=$as_save_IFS
  2307. fi
  2308. fi
  2309. CXX=$ac_cv_prog_CXX
  2310. if test -n "$CXX"; then
  2311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2312. $as_echo "$CXX" >&6; }
  2313. else
  2314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2315. $as_echo "no" >&6; }
  2316. fi
  2317. test -n "$CXX" && break
  2318. done
  2319. fi
  2320. if test -z "$CXX"; then
  2321. ac_ct_CXX=$CXX
  2322. for ac_prog in clang++90 clang++80 clang++70 clang++60 clang++50 clang++40 clang++39 clang++38 clang++37 clang++36 clang++35 clang++34 g++9 g++8 g++7 g++6 g++5 clang++ eg++ g++ c++ CC cxx cc++
  2323. do
  2324. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2325. set dummy $ac_prog; ac_word=$2
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2327. $as_echo_n "checking for $ac_word... " >&6; }
  2328. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2329. $as_echo_n "(cached) " >&6
  2330. else
  2331. if test -n "$ac_ct_CXX"; then
  2332. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2341. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2342. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2351. if test -n "$ac_ct_CXX"; then
  2352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2353. $as_echo "$ac_ct_CXX" >&6; }
  2354. else
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2356. $as_echo "no" >&6; }
  2357. fi
  2358. test -n "$ac_ct_CXX" && break
  2359. done
  2360. if test "x$ac_ct_CXX" = x; then
  2361. CXX="g++"
  2362. else
  2363. case $cross_compiling:$ac_tool_warned in
  2364. yes:)
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2367. ac_tool_warned=yes ;;
  2368. esac
  2369. CXX=$ac_ct_CXX
  2370. fi
  2371. fi
  2372. fi
  2373. fi
  2374. # Provide some information about the compiler.
  2375. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2376. set X $ac_compile
  2377. ac_compiler=$2
  2378. for ac_option in --version -v -V -qversion; do
  2379. { { ac_try="$ac_compiler $ac_option >&5"
  2380. case "(($ac_try" in
  2381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2382. *) ac_try_echo=$ac_try;;
  2383. esac
  2384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2385. $as_echo "$ac_try_echo"; } >&5
  2386. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2387. ac_status=$?
  2388. if test -s conftest.err; then
  2389. sed '10a\
  2390. ... rest of stderr output deleted ...
  2391. 10q' conftest.err >conftest.er1
  2392. cat conftest.er1 >&5
  2393. fi
  2394. rm -f conftest.er1 conftest.err
  2395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2396. test $ac_status = 0; }
  2397. done
  2398. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2399. /* end build/confdefs.h. */
  2400. int
  2401. main ()
  2402. {
  2403. ;
  2404. return 0;
  2405. }
  2406. _ACEOF
  2407. ac_clean_files_save=$ac_clean_files
  2408. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2409. # Try to create an executable without -o first, disregard a.out.
  2410. # It will help us diagnose broken compilers, and finding out an intuition
  2411. # of exeext.
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2413. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2414. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2415. # The possible output files:
  2416. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2417. ac_rmfiles=
  2418. for ac_file in $ac_files
  2419. do
  2420. case $ac_file in
  2421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2422. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2423. esac
  2424. done
  2425. rm -f $ac_rmfiles
  2426. if { { ac_try="$ac_link_default"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2432. $as_echo "$ac_try_echo"; } >&5
  2433. (eval "$ac_link_default") 2>&5
  2434. ac_status=$?
  2435. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2436. test $ac_status = 0; }; then :
  2437. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2438. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2439. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2440. # so that the user can short-circuit this test for compilers unknown to
  2441. # Autoconf.
  2442. for ac_file in $ac_files ''
  2443. do
  2444. test -f "$ac_file" || continue
  2445. case $ac_file in
  2446. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2447. ;;
  2448. [ab].out )
  2449. # We found the default executable, but exeext='' is most
  2450. # certainly right.
  2451. break;;
  2452. *.* )
  2453. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2454. then :; else
  2455. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2456. fi
  2457. # We set ac_cv_exeext here because the later test for it is not
  2458. # safe: cross compilers may not add the suffix if given an `-o'
  2459. # argument, so we may need to know it at that point already.
  2460. # Even if this section looks crufty: it has the advantage of
  2461. # actually working.
  2462. break;;
  2463. * )
  2464. break;;
  2465. esac
  2466. done
  2467. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2468. else
  2469. ac_file=''
  2470. fi
  2471. if test -z "$ac_file"; then :
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2473. $as_echo "no" >&6; }
  2474. $as_echo "$as_me: failed program was:" >&5
  2475. sed 's/^/| /' conftest.$ac_ext >&5
  2476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2478. as_fn_error 77 "C++ compiler cannot create executables
  2479. See \`build/config.log' for more details" "$LINENO" 5; }
  2480. else
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2482. $as_echo "yes" >&6; }
  2483. fi
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2485. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2487. $as_echo "$ac_file" >&6; }
  2488. ac_exeext=$ac_cv_exeext
  2489. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2490. ac_clean_files=$ac_clean_files_save
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2492. $as_echo_n "checking for suffix of executables... " >&6; }
  2493. if { { ac_try="$ac_link"
  2494. case "(($ac_try" in
  2495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2496. *) ac_try_echo=$ac_try;;
  2497. esac
  2498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2499. $as_echo "$ac_try_echo"; } >&5
  2500. (eval "$ac_link") 2>&5
  2501. ac_status=$?
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2503. test $ac_status = 0; }; then :
  2504. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2505. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2506. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2507. # `rm'.
  2508. for ac_file in conftest.exe conftest conftest.*; do
  2509. test -f "$ac_file" || continue
  2510. case $ac_file in
  2511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2512. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2513. break;;
  2514. * ) break;;
  2515. esac
  2516. done
  2517. else
  2518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2520. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2521. See \`build/config.log' for more details" "$LINENO" 5; }
  2522. fi
  2523. rm -f conftest conftest$ac_cv_exeext
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2525. $as_echo "$ac_cv_exeext" >&6; }
  2526. rm -f conftest.$ac_ext
  2527. EXEEXT=$ac_cv_exeext
  2528. ac_exeext=$EXEEXT
  2529. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2530. /* end build/confdefs.h. */
  2531. #include <stdio.h>
  2532. int
  2533. main ()
  2534. {
  2535. FILE *f = fopen ("conftest.out", "w");
  2536. return ferror (f) || fclose (f) != 0;
  2537. ;
  2538. return 0;
  2539. }
  2540. _ACEOF
  2541. ac_clean_files="$ac_clean_files conftest.out"
  2542. # Check that the compiler produces executables we can run. If not, either
  2543. # the compiler is broken, or we cross compile.
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2545. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2546. if test "$cross_compiling" != yes; then
  2547. { { ac_try="$ac_link"
  2548. case "(($ac_try" in
  2549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2550. *) ac_try_echo=$ac_try;;
  2551. esac
  2552. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2553. $as_echo "$ac_try_echo"; } >&5
  2554. (eval "$ac_link") 2>&5
  2555. ac_status=$?
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2557. test $ac_status = 0; }
  2558. if { ac_try='./conftest$ac_cv_exeext'
  2559. { { case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2564. $as_echo "$ac_try_echo"; } >&5
  2565. (eval "$ac_try") 2>&5
  2566. ac_status=$?
  2567. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2568. test $ac_status = 0; }; }; then
  2569. cross_compiling=no
  2570. else
  2571. if test "$cross_compiling" = maybe; then
  2572. cross_compiling=yes
  2573. else
  2574. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2575. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2576. as_fn_error $? "cannot run C++ compiled programs.
  2577. If you meant to cross compile, use \`--host'.
  2578. See \`build/config.log' for more details" "$LINENO" 5; }
  2579. fi
  2580. fi
  2581. fi
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2583. $as_echo "$cross_compiling" >&6; }
  2584. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2585. ac_clean_files=$ac_clean_files_save
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2587. $as_echo_n "checking for suffix of object files... " >&6; }
  2588. if ${ac_cv_objext+:} false; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2592. /* end build/confdefs.h. */
  2593. int
  2594. main ()
  2595. {
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. rm -f conftest.o conftest.obj
  2601. if { { ac_try="$ac_compile"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2607. $as_echo "$ac_try_echo"; } >&5
  2608. (eval "$ac_compile") 2>&5
  2609. ac_status=$?
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2611. test $ac_status = 0; }; then :
  2612. for ac_file in conftest.o conftest.obj conftest.*; do
  2613. test -f "$ac_file" || continue;
  2614. case $ac_file in
  2615. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2616. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2617. break;;
  2618. esac
  2619. done
  2620. else
  2621. $as_echo "$as_me: failed program was:" >&5
  2622. sed 's/^/| /' conftest.$ac_ext >&5
  2623. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2624. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2625. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2626. See \`build/config.log' for more details" "$LINENO" 5; }
  2627. fi
  2628. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2629. fi
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2631. $as_echo "$ac_cv_objext" >&6; }
  2632. OBJEXT=$ac_cv_objext
  2633. ac_objext=$OBJEXT
  2634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2635. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2636. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2637. $as_echo_n "(cached) " >&6
  2638. else
  2639. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2640. /* end build/confdefs.h. */
  2641. int
  2642. main ()
  2643. {
  2644. #ifndef __GNUC__
  2645. choke me
  2646. #endif
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. if ac_fn_cxx_try_compile "$LINENO"; then :
  2652. ac_compiler_gnu=yes
  2653. else
  2654. ac_compiler_gnu=no
  2655. fi
  2656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2657. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2658. fi
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2660. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2661. if test $ac_compiler_gnu = yes; then
  2662. GXX=yes
  2663. else
  2664. GXX=
  2665. fi
  2666. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2667. ac_save_CXXFLAGS=$CXXFLAGS
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2669. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2670. if ${ac_cv_prog_cxx_g+:} false; then :
  2671. $as_echo_n "(cached) " >&6
  2672. else
  2673. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2674. ac_cxx_werror_flag=yes
  2675. ac_cv_prog_cxx_g=no
  2676. CXXFLAGS="-g"
  2677. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2678. /* end build/confdefs.h. */
  2679. int
  2680. main ()
  2681. {
  2682. ;
  2683. return 0;
  2684. }
  2685. _ACEOF
  2686. if ac_fn_cxx_try_compile "$LINENO"; then :
  2687. ac_cv_prog_cxx_g=yes
  2688. else
  2689. CXXFLAGS=""
  2690. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2691. /* end build/confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. if ac_fn_cxx_try_compile "$LINENO"; then :
  2700. else
  2701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2702. CXXFLAGS="-g"
  2703. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2704. /* end build/confdefs.h. */
  2705. int
  2706. main ()
  2707. {
  2708. ;
  2709. return 0;
  2710. }
  2711. _ACEOF
  2712. if ac_fn_cxx_try_compile "$LINENO"; then :
  2713. ac_cv_prog_cxx_g=yes
  2714. fi
  2715. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2716. fi
  2717. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2718. fi
  2719. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2720. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  2723. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  2724. if test "$ac_test_CXXFLAGS" = set; then
  2725. CXXFLAGS=$ac_save_CXXFLAGS
  2726. elif test $ac_cv_prog_cxx_g = yes; then
  2727. if test "$GXX" = yes; then
  2728. CXXFLAGS="-g -O2"
  2729. else
  2730. CXXFLAGS="-g"
  2731. fi
  2732. else
  2733. if test "$GXX" = yes; then
  2734. CXXFLAGS="-O2"
  2735. else
  2736. CXXFLAGS=
  2737. fi
  2738. fi
  2739. ac_ext=cpp
  2740. ac_cpp='$CXXCPP $CPPFLAGS'
  2741. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2742. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2743. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2744. CC="${CXX} -x c"
  2745. ac_ext=cpp
  2746. ac_cpp='$CXXCPP $CPPFLAGS'
  2747. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2748. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2749. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  2751. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  2752. if test -z "$CXXCPP"; then
  2753. if ${ac_cv_prog_CXXCPP+:} false; then :
  2754. $as_echo_n "(cached) " >&6
  2755. else
  2756. # Double quotes because CXXCPP needs to be expanded
  2757. for CXXCPP in "$CXX -E" "/lib/cpp"
  2758. do
  2759. ac_preproc_ok=false
  2760. for ac_cxx_preproc_warn_flag in '' yes
  2761. do
  2762. # Use a header file that comes with gcc, so configuring glibc
  2763. # with a fresh cross-compiler works.
  2764. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2765. # <limits.h> exists even on freestanding compilers.
  2766. # On the NeXT, cc -E runs the code through the compiler's parser,
  2767. # not just through cpp. "Syntax error" is here to catch this case.
  2768. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2769. /* end build/confdefs.h. */
  2770. #ifdef __STDC__
  2771. # include <limits.h>
  2772. #else
  2773. # include <assert.h>
  2774. #endif
  2775. Syntax error
  2776. _ACEOF
  2777. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2778. else
  2779. # Broken: fails on valid input.
  2780. continue
  2781. fi
  2782. rm -f conftest.err conftest.i conftest.$ac_ext
  2783. # OK, works on sane cases. Now check whether nonexistent headers
  2784. # can be detected and how.
  2785. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2786. /* end build/confdefs.h. */
  2787. #include <ac_nonexistent.h>
  2788. _ACEOF
  2789. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2790. # Broken: success on invalid input.
  2791. continue
  2792. else
  2793. # Passes both tests.
  2794. ac_preproc_ok=:
  2795. break
  2796. fi
  2797. rm -f conftest.err conftest.i conftest.$ac_ext
  2798. done
  2799. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2800. rm -f conftest.i conftest.err conftest.$ac_ext
  2801. if $ac_preproc_ok; then :
  2802. break
  2803. fi
  2804. done
  2805. ac_cv_prog_CXXCPP=$CXXCPP
  2806. fi
  2807. CXXCPP=$ac_cv_prog_CXXCPP
  2808. else
  2809. ac_cv_prog_CXXCPP=$CXXCPP
  2810. fi
  2811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  2812. $as_echo "$CXXCPP" >&6; }
  2813. ac_preproc_ok=false
  2814. for ac_cxx_preproc_warn_flag in '' yes
  2815. do
  2816. # Use a header file that comes with gcc, so configuring glibc
  2817. # with a fresh cross-compiler works.
  2818. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2819. # <limits.h> exists even on freestanding compilers.
  2820. # On the NeXT, cc -E runs the code through the compiler's parser,
  2821. # not just through cpp. "Syntax error" is here to catch this case.
  2822. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2823. /* end build/confdefs.h. */
  2824. #ifdef __STDC__
  2825. # include <limits.h>
  2826. #else
  2827. # include <assert.h>
  2828. #endif
  2829. Syntax error
  2830. _ACEOF
  2831. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2832. else
  2833. # Broken: fails on valid input.
  2834. continue
  2835. fi
  2836. rm -f conftest.err conftest.i conftest.$ac_ext
  2837. # OK, works on sane cases. Now check whether nonexistent headers
  2838. # can be detected and how.
  2839. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2840. /* end build/confdefs.h. */
  2841. #include <ac_nonexistent.h>
  2842. _ACEOF
  2843. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2844. # Broken: success on invalid input.
  2845. continue
  2846. else
  2847. # Passes both tests.
  2848. ac_preproc_ok=:
  2849. break
  2850. fi
  2851. rm -f conftest.err conftest.i conftest.$ac_ext
  2852. done
  2853. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2854. rm -f conftest.i conftest.err conftest.$ac_ext
  2855. if $ac_preproc_ok; then :
  2856. else
  2857. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2859. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  2860. See \`build/config.log' for more details" "$LINENO" 5; }
  2861. fi
  2862. ac_ext=cpp
  2863. ac_cpp='$CXXCPP $CPPFLAGS'
  2864. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2865. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2866. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2867. ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
  2868. ac_ext=cpp
  2869. ac_cpp='$CXXCPP $CPPFLAGS'
  2870. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2871. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2872. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2873. ac_success=no
  2874. if test x$ac_success = xno; then
  2875. for alternative in ${ax_cxx_compile_alternatives}; do
  2876. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  2877. cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
  2878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
  2879. $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
  2880. if eval \${$cachevar+:} false; then :
  2881. $as_echo_n "(cached) " >&6
  2882. else
  2883. ac_save_CXX="$CXX"
  2884. CXX="$CXX $switch"
  2885. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  2886. /* end build/confdefs.h. */
  2887. // If the compiler admits that it is not ready for C++11, why torture it?
  2888. // Hopefully, this will speed up the test.
  2889. #ifndef __cplusplus
  2890. #error "This is not a C++ compiler"
  2891. #elif __cplusplus < 201103L
  2892. #error "This is not a C++11 compiler"
  2893. #else
  2894. namespace cxx11
  2895. {
  2896. namespace test_static_assert
  2897. {
  2898. template <typename T>
  2899. struct check
  2900. {
  2901. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  2902. };
  2903. }
  2904. namespace test_final_override
  2905. {
  2906. struct Base
  2907. {
  2908. virtual void f() {}
  2909. };
  2910. struct Derived : public Base
  2911. {
  2912. virtual void f() override {}
  2913. };
  2914. }
  2915. namespace test_double_right_angle_brackets
  2916. {
  2917. template < typename T >
  2918. struct check {};
  2919. typedef check<void> single_type;
  2920. typedef check<check<void>> double_type;
  2921. typedef check<check<check<void>>> triple_type;
  2922. typedef check<check<check<check<void>>>> quadruple_type;
  2923. }
  2924. namespace test_decltype
  2925. {
  2926. int
  2927. f()
  2928. {
  2929. int a = 1;
  2930. decltype(a) b = 2;
  2931. return a + b;
  2932. }
  2933. }
  2934. namespace test_type_deduction
  2935. {
  2936. template < typename T1, typename T2 >
  2937. struct is_same
  2938. {
  2939. static const bool value = false;
  2940. };
  2941. template < typename T >
  2942. struct is_same<T, T>
  2943. {
  2944. static const bool value = true;
  2945. };
  2946. template < typename T1, typename T2 >
  2947. auto
  2948. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  2949. {
  2950. return a1 + a2;
  2951. }
  2952. int
  2953. test(const int c, volatile int v)
  2954. {
  2955. static_assert(is_same<int, decltype(0)>::value == true, "");
  2956. static_assert(is_same<int, decltype(c)>::value == false, "");
  2957. static_assert(is_same<int, decltype(v)>::value == false, "");
  2958. auto ac = c;
  2959. auto av = v;
  2960. auto sumi = ac + av + 'x';
  2961. auto sumf = ac + av + 1.0;
  2962. static_assert(is_same<int, decltype(ac)>::value == true, "");
  2963. static_assert(is_same<int, decltype(av)>::value == true, "");
  2964. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  2965. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  2966. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  2967. return (sumf > 0.0) ? sumi : add(c, v);
  2968. }
  2969. }
  2970. namespace test_noexcept
  2971. {
  2972. int f() { return 0; }
  2973. int g() noexcept { return 0; }
  2974. static_assert(noexcept(f()) == false, "");
  2975. static_assert(noexcept(g()) == true, "");
  2976. }
  2977. namespace test_constexpr
  2978. {
  2979. template < typename CharT >
  2980. unsigned long constexpr
  2981. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  2982. {
  2983. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  2984. }
  2985. template < typename CharT >
  2986. unsigned long constexpr
  2987. strlen_c(const CharT *const s) noexcept
  2988. {
  2989. return strlen_c_r(s, 0UL);
  2990. }
  2991. static_assert(strlen_c("") == 0UL, "");
  2992. static_assert(strlen_c("1") == 1UL, "");
  2993. static_assert(strlen_c("example") == 7UL, "");
  2994. static_assert(strlen_c("another\0example") == 7UL, "");
  2995. }
  2996. namespace test_rvalue_references
  2997. {
  2998. template < int N >
  2999. struct answer
  3000. {
  3001. static constexpr int value = N;
  3002. };
  3003. answer<1> f(int&) { return answer<1>(); }
  3004. answer<2> f(const int&) { return answer<2>(); }
  3005. answer<3> f(int&&) { return answer<3>(); }
  3006. void
  3007. test()
  3008. {
  3009. int i = 0;
  3010. const int c = 0;
  3011. static_assert(decltype(f(i))::value == 1, "");
  3012. static_assert(decltype(f(c))::value == 2, "");
  3013. static_assert(decltype(f(0))::value == 3, "");
  3014. }
  3015. }
  3016. namespace test_uniform_initialization
  3017. {
  3018. struct test
  3019. {
  3020. static const int zero {};
  3021. static const int one {1};
  3022. };
  3023. static_assert(test::zero == 0, "");
  3024. static_assert(test::one == 1, "");
  3025. }
  3026. namespace test_lambdas
  3027. {
  3028. void
  3029. test1()
  3030. {
  3031. auto lambda1 = [](){};
  3032. auto lambda2 = lambda1;
  3033. lambda1();
  3034. lambda2();
  3035. }
  3036. int
  3037. test2()
  3038. {
  3039. auto a = [](int i, int j){ return i + j; }(1, 2);
  3040. auto b = []() -> int { return '0'; }();
  3041. auto c = [=](){ return a + b; }();
  3042. auto d = [&](){ return c; }();
  3043. auto e = [a, &b](int x) mutable {
  3044. const auto identity = [](int y){ return y; };
  3045. for (auto i = 0; i < a; ++i)
  3046. a += b--;
  3047. return x + identity(a + b);
  3048. }(0);
  3049. return a + b + c + d + e;
  3050. }
  3051. int
  3052. test3()
  3053. {
  3054. const auto nullary = [](){ return 0; };
  3055. const auto unary = [](int x){ return x; };
  3056. using nullary_t = decltype(nullary);
  3057. using unary_t = decltype(unary);
  3058. const auto higher1st = [](nullary_t f){ return f(); };
  3059. const auto higher2nd = [unary](nullary_t f1){
  3060. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3061. };
  3062. return higher1st(nullary) + higher2nd(nullary)(unary);
  3063. }
  3064. }
  3065. namespace test_variadic_templates
  3066. {
  3067. template <int...>
  3068. struct sum;
  3069. template <int N0, int... N1toN>
  3070. struct sum<N0, N1toN...>
  3071. {
  3072. static constexpr auto value = N0 + sum<N1toN...>::value;
  3073. };
  3074. template <>
  3075. struct sum<>
  3076. {
  3077. static constexpr auto value = 0;
  3078. };
  3079. static_assert(sum<>::value == 0, "");
  3080. static_assert(sum<1>::value == 1, "");
  3081. static_assert(sum<23>::value == 23, "");
  3082. static_assert(sum<1, 2>::value == 3, "");
  3083. static_assert(sum<5, 5, 11>::value == 21, "");
  3084. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3085. }
  3086. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3087. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3088. // because of this.
  3089. namespace test_template_alias_sfinae
  3090. {
  3091. struct foo {};
  3092. template<typename T>
  3093. using member = typename T::member_type;
  3094. template<typename T>
  3095. void func(...) {}
  3096. template<typename T>
  3097. void func(member<T>*) {}
  3098. void test();
  3099. void test() { func<foo>(0); }
  3100. }
  3101. } // namespace cxx11
  3102. #endif // __cplusplus >= 201103L
  3103. _ACEOF
  3104. if ac_fn_cxx_try_compile "$LINENO"; then :
  3105. eval $cachevar=yes
  3106. else
  3107. eval $cachevar=no
  3108. fi
  3109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3110. CXX="$ac_save_CXX"
  3111. fi
  3112. eval ac_res=\$$cachevar
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3114. $as_echo "$ac_res" >&6; }
  3115. if eval test x\$$cachevar = xyes; then
  3116. CXX="$CXX $switch"
  3117. if test -n "$CXXCPP" ; then
  3118. CXXCPP="$CXXCPP $switch"
  3119. fi
  3120. ac_success=yes
  3121. break
  3122. fi
  3123. done
  3124. if test x$ac_success = xyes; then
  3125. break
  3126. fi
  3127. done
  3128. fi
  3129. ac_ext=cpp
  3130. ac_cpp='$CXXCPP $CPPFLAGS'
  3131. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3132. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3133. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3134. if test x$ax_cxx_compile_cxx11_required = xtrue; then
  3135. if test x$ac_success = xno; then
  3136. as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
  3137. fi
  3138. fi
  3139. if test x$ac_success = xno; then
  3140. HAVE_CXX11=0
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
  3142. $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
  3143. else
  3144. HAVE_CXX11=1
  3145. $as_echo "#define HAVE_CXX11 1" >>build/confdefs.h
  3146. fi
  3147. ax_cxx_compile_alternatives="14 1y" ax_cxx_compile_cxx14_required=false
  3148. ac_ext=cpp
  3149. ac_cpp='$CXXCPP $CPPFLAGS'
  3150. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3151. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3152. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3153. ac_success=no
  3154. if test x$ac_success = xno; then
  3155. for alternative in ${ax_cxx_compile_alternatives}; do
  3156. for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
  3157. cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
  3159. $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
  3160. if eval \${$cachevar+:} false; then :
  3161. $as_echo_n "(cached) " >&6
  3162. else
  3163. ac_save_CXX="$CXX"
  3164. CXX="$CXX $switch"
  3165. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end build/confdefs.h. */
  3167. // If the compiler admits that it is not ready for C++11, why torture it?
  3168. // Hopefully, this will speed up the test.
  3169. #ifndef __cplusplus
  3170. #error "This is not a C++ compiler"
  3171. #elif __cplusplus < 201103L
  3172. #error "This is not a C++11 compiler"
  3173. #else
  3174. namespace cxx11
  3175. {
  3176. namespace test_static_assert
  3177. {
  3178. template <typename T>
  3179. struct check
  3180. {
  3181. static_assert(sizeof(int) <= sizeof(T), "not big enough");
  3182. };
  3183. }
  3184. namespace test_final_override
  3185. {
  3186. struct Base
  3187. {
  3188. virtual void f() {}
  3189. };
  3190. struct Derived : public Base
  3191. {
  3192. virtual void f() override {}
  3193. };
  3194. }
  3195. namespace test_double_right_angle_brackets
  3196. {
  3197. template < typename T >
  3198. struct check {};
  3199. typedef check<void> single_type;
  3200. typedef check<check<void>> double_type;
  3201. typedef check<check<check<void>>> triple_type;
  3202. typedef check<check<check<check<void>>>> quadruple_type;
  3203. }
  3204. namespace test_decltype
  3205. {
  3206. int
  3207. f()
  3208. {
  3209. int a = 1;
  3210. decltype(a) b = 2;
  3211. return a + b;
  3212. }
  3213. }
  3214. namespace test_type_deduction
  3215. {
  3216. template < typename T1, typename T2 >
  3217. struct is_same
  3218. {
  3219. static const bool value = false;
  3220. };
  3221. template < typename T >
  3222. struct is_same<T, T>
  3223. {
  3224. static const bool value = true;
  3225. };
  3226. template < typename T1, typename T2 >
  3227. auto
  3228. add(T1 a1, T2 a2) -> decltype(a1 + a2)
  3229. {
  3230. return a1 + a2;
  3231. }
  3232. int
  3233. test(const int c, volatile int v)
  3234. {
  3235. static_assert(is_same<int, decltype(0)>::value == true, "");
  3236. static_assert(is_same<int, decltype(c)>::value == false, "");
  3237. static_assert(is_same<int, decltype(v)>::value == false, "");
  3238. auto ac = c;
  3239. auto av = v;
  3240. auto sumi = ac + av + 'x';
  3241. auto sumf = ac + av + 1.0;
  3242. static_assert(is_same<int, decltype(ac)>::value == true, "");
  3243. static_assert(is_same<int, decltype(av)>::value == true, "");
  3244. static_assert(is_same<int, decltype(sumi)>::value == true, "");
  3245. static_assert(is_same<int, decltype(sumf)>::value == false, "");
  3246. static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
  3247. return (sumf > 0.0) ? sumi : add(c, v);
  3248. }
  3249. }
  3250. namespace test_noexcept
  3251. {
  3252. int f() { return 0; }
  3253. int g() noexcept { return 0; }
  3254. static_assert(noexcept(f()) == false, "");
  3255. static_assert(noexcept(g()) == true, "");
  3256. }
  3257. namespace test_constexpr
  3258. {
  3259. template < typename CharT >
  3260. unsigned long constexpr
  3261. strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
  3262. {
  3263. return *s ? strlen_c_r(s + 1, acc + 1) : acc;
  3264. }
  3265. template < typename CharT >
  3266. unsigned long constexpr
  3267. strlen_c(const CharT *const s) noexcept
  3268. {
  3269. return strlen_c_r(s, 0UL);
  3270. }
  3271. static_assert(strlen_c("") == 0UL, "");
  3272. static_assert(strlen_c("1") == 1UL, "");
  3273. static_assert(strlen_c("example") == 7UL, "");
  3274. static_assert(strlen_c("another\0example") == 7UL, "");
  3275. }
  3276. namespace test_rvalue_references
  3277. {
  3278. template < int N >
  3279. struct answer
  3280. {
  3281. static constexpr int value = N;
  3282. };
  3283. answer<1> f(int&) { return answer<1>(); }
  3284. answer<2> f(const int&) { return answer<2>(); }
  3285. answer<3> f(int&&) { return answer<3>(); }
  3286. void
  3287. test()
  3288. {
  3289. int i = 0;
  3290. const int c = 0;
  3291. static_assert(decltype(f(i))::value == 1, "");
  3292. static_assert(decltype(f(c))::value == 2, "");
  3293. static_assert(decltype(f(0))::value == 3, "");
  3294. }
  3295. }
  3296. namespace test_uniform_initialization
  3297. {
  3298. struct test
  3299. {
  3300. static const int zero {};
  3301. static const int one {1};
  3302. };
  3303. static_assert(test::zero == 0, "");
  3304. static_assert(test::one == 1, "");
  3305. }
  3306. namespace test_lambdas
  3307. {
  3308. void
  3309. test1()
  3310. {
  3311. auto lambda1 = [](){};
  3312. auto lambda2 = lambda1;
  3313. lambda1();
  3314. lambda2();
  3315. }
  3316. int
  3317. test2()
  3318. {
  3319. auto a = [](int i, int j){ return i + j; }(1, 2);
  3320. auto b = []() -> int { return '0'; }();
  3321. auto c = [=](){ return a + b; }();
  3322. auto d = [&](){ return c; }();
  3323. auto e = [a, &b](int x) mutable {
  3324. const auto identity = [](int y){ return y; };
  3325. for (auto i = 0; i < a; ++i)
  3326. a += b--;
  3327. return x + identity(a + b);
  3328. }(0);
  3329. return a + b + c + d + e;
  3330. }
  3331. int
  3332. test3()
  3333. {
  3334. const auto nullary = [](){ return 0; };
  3335. const auto unary = [](int x){ return x; };
  3336. using nullary_t = decltype(nullary);
  3337. using unary_t = decltype(unary);
  3338. const auto higher1st = [](nullary_t f){ return f(); };
  3339. const auto higher2nd = [unary](nullary_t f1){
  3340. return [unary, f1](unary_t f2){ return f2(unary(f1())); };
  3341. };
  3342. return higher1st(nullary) + higher2nd(nullary)(unary);
  3343. }
  3344. }
  3345. namespace test_variadic_templates
  3346. {
  3347. template <int...>
  3348. struct sum;
  3349. template <int N0, int... N1toN>
  3350. struct sum<N0, N1toN...>
  3351. {
  3352. static constexpr auto value = N0 + sum<N1toN...>::value;
  3353. };
  3354. template <>
  3355. struct sum<>
  3356. {
  3357. static constexpr auto value = 0;
  3358. };
  3359. static_assert(sum<>::value == 0, "");
  3360. static_assert(sum<1>::value == 1, "");
  3361. static_assert(sum<23>::value == 23, "");
  3362. static_assert(sum<1, 2>::value == 3, "");
  3363. static_assert(sum<5, 5, 11>::value == 21, "");
  3364. static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
  3365. }
  3366. // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
  3367. // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
  3368. // because of this.
  3369. namespace test_template_alias_sfinae
  3370. {
  3371. struct foo {};
  3372. template<typename T>
  3373. using member = typename T::member_type;
  3374. template<typename T>
  3375. void func(...) {}
  3376. template<typename T>
  3377. void func(member<T>*) {}
  3378. void test();
  3379. void test() { func<foo>(0); }
  3380. }
  3381. } // namespace cxx11
  3382. #endif // __cplusplus >= 201103L
  3383. // If the compiler admits that it is not ready for C++14, why torture it?
  3384. // Hopefully, this will speed up the test.
  3385. #ifndef __cplusplus
  3386. #error "This is not a C++ compiler"
  3387. #elif __cplusplus < 201402L
  3388. #error "This is not a C++14 compiler"
  3389. #else
  3390. namespace cxx14
  3391. {
  3392. namespace test_polymorphic_lambdas
  3393. {
  3394. int
  3395. test()
  3396. {
  3397. const auto lambda = [](auto&&... args){
  3398. const auto istiny = [](auto x){
  3399. return (sizeof(x) == 1UL) ? 1 : 0;
  3400. };
  3401. const int aretiny[] = { istiny(args)... };
  3402. return aretiny[0];
  3403. };
  3404. return lambda(1, 1L, 1.0f, '1');
  3405. }
  3406. }
  3407. namespace test_binary_literals
  3408. {
  3409. constexpr auto ivii = 0b0000000000101010;
  3410. static_assert(ivii == 42, "wrong value");
  3411. }
  3412. namespace test_generalized_constexpr
  3413. {
  3414. template < typename CharT >
  3415. constexpr unsigned long
  3416. strlen_c(const CharT *const s) noexcept
  3417. {
  3418. auto length = 0UL;
  3419. for (auto p = s; *p; ++p)
  3420. ++length;
  3421. return length;
  3422. }
  3423. static_assert(strlen_c("") == 0UL, "");
  3424. static_assert(strlen_c("x") == 1UL, "");
  3425. static_assert(strlen_c("test") == 4UL, "");
  3426. static_assert(strlen_c("another\0test") == 7UL, "");
  3427. }
  3428. namespace test_lambda_init_capture
  3429. {
  3430. int
  3431. test()
  3432. {
  3433. auto x = 0;
  3434. const auto lambda1 = [a = x](int b){ return a + b; };
  3435. const auto lambda2 = [a = lambda1(x)](){ return a; };
  3436. return lambda2();
  3437. }
  3438. }
  3439. namespace test_digit_separators
  3440. {
  3441. constexpr auto ten_million = 100'000'000;
  3442. static_assert(ten_million == 100000000, "");
  3443. }
  3444. namespace test_return_type_deduction
  3445. {
  3446. auto f(int& x) { return x; }
  3447. decltype(auto) g(int& x) { return x; }
  3448. template < typename T1, typename T2 >
  3449. struct is_same
  3450. {
  3451. static constexpr auto value = false;
  3452. };
  3453. template < typename T >
  3454. struct is_same<T, T>
  3455. {
  3456. static constexpr auto value = true;
  3457. };
  3458. int
  3459. test()
  3460. {
  3461. auto x = 0;
  3462. static_assert(is_same<int, decltype(f(x))>::value, "");
  3463. static_assert(is_same<int&, decltype(g(x))>::value, "");
  3464. return x;
  3465. }
  3466. }
  3467. } // namespace cxx14
  3468. #endif // __cplusplus >= 201402L
  3469. _ACEOF
  3470. if ac_fn_cxx_try_compile "$LINENO"; then :
  3471. eval $cachevar=yes
  3472. else
  3473. eval $cachevar=no
  3474. fi
  3475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3476. CXX="$ac_save_CXX"
  3477. fi
  3478. eval ac_res=\$$cachevar
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  3480. $as_echo "$ac_res" >&6; }
  3481. if eval test x\$$cachevar = xyes; then
  3482. CXX="$CXX $switch"
  3483. if test -n "$CXXCPP" ; then
  3484. CXXCPP="$CXXCPP $switch"
  3485. fi
  3486. ac_success=yes
  3487. break
  3488. fi
  3489. done
  3490. if test x$ac_success = xyes; then
  3491. break
  3492. fi
  3493. done
  3494. fi
  3495. ac_ext=cpp
  3496. ac_cpp='$CXXCPP $CPPFLAGS'
  3497. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3498. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3499. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3500. if test x$ax_cxx_compile_cxx14_required = xtrue; then
  3501. if test x$ac_success = xno; then
  3502. as_fn_error $? "*** A compiler with support for C++14 language features is required." "$LINENO" 5
  3503. fi
  3504. fi
  3505. if test x$ac_success = xno; then
  3506. HAVE_CXX14=0
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++14 support was found" >&5
  3508. $as_echo "$as_me: No compiler with C++14 support was found" >&6;}
  3509. else
  3510. HAVE_CXX14=1
  3511. $as_echo "#define HAVE_CXX14 1" >>build/confdefs.h
  3512. fi
  3513. if test "${cross_compiling-x}" = "x"
  3514. then
  3515. cat << 'EOF' >&2
  3516. configure: error:
  3517. This system does not appear to have a working C compiler.
  3518. A working C compiler is required to compile Wraith.
  3519. EOF
  3520. exit 1
  3521. fi
  3522. if test -n "$GXX"; then
  3523. CXXFLAGS="$CXXFLAGS"
  3524. fi
  3525. #CXX_RPATH_CHECK
  3526. #checkpoint
  3527. cat >confcache <<\_ACEOF
  3528. # This file is a shell script that caches the results of configure
  3529. # tests run on this system so they can be shared between configure
  3530. # scripts and configure runs, see configure's option --config-cache.
  3531. # It is not useful on other systems. If it contains results you don't
  3532. # want to keep, you may remove or edit it.
  3533. #
  3534. # build/config.status only pays attention to the cache file if you give it
  3535. # the --recheck option to rerun configure.
  3536. #
  3537. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3538. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3539. # following values.
  3540. _ACEOF
  3541. # The following way of writing the cache mishandles newlines in values,
  3542. # but we know of no workaround that is simple, portable, and efficient.
  3543. # So, we kill variables containing newlines.
  3544. # Ultrix sh set writes to stderr and can't be redirected directly,
  3545. # and sets the high bit in the cache file unless we assign to the vars.
  3546. (
  3547. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3548. eval ac_val=\$$ac_var
  3549. case $ac_val in #(
  3550. *${as_nl}*)
  3551. case $ac_var in #(
  3552. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3553. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3554. esac
  3555. case $ac_var in #(
  3556. _ | IFS | as_nl) ;; #(
  3557. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3558. *) { eval $ac_var=; unset $ac_var;} ;;
  3559. esac ;;
  3560. esac
  3561. done
  3562. (set) 2>&1 |
  3563. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3564. *${as_nl}ac_space=\ *)
  3565. # `set' does not quote correctly, so add quotes: double-quote
  3566. # substitution turns \\\\ into \\, and sed turns \\ into \.
  3567. sed -n \
  3568. "s/'/'\\\\''/g;
  3569. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3570. ;; #(
  3571. *)
  3572. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3573. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3574. ;;
  3575. esac |
  3576. sort
  3577. ) |
  3578. sed '
  3579. /^ac_cv_env_/b end
  3580. t clear
  3581. :clear
  3582. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3583. t end
  3584. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3585. :end' >>confcache
  3586. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3587. if test -w "$cache_file"; then
  3588. if test "x$cache_file" != "x/dev/null"; then
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  3590. $as_echo "$as_me: updating cache $cache_file" >&6;}
  3591. if test ! -f "$cache_file" || test -h "$cache_file"; then
  3592. cat confcache >"$cache_file"
  3593. else
  3594. case $cache_file in #(
  3595. */* | ?:*)
  3596. mv -f confcache "$cache_file"$$ &&
  3597. mv -f "$cache_file"$$ "$cache_file" ;; #(
  3598. *)
  3599. mv -f confcache "$cache_file" ;;
  3600. esac
  3601. fi
  3602. fi
  3603. else
  3604. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  3605. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3606. fi
  3607. fi
  3608. rm -f confcache
  3609. # Speedup compile
  3610. if test -n "$GXX" && test -z "$no_wall"; then
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wall" >&5
  3612. $as_echo_n "checking whether the compiler understands -Wall... " >&6; }
  3613. if ${egg_cv_var_ccwall+:} false; then :
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. ac_old_CXXFLAGS="$CXXFLAGS"
  3617. CXXFLAGS="$CXXFLAGS -Wall"
  3618. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3619. /* end build/confdefs.h. */
  3620. int main ()
  3621. {
  3622. return(0);
  3623. }
  3624. _ACEOF
  3625. if ac_fn_cxx_try_compile "$LINENO"; then :
  3626. egg_cv_var_ccwall="yes"
  3627. else
  3628. egg_cv_var_ccwall="no"
  3629. fi
  3630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3631. CXXFLAGS="$ac_old_CXXFLAGS"
  3632. fi
  3633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccwall" >&5
  3634. $as_echo "$egg_cv_var_ccwall" >&6; }
  3635. if test "$egg_cv_var_ccwall" = "yes"; then
  3636. CXXFLAGS="$CXXFLAGS -Wall"
  3637. fi
  3638. fi
  3639. if test -n "$GXX" && test -z "$no_pipe"; then
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -pipe" >&5
  3641. $as_echo_n "checking whether the compiler understands -pipe... " >&6; }
  3642. if ${egg_cv_var_ccpipe+:} false; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. ac_old_CXX="$CXX"
  3646. CXX="$CXX -pipe"
  3647. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3648. /* end build/confdefs.h. */
  3649. int main ()
  3650. {
  3651. return(0);
  3652. }
  3653. _ACEOF
  3654. if ac_fn_cxx_try_compile "$LINENO"; then :
  3655. egg_cv_var_ccpipe="yes"
  3656. else
  3657. egg_cv_var_ccpipe="no"
  3658. fi
  3659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3660. CXX="$ac_old_CXX"
  3661. fi
  3662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccpipe" >&5
  3663. $as_echo "$egg_cv_var_ccpipe" >&6; }
  3664. if test "$egg_cv_var_ccpipe" = "yes"; then
  3665. CXX="$CXX -pipe"
  3666. fi
  3667. fi
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fcolor-diagnostics" >&5
  3669. $as_echo_n "checking whether the compiler understands -fcolor-diagnostics... " >&6; }
  3670. if ${ax_cv_prog_cc_colordiagnostics+:} false; then :
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. ac_ext=cpp
  3674. ac_cpp='$CXXCPP $CPPFLAGS'
  3675. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3676. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3677. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3678. ac_saved_flags="$CXXFLAGS"
  3679. CXXFLAGS="-Werror -fcolor-diagnostics"
  3680. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3681. /* end build/confdefs.h. */
  3682. int
  3683. main ()
  3684. {
  3685. ;
  3686. return 0;
  3687. }
  3688. _ACEOF
  3689. if ac_fn_cxx_try_compile "$LINENO"; then :
  3690. ax_cv_prog_cc_colordiagnostics="yes"
  3691. else
  3692. ax_cv_prog_cc_colordiagnostics="no"
  3693. fi
  3694. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3695. CXXFLAGS="$ac_saved_flags"
  3696. ac_ext=cpp
  3697. ac_cpp='$CXXCPP $CPPFLAGS'
  3698. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3699. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3700. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_colordiagnostics" >&5
  3703. $as_echo "$ax_cv_prog_cc_colordiagnostics" >&6; }
  3704. if [ "$ax_cv_prog_cc_colordiagnostics" = "yes" ]; then
  3705. CXXFLAGS="$CXXFLAGS -fcolor-diagnostics"
  3706. elif [ -n "" ]; then
  3707. cat << 'EOF' >&2
  3708. configure: error:
  3709. Your OS or C++ compiler does not support -fcolor-diagnostics.
  3710. This compile flag is required.
  3711. EOF
  3712. exit 1
  3713. fi
  3714. #CXX_FLAG_CHECK([CXXFLAGS], [-Qunused-arguments], [unusedarguments])
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-invalid-source-encoding" >&5
  3716. $as_echo_n "checking whether the compiler understands -Wno-invalid-source-encoding... " >&6; }
  3717. if ${ax_cv_prog_cc_invalid_source_encoding+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. ac_ext=cpp
  3721. ac_cpp='$CXXCPP $CPPFLAGS'
  3722. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3723. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3724. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3725. ac_saved_flags="$CXXFLAGS"
  3726. CXXFLAGS="-Werror -Winvalid-source-encoding"
  3727. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3728. /* end build/confdefs.h. */
  3729. int
  3730. main ()
  3731. {
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. if ac_fn_cxx_try_compile "$LINENO"; then :
  3737. ax_cv_prog_cc_invalid_source_encoding="yes"
  3738. else
  3739. ax_cv_prog_cc_invalid_source_encoding="no"
  3740. fi
  3741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3742. CXXFLAGS="$ac_saved_flags"
  3743. ac_ext=cpp
  3744. ac_cpp='$CXXCPP $CPPFLAGS'
  3745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3748. fi
  3749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_invalid_source_encoding" >&5
  3750. $as_echo "$ax_cv_prog_cc_invalid_source_encoding" >&6; }
  3751. if [ "$ax_cv_prog_cc_invalid_source_encoding" = "yes" ]; then
  3752. CXXFLAGS="$CXXFLAGS -Wno-invalid-source-encoding"
  3753. elif [ -n "" ]; then
  3754. cat << 'EOF' >&2
  3755. configure: error:
  3756. Your OS or C++ compiler does not support -Wno-invalid-source-encoding.
  3757. This compile flag is required.
  3758. EOF
  3759. exit 1
  3760. fi
  3761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-narrowing" >&5
  3762. $as_echo_n "checking whether the compiler understands -Wno-narrowing... " >&6; }
  3763. if ${ax_cv_prog_cc_nonarrowing+:} false; then :
  3764. $as_echo_n "(cached) " >&6
  3765. else
  3766. ac_ext=cpp
  3767. ac_cpp='$CXXCPP $CPPFLAGS'
  3768. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3769. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3770. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3771. ac_saved_flags="$CXXFLAGS"
  3772. CXXFLAGS="-Werror -Wnarrowing"
  3773. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3774. /* end build/confdefs.h. */
  3775. int
  3776. main ()
  3777. {
  3778. ;
  3779. return 0;
  3780. }
  3781. _ACEOF
  3782. if ac_fn_cxx_try_compile "$LINENO"; then :
  3783. ax_cv_prog_cc_nonarrowing="yes"
  3784. else
  3785. ax_cv_prog_cc_nonarrowing="no"
  3786. fi
  3787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3788. CXXFLAGS="$ac_saved_flags"
  3789. ac_ext=cpp
  3790. ac_cpp='$CXXCPP $CPPFLAGS'
  3791. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3792. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3793. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3794. fi
  3795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_nonarrowing" >&5
  3796. $as_echo "$ax_cv_prog_cc_nonarrowing" >&6; }
  3797. if [ "$ax_cv_prog_cc_nonarrowing" = "yes" ]; then
  3798. CXXFLAGS="$CXXFLAGS -Wno-narrowing"
  3799. elif [ -n "" ]; then
  3800. cat << 'EOF' >&2
  3801. configure: error:
  3802. Your OS or C++ compiler does not support -Wno-narrowing.
  3803. This compile flag is required.
  3804. EOF
  3805. exit 1
  3806. fi
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wno-cast-function-type" >&5
  3808. $as_echo_n "checking whether the compiler understands -Wno-cast-function-type... " >&6; }
  3809. if ${ax_cv_prog_cc_no_cast_function_type+:} false; then :
  3810. $as_echo_n "(cached) " >&6
  3811. else
  3812. ac_ext=cpp
  3813. ac_cpp='$CXXCPP $CPPFLAGS'
  3814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3817. ac_saved_flags="$CXXFLAGS"
  3818. CXXFLAGS="-Werror -Wcast-function-type"
  3819. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3820. /* end build/confdefs.h. */
  3821. int
  3822. main ()
  3823. {
  3824. ;
  3825. return 0;
  3826. }
  3827. _ACEOF
  3828. if ac_fn_cxx_try_compile "$LINENO"; then :
  3829. ax_cv_prog_cc_no_cast_function_type="yes"
  3830. else
  3831. ax_cv_prog_cc_no_cast_function_type="no"
  3832. fi
  3833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3834. CXXFLAGS="$ac_saved_flags"
  3835. ac_ext=cpp
  3836. ac_cpp='$CXXCPP $CPPFLAGS'
  3837. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3838. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3839. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3840. fi
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_no_cast_function_type" >&5
  3842. $as_echo "$ax_cv_prog_cc_no_cast_function_type" >&6; }
  3843. if [ "$ax_cv_prog_cc_no_cast_function_type" = "yes" ]; then
  3844. CXXFLAGS="$CXXFLAGS -Wno-cast-function-type"
  3845. elif [ -n "" ]; then
  3846. cat << 'EOF' >&2
  3847. configure: error:
  3848. Your OS or C++ compiler does not support -Wno-cast-function-type.
  3849. This compile flag is required.
  3850. EOF
  3851. exit 1
  3852. fi
  3853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wimplicit-fallthrough=0" >&5
  3854. $as_echo_n "checking whether the compiler understands -Wimplicit-fallthrough=0... " >&6; }
  3855. if ${ax_cv_prog_cc_wimplicit_fallthrough+:} false; then :
  3856. $as_echo_n "(cached) " >&6
  3857. else
  3858. ac_ext=cpp
  3859. ac_cpp='$CXXCPP $CPPFLAGS'
  3860. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3861. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3862. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3863. ac_saved_flags="$CXXFLAGS"
  3864. CXXFLAGS="-Werror -Wimplicit-fallthrough=0"
  3865. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3866. /* end build/confdefs.h. */
  3867. int
  3868. main ()
  3869. {
  3870. ;
  3871. return 0;
  3872. }
  3873. _ACEOF
  3874. if ac_fn_cxx_try_compile "$LINENO"; then :
  3875. ax_cv_prog_cc_wimplicit_fallthrough="yes"
  3876. else
  3877. ax_cv_prog_cc_wimplicit_fallthrough="no"
  3878. fi
  3879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3880. CXXFLAGS="$ac_saved_flags"
  3881. ac_ext=cpp
  3882. ac_cpp='$CXXCPP $CPPFLAGS'
  3883. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3884. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3885. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3886. fi
  3887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wimplicit_fallthrough" >&5
  3888. $as_echo "$ax_cv_prog_cc_wimplicit_fallthrough" >&6; }
  3889. if [ "$ax_cv_prog_cc_wimplicit_fallthrough" = "yes" ]; then
  3890. CXXFLAGS="$CXXFLAGS -Wimplicit-fallthrough=0"
  3891. elif [ -n "" ]; then
  3892. cat << 'EOF' >&2
  3893. configure: error:
  3894. Your OS or C++ compiler does not support -Wimplicit-fallthrough=0.
  3895. This compile flag is required.
  3896. EOF
  3897. exit 1
  3898. fi
  3899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector" >&5
  3900. $as_echo_n "checking whether the compiler understands -fstack-protector... " >&6; }
  3901. if ${ax_cv_prog_cc_stackprotector+:} false; then :
  3902. $as_echo_n "(cached) " >&6
  3903. else
  3904. ac_ext=cpp
  3905. ac_cpp='$CXXCPP $CPPFLAGS'
  3906. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3907. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3908. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3909. ac_saved_flags="$CXXFLAGS"
  3910. CXXFLAGS="-Werror -fstack-protector"
  3911. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end build/confdefs.h. */
  3913. int
  3914. main ()
  3915. {
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_cxx_try_compile "$LINENO"; then :
  3921. ax_cv_prog_cc_stackprotector="yes"
  3922. else
  3923. ax_cv_prog_cc_stackprotector="no"
  3924. fi
  3925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3926. CXXFLAGS="$ac_saved_flags"
  3927. ac_ext=cpp
  3928. ac_cpp='$CXXCPP $CPPFLAGS'
  3929. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3930. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3931. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotector" >&5
  3934. $as_echo "$ax_cv_prog_cc_stackprotector" >&6; }
  3935. if [ "$ax_cv_prog_cc_stackprotector" = "yes" ]; then
  3936. CXXFLAGS="$CXXFLAGS -fstack-protector"
  3937. elif [ -n "" ]; then
  3938. cat << 'EOF' >&2
  3939. configure: error:
  3940. Your OS or C++ compiler does not support -fstack-protector.
  3941. This compile flag is required.
  3942. EOF
  3943. exit 1
  3944. fi
  3945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-strong" >&5
  3946. $as_echo_n "checking whether the compiler understands -fstack-protector-strong... " >&6; }
  3947. if ${ax_cv_prog_cc_stackprotectorstrong+:} false; then :
  3948. $as_echo_n "(cached) " >&6
  3949. else
  3950. ac_ext=cpp
  3951. ac_cpp='$CXXCPP $CPPFLAGS'
  3952. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3953. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3954. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3955. ac_saved_flags="$CXXFLAGS"
  3956. CXXFLAGS="-Werror -fstack-protector-strong"
  3957. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  3958. /* end build/confdefs.h. */
  3959. int
  3960. main ()
  3961. {
  3962. ;
  3963. return 0;
  3964. }
  3965. _ACEOF
  3966. if ac_fn_cxx_try_compile "$LINENO"; then :
  3967. ax_cv_prog_cc_stackprotectorstrong="yes"
  3968. else
  3969. ax_cv_prog_cc_stackprotectorstrong="no"
  3970. fi
  3971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3972. CXXFLAGS="$ac_saved_flags"
  3973. ac_ext=cpp
  3974. ac_cpp='$CXXCPP $CPPFLAGS'
  3975. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3976. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3977. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3978. fi
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorstrong" >&5
  3980. $as_echo "$ax_cv_prog_cc_stackprotectorstrong" >&6; }
  3981. if [ "$ax_cv_prog_cc_stackprotectorstrong" = "yes" ]; then
  3982. CXXFLAGS="$CXXFLAGS -fstack-protector-strong"
  3983. elif [ -n "" ]; then
  3984. cat << 'EOF' >&2
  3985. configure: error:
  3986. Your OS or C++ compiler does not support -fstack-protector-strong.
  3987. This compile flag is required.
  3988. EOF
  3989. exit 1
  3990. fi
  3991. if [ "${ax_cv_prog_cc_stackprotectorstrong}" = "yes" ]; then
  3992. LDFLAGS="${LDFLAGS} -fstack-protector-strong"
  3993. elif [ "${ax_cv_prog_cc_stackprotector}" = "yes" ]; then
  3994. LDFLAGS="${LDFLAGS} -fstack-protector"
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Og" >&5
  3997. $as_echo_n "checking whether the compiler understands -Og... " >&6; }
  3998. if ${ax_cv_prog_cc_Og+:} false; then :
  3999. $as_echo_n "(cached) " >&6
  4000. else
  4001. ac_ext=cpp
  4002. ac_cpp='$CXXCPP $CPPFLAGS'
  4003. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4004. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4005. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4006. ac_saved_flags="$CXXFLAGS"
  4007. CXXFLAGS="-Werror -Og"
  4008. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4009. /* end build/confdefs.h. */
  4010. int
  4011. main ()
  4012. {
  4013. ;
  4014. return 0;
  4015. }
  4016. _ACEOF
  4017. if ac_fn_cxx_try_compile "$LINENO"; then :
  4018. ax_cv_prog_cc_Og="yes"
  4019. else
  4020. ax_cv_prog_cc_Og="no"
  4021. fi
  4022. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4023. CXXFLAGS="$ac_saved_flags"
  4024. ac_ext=cpp
  4025. ac_cpp='$CXXCPP $CPPFLAGS'
  4026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4029. fi
  4030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_Og" >&5
  4031. $as_echo "$ax_cv_prog_cc_Og" >&6; }
  4032. if [ "$ax_cv_prog_cc_Og" = "yes" ]; then
  4033. DEBCXXFLAGS="$DEBCXXFLAGS -Og"
  4034. elif [ -n "" ]; then
  4035. cat << 'EOF' >&2
  4036. configure: error:
  4037. Your OS or C++ compiler does not support -Og.
  4038. This compile flag is required.
  4039. EOF
  4040. exit 1
  4041. fi
  4042. if [ "${ax_cv_prog_cc_Og}" = "no" ]; then
  4043. DEBCXXFLAGS="${DEBCXXFLAGS} -O0"
  4044. fi
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports -fsanitize=address" >&5
  4046. $as_echo_n "checking whether the linker supports -fsanitize=address... " >&6; }
  4047. if ${ax_cv_prog_cc_fsanitize_address+:} false; then :
  4048. $as_echo_n "(cached) " >&6
  4049. else
  4050. ac_ext=cpp
  4051. ac_cpp='$CXXCPP $CPPFLAGS'
  4052. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4053. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4054. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4055. ac_saved_flags="$CXXFLAGS"
  4056. CXXFLAGS="-Werror -fsanitize=address"
  4057. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4058. /* end build/confdefs.h. */
  4059. int
  4060. main ()
  4061. {
  4062. ;
  4063. return 0;
  4064. }
  4065. _ACEOF
  4066. if ac_fn_cxx_try_link "$LINENO"; then :
  4067. ax_cv_prog_cc_fsanitize_address="yes"
  4068. else
  4069. ax_cv_prog_cc_fsanitize_address="no"
  4070. fi
  4071. rm -f core conftest.err conftest.$ac_objext \
  4072. conftest$ac_exeext conftest.$ac_ext
  4073. CXXFLAGS="$ac_saved_flags"
  4074. ac_ext=cpp
  4075. ac_cpp='$CXXCPP $CPPFLAGS'
  4076. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4077. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4078. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4079. fi
  4080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_fsanitize_address" >&5
  4081. $as_echo "$ax_cv_prog_cc_fsanitize_address" >&6; }
  4082. if [ "$ax_cv_prog_cc_fsanitize_address" = "yes" ]; then
  4083. DEBCXXFLAGS="$DEBCXXFLAGS -fsanitize=address"
  4084. elif [ -n "" ]; then
  4085. cat << 'EOF' >&2
  4086. configure: error:
  4087. Your OS or C++ compiler does not support -fsanitize=address.
  4088. This compile flag is required.
  4089. EOF
  4090. exit 1
  4091. fi
  4092. if [ "${ax_cv_prog_cc_fsanitize_address}" = "yes" ]; then
  4093. DEBLDFLAGS="${DEBLDFLAGS} -fsanitize=address"
  4094. DEBCXXFLAGS="${DEBCXXFLAGS} -D__SANITIZE_ADDRESS__"
  4095. fi
  4096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -fstack-protector-all" >&5
  4097. $as_echo_n "checking whether the compiler understands -fstack-protector-all... " >&6; }
  4098. if ${ax_cv_prog_cc_stackprotectorall+:} false; then :
  4099. $as_echo_n "(cached) " >&6
  4100. else
  4101. ac_ext=cpp
  4102. ac_cpp='$CXXCPP $CPPFLAGS'
  4103. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4104. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4105. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4106. ac_saved_flags="$CXXFLAGS"
  4107. CXXFLAGS="-Werror -fstack-protector-all"
  4108. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4109. /* end build/confdefs.h. */
  4110. int
  4111. main ()
  4112. {
  4113. ;
  4114. return 0;
  4115. }
  4116. _ACEOF
  4117. if ac_fn_cxx_try_compile "$LINENO"; then :
  4118. ax_cv_prog_cc_stackprotectorall="yes"
  4119. else
  4120. ax_cv_prog_cc_stackprotectorall="no"
  4121. fi
  4122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4123. CXXFLAGS="$ac_saved_flags"
  4124. ac_ext=cpp
  4125. ac_cpp='$CXXCPP $CPPFLAGS'
  4126. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4127. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4128. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4129. fi
  4130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_stackprotectorall" >&5
  4131. $as_echo "$ax_cv_prog_cc_stackprotectorall" >&6; }
  4132. if [ "$ax_cv_prog_cc_stackprotectorall" = "yes" ]; then
  4133. DEBCXXFLAGS="$DEBCXXFLAGS -fstack-protector-all"
  4134. elif [ -n "" ]; then
  4135. cat << 'EOF' >&2
  4136. configure: error:
  4137. Your OS or C++ compiler does not support -fstack-protector-all.
  4138. This compile flag is required.
  4139. EOF
  4140. exit 1
  4141. fi
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const" >&5
  4143. $as_echo_n "checking whether the compiler understands -Wsuggest-attribute=pure -Wsuggest-attribute=const... " >&6; }
  4144. if ${ax_cv_prog_cc_wsuggest_attribute+:} false; then :
  4145. $as_echo_n "(cached) " >&6
  4146. else
  4147. ac_ext=cpp
  4148. ac_cpp='$CXXCPP $CPPFLAGS'
  4149. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4150. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4151. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4152. ac_saved_flags="$CXXFLAGS"
  4153. CXXFLAGS="-Werror -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4154. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4155. /* end build/confdefs.h. */
  4156. int
  4157. main ()
  4158. {
  4159. ;
  4160. return 0;
  4161. }
  4162. _ACEOF
  4163. if ac_fn_cxx_try_compile "$LINENO"; then :
  4164. ax_cv_prog_cc_wsuggest_attribute="yes"
  4165. else
  4166. ax_cv_prog_cc_wsuggest_attribute="no"
  4167. fi
  4168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. CXXFLAGS="$ac_saved_flags"
  4170. ac_ext=cpp
  4171. ac_cpp='$CXXCPP $CPPFLAGS'
  4172. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4173. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4174. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_wsuggest_attribute" >&5
  4177. $as_echo "$ax_cv_prog_cc_wsuggest_attribute" >&6; }
  4178. if [ "$ax_cv_prog_cc_wsuggest_attribute" = "yes" ]; then
  4179. DEBCXXFLAGS="$DEBCXXFLAGS -Wsuggest-attribute=pure -Wsuggest-attribute=const"
  4180. elif [ -n "" ]; then
  4181. cat << 'EOF' >&2
  4182. configure: error:
  4183. Your OS or C++ compiler does not support -Wsuggest-attribute=pure -Wsuggest-attribute=const.
  4184. This compile flag is required.
  4185. EOF
  4186. exit 1
  4187. fi
  4188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -Wconditional-uninitialized" >&5
  4189. $as_echo_n "checking whether the compiler understands -Wconditional-uninitialized... " >&6; }
  4190. if ${ax_cv_prog_cc_w_conditional_uninitialized+:} false; then :
  4191. $as_echo_n "(cached) " >&6
  4192. else
  4193. ac_ext=cpp
  4194. ac_cpp='$CXXCPP $CPPFLAGS'
  4195. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4196. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4197. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4198. ac_saved_flags="$CXXFLAGS"
  4199. CXXFLAGS="-Werror -Wconditional-uninitialized"
  4200. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4201. /* end build/confdefs.h. */
  4202. int
  4203. main ()
  4204. {
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. if ac_fn_cxx_try_compile "$LINENO"; then :
  4210. ax_cv_prog_cc_w_conditional_uninitialized="yes"
  4211. else
  4212. ax_cv_prog_cc_w_conditional_uninitialized="no"
  4213. fi
  4214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4215. CXXFLAGS="$ac_saved_flags"
  4216. ac_ext=cpp
  4217. ac_cpp='$CXXCPP $CPPFLAGS'
  4218. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4219. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4220. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4221. fi
  4222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_w_conditional_uninitialized" >&5
  4223. $as_echo "$ax_cv_prog_cc_w_conditional_uninitialized" >&6; }
  4224. if [ "$ax_cv_prog_cc_w_conditional_uninitialized" = "yes" ]; then
  4225. DEBCXXFLAGS="$DEBCXXFLAGS -Wconditional-uninitialized"
  4226. elif [ -n "" ]; then
  4227. cat << 'EOF' >&2
  4228. configure: error:
  4229. Your OS or C++ compiler does not support -Wconditional-uninitialized.
  4230. This compile flag is required.
  4231. EOF
  4232. exit 1
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static-libstdc++" >&5
  4235. $as_echo_n "checking whether the compiler understands -static-libstdc++... " >&6; }
  4236. if ${ax_cv_prog_cc_static_libstdcxx+:} false; then :
  4237. $as_echo_n "(cached) " >&6
  4238. else
  4239. ac_ext=cpp
  4240. ac_cpp='$CXXCPP $CPPFLAGS'
  4241. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4242. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4243. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4244. ac_saved_flags="$CXXFLAGS"
  4245. CXXFLAGS="-Werror -static-libstdc++"
  4246. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4247. /* end build/confdefs.h. */
  4248. int
  4249. main ()
  4250. {
  4251. ;
  4252. return 0;
  4253. }
  4254. _ACEOF
  4255. if ac_fn_cxx_try_compile "$LINENO"; then :
  4256. ax_cv_prog_cc_static_libstdcxx="yes"
  4257. else
  4258. ax_cv_prog_cc_static_libstdcxx="no"
  4259. fi
  4260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4261. CXXFLAGS="$ac_saved_flags"
  4262. ac_ext=cpp
  4263. ac_cpp='$CXXCPP $CPPFLAGS'
  4264. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4265. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4266. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4267. fi
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_cc_static_libstdcxx" >&5
  4269. $as_echo "$ax_cv_prog_cc_static_libstdcxx" >&6; }
  4270. if [ "$ax_cv_prog_cc_static_libstdcxx" = "yes" ]; then
  4271. LDFLAGS="$LDFLAGS -static-libstdc++"
  4272. elif [ -n "" ]; then
  4273. cat << 'EOF' >&2
  4274. configure: error:
  4275. Your OS or C++ compiler does not support -static-libstdc++.
  4276. This compile flag is required.
  4277. EOF
  4278. exit 1
  4279. fi
  4280. #CXX_FLAG_CHECK([LDFLAGS], [-static-libgcc], [static_libgcc])
  4281. if [ "${ax_cv_prog_cc_static_libstdcxx}" = "yes" ]; then
  4282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for static libstdc++" >&5
  4283. $as_echo_n "checking for static libstdc++... " >&6; }
  4284. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4285. /* end build/confdefs.h. */
  4286. int
  4287. main ()
  4288. {
  4289. ;
  4290. return 0;
  4291. }
  4292. _ACEOF
  4293. if ac_fn_cxx_try_link "$LINENO"; then :
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  4295. $as_echo "OK" >&6; }
  4296. else
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  4298. $as_echo "not found." >&6; }
  4299. as_fn_error 1 "Static libstdc++ is rquired to build." "$LINENO" 5
  4300. fi
  4301. rm -f core conftest.err conftest.$ac_objext \
  4302. conftest$ac_exeext conftest.$ac_ext
  4303. fi
  4304. CCDEPMODE=gcc
  4305. num=`$CXX -dumpversion | sed "s/^\([^.]*\).*/\1/" `
  4306. if [ "$num" -ge "3" ]; then
  4307. CCDEPMODE=gcc3
  4308. GCC3_CFLAGS="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings -Wno-format-security -Wno-format-y2k"
  4309. GCC3_CXXFLAGS="-Woverloaded-virtual"
  4310. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute -Wwrite-strings -Wformat -Wformat-security"
  4311. fi
  4312. #checkpoint
  4313. cat >confcache <<\_ACEOF
  4314. # This file is a shell script that caches the results of configure
  4315. # tests run on this system so they can be shared between configure
  4316. # scripts and configure runs, see configure's option --config-cache.
  4317. # It is not useful on other systems. If it contains results you don't
  4318. # want to keep, you may remove or edit it.
  4319. #
  4320. # build/config.status only pays attention to the cache file if you give it
  4321. # the --recheck option to rerun configure.
  4322. #
  4323. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4324. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4325. # following values.
  4326. _ACEOF
  4327. # The following way of writing the cache mishandles newlines in values,
  4328. # but we know of no workaround that is simple, portable, and efficient.
  4329. # So, we kill variables containing newlines.
  4330. # Ultrix sh set writes to stderr and can't be redirected directly,
  4331. # and sets the high bit in the cache file unless we assign to the vars.
  4332. (
  4333. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4334. eval ac_val=\$$ac_var
  4335. case $ac_val in #(
  4336. *${as_nl}*)
  4337. case $ac_var in #(
  4338. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  4339. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  4340. esac
  4341. case $ac_var in #(
  4342. _ | IFS | as_nl) ;; #(
  4343. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  4344. *) { eval $ac_var=; unset $ac_var;} ;;
  4345. esac ;;
  4346. esac
  4347. done
  4348. (set) 2>&1 |
  4349. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4350. *${as_nl}ac_space=\ *)
  4351. # `set' does not quote correctly, so add quotes: double-quote
  4352. # substitution turns \\\\ into \\, and sed turns \\ into \.
  4353. sed -n \
  4354. "s/'/'\\\\''/g;
  4355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4356. ;; #(
  4357. *)
  4358. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4359. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4360. ;;
  4361. esac |
  4362. sort
  4363. ) |
  4364. sed '
  4365. /^ac_cv_env_/b end
  4366. t clear
  4367. :clear
  4368. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4369. t end
  4370. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4371. :end' >>confcache
  4372. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4373. if test -w "$cache_file"; then
  4374. if test "x$cache_file" != "x/dev/null"; then
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  4376. $as_echo "$as_me: updating cache $cache_file" >&6;}
  4377. if test ! -f "$cache_file" || test -h "$cache_file"; then
  4378. cat confcache >"$cache_file"
  4379. else
  4380. case $cache_file in #(
  4381. */* | ?:*)
  4382. mv -f confcache "$cache_file"$$ &&
  4383. mv -f "$cache_file"$$ "$cache_file" ;; #(
  4384. *)
  4385. mv -f confcache "$cache_file" ;;
  4386. esac
  4387. fi
  4388. fi
  4389. else
  4390. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  4391. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4392. fi
  4393. fi
  4394. rm -f confcache
  4395. # Checks for programs
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4397. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4398. set x ${MAKE-make}
  4399. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4400. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  4401. $as_echo_n "(cached) " >&6
  4402. else
  4403. cat >conftest.make <<\_ACEOF
  4404. SHELL = /bin/sh
  4405. all:
  4406. @echo '@@@%%%=$(MAKE)=@@@%%%'
  4407. _ACEOF
  4408. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  4409. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4410. *@@@%%%=?*=@@@%%%*)
  4411. eval ac_cv_prog_make_${ac_make}_set=yes;;
  4412. *)
  4413. eval ac_cv_prog_make_${ac_make}_set=no;;
  4414. esac
  4415. rm -f conftest.make
  4416. fi
  4417. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4419. $as_echo "yes" >&6; }
  4420. SET_MAKE=
  4421. else
  4422. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4423. $as_echo "no" >&6; }
  4424. SET_MAKE="MAKE=${MAKE-make}"
  4425. fi
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4427. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4428. if ${ac_cv_path_SED+:} false; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4432. for ac_i in 1 2 3 4 5 6 7; do
  4433. ac_script="$ac_script$as_nl$ac_script"
  4434. done
  4435. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4436. { ac_script=; unset ac_script;}
  4437. if test -z "$SED"; then
  4438. ac_path_SED_found=false
  4439. # Loop through the user's path and test for each of PROGNAME-LIST
  4440. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4441. for as_dir in $PATH
  4442. do
  4443. IFS=$as_save_IFS
  4444. test -z "$as_dir" && as_dir=.
  4445. for ac_prog in sed gsed; do
  4446. for ac_exec_ext in '' $ac_executable_extensions; do
  4447. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4448. as_fn_executable_p "$ac_path_SED" || continue
  4449. # Check for GNU ac_path_SED and select it if it is found.
  4450. # Check for GNU $ac_path_SED
  4451. case `"$ac_path_SED" --version 2>&1` in
  4452. *GNU*)
  4453. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4454. *)
  4455. ac_count=0
  4456. $as_echo_n 0123456789 >"conftest.in"
  4457. while :
  4458. do
  4459. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4460. mv "conftest.tmp" "conftest.in"
  4461. cp "conftest.in" "conftest.nl"
  4462. $as_echo '' >> "conftest.nl"
  4463. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4464. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4465. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4466. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4467. # Best one so far, save it but keep looking for a better one
  4468. ac_cv_path_SED="$ac_path_SED"
  4469. ac_path_SED_max=$ac_count
  4470. fi
  4471. # 10*(2^10) chars as input seems more than enough
  4472. test $ac_count -gt 10 && break
  4473. done
  4474. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4475. esac
  4476. $ac_path_SED_found && break 3
  4477. done
  4478. done
  4479. done
  4480. IFS=$as_save_IFS
  4481. if test -z "$ac_cv_path_SED"; then
  4482. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4483. fi
  4484. else
  4485. ac_cv_path_SED=$SED
  4486. fi
  4487. fi
  4488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4489. $as_echo "$ac_cv_path_SED" >&6; }
  4490. SED="$ac_cv_path_SED"
  4491. rm -f conftest.sed
  4492. cat << 'EOF' > conftest.head
  4493. a
  4494. b
  4495. c
  4496. EOF
  4497. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  4498. do
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_prog works" >&5
  4500. $as_echo_n "checking whether $ac_prog works... " >&6; }
  4501. if ${ac_cv_prog_HEAD_1+:} false; then :
  4502. $as_echo_n "(cached) " >&6
  4503. else
  4504. if test -n "$HEAD_1"
  4505. then
  4506. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  4507. else
  4508. if test "`cat conftest.head | $ac_prog`" = "a";
  4509. then
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4511. $as_echo "yes" >&6; }
  4512. ac_cv_prog_HEAD_1=$ac_prog
  4513. else
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4515. $as_echo "no" >&6; }
  4516. fi
  4517. fi
  4518. fi
  4519. test -n "$ac_cv_prog_HEAD_1" && break
  4520. done
  4521. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  4522. then
  4523. cat << 'EOF' >&2
  4524. configure: error:
  4525. This system seems to lack a working 'head -1' or 'head -n 1' command.
  4526. A working 'head -1' (or equivalent) command is required to compile Wraith.
  4527. EOF
  4528. exit 1
  4529. fi
  4530. rm -f conftest.head
  4531. HEAD_1=$ac_cv_prog_HEAD_1
  4532. # awk is needed for Tcl library and header checks, and eggdrop version subst
  4533. for ac_prog in gawk mawk nawk awk
  4534. do
  4535. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4536. set dummy $ac_prog; ac_word=$2
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4538. $as_echo_n "checking for $ac_word... " >&6; }
  4539. if ${ac_cv_prog_AWK+:} false; then :
  4540. $as_echo_n "(cached) " >&6
  4541. else
  4542. if test -n "$AWK"; then
  4543. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4544. else
  4545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4546. for as_dir in $PATH
  4547. do
  4548. IFS=$as_save_IFS
  4549. test -z "$as_dir" && as_dir=.
  4550. for ac_exec_ext in '' $ac_executable_extensions; do
  4551. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4552. ac_cv_prog_AWK="$ac_prog"
  4553. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4554. break 2
  4555. fi
  4556. done
  4557. done
  4558. IFS=$as_save_IFS
  4559. fi
  4560. fi
  4561. AWK=$ac_cv_prog_AWK
  4562. if test -n "$AWK"; then
  4563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4564. $as_echo "$AWK" >&6; }
  4565. else
  4566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4567. $as_echo "no" >&6; }
  4568. fi
  4569. test -n "$AWK" && break
  4570. done
  4571. if test "${AWK-x}" = "x"
  4572. then
  4573. cat << 'EOF' >&2
  4574. configure: error:
  4575. This system seems to lack a working 'awk' command.
  4576. A working 'awk' command is required to compile Wraith.
  4577. EOF
  4578. exit 1
  4579. fi
  4580. # basename is needed for Tcl library and header checks
  4581. # Extract the first word of "basename", so it can be a program name with args.
  4582. set dummy basename; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if ${ac_cv_prog_BASENAME+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$BASENAME"; then
  4589. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4598. ac_cv_prog_BASENAME="basename"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. BASENAME=$ac_cv_prog_BASENAME
  4608. if test -n "$BASENAME"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
  4610. $as_echo "$BASENAME" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. if test "${BASENAME-x}" = "x"
  4616. then
  4617. cat << 'EOF' >&2
  4618. configure: error:
  4619. This system seems to lack a working 'basename' command.
  4620. A working 'basename' command is required to compile Wraith.
  4621. EOF
  4622. exit 1
  4623. fi
  4624. # Extract the first word of "objcopy", so it can be a program name with args.
  4625. set dummy objcopy; ac_word=$2
  4626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4627. $as_echo_n "checking for $ac_word... " >&6; }
  4628. if ${ac_cv_prog_OBJCOPY+:} false; then :
  4629. $as_echo_n "(cached) " >&6
  4630. else
  4631. if test -n "$OBJCOPY"; then
  4632. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  4633. else
  4634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4635. for as_dir in $PATH
  4636. do
  4637. IFS=$as_save_IFS
  4638. test -z "$as_dir" && as_dir=.
  4639. for ac_exec_ext in '' $ac_executable_extensions; do
  4640. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4641. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  4642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4643. break 2
  4644. fi
  4645. done
  4646. done
  4647. IFS=$as_save_IFS
  4648. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  4649. fi
  4650. fi
  4651. OBJCOPY=$ac_cv_prog_OBJCOPY
  4652. if test -n "$OBJCOPY"; then
  4653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
  4654. $as_echo "$OBJCOPY" >&6; }
  4655. else
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4657. $as_echo "no" >&6; }
  4658. fi
  4659. # Extract the first word of "strip", so it can be a program name with args.
  4660. set dummy strip; ac_word=$2
  4661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4662. $as_echo_n "checking for $ac_word... " >&6; }
  4663. if ${ac_cv_prog_STRIP+:} false; then :
  4664. $as_echo_n "(cached) " >&6
  4665. else
  4666. if test -n "$STRIP"; then
  4667. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4668. else
  4669. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4670. for as_dir in $PATH
  4671. do
  4672. IFS=$as_save_IFS
  4673. test -z "$as_dir" && as_dir=.
  4674. for ac_exec_ext in '' $ac_executable_extensions; do
  4675. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4676. ac_cv_prog_STRIP="strip"
  4677. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4678. break 2
  4679. fi
  4680. done
  4681. done
  4682. IFS=$as_save_IFS
  4683. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  4684. fi
  4685. fi
  4686. STRIP=$ac_cv_prog_STRIP
  4687. if test -n "$STRIP"; then
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4689. $as_echo "$STRIP" >&6; }
  4690. else
  4691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4692. $as_echo "no" >&6; }
  4693. fi
  4694. # Extract the first word of "gdiff", so it can be a program name with args.
  4695. set dummy gdiff; ac_word=$2
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4697. $as_echo_n "checking for $ac_word... " >&6; }
  4698. if ${ac_cv_prog_DIFF+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. if test -n "$DIFF"; then
  4702. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  4703. else
  4704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4705. for as_dir in $PATH
  4706. do
  4707. IFS=$as_save_IFS
  4708. test -z "$as_dir" && as_dir=.
  4709. for ac_exec_ext in '' $ac_executable_extensions; do
  4710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4711. ac_cv_prog_DIFF="gdiff"
  4712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4713. break 2
  4714. fi
  4715. done
  4716. done
  4717. IFS=$as_save_IFS
  4718. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  4719. fi
  4720. fi
  4721. DIFF=$ac_cv_prog_DIFF
  4722. if test -n "$DIFF"; then
  4723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
  4724. $as_echo "$DIFF" >&6; }
  4725. else
  4726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4727. $as_echo "no" >&6; }
  4728. fi
  4729. # Extract the first word of "uname", so it can be a program name with args.
  4730. set dummy uname; ac_word=$2
  4731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4732. $as_echo_n "checking for $ac_word... " >&6; }
  4733. if ${ac_cv_prog_UNAME+:} false; then :
  4734. $as_echo_n "(cached) " >&6
  4735. else
  4736. if test -n "$UNAME"; then
  4737. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  4738. else
  4739. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4740. for as_dir in $PATH
  4741. do
  4742. IFS=$as_save_IFS
  4743. test -z "$as_dir" && as_dir=.
  4744. for ac_exec_ext in '' $ac_executable_extensions; do
  4745. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4746. ac_cv_prog_UNAME="uname"
  4747. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4748. break 2
  4749. fi
  4750. done
  4751. done
  4752. IFS=$as_save_IFS
  4753. fi
  4754. fi
  4755. UNAME=$ac_cv_prog_UNAME
  4756. if test -n "$UNAME"; then
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
  4758. $as_echo "$UNAME" >&6; }
  4759. else
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4761. $as_echo "no" >&6; }
  4762. fi
  4763. # Test the os and set the module linking settings
  4764. USE_STATIC=yes
  4765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system type" >&5
  4766. $as_echo_n "checking system type... " >&6; }
  4767. if ${egg_cv_var_system_type+:} false; then :
  4768. $as_echo_n "(cached) " >&6
  4769. else
  4770. egg_cv_var_system_type=`$UNAME -s`
  4771. fi
  4772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_type" >&5
  4773. $as_echo "$egg_cv_var_system_type" >&6; }
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system release" >&5
  4775. $as_echo_n "checking system release... " >&6; }
  4776. if ${egg_cv_var_system_release+:} false; then :
  4777. $as_echo_n "(cached) " >&6
  4778. else
  4779. egg_cv_var_system_release=`$UNAME -r`
  4780. fi
  4781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_release" >&5
  4782. $as_echo "$egg_cv_var_system_release" >&6; }
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking system machine" >&5
  4784. $as_echo_n "checking system machine... " >&6; }
  4785. if ${egg_cv_var_system_machine+:} false; then :
  4786. $as_echo_n "(cached) " >&6
  4787. else
  4788. egg_cv_var_system_machine=`$UNAME -m`
  4789. fi
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_system_machine" >&5
  4791. $as_echo "$egg_cv_var_system_machine" >&6; }
  4792. BUILDOS="$egg_cv_var_system_type"
  4793. BUILDARCH="$egg_cv_var_system_machine"
  4794. case "$egg_cv_var_system_type" in
  4795. BSD/OS)
  4796. ;;
  4797. IRIX)
  4798. ;;
  4799. HP-UX)
  4800. $as_echo "#define MD32_XARRAY 1" >>build/confdefs.h
  4801. ;;
  4802. Ultrix)
  4803. SHELL=/bin/sh5
  4804. ;;
  4805. SINIX*)
  4806. ;;
  4807. BeOS)
  4808. ;;
  4809. Linux)
  4810. ;;
  4811. Lynx)
  4812. ;;
  4813. QNX)
  4814. ;;
  4815. OSF1)
  4816. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  4817. V*)
  4818. if test "$AWK" = "gawk"
  4819. then
  4820. AWK=awk
  4821. fi
  4822. ;;
  4823. 1.0|1.1|1.2)
  4824. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4825. ;;
  4826. 1.*)
  4827. $as_echo "#define OSF1_HACKS 1" >>build/confdefs.h
  4828. ;;
  4829. *)
  4830. ;;
  4831. esac
  4832. $as_echo "#define STOP_UAC 1" >>build/confdefs.h
  4833. $as_echo "#define BROKEN_SNPRINTF 1" >>build/confdefs.h
  4834. ;;
  4835. SunOS)
  4836. SUNOS="yes"
  4837. USE_STATIC="no"
  4838. ;;
  4839. Darwin)
  4840. USE_STATIC="no"
  4841. ;;
  4842. *BSD)
  4843. # FreeBSD/OpenBSD/NetBSD
  4844. ;;
  4845. *)
  4846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is Mach based" >&5
  4847. $as_echo_n "checking if system is Mach based... " >&6; }
  4848. if test -r /mach
  4849. then
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4851. $as_echo "yes" >&6; }
  4852. $as_echo "#define BORGCUBES 1" >>build/confdefs.h
  4853. else
  4854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4855. $as_echo "no" >&6; }
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system is QNX" >&5
  4857. $as_echo_n "checking if system is QNX... " >&6; }
  4858. if test -r /cmds
  4859. then
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4861. $as_echo "yes" >&6; }
  4862. else
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4864. $as_echo "no" >&6; }
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Something unknown!" >&5
  4866. $as_echo "Something unknown!" >&6; }
  4867. fi
  4868. fi
  4869. ;;
  4870. esac
  4871. # Check for IPv6 support
  4872. #EGG_IPV6_SUPPORTED
  4873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IPv6 is enabled" >&5
  4874. $as_echo_n "checking whether IPv6 is enabled... " >&6; }
  4875. # Check whether --enable-ipv6 was given.
  4876. if test "${enable_ipv6+set}" = set; then :
  4877. enableval=$enable_ipv6;
  4878. enable_ipv6=$enableval
  4879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4880. $as_echo "$enableval" >&6; }
  4881. else
  4882. # default if not given is ENABLED
  4883. if test "x$enableval" = "x"; then
  4884. enableval="yes"
  4885. fi
  4886. enable_ipv6=$enableval
  4887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  4888. $as_echo "$enableval" >&6; }
  4889. $as_echo "#define USE_IPV6 1" >>build/confdefs.h
  4890. fi
  4891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  4892. $as_echo_n "checking for socklen_t... " >&6; }
  4893. if ${egg_cv_socklen_t+:} false; then :
  4894. $as_echo_n "(cached) " >&6
  4895. else
  4896. if test "$cross_compiling" = yes; then :
  4897. egg_cv_socklen_t=no
  4898. else
  4899. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4900. /* end build/confdefs.h. */
  4901. #include <unistd.h>
  4902. #include <sys/types.h>
  4903. #include <sys/socket.h>
  4904. #include <netinet/in.h>
  4905. #include <arpa/inet.h>
  4906. int main()
  4907. {
  4908. socklen_t test = sizeof(int);
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. if ac_fn_cxx_try_run "$LINENO"; then :
  4913. egg_cv_socklen_t=yes
  4914. else
  4915. egg_cv_socklen_t=no
  4916. fi
  4917. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4918. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4919. fi
  4920. fi
  4921. if test "$egg_cv_socklen_t" = "yes"; then
  4922. $as_echo "#define HAVE_SOCKLEN_T 1" >>build/confdefs.h
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4924. $as_echo "yes" >&6; }
  4925. else
  4926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4927. $as_echo "no" >&6; }
  4928. fi
  4929. # Check for inconsistent random() functions
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random limit" >&5
  4931. $as_echo_n "checking for random limit... " >&6; }
  4932. case "$egg_cv_var_system_type" in
  4933. SunOS) RMAX=0x7FFFFFFF
  4934. ;;
  4935. *) RMAX=RAND_MAX
  4936. ;;
  4937. esac
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMAX" >&5
  4939. $as_echo "$RMAX" >&6; }
  4940. cat >>build/confdefs.h <<_ACEOF
  4941. #define RANDOM_MAX $RMAX
  4942. _ACEOF
  4943. # Create static binaries
  4944. if test "$USE_STATIC" = "yes"
  4945. then
  4946. if test -n "$GXX"
  4947. then
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler understands -static" >&5
  4949. $as_echo_n "checking whether the compiler understands -static... " >&6; }
  4950. if ${egg_cv_var_ccstatic+:} false; then :
  4951. $as_echo_n "(cached) " >&6
  4952. else
  4953. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  4954. /* end build/confdefs.h. */
  4955. int
  4956. main ()
  4957. {
  4958. ;
  4959. return 0;
  4960. }
  4961. _ACEOF
  4962. if ac_fn_cxx_try_compile "$LINENO"; then :
  4963. egg_cv_var_ccstatic="yes"
  4964. else
  4965. egg_cv_var_ccstatic="no"
  4966. fi
  4967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4968. fi
  4969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_ccstatic" >&5
  4970. $as_echo "$egg_cv_var_ccstatic" >&6; }
  4971. if ! test "$egg_cv_var_ccstatic" = "yes"
  4972. then
  4973. cat << 'EOF' >&2
  4974. configure: error:
  4975. Your OS or C++ compiler does not support -static.
  4976. This compile flag is required for the botpack on this OS.
  4977. EOF
  4978. exit 1
  4979. fi
  4980. fi
  4981. STATIC="-static"
  4982. else
  4983. STATIC=""
  4984. fi
  4985. #checkpoint
  4986. cat >confcache <<\_ACEOF
  4987. # This file is a shell script that caches the results of configure
  4988. # tests run on this system so they can be shared between configure
  4989. # scripts and configure runs, see configure's option --config-cache.
  4990. # It is not useful on other systems. If it contains results you don't
  4991. # want to keep, you may remove or edit it.
  4992. #
  4993. # build/config.status only pays attention to the cache file if you give it
  4994. # the --recheck option to rerun configure.
  4995. #
  4996. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4997. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4998. # following values.
  4999. _ACEOF
  5000. # The following way of writing the cache mishandles newlines in values,
  5001. # but we know of no workaround that is simple, portable, and efficient.
  5002. # So, we kill variables containing newlines.
  5003. # Ultrix sh set writes to stderr and can't be redirected directly,
  5004. # and sets the high bit in the cache file unless we assign to the vars.
  5005. (
  5006. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5007. eval ac_val=\$$ac_var
  5008. case $ac_val in #(
  5009. *${as_nl}*)
  5010. case $ac_var in #(
  5011. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5012. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5013. esac
  5014. case $ac_var in #(
  5015. _ | IFS | as_nl) ;; #(
  5016. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5017. *) { eval $ac_var=; unset $ac_var;} ;;
  5018. esac ;;
  5019. esac
  5020. done
  5021. (set) 2>&1 |
  5022. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5023. *${as_nl}ac_space=\ *)
  5024. # `set' does not quote correctly, so add quotes: double-quote
  5025. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5026. sed -n \
  5027. "s/'/'\\\\''/g;
  5028. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5029. ;; #(
  5030. *)
  5031. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5032. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5033. ;;
  5034. esac |
  5035. sort
  5036. ) |
  5037. sed '
  5038. /^ac_cv_env_/b end
  5039. t clear
  5040. :clear
  5041. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5042. t end
  5043. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5044. :end' >>confcache
  5045. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5046. if test -w "$cache_file"; then
  5047. if test "x$cache_file" != "x/dev/null"; then
  5048. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5049. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5050. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5051. cat confcache >"$cache_file"
  5052. else
  5053. case $cache_file in #(
  5054. */* | ?:*)
  5055. mv -f confcache "$cache_file"$$ &&
  5056. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5057. *)
  5058. mv -f confcache "$cache_file" ;;
  5059. esac
  5060. fi
  5061. fi
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5064. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5065. fi
  5066. fi
  5067. rm -f confcache
  5068. # Checks for system libraries
  5069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
  5070. $as_echo_n "checking for socket in -lsocket... " >&6; }
  5071. if ${ac_cv_lib_socket_socket+:} false; then :
  5072. $as_echo_n "(cached) " >&6
  5073. else
  5074. ac_check_lib_save_LIBS=$LIBS
  5075. LIBS="-lsocket $LIBS"
  5076. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5077. /* end build/confdefs.h. */
  5078. /* Override any GCC internal prototype to avoid an error.
  5079. Use char because int might match the return type of a GCC
  5080. builtin and then its argument prototype would still apply. */
  5081. #ifdef __cplusplus
  5082. extern "C"
  5083. #endif
  5084. char socket ();
  5085. int
  5086. main ()
  5087. {
  5088. return socket ();
  5089. ;
  5090. return 0;
  5091. }
  5092. _ACEOF
  5093. if ac_fn_cxx_try_link "$LINENO"; then :
  5094. ac_cv_lib_socket_socket=yes
  5095. else
  5096. ac_cv_lib_socket_socket=no
  5097. fi
  5098. rm -f core conftest.err conftest.$ac_objext \
  5099. conftest$ac_exeext conftest.$ac_ext
  5100. LIBS=$ac_check_lib_save_LIBS
  5101. fi
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
  5103. $as_echo "$ac_cv_lib_socket_socket" >&6; }
  5104. if test "x$ac_cv_lib_socket_socket" = xyes; then :
  5105. cat >>build/confdefs.h <<_ACEOF
  5106. #define HAVE_LIBSOCKET 1
  5107. _ACEOF
  5108. LIBS="-lsocket $LIBS"
  5109. fi
  5110. # AC_CHECK_LIB(nsl, connect)
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  5112. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  5113. if ${ac_cv_lib_dl_dlopen+:} false; then :
  5114. $as_echo_n "(cached) " >&6
  5115. else
  5116. ac_check_lib_save_LIBS=$LIBS
  5117. LIBS="-ldl $LIBS"
  5118. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5119. /* end build/confdefs.h. */
  5120. /* Override any GCC internal prototype to avoid an error.
  5121. Use char because int might match the return type of a GCC
  5122. builtin and then its argument prototype would still apply. */
  5123. #ifdef __cplusplus
  5124. extern "C"
  5125. #endif
  5126. char dlopen ();
  5127. int
  5128. main ()
  5129. {
  5130. return dlopen ();
  5131. ;
  5132. return 0;
  5133. }
  5134. _ACEOF
  5135. if ac_fn_cxx_try_link "$LINENO"; then :
  5136. ac_cv_lib_dl_dlopen=yes
  5137. else
  5138. ac_cv_lib_dl_dlopen=no
  5139. fi
  5140. rm -f core conftest.err conftest.$ac_objext \
  5141. conftest$ac_exeext conftest.$ac_ext
  5142. LIBS=$ac_check_lib_save_LIBS
  5143. fi
  5144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  5145. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  5146. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  5147. cat >>build/confdefs.h <<_ACEOF
  5148. #define HAVE_LIBDL 1
  5149. _ACEOF
  5150. LIBS="-ldl $LIBS"
  5151. fi
  5152. if test "$SUNOS" = "yes"; then
  5153. # For suns without yp
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
  5155. $as_echo_n "checking for main in -ldl... " >&6; }
  5156. if ${ac_cv_lib_dl_main+:} false; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. ac_check_lib_save_LIBS=$LIBS
  5160. LIBS="-ldl $LIBS"
  5161. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5162. /* end build/confdefs.h. */
  5163. int
  5164. main ()
  5165. {
  5166. return main ();
  5167. ;
  5168. return 0;
  5169. }
  5170. _ACEOF
  5171. if ac_fn_cxx_try_link "$LINENO"; then :
  5172. ac_cv_lib_dl_main=yes
  5173. else
  5174. ac_cv_lib_dl_main=no
  5175. fi
  5176. rm -f core conftest.err conftest.$ac_objext \
  5177. conftest$ac_exeext conftest.$ac_ext
  5178. LIBS=$ac_check_lib_save_LIBS
  5179. fi
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
  5181. $as_echo "$ac_cv_lib_dl_main" >&6; }
  5182. if test "x$ac_cv_lib_dl_main" = xyes; then :
  5183. cat >>build/confdefs.h <<_ACEOF
  5184. #define HAVE_LIBDL 1
  5185. _ACEOF
  5186. LIBS="-ldl $LIBS"
  5187. fi
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
  5189. $as_echo_n "checking for main in -lsocket... " >&6; }
  5190. if ${ac_cv_lib_socket_main+:} false; then :
  5191. $as_echo_n "(cached) " >&6
  5192. else
  5193. ac_check_lib_save_LIBS=$LIBS
  5194. LIBS="-lsocket $LIBS"
  5195. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5196. /* end build/confdefs.h. */
  5197. int
  5198. main ()
  5199. {
  5200. return main ();
  5201. ;
  5202. return 0;
  5203. }
  5204. _ACEOF
  5205. if ac_fn_cxx_try_link "$LINENO"; then :
  5206. ac_cv_lib_socket_main=yes
  5207. else
  5208. ac_cv_lib_socket_main=no
  5209. fi
  5210. rm -f core conftest.err conftest.$ac_objext \
  5211. conftest$ac_exeext conftest.$ac_ext
  5212. LIBS=$ac_check_lib_save_LIBS
  5213. fi
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
  5215. $as_echo "$ac_cv_lib_socket_main" >&6; }
  5216. if test "x$ac_cv_lib_socket_main" = xyes; then :
  5217. cat >>build/confdefs.h <<_ACEOF
  5218. #define HAVE_LIBSOCKET 1
  5219. _ACEOF
  5220. LIBS="-lsocket $LIBS"
  5221. fi
  5222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
  5223. $as_echo_n "checking for main in -lnsl... " >&6; }
  5224. if ${ac_cv_lib_nsl_main+:} false; then :
  5225. $as_echo_n "(cached) " >&6
  5226. else
  5227. ac_check_lib_save_LIBS=$LIBS
  5228. LIBS="-lnsl $LIBS"
  5229. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5230. /* end build/confdefs.h. */
  5231. int
  5232. main ()
  5233. {
  5234. return main ();
  5235. ;
  5236. return 0;
  5237. }
  5238. _ACEOF
  5239. if ac_fn_cxx_try_link "$LINENO"; then :
  5240. ac_cv_lib_nsl_main=yes
  5241. else
  5242. ac_cv_lib_nsl_main=no
  5243. fi
  5244. rm -f core conftest.err conftest.$ac_objext \
  5245. conftest$ac_exeext conftest.$ac_ext
  5246. LIBS=$ac_check_lib_save_LIBS
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
  5249. $as_echo "$ac_cv_lib_nsl_main" >&6; }
  5250. if test "x$ac_cv_lib_nsl_main" = xyes; then :
  5251. cat >>build/confdefs.h <<_ACEOF
  5252. #define HAVE_LIBNSL 1
  5253. _ACEOF
  5254. LIBS="-lnsl $LIBS"
  5255. fi
  5256. fi
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  5258. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  5259. if ${ac_cv_path_GREP+:} false; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -z "$GREP"; then
  5263. ac_path_GREP_found=false
  5264. # Loop through the user's path and test for each of PROGNAME-LIST
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_prog in grep ggrep; do
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5273. as_fn_executable_p "$ac_path_GREP" || continue
  5274. # Check for GNU ac_path_GREP and select it if it is found.
  5275. # Check for GNU $ac_path_GREP
  5276. case `"$ac_path_GREP" --version 2>&1` in
  5277. *GNU*)
  5278. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5279. *)
  5280. ac_count=0
  5281. $as_echo_n 0123456789 >"conftest.in"
  5282. while :
  5283. do
  5284. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5285. mv "conftest.tmp" "conftest.in"
  5286. cp "conftest.in" "conftest.nl"
  5287. $as_echo 'GREP' >> "conftest.nl"
  5288. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5289. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5290. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5291. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5292. # Best one so far, save it but keep looking for a better one
  5293. ac_cv_path_GREP="$ac_path_GREP"
  5294. ac_path_GREP_max=$ac_count
  5295. fi
  5296. # 10*(2^10) chars as input seems more than enough
  5297. test $ac_count -gt 10 && break
  5298. done
  5299. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5300. esac
  5301. $ac_path_GREP_found && break 3
  5302. done
  5303. done
  5304. done
  5305. IFS=$as_save_IFS
  5306. if test -z "$ac_cv_path_GREP"; then
  5307. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5308. fi
  5309. else
  5310. ac_cv_path_GREP=$GREP
  5311. fi
  5312. fi
  5313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  5314. $as_echo "$ac_cv_path_GREP" >&6; }
  5315. GREP="$ac_cv_path_GREP"
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  5317. $as_echo_n "checking for egrep... " >&6; }
  5318. if ${ac_cv_path_EGREP+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5322. then ac_cv_path_EGREP="$GREP -E"
  5323. else
  5324. if test -z "$EGREP"; then
  5325. ac_path_EGREP_found=false
  5326. # Loop through the user's path and test for each of PROGNAME-LIST
  5327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5328. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5329. do
  5330. IFS=$as_save_IFS
  5331. test -z "$as_dir" && as_dir=.
  5332. for ac_prog in egrep; do
  5333. for ac_exec_ext in '' $ac_executable_extensions; do
  5334. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5335. as_fn_executable_p "$ac_path_EGREP" || continue
  5336. # Check for GNU ac_path_EGREP and select it if it is found.
  5337. # Check for GNU $ac_path_EGREP
  5338. case `"$ac_path_EGREP" --version 2>&1` in
  5339. *GNU*)
  5340. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5341. *)
  5342. ac_count=0
  5343. $as_echo_n 0123456789 >"conftest.in"
  5344. while :
  5345. do
  5346. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5347. mv "conftest.tmp" "conftest.in"
  5348. cp "conftest.in" "conftest.nl"
  5349. $as_echo 'EGREP' >> "conftest.nl"
  5350. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5351. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5352. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5353. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5354. # Best one so far, save it but keep looking for a better one
  5355. ac_cv_path_EGREP="$ac_path_EGREP"
  5356. ac_path_EGREP_max=$ac_count
  5357. fi
  5358. # 10*(2^10) chars as input seems more than enough
  5359. test $ac_count -gt 10 && break
  5360. done
  5361. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5362. esac
  5363. $ac_path_EGREP_found && break 3
  5364. done
  5365. done
  5366. done
  5367. IFS=$as_save_IFS
  5368. if test -z "$ac_cv_path_EGREP"; then
  5369. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5370. fi
  5371. else
  5372. ac_cv_path_EGREP=$EGREP
  5373. fi
  5374. fi
  5375. fi
  5376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  5377. $as_echo "$ac_cv_path_EGREP" >&6; }
  5378. EGREP="$ac_cv_path_EGREP"
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5380. $as_echo_n "checking for ANSI C header files... " >&6; }
  5381. if ${ac_cv_header_stdc+:} false; then :
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5385. /* end build/confdefs.h. */
  5386. #include <stdlib.h>
  5387. #include <stdarg.h>
  5388. #include <string.h>
  5389. #include <float.h>
  5390. int
  5391. main ()
  5392. {
  5393. ;
  5394. return 0;
  5395. }
  5396. _ACEOF
  5397. if ac_fn_cxx_try_compile "$LINENO"; then :
  5398. ac_cv_header_stdc=yes
  5399. else
  5400. ac_cv_header_stdc=no
  5401. fi
  5402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5403. if test $ac_cv_header_stdc = yes; then
  5404. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5405. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5406. /* end build/confdefs.h. */
  5407. #include <string.h>
  5408. _ACEOF
  5409. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5410. $EGREP "memchr" >/dev/null 2>&1; then :
  5411. else
  5412. ac_cv_header_stdc=no
  5413. fi
  5414. rm -f conftest*
  5415. fi
  5416. if test $ac_cv_header_stdc = yes; then
  5417. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5418. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5419. /* end build/confdefs.h. */
  5420. #include <stdlib.h>
  5421. _ACEOF
  5422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5423. $EGREP "free" >/dev/null 2>&1; then :
  5424. else
  5425. ac_cv_header_stdc=no
  5426. fi
  5427. rm -f conftest*
  5428. fi
  5429. if test $ac_cv_header_stdc = yes; then
  5430. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5431. if test "$cross_compiling" = yes; then :
  5432. :
  5433. else
  5434. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5435. /* end build/confdefs.h. */
  5436. #include <ctype.h>
  5437. #include <stdlib.h>
  5438. #if ((' ' & 0x0FF) == 0x020)
  5439. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5440. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5441. #else
  5442. # define ISLOWER(c) \
  5443. (('a' <= (c) && (c) <= 'i') \
  5444. || ('j' <= (c) && (c) <= 'r') \
  5445. || ('s' <= (c) && (c) <= 'z'))
  5446. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5447. #endif
  5448. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5449. int
  5450. main ()
  5451. {
  5452. int i;
  5453. for (i = 0; i < 256; i++)
  5454. if (XOR (islower (i), ISLOWER (i))
  5455. || toupper (i) != TOUPPER (i))
  5456. return 2;
  5457. return 0;
  5458. }
  5459. _ACEOF
  5460. if ac_fn_cxx_try_run "$LINENO"; then :
  5461. else
  5462. ac_cv_header_stdc=no
  5463. fi
  5464. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5465. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5466. fi
  5467. fi
  5468. fi
  5469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5470. $as_echo "$ac_cv_header_stdc" >&6; }
  5471. if test $ac_cv_header_stdc = yes; then
  5472. $as_echo "#define STDC_HEADERS 1" >>build/confdefs.h
  5473. fi
  5474. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5475. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5476. inttypes.h stdint.h unistd.h
  5477. do :
  5478. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5479. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  5480. "
  5481. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5482. cat >>build/confdefs.h <<_ACEOF
  5483. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5484. _ACEOF
  5485. fi
  5486. done
  5487. LIBELF_DIR="lib/libelf/lib"
  5488. LIBELF_LIB="\$(top_builddir)/${LIBELF_DIR}/libelf.a"
  5489. LIBELF_BUNDLED="${LIBELF_LIB}"
  5490. LIBELF_INCLUDE="-I\$(top_srcdir)/${LIBELF_DIR}"
  5491. for ac_header in gelf.h libelf.h
  5492. do :
  5493. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5494. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5495. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5496. cat >>build/confdefs.h <<_ACEOF
  5497. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5498. _ACEOF
  5499. ac_fn_cxx_check_type "$LINENO" "Elf_Note" "ac_cv_type_Elf_Note" "
  5500. #include \"gelf.h\"
  5501. #include \"libelf.h\"
  5502. "
  5503. if test "x$ac_cv_type_Elf_Note" = xyes; then :
  5504. cat >>build/confdefs.h <<_ACEOF
  5505. #define HAVE_ELF_NOTE 1
  5506. _ACEOF
  5507. $as_echo "#define HAVE_GELF_H 1" >>build/confdefs.h
  5508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gelf_getehdr in -lelf" >&5
  5509. $as_echo_n "checking for gelf_getehdr in -lelf... " >&6; }
  5510. if ${ac_cv_lib_elf_gelf_getehdr+:} false; then :
  5511. $as_echo_n "(cached) " >&6
  5512. else
  5513. ac_check_lib_save_LIBS=$LIBS
  5514. LIBS="-lelf $LIBS"
  5515. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5516. /* end build/confdefs.h. */
  5517. /* Override any GCC internal prototype to avoid an error.
  5518. Use char because int might match the return type of a GCC
  5519. builtin and then its argument prototype would still apply. */
  5520. #ifdef __cplusplus
  5521. extern "C"
  5522. #endif
  5523. char gelf_getehdr ();
  5524. int
  5525. main ()
  5526. {
  5527. return gelf_getehdr ();
  5528. ;
  5529. return 0;
  5530. }
  5531. _ACEOF
  5532. if ac_fn_cxx_try_link "$LINENO"; then :
  5533. ac_cv_lib_elf_gelf_getehdr=yes
  5534. else
  5535. ac_cv_lib_elf_gelf_getehdr=no
  5536. fi
  5537. rm -f core conftest.err conftest.$ac_objext \
  5538. conftest$ac_exeext conftest.$ac_ext
  5539. LIBS=$ac_check_lib_save_LIBS
  5540. fi
  5541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_gelf_getehdr" >&5
  5542. $as_echo "$ac_cv_lib_elf_gelf_getehdr" >&6; }
  5543. if test "x$ac_cv_lib_elf_gelf_getehdr" = xyes; then :
  5544. $as_echo "#define HAVE_LIBELF 1" >>build/confdefs.h
  5545. LIBELF_LIB="-Wl,-Bstatic -lelf -Wl,-Bdynamic"
  5546. LIBELF_BUNDLED=
  5547. LIBELF_INCLUDE=
  5548. fi
  5549. fi
  5550. fi
  5551. done
  5552. CPPFLAGS="${CPPFLAGS} ${LIBELF_INCLUDE}"
  5553. # Checks for header files
  5554. ac_header_dirent=no
  5555. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5556. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5558. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5559. if eval \${$as_ac_Header+:} false; then :
  5560. $as_echo_n "(cached) " >&6
  5561. else
  5562. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5563. /* end build/confdefs.h. */
  5564. #include <sys/types.h>
  5565. #include <$ac_hdr>
  5566. int
  5567. main ()
  5568. {
  5569. if ((DIR *) 0)
  5570. return 0;
  5571. ;
  5572. return 0;
  5573. }
  5574. _ACEOF
  5575. if ac_fn_cxx_try_compile "$LINENO"; then :
  5576. eval "$as_ac_Header=yes"
  5577. else
  5578. eval "$as_ac_Header=no"
  5579. fi
  5580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5581. fi
  5582. eval ac_res=\$$as_ac_Header
  5583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5584. $as_echo "$ac_res" >&6; }
  5585. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5586. cat >>build/confdefs.h <<_ACEOF
  5587. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5588. _ACEOF
  5589. ac_header_dirent=$ac_hdr; break
  5590. fi
  5591. done
  5592. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5593. if test $ac_header_dirent = dirent.h; then
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5595. $as_echo_n "checking for library containing opendir... " >&6; }
  5596. if ${ac_cv_search_opendir+:} false; then :
  5597. $as_echo_n "(cached) " >&6
  5598. else
  5599. ac_func_search_save_LIBS=$LIBS
  5600. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5601. /* end build/confdefs.h. */
  5602. /* Override any GCC internal prototype to avoid an error.
  5603. Use char because int might match the return type of a GCC
  5604. builtin and then its argument prototype would still apply. */
  5605. #ifdef __cplusplus
  5606. extern "C"
  5607. #endif
  5608. char opendir ();
  5609. int
  5610. main ()
  5611. {
  5612. return opendir ();
  5613. ;
  5614. return 0;
  5615. }
  5616. _ACEOF
  5617. for ac_lib in '' dir; do
  5618. if test -z "$ac_lib"; then
  5619. ac_res="none required"
  5620. else
  5621. ac_res=-l$ac_lib
  5622. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5623. fi
  5624. if ac_fn_cxx_try_link "$LINENO"; then :
  5625. ac_cv_search_opendir=$ac_res
  5626. fi
  5627. rm -f core conftest.err conftest.$ac_objext \
  5628. conftest$ac_exeext
  5629. if ${ac_cv_search_opendir+:} false; then :
  5630. break
  5631. fi
  5632. done
  5633. if ${ac_cv_search_opendir+:} false; then :
  5634. else
  5635. ac_cv_search_opendir=no
  5636. fi
  5637. rm conftest.$ac_ext
  5638. LIBS=$ac_func_search_save_LIBS
  5639. fi
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5641. $as_echo "$ac_cv_search_opendir" >&6; }
  5642. ac_res=$ac_cv_search_opendir
  5643. if test "$ac_res" != no; then :
  5644. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5645. fi
  5646. else
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5648. $as_echo_n "checking for library containing opendir... " >&6; }
  5649. if ${ac_cv_search_opendir+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. ac_func_search_save_LIBS=$LIBS
  5653. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5654. /* end build/confdefs.h. */
  5655. /* Override any GCC internal prototype to avoid an error.
  5656. Use char because int might match the return type of a GCC
  5657. builtin and then its argument prototype would still apply. */
  5658. #ifdef __cplusplus
  5659. extern "C"
  5660. #endif
  5661. char opendir ();
  5662. int
  5663. main ()
  5664. {
  5665. return opendir ();
  5666. ;
  5667. return 0;
  5668. }
  5669. _ACEOF
  5670. for ac_lib in '' x; do
  5671. if test -z "$ac_lib"; then
  5672. ac_res="none required"
  5673. else
  5674. ac_res=-l$ac_lib
  5675. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5676. fi
  5677. if ac_fn_cxx_try_link "$LINENO"; then :
  5678. ac_cv_search_opendir=$ac_res
  5679. fi
  5680. rm -f core conftest.err conftest.$ac_objext \
  5681. conftest$ac_exeext
  5682. if ${ac_cv_search_opendir+:} false; then :
  5683. break
  5684. fi
  5685. done
  5686. if ${ac_cv_search_opendir+:} false; then :
  5687. else
  5688. ac_cv_search_opendir=no
  5689. fi
  5690. rm conftest.$ac_ext
  5691. LIBS=$ac_func_search_save_LIBS
  5692. fi
  5693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5694. $as_echo "$ac_cv_search_opendir" >&6; }
  5695. ac_res=$ac_cv_search_opendir
  5696. if test "$ac_res" != no; then :
  5697. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5698. fi
  5699. fi
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5701. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  5702. if ${ac_cv_header_sys_wait_h+:} false; then :
  5703. $as_echo_n "(cached) " >&6
  5704. else
  5705. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5706. /* end build/confdefs.h. */
  5707. #include <sys/types.h>
  5708. #include <sys/wait.h>
  5709. #ifndef WEXITSTATUS
  5710. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  5711. #endif
  5712. #ifndef WIFEXITED
  5713. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5714. #endif
  5715. int
  5716. main ()
  5717. {
  5718. int s;
  5719. wait (&s);
  5720. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5721. ;
  5722. return 0;
  5723. }
  5724. _ACEOF
  5725. if ac_fn_cxx_try_compile "$LINENO"; then :
  5726. ac_cv_header_sys_wait_h=yes
  5727. else
  5728. ac_cv_header_sys_wait_h=no
  5729. fi
  5730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5731. fi
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  5733. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  5734. if test $ac_cv_header_sys_wait_h = yes; then
  5735. $as_echo "#define HAVE_SYS_WAIT_H 1" >>build/confdefs.h
  5736. fi
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  5738. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  5739. if ${ac_cv_header_time+:} false; then :
  5740. $as_echo_n "(cached) " >&6
  5741. else
  5742. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5743. /* end build/confdefs.h. */
  5744. #include <sys/types.h>
  5745. #include <sys/time.h>
  5746. #include <time.h>
  5747. int
  5748. main ()
  5749. {
  5750. if ((struct tm *) 0)
  5751. return 0;
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. if ac_fn_cxx_try_compile "$LINENO"; then :
  5757. ac_cv_header_time=yes
  5758. else
  5759. ac_cv_header_time=no
  5760. fi
  5761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5762. fi
  5763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  5764. $as_echo "$ac_cv_header_time" >&6; }
  5765. if test $ac_cv_header_time = yes; then
  5766. $as_echo "#define TIME_WITH_SYS_TIME 1" >>build/confdefs.h
  5767. fi
  5768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
  5769. $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
  5770. if ${ac_cv_header_stat_broken+:} false; then :
  5771. $as_echo_n "(cached) " >&6
  5772. else
  5773. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  5774. /* end build/confdefs.h. */
  5775. #include <sys/types.h>
  5776. #include <sys/stat.h>
  5777. #if defined S_ISBLK && defined S_IFDIR
  5778. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  5779. #endif
  5780. #if defined S_ISBLK && defined S_IFCHR
  5781. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  5782. #endif
  5783. #if defined S_ISLNK && defined S_IFREG
  5784. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  5785. #endif
  5786. #if defined S_ISSOCK && defined S_IFREG
  5787. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  5788. #endif
  5789. _ACEOF
  5790. if ac_fn_cxx_try_compile "$LINENO"; then :
  5791. ac_cv_header_stat_broken=no
  5792. else
  5793. ac_cv_header_stat_broken=yes
  5794. fi
  5795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5796. fi
  5797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
  5798. $as_echo "$ac_cv_header_stat_broken" >&6; }
  5799. if test $ac_cv_header_stat_broken = yes; then
  5800. $as_echo "#define STAT_MACROS_BROKEN 1" >>build/confdefs.h
  5801. fi
  5802. #checkpoint
  5803. cat >confcache <<\_ACEOF
  5804. # This file is a shell script that caches the results of configure
  5805. # tests run on this system so they can be shared between configure
  5806. # scripts and configure runs, see configure's option --config-cache.
  5807. # It is not useful on other systems. If it contains results you don't
  5808. # want to keep, you may remove or edit it.
  5809. #
  5810. # build/config.status only pays attention to the cache file if you give it
  5811. # the --recheck option to rerun configure.
  5812. #
  5813. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5814. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5815. # following values.
  5816. _ACEOF
  5817. # The following way of writing the cache mishandles newlines in values,
  5818. # but we know of no workaround that is simple, portable, and efficient.
  5819. # So, we kill variables containing newlines.
  5820. # Ultrix sh set writes to stderr and can't be redirected directly,
  5821. # and sets the high bit in the cache file unless we assign to the vars.
  5822. (
  5823. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5824. eval ac_val=\$$ac_var
  5825. case $ac_val in #(
  5826. *${as_nl}*)
  5827. case $ac_var in #(
  5828. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5829. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5830. esac
  5831. case $ac_var in #(
  5832. _ | IFS | as_nl) ;; #(
  5833. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5834. *) { eval $ac_var=; unset $ac_var;} ;;
  5835. esac ;;
  5836. esac
  5837. done
  5838. (set) 2>&1 |
  5839. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5840. *${as_nl}ac_space=\ *)
  5841. # `set' does not quote correctly, so add quotes: double-quote
  5842. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5843. sed -n \
  5844. "s/'/'\\\\''/g;
  5845. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5846. ;; #(
  5847. *)
  5848. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5849. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5850. ;;
  5851. esac |
  5852. sort
  5853. ) |
  5854. sed '
  5855. /^ac_cv_env_/b end
  5856. t clear
  5857. :clear
  5858. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5859. t end
  5860. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5861. :end' >>confcache
  5862. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5863. if test -w "$cache_file"; then
  5864. if test "x$cache_file" != "x/dev/null"; then
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5866. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5867. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5868. cat confcache >"$cache_file"
  5869. else
  5870. case $cache_file in #(
  5871. */* | ?:*)
  5872. mv -f confcache "$cache_file"$$ &&
  5873. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5874. *)
  5875. mv -f confcache "$cache_file" ;;
  5876. esac
  5877. fi
  5878. fi
  5879. else
  5880. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5881. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5882. fi
  5883. fi
  5884. rm -f confcache
  5885. for ac_header in stdarg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5886. do :
  5887. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5888. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5889. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5890. cat >>build/confdefs.h <<_ACEOF
  5891. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5892. _ACEOF
  5893. fi
  5894. done
  5895. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5896. do :
  5897. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5898. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5899. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5900. cat >>build/confdefs.h <<_ACEOF
  5901. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5902. _ACEOF
  5903. fi
  5904. done
  5905. for ac_header in sys/ptrace.h paths.h sys/prctl.h sys/procctl.h
  5906. do :
  5907. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5908. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  5909. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  5910. cat >>build/confdefs.h <<_ACEOF
  5911. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5912. _ACEOF
  5913. fi
  5914. done
  5915. #checkpoint
  5916. cat >confcache <<\_ACEOF
  5917. # This file is a shell script that caches the results of configure
  5918. # tests run on this system so they can be shared between configure
  5919. # scripts and configure runs, see configure's option --config-cache.
  5920. # It is not useful on other systems. If it contains results you don't
  5921. # want to keep, you may remove or edit it.
  5922. #
  5923. # build/config.status only pays attention to the cache file if you give it
  5924. # the --recheck option to rerun configure.
  5925. #
  5926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5928. # following values.
  5929. _ACEOF
  5930. # The following way of writing the cache mishandles newlines in values,
  5931. # but we know of no workaround that is simple, portable, and efficient.
  5932. # So, we kill variables containing newlines.
  5933. # Ultrix sh set writes to stderr and can't be redirected directly,
  5934. # and sets the high bit in the cache file unless we assign to the vars.
  5935. (
  5936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5937. eval ac_val=\$$ac_var
  5938. case $ac_val in #(
  5939. *${as_nl}*)
  5940. case $ac_var in #(
  5941. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  5942. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  5943. esac
  5944. case $ac_var in #(
  5945. _ | IFS | as_nl) ;; #(
  5946. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  5947. *) { eval $ac_var=; unset $ac_var;} ;;
  5948. esac ;;
  5949. esac
  5950. done
  5951. (set) 2>&1 |
  5952. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5953. *${as_nl}ac_space=\ *)
  5954. # `set' does not quote correctly, so add quotes: double-quote
  5955. # substitution turns \\\\ into \\, and sed turns \\ into \.
  5956. sed -n \
  5957. "s/'/'\\\\''/g;
  5958. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5959. ;; #(
  5960. *)
  5961. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5962. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5963. ;;
  5964. esac |
  5965. sort
  5966. ) |
  5967. sed '
  5968. /^ac_cv_env_/b end
  5969. t clear
  5970. :clear
  5971. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5972. t end
  5973. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5974. :end' >>confcache
  5975. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5976. if test -w "$cache_file"; then
  5977. if test "x$cache_file" != "x/dev/null"; then
  5978. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  5979. $as_echo "$as_me: updating cache $cache_file" >&6;}
  5980. if test ! -f "$cache_file" || test -h "$cache_file"; then
  5981. cat confcache >"$cache_file"
  5982. else
  5983. case $cache_file in #(
  5984. */* | ?:*)
  5985. mv -f confcache "$cache_file"$$ &&
  5986. mv -f "$cache_file"$$ "$cache_file" ;; #(
  5987. *)
  5988. mv -f confcache "$cache_file" ;;
  5989. esac
  5990. fi
  5991. fi
  5992. else
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  5994. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5995. fi
  5996. fi
  5997. rm -f confcache
  5998. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5999. #AC_CHECK_HEADERS(zlib.h)
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path to OpenSSL" >&5
  6001. $as_echo_n "checking for path to OpenSSL... " >&6; }
  6002. # Check whether --with-openssl was given.
  6003. if test "${with_openssl+set}" = set; then :
  6004. withval=$with_openssl; with_openssl_path=$withval
  6005. else
  6006. with_openssl_path=auto
  6007. fi
  6008. cf_openssl_basedir=""
  6009. if test "$with_openssl_path" != "auto"; then
  6010. cf_openssl_basedir="`echo ${with_openssl_path} | sed 's/\/$//'`"
  6011. else
  6012. for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/local/openssl; do
  6013. if test -f "${dirs}/include/openssl/opensslv.h" && test -f "${dirs}/lib/libssl.so"; then
  6014. cf_openssl_basedir="${dirs}"
  6015. break
  6016. fi
  6017. done
  6018. unset dirs
  6019. fi
  6020. if test ! -z "$cf_openssl_basedir"; then
  6021. if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" && test -f "${cf_openssl_basedir}/lib/libssl.so"; then
  6022. SSL_INCLUDES="-I${cf_openssl_basedir}/include"
  6023. SSL_LIBS="-L${cf_openssl_basedir}/lib"
  6024. else
  6025. cf_openssl_basedir=""
  6026. fi
  6027. else
  6028. if test -f "/usr/include/openssl/opensslv.h" ; then
  6029. cf_openssl_basedir="/usr"
  6030. fi
  6031. fi
  6032. if test ! -z "$cf_openssl_basedir"; then
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
  6034. $as_echo "$cf_openssl_basedir" >&6; }
  6035. else
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6037. $as_echo "not found" >&6; }
  6038. as_fn_error 1 "OpenSSL is required." "$LINENO" 5
  6039. fi
  6040. unset cf_openssl_basedir
  6041. save_CXX="$CXX"
  6042. CXX="$CXX $SSL_INCLUDES"
  6043. save_LIBS="$LIBS"
  6044. LIBS="$LIBS $SSL_LIBS"
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
  6046. $as_echo_n "checking for OpenSSL version... " >&6; }
  6047. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6048. /* end build/confdefs.h. */
  6049. #include <openssl/opensslv.h>
  6050. int
  6051. main ()
  6052. {
  6053. #if !defined(OPENSSL_VERSION_NUMBER)
  6054. #error "Missing openssl version"
  6055. #endif
  6056. #if (OPENSSL_VERSION_NUMBER < 0x0090800f)
  6057. #error "Old/Insecure OpenSSL version " OPENSSL_VERSION_TEXT
  6058. #endif
  6059. ;
  6060. return 0;
  6061. }
  6062. _ACEOF
  6063. if ac_fn_cxx_try_compile "$LINENO"; then :
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  6065. $as_echo "OK" >&6; }
  6066. else
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old." >&5
  6068. $as_echo "too old." >&6; }
  6069. as_fn_error 1 "OpenSSL version is too old. Must be 0.9.8f+" "$LINENO" 5
  6070. fi
  6071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6072. CXX="$CXX $SSL_LIBS"
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AES_encrypt in -lcrypto" >&5
  6074. $as_echo_n "checking for AES_encrypt in -lcrypto... " >&6; }
  6075. if ${ac_cv_lib_crypto_AES_encrypt+:} false; then :
  6076. $as_echo_n "(cached) " >&6
  6077. else
  6078. ac_check_lib_save_LIBS=$LIBS
  6079. LIBS="-lcrypto $LIBS"
  6080. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6081. /* end build/confdefs.h. */
  6082. /* Override any GCC internal prototype to avoid an error.
  6083. Use char because int might match the return type of a GCC
  6084. builtin and then its argument prototype would still apply. */
  6085. #ifdef __cplusplus
  6086. extern "C"
  6087. #endif
  6088. char AES_encrypt ();
  6089. int
  6090. main ()
  6091. {
  6092. return AES_encrypt ();
  6093. ;
  6094. return 0;
  6095. }
  6096. _ACEOF
  6097. if ac_fn_cxx_try_link "$LINENO"; then :
  6098. ac_cv_lib_crypto_AES_encrypt=yes
  6099. else
  6100. ac_cv_lib_crypto_AES_encrypt=no
  6101. fi
  6102. rm -f core conftest.err conftest.$ac_objext \
  6103. conftest$ac_exeext conftest.$ac_ext
  6104. LIBS=$ac_check_lib_save_LIBS
  6105. fi
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_AES_encrypt" >&5
  6107. $as_echo "$ac_cv_lib_crypto_AES_encrypt" >&6; }
  6108. if test "x$ac_cv_lib_crypto_AES_encrypt" = xyes; then :
  6109. if test "$USE_STATIC" = "yes"; then
  6110. SSL_LIBS="$SSL_LIBS -Wl,-Bstatic -lcrypto -Wl,-Bdynamic"
  6111. else
  6112. SSL_LIBS="$SSL_LIBS -lcrypto"
  6113. fi
  6114. else
  6115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found." >&5
  6116. $as_echo "not found." >&6; }
  6117. as_fn_error 1 "Libcrypto/openssl is required." "$LINENO" 5
  6118. fi
  6119. CXX="$save_CXX"
  6120. LIBS="$save_LIBS"
  6121. cat >>build/confdefs.h <<_ACEOF
  6122. #define EGG_SSL_EXT 1
  6123. _ACEOF
  6124. # TCL checks
  6125. # Tcl version to recommend if no Tcl is found, and the site where it can be
  6126. # found for download.
  6127. tclrecommendver="8.5.X"
  6128. tclrecommendsite="ftp://tcl.activestate.com/pub/tcl/tcl8_5/"
  6129. # Tcl library filename prefixes, suffixes, and search paths.
  6130. tcllibnames="tcl8.6 tcl86 tcl8.5 tcl85 tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 \
  6131. tcl8.1 tcl81 tcl8.0 tcl80 tcl tcl7.6 tcl76 tcl7.5 tcl75 \
  6132. tcl7.4 tcl74 tcl7.3 tcl73 tcl7.2 tcl72 tcl7.1 tcl71 \
  6133. tcl7.0 tcl70"
  6134. tcllibextensions=".so .so.1 .so.1.0 .so.1.1 .so.1.2 .dll .dylib .sl .a"
  6135. tcllibpaths="$HOME/lib $HOME/tcl/lib \
  6136. /usr/local/lib /usr/lib /lib /lib64 /usr/lib64 \
  6137. /usr/local/lib/tcl8.6 /usr/lib/tcl8.6 \
  6138. /usr/local/lib/tcl8.5 /usr/lib/tcl8.5 \
  6139. /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 \
  6140. /usr/local/lib/tcl8.3 /usr/lib/tcl8.3 \
  6141. /usr/local/pkgs/tcl/lib /sys/lib /usr/pkg/lib \
  6142. /usr/i486-linuxaout/lib /beos/system/lib $HOME"
  6143. # Tcl header filenames and search paths.
  6144. tclheadernames="tcl.h"
  6145. tclheaderpaths="$HOME/include $HOME/tcl/include \
  6146. /usr/local/include /usr/include \
  6147. /usr/local/include/tcl8.6 /usr/include/tcl8.6 \
  6148. /usr/local/include/tcl8.5 /usr/include/tcl8.5 \
  6149. /usr/local/include/tcl8.4 /usr/include/tcl8.4 \
  6150. /usr/local/include/tcl8.3 /usr/include/tcl8.3 \
  6151. /usr/local/pkgs/tcl/include /sys/include \
  6152. /usr/pkg/lib /beos/system/include /beos/devel/include $HOME"
  6153. # Misc Tcl checks.
  6154. # Check whether --with-tcllib was given.
  6155. if test "${with_tcllib+set}" = set; then :
  6156. withval=$with_tcllib; tcllibname="$withval"
  6157. fi
  6158. # Check whether --with-tclinc was given.
  6159. if test "${with_tclinc+set}" = set; then :
  6160. withval=$with_tclinc; tclincname="$withval"
  6161. fi
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TCL Script is enabled" >&5
  6163. $as_echo_n "checking whether TCL Script is enabled... " >&6; }
  6164. # Check whether --enable-script-tcl was given.
  6165. if test "${enable_script_tcl+set}" = set; then :
  6166. enableval=$enable_script_tcl;
  6167. enable_script_tcl=$enableval
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6169. $as_echo "$enableval" >&6; }
  6170. else
  6171. # default if not given is ENABLED
  6172. if test "x$enableval" = "x"; then
  6173. enableval="yes"
  6174. fi
  6175. enable_script_tcl=$enableval
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
  6177. $as_echo "$enableval" >&6; }
  6178. $as_echo "#define USE_SCRIPT_TCL 1" >>build/confdefs.h
  6179. fi
  6180. WARN=0
  6181. # Make sure either both or neither $tcllibname and $tclincname are set
  6182. if test "x$tcllibname" != x; then
  6183. if test "x$tclincname" = x; then
  6184. WARN=1
  6185. tcllibname=""
  6186. TCLLIB=""
  6187. TCLINC=""
  6188. fi
  6189. else
  6190. if test "x$tclincname" != x; then
  6191. WARN=1
  6192. tclincname=""
  6193. TCLLIB=""
  6194. TCLINC=""
  6195. fi
  6196. fi
  6197. if test "$WARN" = 1; then
  6198. cat << 'EOF' >&2
  6199. configure: WARNING:
  6200. You must specify both --with-tcllib and --with-tclinc for either to work.
  6201. configure will now attempt to autodetect both the Tcl library and header.
  6202. EOF
  6203. fi
  6204. WARN=0
  6205. # Make sure either both or neither $TCLLIB and $TCLINC are set
  6206. if test "x$TCLLIB" != x; then
  6207. if test "x$TCLINC" = x; then
  6208. WARN=1
  6209. WVAR1=TCLLIB
  6210. WVAR2=TCLINC
  6211. TCLLIB=""
  6212. fi
  6213. else
  6214. if test "x$TCLINC" != x; then
  6215. WARN=1
  6216. WVAR1=TCLINC
  6217. WVAR2=TCLLIB
  6218. TCLINC=""
  6219. fi
  6220. fi
  6221. if test "$WARN" = 1; then
  6222. cat << EOF >&2
  6223. configure: WARNING:
  6224. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  6225. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6226. configure will now attempt to autodetect both the Tcl library and header.
  6227. EOF
  6228. fi
  6229. # Look for Tcl library: if $tcllibname is set, check there first
  6230. if test "x$tcllibname" != x; then
  6231. if test -f "$tcllibname" && test -r "$tcllibname"; then
  6232. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  6233. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  6234. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  6235. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  6236. else
  6237. cat << EOF >&2
  6238. configure: WARNING:
  6239. The file '$tcllibname' given to option --with-tcllib is not valid.
  6240. configure will now attempt to autodetect both the Tcl library and header.
  6241. EOF
  6242. tcllibname=""
  6243. tclincname=""
  6244. TCLLIB=""
  6245. TCLLIBFN=""
  6246. TCLINC=""
  6247. TCLINCFN=""
  6248. fi
  6249. fi
  6250. # Look for Tcl header: if $tclincname is set, check there first
  6251. if test "x$tclincname" != x; then
  6252. if test -f "$tclincname" && test -r "$tclincname"; then
  6253. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  6254. TCLINCFN=`$BASENAME $tclincname`
  6255. else
  6256. cat << EOF >&2
  6257. configure: WARNING:
  6258. The file '$tclincname' given to option --with-tclinc is not valid.
  6259. configure will now attempt to autodetect both the Tcl library and header.
  6260. EOF
  6261. tcllibname=""
  6262. tclincname=""
  6263. TCLLIB=""
  6264. TCLLIBFN=""
  6265. TCLINC=""
  6266. TCLINCFN=""
  6267. fi
  6268. fi
  6269. # Look for Tcl library: if $TCLLIB is set, check there first
  6270. if test "x$TCLLIBFN" = x && test "x$TCLLIB" != x; then
  6271. if test -d "$TCLLIB"; then
  6272. for tcllibfns in $tcllibnames; do
  6273. for tcllibext in $tcllibextensions; do
  6274. if test -r "${TCLLIB}/lib${tcllibfns}${tcllibext}"; then
  6275. TCLLIBFN="${tcllibfns}${tcllibext}"
  6276. TCLLIBEXT="$tcllibext"
  6277. TCLLIBFNS="$tcllibfns"
  6278. break 2
  6279. fi
  6280. done
  6281. done
  6282. fi
  6283. if test "x$TCLLIBFN" = x; then
  6284. cat << 'EOF' >&2
  6285. configure: WARNING:
  6286. Environment variable TCLLIB was set, but incorrectly.
  6287. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6288. configure will now attempt to autodetect both the Tcl library and header.
  6289. EOF
  6290. TCLLIB=""
  6291. TCLLIBFN=""
  6292. TCLINC=""
  6293. TCLINCFN=""
  6294. fi
  6295. fi
  6296. # Look for Tcl header: if $TCLINC is set, check there first
  6297. if test "x$TCLINCFN" = x && test "x$TCLINC" != x; then
  6298. if test -d "$TCLINC"; then
  6299. for tclheaderfn in $tclheadernames; do
  6300. if test -r "${TCLINC}/${tclheaderfn}"; then
  6301. TCLINCFN="$tclheaderfn"
  6302. break
  6303. fi
  6304. done
  6305. fi
  6306. if test "x$TCLINCFN" = x; then
  6307. cat << 'EOF' >&2
  6308. configure: WARNING:
  6309. Environment variable TCLINC was set, but incorrectly.
  6310. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  6311. configure will now attempt to autodetect both the Tcl library and header.
  6312. EOF
  6313. TCLLIB=""
  6314. TCLLIBFN=""
  6315. TCLINC=""
  6316. TCLINCFN=""
  6317. fi
  6318. fi
  6319. if test "$enable_script_tcl" = "yes"; then
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library" >&5
  6321. $as_echo_n "checking for Tcl library... " >&6; }
  6322. # Attempt autodetect for $TCLLIBFN if it's not set
  6323. if test "x$TCLLIBFN" != x; then
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLLIB}/lib${TCLLIBFN}" >&5
  6325. $as_echo "using ${TCLLIB}/lib${TCLLIBFN}" >&6; }
  6326. else
  6327. for tcllibfns in $tcllibnames; do
  6328. for tcllibext in $tcllibextensions; do
  6329. for tcllibpath in $tcllibpaths; do
  6330. if test -r "${tcllibpath}/lib${tcllibfns}${tcllibext}"; then
  6331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&5
  6332. $as_echo "found ${tcllibpath}/lib${tcllibfns}${tcllibext}" >&6; }
  6333. TCLLIB="$tcllibpath"
  6334. TCLLIBFN="${tcllibfns}${tcllibext}"
  6335. TCLLIBEXT="$tcllibext"
  6336. TCLLIBFNS="$tcllibfns"
  6337. break 3
  6338. fi
  6339. done
  6340. done
  6341. done
  6342. fi
  6343. # Show if $TCLLIBFN wasn't found
  6344. if test "x$TCLLIBFN" = x; then
  6345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6346. $as_echo "not found" >&6; }
  6347. fi
  6348. fi
  6349. if test "$enable_script_tcl" = "yes"; then
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl header" >&5
  6351. $as_echo_n "checking for Tcl header... " >&6; }
  6352. # Attempt autodetect for $TCLINCFN if it's not set
  6353. if test "x$TCLINCFN" != x; then
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using ${TCLINC}/${TCLINCFN}" >&5
  6355. $as_echo "using ${TCLINC}/${TCLINCFN}" >&6; }
  6356. else
  6357. for tclheaderpath in $tclheaderpaths; do
  6358. for tclheaderfn in $tclheadernames; do
  6359. if test -r "${tclheaderpath}/${tclheaderfn}"; then
  6360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tclheaderfn}" >&5
  6361. $as_echo "found ${tclheaderpath}/${tclheaderfn}" >&6; }
  6362. TCLINC="$tclheaderpath"
  6363. TCLINCFN="$tclheaderfn"
  6364. break 2
  6365. fi
  6366. done
  6367. done
  6368. # FreeBSD hack ...
  6369. if test "x$TCLINCFN" = x; then
  6370. for tcllibfns in $tcllibnames; do
  6371. for tclheaderpath in $tclheaderpaths; do
  6372. for tclheaderfn in $tclheadernames; do
  6373. if test -r "${tclheaderpath}/${tcllibfns}/${tclheaderfn}"; then
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&5
  6375. $as_echo "found ${tclheaderpath}/${tcllibfns}/${tclheaderfn}" >&6; }
  6376. TCLINC="${tclheaderpath}/${tcllibfns}"
  6377. TCLINCFN="$tclheaderfn"
  6378. break 3
  6379. fi
  6380. done
  6381. done
  6382. done
  6383. fi
  6384. fi
  6385. TCL_INCLUDES=""
  6386. if ! test "x$TCLINC" = x; then
  6387. TCL_INCLUDES="-I$TCLINC"
  6388. fi
  6389. if test "x$TCLINCFN" = x; then
  6390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6391. $as_echo "not found" >&6; }
  6392. fi
  6393. fi
  6394. if test "$enable_script_tcl" = "yes"; then
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Tcl system has changed" >&5
  6396. $as_echo_n "checking whether the Tcl system has changed... " >&6; }
  6397. egg_tcl_changed="yes"
  6398. egg_tcl_id="${TCLLIB}:${TCLLIBFN}:${TCLINC}:${TCLINCFN}"
  6399. if test "$egg_tcl_id" != ":::"; then
  6400. egg_tcl_cached="yes"
  6401. if ${egg_cv_var_tcl_id+:} false; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. egg_cv_var_tcl_id="$egg_tcl_id"
  6405. egg_tcl_cached="no"
  6406. fi
  6407. if test "$egg_tcl_cached" = yes; then
  6408. if test "x$egg_cv_var_tcl_id" = "x$egg_tcl_id"; then
  6409. egg_tcl_changed="no"
  6410. else
  6411. egg_cv_var_tcl_id="$egg_tcl_id"
  6412. fi
  6413. fi
  6414. fi
  6415. if test "$egg_tcl_changed" = yes; then
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  6417. $as_echo "yes" >&6; }
  6418. else
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6420. $as_echo "no" >&6; }
  6421. fi
  6422. fi
  6423. if test "$enable_script_tcl" = "yes"; then
  6424. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  6425. TCL_FOUND=0
  6426. if test "x$TCLLIBFN" != x && test "x$TCLINCFN" != x; then
  6427. TCL_FOUND=1
  6428. # Check Tcl's version
  6429. if test "$egg_tcl_changed" = yes; then
  6430. unset egg_cv_var_tcl_version
  6431. fi
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl version" >&5
  6433. $as_echo_n "checking for Tcl version... " >&6; }
  6434. if ${egg_cv_var_tcl_version+:} false; then :
  6435. $as_echo_n "(cached) " >&6
  6436. else
  6437. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`
  6438. fi
  6439. if test "x$egg_cv_var_tcl_version" != x; then
  6440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_version" >&5
  6441. $as_echo "$egg_cv_var_tcl_version" >&6; }
  6442. else
  6443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  6444. $as_echo "not found" >&6; }
  6445. TCL_FOUND=0
  6446. fi
  6447. # Check Tcl's patch level (if available)
  6448. if test "$egg_tcl_changed" = yes; then
  6449. unset egg_cv_var_tcl_patch_level
  6450. fi
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl patch level" >&5
  6452. $as_echo_n "checking for Tcl patch level... " >&6; }
  6453. if ${egg_cv_var_tcl_patch_level+:} false; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/"/, "", $3); print $3}'`"
  6457. fi
  6458. if test "x$egg_cv_var_tcl_patch_level" != x; then
  6459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $egg_cv_var_tcl_patch_level" >&5
  6460. $as_echo "$egg_cv_var_tcl_patch_level" >&6; }
  6461. else
  6462. egg_cv_var_tcl_patch_level="unknown"
  6463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
  6464. $as_echo "unknown" >&6; }
  6465. fi
  6466. fi
  6467. # Check if we found Tcl's version
  6468. if test "$TCL_FOUND" = 0; then
  6469. cat << 'EOF' >&2
  6470. configure: error:
  6471. Tcl cannot be found on this system.
  6472. Tcl is not required. Wraith will be compiled without TCL support. If you
  6473. already have Tcl installed on this system, please specify the path by
  6474. rerunning ./configure using the --with-tcllib='/path/to/libtcl.so' and
  6475. --with-tclinc='/path/to/tcl.h' options.
  6476. EOF
  6477. enable_script_tcl="no"
  6478. else
  6479. $as_echo "#define HAVE_LIBTCL 1" >>build/confdefs.h
  6480. fi
  6481. fi
  6482. if test "$enable_script_tcl" = "yes"; then
  6483. # Is this version of Tcl too old for us to use ?
  6484. TCL_VER_PRE70=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 7) print "yes"; else print "no"}'`
  6485. if test "$TCL_VER_PRE70" = yes; then
  6486. cat << EOF >&2
  6487. configure: error:
  6488. Your Tcl version is much too old for Wraith to use. You should
  6489. download and compile a more recent version. The most reliable
  6490. current version is $tclrecommendver and can be downloaded from
  6491. ${tclrecommendsite}.
  6492. See doc/COMPILE-GUIDE's 'Tcl Detection and Installation' section
  6493. for more information.
  6494. EOF
  6495. exit 1
  6496. fi
  6497. fi
  6498. # Set variables for Tcl library tests
  6499. TCL_TEST_LIB="$TCLLIBFNS"
  6500. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  6501. if test "x$ac_cv_lib_pthread" != x; then
  6502. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  6503. fi
  6504. if test "$enable_script_tcl" = "yes"; then
  6505. if test "$egg_tcl_changed" = yes; then
  6506. unset egg_cv_var_tcl_free
  6507. fi
  6508. # Check for Tcl_Free()
  6509. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  6510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  6511. $as_echo_n "checking for Tcl_Free in -l$TCL_TEST_LIB... " >&6; }
  6512. if eval \${$as_ac_Lib+:} false; then :
  6513. $as_echo_n "(cached) " >&6
  6514. else
  6515. ac_check_lib_save_LIBS=$LIBS
  6516. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6517. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6518. /* end build/confdefs.h. */
  6519. /* Override any GCC internal prototype to avoid an error.
  6520. Use char because int might match the return type of a GCC
  6521. builtin and then its argument prototype would still apply. */
  6522. #ifdef __cplusplus
  6523. extern "C"
  6524. #endif
  6525. char Tcl_Free ();
  6526. int
  6527. main ()
  6528. {
  6529. return Tcl_Free ();
  6530. ;
  6531. return 0;
  6532. }
  6533. _ACEOF
  6534. if ac_fn_cxx_try_link "$LINENO"; then :
  6535. eval "$as_ac_Lib=yes"
  6536. else
  6537. eval "$as_ac_Lib=no"
  6538. fi
  6539. rm -f core conftest.err conftest.$ac_objext \
  6540. conftest$ac_exeext conftest.$ac_ext
  6541. LIBS=$ac_check_lib_save_LIBS
  6542. fi
  6543. eval ac_res=\$$as_ac_Lib
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6545. $as_echo "$ac_res" >&6; }
  6546. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6547. egg_cv_var_tcl_free="yes"
  6548. else
  6549. egg_cv_var_tcl_free="no"
  6550. fi
  6551. if test "$egg_cv_var_tcl_free" = yes; then
  6552. $as_echo "#define HAVE_TCL_FREE 1" >>build/confdefs.h
  6553. fi
  6554. fi
  6555. #EGG_TCL_CHECK_GETCURRENTTHREAD
  6556. #EGG_TCL_CHECK_GETTHREADDATA
  6557. if test "$enable_script_tcl" = "yes"; then
  6558. if test "$egg_tcl_changed" = yes; then
  6559. unset egg_cv_var_tcl_setnotifier
  6560. fi
  6561. # Check for Tcl_SetNotifier()
  6562. as_ac_Lib=`$as_echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_SetNotifier" | $as_tr_sh`
  6563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl_SetNotifier in -l$TCL_TEST_LIB" >&5
  6564. $as_echo_n "checking for Tcl_SetNotifier in -l$TCL_TEST_LIB... " >&6; }
  6565. if eval \${$as_ac_Lib+:} false; then :
  6566. $as_echo_n "(cached) " >&6
  6567. else
  6568. ac_check_lib_save_LIBS=$LIBS
  6569. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  6570. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6571. /* end build/confdefs.h. */
  6572. /* Override any GCC internal prototype to avoid an error.
  6573. Use char because int might match the return type of a GCC
  6574. builtin and then its argument prototype would still apply. */
  6575. #ifdef __cplusplus
  6576. extern "C"
  6577. #endif
  6578. char Tcl_SetNotifier ();
  6579. int
  6580. main ()
  6581. {
  6582. return Tcl_SetNotifier ();
  6583. ;
  6584. return 0;
  6585. }
  6586. _ACEOF
  6587. if ac_fn_cxx_try_link "$LINENO"; then :
  6588. eval "$as_ac_Lib=yes"
  6589. else
  6590. eval "$as_ac_Lib=no"
  6591. fi
  6592. rm -f core conftest.err conftest.$ac_objext \
  6593. conftest$ac_exeext conftest.$ac_ext
  6594. LIBS=$ac_check_lib_save_LIBS
  6595. fi
  6596. eval ac_res=\$$as_ac_Lib
  6597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6598. $as_echo "$ac_res" >&6; }
  6599. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  6600. egg_cv_var_tcl_setnotifier="yes"
  6601. else
  6602. egg_cv_var_tcl_setnotifier="no"
  6603. fi
  6604. if test "$egg_cv_var_tcl_setnotifier" = yes; then
  6605. $as_echo "#define HAVE_TCL_SETNOTIFIER 1" >>build/confdefs.h
  6606. fi
  6607. fi
  6608. if test "$enable_script_tcl" = "yes"; then
  6609. if test "$EGG_CYGWIN" = yes; then
  6610. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6611. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6612. else
  6613. if test "$TCLLIBEXT" != ".a"; then
  6614. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6615. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6616. else
  6617. # Set default make as static for unshared Tcl library
  6618. if test "$DEFAULT_MAKE" != static; then
  6619. cat << 'EOF' >&2
  6620. configure: WARNING:
  6621. Your Tcl library is not a shared lib.
  6622. configure will now set default make type to static.
  6623. EOF
  6624. DEFAULT_MAKE="static"
  6625. fi
  6626. # Are we using a pre 7.4 Tcl version ?
  6627. TCL_VER_PRE74=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (((i[1] == 7) && (i[2] < 4)) || (i[1] < 7)) print "yes"; else print "no"}'`
  6628. if test "$TCL_VER_PRE74" = no; then
  6629. # Was the --with-tcllib option given ?
  6630. if test "x$tcllibname" != x; then
  6631. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6632. TCL_LIBS="${TCLLIB}/lib${TCLLIBFN} $EGG_MATH_LIB"
  6633. else
  6634. TCL_REQS="${TCLLIB}/lib${TCLLIBFN}"
  6635. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  6636. fi
  6637. else
  6638. cat << EOF >&2
  6639. configure: WARNING:
  6640. Your Tcl version ($egg_cv_var_tcl_version) is older than 7.4.
  6641. There are known problems, but we will attempt to work around them.
  6642. EOF
  6643. TCL_REQS="libtcle.a"
  6644. TCL_LIBS="-L`pwd` -ltcle $EGG_MATH_LIB"
  6645. fi
  6646. fi
  6647. fi
  6648. fi
  6649. cat >confcache <<\_ACEOF
  6650. # This file is a shell script that caches the results of configure
  6651. # tests run on this system so they can be shared between configure
  6652. # scripts and configure runs, see configure's option --config-cache.
  6653. # It is not useful on other systems. If it contains results you don't
  6654. # want to keep, you may remove or edit it.
  6655. #
  6656. # build/config.status only pays attention to the cache file if you give it
  6657. # the --recheck option to rerun configure.
  6658. #
  6659. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6660. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6661. # following values.
  6662. _ACEOF
  6663. # The following way of writing the cache mishandles newlines in values,
  6664. # but we know of no workaround that is simple, portable, and efficient.
  6665. # So, we kill variables containing newlines.
  6666. # Ultrix sh set writes to stderr and can't be redirected directly,
  6667. # and sets the high bit in the cache file unless we assign to the vars.
  6668. (
  6669. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  6670. eval ac_val=\$$ac_var
  6671. case $ac_val in #(
  6672. *${as_nl}*)
  6673. case $ac_var in #(
  6674. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  6675. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  6676. esac
  6677. case $ac_var in #(
  6678. _ | IFS | as_nl) ;; #(
  6679. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  6680. *) { eval $ac_var=; unset $ac_var;} ;;
  6681. esac ;;
  6682. esac
  6683. done
  6684. (set) 2>&1 |
  6685. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  6686. *${as_nl}ac_space=\ *)
  6687. # `set' does not quote correctly, so add quotes: double-quote
  6688. # substitution turns \\\\ into \\, and sed turns \\ into \.
  6689. sed -n \
  6690. "s/'/'\\\\''/g;
  6691. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6692. ;; #(
  6693. *)
  6694. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6695. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  6696. ;;
  6697. esac |
  6698. sort
  6699. ) |
  6700. sed '
  6701. /^ac_cv_env_/b end
  6702. t clear
  6703. :clear
  6704. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6705. t end
  6706. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6707. :end' >>confcache
  6708. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  6709. if test -w "$cache_file"; then
  6710. if test "x$cache_file" != "x/dev/null"; then
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  6712. $as_echo "$as_me: updating cache $cache_file" >&6;}
  6713. if test ! -f "$cache_file" || test -h "$cache_file"; then
  6714. cat confcache >"$cache_file"
  6715. else
  6716. case $cache_file in #(
  6717. */* | ?:*)
  6718. mv -f confcache "$cache_file"$$ &&
  6719. mv -f "$cache_file"$$ "$cache_file" ;; #(
  6720. *)
  6721. mv -f confcache "$cache_file" ;;
  6722. esac
  6723. fi
  6724. fi
  6725. else
  6726. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  6727. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  6728. fi
  6729. fi
  6730. rm -f confcache
  6731. # Checks for typedefs, structures, and compiler characteristics
  6732. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  6733. if test "x$ac_cv_type_pid_t" = xyes; then :
  6734. else
  6735. cat >>build/confdefs.h <<_ACEOF
  6736. #define pid_t int
  6737. _ACEOF
  6738. fi
  6739. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  6740. if test "x$ac_cv_type_size_t" = xyes; then :
  6741. else
  6742. cat >>build/confdefs.h <<_ACEOF
  6743. #define size_t unsigned int
  6744. _ACEOF
  6745. fi
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  6747. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  6748. if ${ac_cv_type_uid_t+:} false; then :
  6749. $as_echo_n "(cached) " >&6
  6750. else
  6751. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6752. /* end build/confdefs.h. */
  6753. #include <sys/types.h>
  6754. _ACEOF
  6755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6756. $EGREP "uid_t" >/dev/null 2>&1; then :
  6757. ac_cv_type_uid_t=yes
  6758. else
  6759. ac_cv_type_uid_t=no
  6760. fi
  6761. rm -f conftest*
  6762. fi
  6763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  6764. $as_echo "$ac_cv_type_uid_t" >&6; }
  6765. if test $ac_cv_type_uid_t = no; then
  6766. $as_echo "#define uid_t int" >>build/confdefs.h
  6767. $as_echo "#define gid_t int" >>build/confdefs.h
  6768. fi
  6769. #AC_C_CONST
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  6771. $as_echo_n "checking for working volatile... " >&6; }
  6772. if ${ac_cv_c_volatile+:} false; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6776. /* end build/confdefs.h. */
  6777. int
  6778. main ()
  6779. {
  6780. volatile int x;
  6781. int * volatile y = (int *) 0;
  6782. return !x && !y;
  6783. ;
  6784. return 0;
  6785. }
  6786. _ACEOF
  6787. if ac_fn_cxx_try_compile "$LINENO"; then :
  6788. ac_cv_c_volatile=yes
  6789. else
  6790. ac_cv_c_volatile=no
  6791. fi
  6792. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6793. fi
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  6795. $as_echo "$ac_cv_c_volatile" >&6; }
  6796. if test $ac_cv_c_volatile = no; then
  6797. $as_echo "#define volatile /**/" >>build/confdefs.h
  6798. fi
  6799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  6800. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  6801. if ${ac_cv_c_bigendian+:} false; then :
  6802. $as_echo_n "(cached) " >&6
  6803. else
  6804. ac_cv_c_bigendian=unknown
  6805. # See if we're dealing with a universal compiler.
  6806. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6807. /* end build/confdefs.h. */
  6808. #ifndef __APPLE_CC__
  6809. not a universal capable compiler
  6810. #endif
  6811. typedef int dummy;
  6812. _ACEOF
  6813. if ac_fn_cxx_try_compile "$LINENO"; then :
  6814. # Check for potential -arch flags. It is not universal unless
  6815. # there are at least two -arch flags with different values.
  6816. ac_arch=
  6817. ac_prev=
  6818. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  6819. if test -n "$ac_prev"; then
  6820. case $ac_word in
  6821. i?86 | x86_64 | ppc | ppc64)
  6822. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  6823. ac_arch=$ac_word
  6824. else
  6825. ac_cv_c_bigendian=universal
  6826. break
  6827. fi
  6828. ;;
  6829. esac
  6830. ac_prev=
  6831. elif test "x$ac_word" = "x-arch"; then
  6832. ac_prev=arch
  6833. fi
  6834. done
  6835. fi
  6836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6837. if test $ac_cv_c_bigendian = unknown; then
  6838. # See if sys/param.h defines the BYTE_ORDER macro.
  6839. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6840. /* end build/confdefs.h. */
  6841. #include <sys/types.h>
  6842. #include <sys/param.h>
  6843. int
  6844. main ()
  6845. {
  6846. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  6847. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  6848. && LITTLE_ENDIAN)
  6849. bogus endian macros
  6850. #endif
  6851. ;
  6852. return 0;
  6853. }
  6854. _ACEOF
  6855. if ac_fn_cxx_try_compile "$LINENO"; then :
  6856. # It does; now see whether it defined to BIG_ENDIAN or not.
  6857. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6858. /* end build/confdefs.h. */
  6859. #include <sys/types.h>
  6860. #include <sys/param.h>
  6861. int
  6862. main ()
  6863. {
  6864. #if BYTE_ORDER != BIG_ENDIAN
  6865. not big endian
  6866. #endif
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. if ac_fn_cxx_try_compile "$LINENO"; then :
  6872. ac_cv_c_bigendian=yes
  6873. else
  6874. ac_cv_c_bigendian=no
  6875. fi
  6876. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6877. fi
  6878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6879. fi
  6880. if test $ac_cv_c_bigendian = unknown; then
  6881. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  6882. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6883. /* end build/confdefs.h. */
  6884. #include <limits.h>
  6885. int
  6886. main ()
  6887. {
  6888. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  6889. bogus endian macros
  6890. #endif
  6891. ;
  6892. return 0;
  6893. }
  6894. _ACEOF
  6895. if ac_fn_cxx_try_compile "$LINENO"; then :
  6896. # It does; now see whether it defined to _BIG_ENDIAN or not.
  6897. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6898. /* end build/confdefs.h. */
  6899. #include <limits.h>
  6900. int
  6901. main ()
  6902. {
  6903. #ifndef _BIG_ENDIAN
  6904. not big endian
  6905. #endif
  6906. ;
  6907. return 0;
  6908. }
  6909. _ACEOF
  6910. if ac_fn_cxx_try_compile "$LINENO"; then :
  6911. ac_cv_c_bigendian=yes
  6912. else
  6913. ac_cv_c_bigendian=no
  6914. fi
  6915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6916. fi
  6917. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. fi
  6919. if test $ac_cv_c_bigendian = unknown; then
  6920. # Compile a test program.
  6921. if test "$cross_compiling" = yes; then :
  6922. # Try to guess by grepping values from an object file.
  6923. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6924. /* end build/confdefs.h. */
  6925. short int ascii_mm[] =
  6926. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6927. short int ascii_ii[] =
  6928. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6929. int use_ascii (int i) {
  6930. return ascii_mm[i] + ascii_ii[i];
  6931. }
  6932. short int ebcdic_ii[] =
  6933. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6934. short int ebcdic_mm[] =
  6935. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6936. int use_ebcdic (int i) {
  6937. return ebcdic_mm[i] + ebcdic_ii[i];
  6938. }
  6939. extern int foo;
  6940. int
  6941. main ()
  6942. {
  6943. return use_ascii (foo) == use_ebcdic (foo);
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. if ac_fn_cxx_try_compile "$LINENO"; then :
  6949. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  6950. ac_cv_c_bigendian=yes
  6951. fi
  6952. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6953. if test "$ac_cv_c_bigendian" = unknown; then
  6954. ac_cv_c_bigendian=no
  6955. else
  6956. # finding both strings is unlikely to happen, but who knows?
  6957. ac_cv_c_bigendian=unknown
  6958. fi
  6959. fi
  6960. fi
  6961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6962. else
  6963. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  6964. /* end build/confdefs.h. */
  6965. $ac_includes_default
  6966. int
  6967. main ()
  6968. {
  6969. /* Are we little or big endian? From Harbison&Steele. */
  6970. union
  6971. {
  6972. long int l;
  6973. char c[sizeof (long int)];
  6974. } u;
  6975. u.l = 1;
  6976. return u.c[sizeof (long int) - 1] == 1;
  6977. ;
  6978. return 0;
  6979. }
  6980. _ACEOF
  6981. if ac_fn_cxx_try_run "$LINENO"; then :
  6982. ac_cv_c_bigendian=no
  6983. else
  6984. ac_cv_c_bigendian=yes
  6985. fi
  6986. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6987. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6988. fi
  6989. fi
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  6992. $as_echo "$ac_cv_c_bigendian" >&6; }
  6993. case $ac_cv_c_bigendian in #(
  6994. yes)
  6995. $as_echo "#define B_ENDIAN 1" >>build/confdefs.h
  6996. ;; #(
  6997. no)
  6998. $as_echo "#define L_ENDIAN 1" >>build/confdefs.h
  6999. ;; #(
  7000. universal)
  7001. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>build/confdefs.h
  7002. ;; #(
  7003. *)
  7004. as_fn_error $? "unknown endianness
  7005. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7006. esac
  7007. #AC_C_INLINE
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  7009. $as_echo_n "checking whether char is unsigned... " >&6; }
  7010. if ${ac_cv_c_char_unsigned+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end build/confdefs.h. */
  7015. $ac_includes_default
  7016. int
  7017. main ()
  7018. {
  7019. static int test_array [1 - 2 * !(((char) -1) < 0)];
  7020. test_array [0] = 0;
  7021. return test_array [0];
  7022. ;
  7023. return 0;
  7024. }
  7025. _ACEOF
  7026. if ac_fn_cxx_try_compile "$LINENO"; then :
  7027. ac_cv_c_char_unsigned=no
  7028. else
  7029. ac_cv_c_char_unsigned=yes
  7030. fi
  7031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7032. fi
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  7034. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  7035. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  7036. $as_echo "#define __CHAR_UNSIGNED__ 1" >>build/confdefs.h
  7037. fi
  7038. #AC_C_STRINGIZE
  7039. #AC_C_PROTOTYPES
  7040. #checkpoint
  7041. cat >confcache <<\_ACEOF
  7042. # This file is a shell script that caches the results of configure
  7043. # tests run on this system so they can be shared between configure
  7044. # scripts and configure runs, see configure's option --config-cache.
  7045. # It is not useful on other systems. If it contains results you don't
  7046. # want to keep, you may remove or edit it.
  7047. #
  7048. # build/config.status only pays attention to the cache file if you give it
  7049. # the --recheck option to rerun configure.
  7050. #
  7051. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7052. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7053. # following values.
  7054. _ACEOF
  7055. # The following way of writing the cache mishandles newlines in values,
  7056. # but we know of no workaround that is simple, portable, and efficient.
  7057. # So, we kill variables containing newlines.
  7058. # Ultrix sh set writes to stderr and can't be redirected directly,
  7059. # and sets the high bit in the cache file unless we assign to the vars.
  7060. (
  7061. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7062. eval ac_val=\$$ac_var
  7063. case $ac_val in #(
  7064. *${as_nl}*)
  7065. case $ac_var in #(
  7066. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7067. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7068. esac
  7069. case $ac_var in #(
  7070. _ | IFS | as_nl) ;; #(
  7071. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7072. *) { eval $ac_var=; unset $ac_var;} ;;
  7073. esac ;;
  7074. esac
  7075. done
  7076. (set) 2>&1 |
  7077. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7078. *${as_nl}ac_space=\ *)
  7079. # `set' does not quote correctly, so add quotes: double-quote
  7080. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7081. sed -n \
  7082. "s/'/'\\\\''/g;
  7083. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7084. ;; #(
  7085. *)
  7086. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7087. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7088. ;;
  7089. esac |
  7090. sort
  7091. ) |
  7092. sed '
  7093. /^ac_cv_env_/b end
  7094. t clear
  7095. :clear
  7096. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7097. t end
  7098. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7099. :end' >>confcache
  7100. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7101. if test -w "$cache_file"; then
  7102. if test "x$cache_file" != "x/dev/null"; then
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7104. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7105. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7106. cat confcache >"$cache_file"
  7107. else
  7108. case $cache_file in #(
  7109. */* | ?:*)
  7110. mv -f confcache "$cache_file"$$ &&
  7111. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7112. *)
  7113. mv -f confcache "$cache_file" ;;
  7114. esac
  7115. fi
  7116. fi
  7117. else
  7118. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7119. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7120. fi
  7121. fi
  7122. rm -f confcache
  7123. # Checks for typedefs, structures, and compiler characteristics
  7124. ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  7125. if test "x$ac_cv_type_pid_t" = xyes; then :
  7126. else
  7127. cat >>build/confdefs.h <<_ACEOF
  7128. #define pid_t int
  7129. _ACEOF
  7130. fi
  7131. ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  7132. if test "x$ac_cv_type_size_t" = xyes; then :
  7133. else
  7134. cat >>build/confdefs.h <<_ACEOF
  7135. #define size_t unsigned int
  7136. _ACEOF
  7137. fi
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  7139. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  7140. if ${ac_cv_type_uid_t+:} false; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7144. /* end build/confdefs.h. */
  7145. #include <sys/types.h>
  7146. _ACEOF
  7147. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7148. $EGREP "uid_t" >/dev/null 2>&1; then :
  7149. ac_cv_type_uid_t=yes
  7150. else
  7151. ac_cv_type_uid_t=no
  7152. fi
  7153. rm -f conftest*
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  7156. $as_echo "$ac_cv_type_uid_t" >&6; }
  7157. if test $ac_cv_type_uid_t = no; then
  7158. $as_echo "#define uid_t int" >>build/confdefs.h
  7159. $as_echo "#define gid_t int" >>build/confdefs.h
  7160. fi
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  7162. $as_echo_n "checking for unsigned long long int... " >&6; }
  7163. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  7164. $as_echo_n "(cached) " >&6
  7165. else
  7166. ac_cv_type_unsigned_long_long_int=yes
  7167. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7168. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7169. /* end build/confdefs.h. */
  7170. /* For now, do not test the preprocessor; as of 2007 there are too many
  7171. implementations with broken preprocessors. Perhaps this can
  7172. be revisited in 2012. In the meantime, code should not expect
  7173. #if to work with literals wider than 32 bits. */
  7174. /* Test literals. */
  7175. long long int ll = 9223372036854775807ll;
  7176. long long int nll = -9223372036854775807LL;
  7177. unsigned long long int ull = 18446744073709551615ULL;
  7178. /* Test constant expressions. */
  7179. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  7180. ? 1 : -1)];
  7181. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  7182. ? 1 : -1)];
  7183. int i = 63;
  7184. int
  7185. main ()
  7186. {
  7187. /* Test availability of runtime routines for shift and division. */
  7188. long long int llmax = 9223372036854775807ll;
  7189. unsigned long long int ullmax = 18446744073709551615ull;
  7190. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  7191. | (llmax / ll) | (llmax % ll)
  7192. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  7193. | (ullmax / ull) | (ullmax % ull));
  7194. ;
  7195. return 0;
  7196. }
  7197. _ACEOF
  7198. if ac_fn_cxx_try_link "$LINENO"; then :
  7199. else
  7200. ac_cv_type_unsigned_long_long_int=no
  7201. fi
  7202. rm -f core conftest.err conftest.$ac_objext \
  7203. conftest$ac_exeext conftest.$ac_ext
  7204. fi
  7205. fi
  7206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  7207. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  7208. if test $ac_cv_type_unsigned_long_long_int = yes; then
  7209. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>build/confdefs.h
  7210. fi
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  7212. $as_echo_n "checking for long long int... " >&6; }
  7213. if ${ac_cv_type_long_long_int+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. ac_cv_type_long_long_int=yes
  7217. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  7218. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  7219. if test $ac_cv_type_long_long_int = yes; then
  7220. if test "$cross_compiling" = yes; then :
  7221. :
  7222. else
  7223. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7224. /* end build/confdefs.h. */
  7225. #include <limits.h>
  7226. #ifndef LLONG_MAX
  7227. # define HALF \
  7228. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  7229. # define LLONG_MAX (HALF - 1 + HALF)
  7230. #endif
  7231. int
  7232. main ()
  7233. {
  7234. long long int n = 1;
  7235. int i;
  7236. for (i = 0; ; i++)
  7237. {
  7238. long long int m = n << i;
  7239. if (m >> i != n)
  7240. return 1;
  7241. if (LLONG_MAX / 2 < m)
  7242. break;
  7243. }
  7244. return 0;
  7245. ;
  7246. return 0;
  7247. }
  7248. _ACEOF
  7249. if ac_fn_cxx_try_run "$LINENO"; then :
  7250. else
  7251. ac_cv_type_long_long_int=no
  7252. fi
  7253. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7254. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7255. fi
  7256. fi
  7257. fi
  7258. fi
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  7260. $as_echo "$ac_cv_type_long_long_int" >&6; }
  7261. if test $ac_cv_type_long_long_int = yes; then
  7262. $as_echo "#define HAVE_LONG_LONG_INT 1" >>build/confdefs.h
  7263. fi
  7264. ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
  7265. case $ac_cv_c_int8_t in #(
  7266. no|yes) ;; #(
  7267. *)
  7268. cat >>build/confdefs.h <<_ACEOF
  7269. #define int8_t $ac_cv_c_int8_t
  7270. _ACEOF
  7271. ;;
  7272. esac
  7273. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  7274. case $ac_cv_c_uint8_t in #(
  7275. no|yes) ;; #(
  7276. *)
  7277. $as_echo "#define _UINT8_T 1" >>build/confdefs.h
  7278. cat >>build/confdefs.h <<_ACEOF
  7279. #define uint8_t $ac_cv_c_uint8_t
  7280. _ACEOF
  7281. ;;
  7282. esac
  7283. ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
  7284. case $ac_cv_c_int16_t in #(
  7285. no|yes) ;; #(
  7286. *)
  7287. cat >>build/confdefs.h <<_ACEOF
  7288. #define int16_t $ac_cv_c_int16_t
  7289. _ACEOF
  7290. ;;
  7291. esac
  7292. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  7293. case $ac_cv_c_uint16_t in #(
  7294. no|yes) ;; #(
  7295. *)
  7296. cat >>build/confdefs.h <<_ACEOF
  7297. #define uint16_t $ac_cv_c_uint16_t
  7298. _ACEOF
  7299. ;;
  7300. esac
  7301. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  7302. case $ac_cv_c_int32_t in #(
  7303. no|yes) ;; #(
  7304. *)
  7305. cat >>build/confdefs.h <<_ACEOF
  7306. #define int32_t $ac_cv_c_int32_t
  7307. _ACEOF
  7308. ;;
  7309. esac
  7310. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  7311. case $ac_cv_c_uint32_t in #(
  7312. no|yes) ;; #(
  7313. *)
  7314. $as_echo "#define _UINT32_T 1" >>build/confdefs.h
  7315. cat >>build/confdefs.h <<_ACEOF
  7316. #define uint32_t $ac_cv_c_uint32_t
  7317. _ACEOF
  7318. ;;
  7319. esac
  7320. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  7321. case $ac_cv_c_int64_t in #(
  7322. no|yes) ;; #(
  7323. *)
  7324. cat >>build/confdefs.h <<_ACEOF
  7325. #define int64_t $ac_cv_c_int64_t
  7326. _ACEOF
  7327. ;;
  7328. esac
  7329. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  7330. case $ac_cv_c_uint64_t in #(
  7331. no|yes) ;; #(
  7332. *)
  7333. $as_echo "#define _UINT64_T 1" >>build/confdefs.h
  7334. cat >>build/confdefs.h <<_ACEOF
  7335. #define uint64_t $ac_cv_c_uint64_t
  7336. _ACEOF
  7337. ;;
  7338. esac
  7339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7340. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7341. if ${ac_cv_struct_tm+:} false; then :
  7342. $as_echo_n "(cached) " >&6
  7343. else
  7344. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7345. /* end build/confdefs.h. */
  7346. #include <sys/types.h>
  7347. #include <time.h>
  7348. int
  7349. main ()
  7350. {
  7351. struct tm tm;
  7352. int *p = &tm.tm_sec;
  7353. return !p;
  7354. ;
  7355. return 0;
  7356. }
  7357. _ACEOF
  7358. if ac_fn_cxx_try_compile "$LINENO"; then :
  7359. ac_cv_struct_tm=time.h
  7360. else
  7361. ac_cv_struct_tm=sys/time.h
  7362. fi
  7363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7364. fi
  7365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7366. $as_echo "$ac_cv_struct_tm" >&6; }
  7367. if test $ac_cv_struct_tm = sys/time.h; then
  7368. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7369. fi
  7370. ac_fn_cxx_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
  7371. #include <$ac_cv_struct_tm>
  7372. "
  7373. if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
  7374. cat >>build/confdefs.h <<_ACEOF
  7375. #define HAVE_STRUCT_TM_TM_ZONE 1
  7376. _ACEOF
  7377. fi
  7378. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7379. $as_echo "#define HAVE_TM_ZONE 1" >>build/confdefs.h
  7380. else
  7381. ac_fn_cxx_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
  7382. "
  7383. if test "x$ac_cv_have_decl_tzname" = xyes; then :
  7384. ac_have_decl=1
  7385. else
  7386. ac_have_decl=0
  7387. fi
  7388. cat >>build/confdefs.h <<_ACEOF
  7389. #define HAVE_DECL_TZNAME $ac_have_decl
  7390. _ACEOF
  7391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
  7392. $as_echo_n "checking for tzname... " >&6; }
  7393. if ${ac_cv_var_tzname+:} false; then :
  7394. $as_echo_n "(cached) " >&6
  7395. else
  7396. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7397. /* end build/confdefs.h. */
  7398. #include <time.h>
  7399. #if !HAVE_DECL_TZNAME
  7400. extern char *tzname[];
  7401. #endif
  7402. int
  7403. main ()
  7404. {
  7405. return tzname[0][0];
  7406. ;
  7407. return 0;
  7408. }
  7409. _ACEOF
  7410. if ac_fn_cxx_try_link "$LINENO"; then :
  7411. ac_cv_var_tzname=yes
  7412. else
  7413. ac_cv_var_tzname=no
  7414. fi
  7415. rm -f core conftest.err conftest.$ac_objext \
  7416. conftest$ac_exeext conftest.$ac_ext
  7417. fi
  7418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
  7419. $as_echo "$ac_cv_var_tzname" >&6; }
  7420. if test $ac_cv_var_tzname = yes; then
  7421. $as_echo "#define HAVE_TZNAME 1" >>build/confdefs.h
  7422. fi
  7423. fi
  7424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  7425. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  7426. if ${ac_cv_struct_tm+:} false; then :
  7427. $as_echo_n "(cached) " >&6
  7428. else
  7429. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7430. /* end build/confdefs.h. */
  7431. #include <sys/types.h>
  7432. #include <time.h>
  7433. int
  7434. main ()
  7435. {
  7436. struct tm tm;
  7437. int *p = &tm.tm_sec;
  7438. return !p;
  7439. ;
  7440. return 0;
  7441. }
  7442. _ACEOF
  7443. if ac_fn_cxx_try_compile "$LINENO"; then :
  7444. ac_cv_struct_tm=time.h
  7445. else
  7446. ac_cv_struct_tm=sys/time.h
  7447. fi
  7448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7449. fi
  7450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  7451. $as_echo "$ac_cv_struct_tm" >&6; }
  7452. if test $ac_cv_struct_tm = sys/time.h; then
  7453. $as_echo "#define TM_IN_SYS_TIME 1" >>build/confdefs.h
  7454. fi
  7455. # Checks for library functions
  7456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
  7457. $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
  7458. if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
  7459. $as_echo_n "(cached) " >&6
  7460. else
  7461. rm -f conftest.sym conftest.file
  7462. echo >conftest.file
  7463. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7464. if test "$cross_compiling" = yes; then :
  7465. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7466. else
  7467. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7468. /* end build/confdefs.h. */
  7469. $ac_includes_default
  7470. int
  7471. main ()
  7472. {
  7473. struct stat sbuf;
  7474. /* Linux will dereference the symlink and fail, as required by POSIX.
  7475. That is better in the sense that it means we will not
  7476. have to compile and use the lstat wrapper. */
  7477. return lstat ("conftest.sym/", &sbuf) == 0;
  7478. ;
  7479. return 0;
  7480. }
  7481. _ACEOF
  7482. if ac_fn_cxx_try_run "$LINENO"; then :
  7483. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7484. else
  7485. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7486. fi
  7487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7489. fi
  7490. else
  7491. # If the `ln -s' command failed, then we probably don't even
  7492. # have an lstat function.
  7493. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7494. fi
  7495. rm -f conftest.sym conftest.file
  7496. fi
  7497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7498. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  7499. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7500. cat >>build/confdefs.h <<_ACEOF
  7501. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7502. _ACEOF
  7503. if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
  7504. case " $LIBOBJS " in
  7505. *" lstat.$ac_objext "* ) ;;
  7506. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  7507. ;;
  7508. esac
  7509. fi
  7510. for ac_header in $ac_header_list
  7511. do :
  7512. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7513. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7514. "
  7515. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7516. cat >>build/confdefs.h <<_ACEOF
  7517. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7518. _ACEOF
  7519. fi
  7520. done
  7521. for ac_func in getpagesize
  7522. do :
  7523. ac_fn_cxx_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  7524. if test "x$ac_cv_func_getpagesize" = xyes; then :
  7525. cat >>build/confdefs.h <<_ACEOF
  7526. #define HAVE_GETPAGESIZE 1
  7527. _ACEOF
  7528. fi
  7529. done
  7530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  7531. $as_echo_n "checking for working mmap... " >&6; }
  7532. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  7533. $as_echo_n "(cached) " >&6
  7534. else
  7535. if test "$cross_compiling" = yes; then :
  7536. ac_cv_func_mmap_fixed_mapped=no
  7537. else
  7538. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7539. /* end build/confdefs.h. */
  7540. $ac_includes_default
  7541. /* malloc might have been renamed as rpl_malloc. */
  7542. #undef malloc
  7543. /* Thanks to Mike Haertel and Jim Avera for this test.
  7544. Here is a matrix of mmap possibilities:
  7545. mmap private not fixed
  7546. mmap private fixed at somewhere currently unmapped
  7547. mmap private fixed at somewhere already mapped
  7548. mmap shared not fixed
  7549. mmap shared fixed at somewhere currently unmapped
  7550. mmap shared fixed at somewhere already mapped
  7551. For private mappings, we should verify that changes cannot be read()
  7552. back from the file, nor mmap's back from the file at a different
  7553. address. (There have been systems where private was not correctly
  7554. implemented like the infamous i386 svr4.0, and systems where the
  7555. VM page cache was not coherent with the file system buffer cache
  7556. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7557. For shared mappings, we should conversely verify that changes get
  7558. propagated back to all the places they're supposed to be.
  7559. Grep wants private fixed already mapped.
  7560. The main things grep needs to know about mmap are:
  7561. * does it exist and is it safe to write into the mmap'd area
  7562. * how to use it (BSD variants) */
  7563. #include <fcntl.h>
  7564. #include <sys/mman.h>
  7565. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7566. char *malloc ();
  7567. #endif
  7568. /* This mess was copied from the GNU getpagesize.h. */
  7569. #ifndef HAVE_GETPAGESIZE
  7570. # ifdef _SC_PAGESIZE
  7571. # define getpagesize() sysconf(_SC_PAGESIZE)
  7572. # else /* no _SC_PAGESIZE */
  7573. # ifdef HAVE_SYS_PARAM_H
  7574. # include <sys/param.h>
  7575. # ifdef EXEC_PAGESIZE
  7576. # define getpagesize() EXEC_PAGESIZE
  7577. # else /* no EXEC_PAGESIZE */
  7578. # ifdef NBPG
  7579. # define getpagesize() NBPG * CLSIZE
  7580. # ifndef CLSIZE
  7581. # define CLSIZE 1
  7582. # endif /* no CLSIZE */
  7583. # else /* no NBPG */
  7584. # ifdef NBPC
  7585. # define getpagesize() NBPC
  7586. # else /* no NBPC */
  7587. # ifdef PAGESIZE
  7588. # define getpagesize() PAGESIZE
  7589. # endif /* PAGESIZE */
  7590. # endif /* no NBPC */
  7591. # endif /* no NBPG */
  7592. # endif /* no EXEC_PAGESIZE */
  7593. # else /* no HAVE_SYS_PARAM_H */
  7594. # define getpagesize() 8192 /* punt totally */
  7595. # endif /* no HAVE_SYS_PARAM_H */
  7596. # endif /* no _SC_PAGESIZE */
  7597. #endif /* no HAVE_GETPAGESIZE */
  7598. int
  7599. main ()
  7600. {
  7601. char *data, *data2, *data3;
  7602. const char *cdata2;
  7603. int i, pagesize;
  7604. int fd, fd2;
  7605. pagesize = getpagesize ();
  7606. /* First, make a file with some known garbage in it. */
  7607. data = (char *) malloc (pagesize);
  7608. if (!data)
  7609. return 1;
  7610. for (i = 0; i < pagesize; ++i)
  7611. *(data + i) = rand ();
  7612. umask (0);
  7613. fd = creat ("conftest.mmap", 0600);
  7614. if (fd < 0)
  7615. return 2;
  7616. if (write (fd, data, pagesize) != pagesize)
  7617. return 3;
  7618. close (fd);
  7619. /* Next, check that the tail of a page is zero-filled. File must have
  7620. non-zero length, otherwise we risk SIGBUS for entire page. */
  7621. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  7622. if (fd2 < 0)
  7623. return 4;
  7624. cdata2 = "";
  7625. if (write (fd2, cdata2, 1) != 1)
  7626. return 5;
  7627. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  7628. if (data2 == MAP_FAILED)
  7629. return 6;
  7630. for (i = 0; i < pagesize; ++i)
  7631. if (*(data2 + i))
  7632. return 7;
  7633. close (fd2);
  7634. if (munmap (data2, pagesize))
  7635. return 8;
  7636. /* Next, try to mmap the file at a fixed address which already has
  7637. something else allocated at it. If we can, also make sure that
  7638. we see the same garbage. */
  7639. fd = open ("conftest.mmap", O_RDWR);
  7640. if (fd < 0)
  7641. return 9;
  7642. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7643. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7644. return 10;
  7645. for (i = 0; i < pagesize; ++i)
  7646. if (*(data + i) != *(data2 + i))
  7647. return 11;
  7648. /* Finally, make sure that changes to the mapped area do not
  7649. percolate back to the file as seen by read(). (This is a bug on
  7650. some variants of i386 svr4.0.) */
  7651. for (i = 0; i < pagesize; ++i)
  7652. *(data2 + i) = *(data2 + i) + 1;
  7653. data3 = (char *) malloc (pagesize);
  7654. if (!data3)
  7655. return 12;
  7656. if (read (fd, data3, pagesize) != pagesize)
  7657. return 13;
  7658. for (i = 0; i < pagesize; ++i)
  7659. if (*(data + i) != *(data3 + i))
  7660. return 14;
  7661. close (fd);
  7662. return 0;
  7663. }
  7664. _ACEOF
  7665. if ac_fn_cxx_try_run "$LINENO"; then :
  7666. ac_cv_func_mmap_fixed_mapped=yes
  7667. else
  7668. ac_cv_func_mmap_fixed_mapped=no
  7669. fi
  7670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7671. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7672. fi
  7673. fi
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7675. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  7676. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7677. $as_echo "#define HAVE_MMAP 1" >>build/confdefs.h
  7678. fi
  7679. rm -f conftest.mmap conftest.txt
  7680. ac_fn_cxx_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
  7681. #include <sys/time.h>
  7682. #include <time.h>
  7683. "
  7684. if test "x$ac_cv_type_struct_timespec" = xyes; then :
  7685. $as_echo "#define HAVE_TIMESPEC 1" >>build/confdefs.h
  7686. fi
  7687. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  7688. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
  7689. if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
  7690. $as_echo "#define HAVE_ST_MTIM 1" >>build/confdefs.h
  7691. else
  7692. ac_fn_cxx_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
  7693. if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
  7694. $as_echo "#define HAVE_ST_MTIMESPEC 1" >>build/confdefs.h
  7695. fi
  7696. fi
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-parameter timespecsub" >&5
  7698. $as_echo_n "checking for two-parameter timespecsub... " >&6; }
  7699. cat build/confdefs.h - <<_ACEOF >conftest.$ac_ext
  7700. /* end build/confdefs.h. */
  7701. #include <sys/types.h>
  7702. #include <sys/time.h>
  7703. int
  7704. main ()
  7705. {
  7706. struct timespec ts1, ts2;
  7707. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  7708. #ifndef timespecsub
  7709. #error missing timespecsub
  7710. #endif
  7711. timespecsub(&ts1, &ts2);
  7712. ;
  7713. return 0;
  7714. }
  7715. _ACEOF
  7716. if ac_fn_cxx_try_compile "$LINENO"; then :
  7717. $as_echo "#define HAVE_TIMESPECSUB2 1" >>build/confdefs.h
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7719. $as_echo "yes" >&6; }
  7720. else
  7721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7722. $as_echo "no" >&6; }
  7723. fi
  7724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7725. fi
  7726. #checkpoint
  7727. cat >confcache <<\_ACEOF
  7728. # This file is a shell script that caches the results of configure
  7729. # tests run on this system so they can be shared between configure
  7730. # scripts and configure runs, see configure's option --config-cache.
  7731. # It is not useful on other systems. If it contains results you don't
  7732. # want to keep, you may remove or edit it.
  7733. #
  7734. # build/config.status only pays attention to the cache file if you give it
  7735. # the --recheck option to rerun configure.
  7736. #
  7737. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7738. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7739. # following values.
  7740. _ACEOF
  7741. # The following way of writing the cache mishandles newlines in values,
  7742. # but we know of no workaround that is simple, portable, and efficient.
  7743. # So, we kill variables containing newlines.
  7744. # Ultrix sh set writes to stderr and can't be redirected directly,
  7745. # and sets the high bit in the cache file unless we assign to the vars.
  7746. (
  7747. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7748. eval ac_val=\$$ac_var
  7749. case $ac_val in #(
  7750. *${as_nl}*)
  7751. case $ac_var in #(
  7752. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7753. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7754. esac
  7755. case $ac_var in #(
  7756. _ | IFS | as_nl) ;; #(
  7757. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7758. *) { eval $ac_var=; unset $ac_var;} ;;
  7759. esac ;;
  7760. esac
  7761. done
  7762. (set) 2>&1 |
  7763. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7764. *${as_nl}ac_space=\ *)
  7765. # `set' does not quote correctly, so add quotes: double-quote
  7766. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7767. sed -n \
  7768. "s/'/'\\\\''/g;
  7769. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7770. ;; #(
  7771. *)
  7772. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7773. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7774. ;;
  7775. esac |
  7776. sort
  7777. ) |
  7778. sed '
  7779. /^ac_cv_env_/b end
  7780. t clear
  7781. :clear
  7782. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7783. t end
  7784. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7785. :end' >>confcache
  7786. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7787. if test -w "$cache_file"; then
  7788. if test "x$cache_file" != "x/dev/null"; then
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7790. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7791. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7792. cat confcache >"$cache_file"
  7793. else
  7794. case $cache_file in #(
  7795. */* | ?:*)
  7796. mv -f confcache "$cache_file"$$ &&
  7797. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7798. *)
  7799. mv -f confcache "$cache_file" ;;
  7800. esac
  7801. fi
  7802. fi
  7803. else
  7804. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7805. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7806. fi
  7807. fi
  7808. rm -f confcache
  7809. for ac_func in getrusage getpassphrase posix_madvise madvise
  7810. do :
  7811. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7812. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7813. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7814. cat >>build/confdefs.h <<_ACEOF
  7815. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7816. _ACEOF
  7817. fi
  7818. done
  7819. for ac_func in memmem random snprintf srandom gettime
  7820. do :
  7821. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7822. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7823. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7824. cat >>build/confdefs.h <<_ACEOF
  7825. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7826. _ACEOF
  7827. fi
  7828. done
  7829. #checkpoint
  7830. cat >confcache <<\_ACEOF
  7831. # This file is a shell script that caches the results of configure
  7832. # tests run on this system so they can be shared between configure
  7833. # scripts and configure runs, see configure's option --config-cache.
  7834. # It is not useful on other systems. If it contains results you don't
  7835. # want to keep, you may remove or edit it.
  7836. #
  7837. # build/config.status only pays attention to the cache file if you give it
  7838. # the --recheck option to rerun configure.
  7839. #
  7840. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7841. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7842. # following values.
  7843. _ACEOF
  7844. # The following way of writing the cache mishandles newlines in values,
  7845. # but we know of no workaround that is simple, portable, and efficient.
  7846. # So, we kill variables containing newlines.
  7847. # Ultrix sh set writes to stderr and can't be redirected directly,
  7848. # and sets the high bit in the cache file unless we assign to the vars.
  7849. (
  7850. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7851. eval ac_val=\$$ac_var
  7852. case $ac_val in #(
  7853. *${as_nl}*)
  7854. case $ac_var in #(
  7855. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7856. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  7857. esac
  7858. case $ac_var in #(
  7859. _ | IFS | as_nl) ;; #(
  7860. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  7861. *) { eval $ac_var=; unset $ac_var;} ;;
  7862. esac ;;
  7863. esac
  7864. done
  7865. (set) 2>&1 |
  7866. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7867. *${as_nl}ac_space=\ *)
  7868. # `set' does not quote correctly, so add quotes: double-quote
  7869. # substitution turns \\\\ into \\, and sed turns \\ into \.
  7870. sed -n \
  7871. "s/'/'\\\\''/g;
  7872. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7873. ;; #(
  7874. *)
  7875. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7876. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7877. ;;
  7878. esac |
  7879. sort
  7880. ) |
  7881. sed '
  7882. /^ac_cv_env_/b end
  7883. t clear
  7884. :clear
  7885. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7886. t end
  7887. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7888. :end' >>confcache
  7889. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7890. if test -w "$cache_file"; then
  7891. if test "x$cache_file" != "x/dev/null"; then
  7892. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  7893. $as_echo "$as_me: updating cache $cache_file" >&6;}
  7894. if test ! -f "$cache_file" || test -h "$cache_file"; then
  7895. cat confcache >"$cache_file"
  7896. else
  7897. case $cache_file in #(
  7898. */* | ?:*)
  7899. mv -f confcache "$cache_file"$$ &&
  7900. mv -f "$cache_file"$$ "$cache_file" ;; #(
  7901. *)
  7902. mv -f confcache "$cache_file" ;;
  7903. esac
  7904. fi
  7905. fi
  7906. else
  7907. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  7908. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7909. fi
  7910. fi
  7911. rm -f confcache
  7912. for ac_func in vsnprintf prctl procctl closefrom
  7913. do :
  7914. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7915. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7916. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  7917. cat >>build/confdefs.h <<_ACEOF
  7918. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7919. _ACEOF
  7920. fi
  7921. done
  7922. #autoscan suggested this....
  7923. #These are recommended by autoscan, but no code supports it currently
  7924. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostname getpass gettimeofday mbrlen
  7925. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  7926. for ac_func in vsprintf
  7927. do :
  7928. ac_fn_cxx_check_func "$LINENO" "vsprintf" "ac_cv_func_vsprintf"
  7929. if test "x$ac_cv_func_vsprintf" = xyes; then :
  7930. cat >>build/confdefs.h <<_ACEOF
  7931. #define HAVE_VSPRINTF 1
  7932. _ACEOF
  7933. fi
  7934. done
  7935. if test "$ac_cv_func_vsprintf" = "no"
  7936. then
  7937. cat << 'EOF' >&2
  7938. configure: error:
  7939. Your system does not have the sprintf/vsprintf libraries.
  7940. These are required to compile almost anything. Sorry.
  7941. EOF
  7942. exit 1
  7943. fi
  7944. for ac_func in uname
  7945. do :
  7946. ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
  7947. if test "x$ac_cv_func_uname" = xyes; then :
  7948. cat >>build/confdefs.h <<_ACEOF
  7949. #define HAVE_UNAME 1
  7950. _ACEOF
  7951. fi
  7952. done
  7953. if test "$ac_cv_func_uname" = "no"
  7954. then
  7955. cat << 'EOF' >&2
  7956. configure: error:
  7957. Your system does not have the uname() function.
  7958. This is required for the botpack.
  7959. EOF
  7960. exit 1
  7961. fi
  7962. # Make sure we have stdc headers, since we can't compile without them
  7963. if test "$ac_cv_header_stdc" = "no"
  7964. then
  7965. cat << 'EOF' >&2
  7966. configure: error:
  7967. Your system must support ANSI C Header files.
  7968. These are required for the language support. Sorry.
  7969. EOF
  7970. exit 1
  7971. fi
  7972. #checkpoint
  7973. cat >confcache <<\_ACEOF
  7974. # This file is a shell script that caches the results of configure
  7975. # tests run on this system so they can be shared between configure
  7976. # scripts and configure runs, see configure's option --config-cache.
  7977. # It is not useful on other systems. If it contains results you don't
  7978. # want to keep, you may remove or edit it.
  7979. #
  7980. # build/config.status only pays attention to the cache file if you give it
  7981. # the --recheck option to rerun configure.
  7982. #
  7983. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7984. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7985. # following values.
  7986. _ACEOF
  7987. # The following way of writing the cache mishandles newlines in values,
  7988. # but we know of no workaround that is simple, portable, and efficient.
  7989. # So, we kill variables containing newlines.
  7990. # Ultrix sh set writes to stderr and can't be redirected directly,
  7991. # and sets the high bit in the cache file unless we assign to the vars.
  7992. (
  7993. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7994. eval ac_val=\$$ac_var
  7995. case $ac_val in #(
  7996. *${as_nl}*)
  7997. case $ac_var in #(
  7998. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  7999. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8000. esac
  8001. case $ac_var in #(
  8002. _ | IFS | as_nl) ;; #(
  8003. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8004. *) { eval $ac_var=; unset $ac_var;} ;;
  8005. esac ;;
  8006. esac
  8007. done
  8008. (set) 2>&1 |
  8009. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8010. *${as_nl}ac_space=\ *)
  8011. # `set' does not quote correctly, so add quotes: double-quote
  8012. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8013. sed -n \
  8014. "s/'/'\\\\''/g;
  8015. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8016. ;; #(
  8017. *)
  8018. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8019. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8020. ;;
  8021. esac |
  8022. sort
  8023. ) |
  8024. sed '
  8025. /^ac_cv_env_/b end
  8026. t clear
  8027. :clear
  8028. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8029. t end
  8030. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8031. :end' >>confcache
  8032. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8033. if test -w "$cache_file"; then
  8034. if test "x$cache_file" != "x/dev/null"; then
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8036. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8037. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8038. cat confcache >"$cache_file"
  8039. else
  8040. case $cache_file in #(
  8041. */* | ?:*)
  8042. mv -f confcache "$cache_file"$$ &&
  8043. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8044. *)
  8045. mv -f confcache "$cache_file" ;;
  8046. esac
  8047. fi
  8048. fi
  8049. else
  8050. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8051. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8052. fi
  8053. fi
  8054. rm -f confcache
  8055. VERSION=`grep "char" $srcdir/src/main.cc | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  8056. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  8057. cat >>build/confdefs.h <<_ACEOF
  8058. #define EGG_VERSION $version_num
  8059. _ACEOF
  8060. #FIND_WRAPS
  8061. files="src/Makefile.in"
  8062. for mf in $files; do
  8063. # Strip MF so we end up with the name of the file.
  8064. mf=${mf%%:*}
  8065. dirmf=${mf%/*}
  8066. rm -f "$dirmf/.deps/includes"
  8067. test -d "$dirmf/.deps" || mkdir "$dirmf/.deps"
  8068. for file in `sed -n -e '
  8069. /^OBJS = .*\\\\$/ {
  8070. s/^OBJS = //
  8071. :loop
  8072. s/\\\\$//
  8073. p
  8074. n
  8075. /\\\\$/ b loop
  8076. p
  8077. }
  8078. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  8079. do
  8080. dirpart="${dirmf}/${file}"
  8081. dirpart="${dirpart%/*}"
  8082. if [ "${dirpart}" != "${dirmf}" ]; then
  8083. test -d "${dirpart}/.deps" || mkdir "${dirpart}/.deps"
  8084. fi
  8085. file="${file##*/}"
  8086. suffix=${file##*.}
  8087. base=${file%%.*}
  8088. test -f "$dirpart/$base.cc" || test -f "$dirpart/$base.c" || continue
  8089. if ! test -f "$dirpart/.deps/$base.Po"; then
  8090. echo '# dummy' > "$dirpart/.deps/$base.Po"
  8091. #Remove the .o file, because it needs to be recompiled for its dependancies.
  8092. if test -f "$dirpart/${base}.${suffix}"; then
  8093. rm -f "$dirpart/${base}.${suffix}"
  8094. fi
  8095. fi
  8096. echo "include .${dirpart#${dirmf}}/.deps/$base.Po" >> "${dirmf}/.deps/includes"
  8097. done
  8098. done
  8099. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/buildinfo.h"
  8100. GIT_REQUIRED=1
  8101. if [ "$GIT_REQUIRED" = "1" ]; then
  8102. if ! test -d .git; then
  8103. echo ""
  8104. echo ""
  8105. echo "You have downloaded a GIT version of wraith."
  8106. echo "Either 'git clone' from a git repository or download a source tarball"
  8107. echo "A distribution version can be found at https://github.com/wraith/wraith/wiki/Download"
  8108. echo ""
  8109. echo ""
  8110. exit 1
  8111. fi
  8112. fi
  8113. if test -d .git; then
  8114. git submodule init
  8115. git submodule update
  8116. git submodule foreach --recursive git clean -fdx
  8117. # Restore as it may have been removed by an older 'make distclean'
  8118. if ! test -f src/response.h; then
  8119. git checkout src/response.h
  8120. fi
  8121. fi
  8122. export CC CXX
  8123. if [ -f lib/bdlib/configure ]; then
  8124. subdirs="$subdirs lib/bdlib"
  8125. fi
  8126. if [ -n "${LIBELF_BUNDLED}" ] && [ -f lib/libelf/configure ]; then
  8127. subdirs="$subdirs lib/libelf"
  8128. fi
  8129. cat >confcache <<\_ACEOF
  8130. # This file is a shell script that caches the results of configure
  8131. # tests run on this system so they can be shared between configure
  8132. # scripts and configure runs, see configure's option --config-cache.
  8133. # It is not useful on other systems. If it contains results you don't
  8134. # want to keep, you may remove or edit it.
  8135. #
  8136. # build/config.status only pays attention to the cache file if you give it
  8137. # the --recheck option to rerun configure.
  8138. #
  8139. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8140. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8141. # following values.
  8142. _ACEOF
  8143. # The following way of writing the cache mishandles newlines in values,
  8144. # but we know of no workaround that is simple, portable, and efficient.
  8145. # So, we kill variables containing newlines.
  8146. # Ultrix sh set writes to stderr and can't be redirected directly,
  8147. # and sets the high bit in the cache file unless we assign to the vars.
  8148. (
  8149. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  8150. eval ac_val=\$$ac_var
  8151. case $ac_val in #(
  8152. *${as_nl}*)
  8153. case $ac_var in #(
  8154. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  8155. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  8156. esac
  8157. case $ac_var in #(
  8158. _ | IFS | as_nl) ;; #(
  8159. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  8160. *) { eval $ac_var=; unset $ac_var;} ;;
  8161. esac ;;
  8162. esac
  8163. done
  8164. (set) 2>&1 |
  8165. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  8166. *${as_nl}ac_space=\ *)
  8167. # `set' does not quote correctly, so add quotes: double-quote
  8168. # substitution turns \\\\ into \\, and sed turns \\ into \.
  8169. sed -n \
  8170. "s/'/'\\\\''/g;
  8171. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8172. ;; #(
  8173. *)
  8174. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8175. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  8176. ;;
  8177. esac |
  8178. sort
  8179. ) |
  8180. sed '
  8181. /^ac_cv_env_/b end
  8182. t clear
  8183. :clear
  8184. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8185. t end
  8186. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8187. :end' >>confcache
  8188. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  8189. if test -w "$cache_file"; then
  8190. if test "x$cache_file" != "x/dev/null"; then
  8191. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  8192. $as_echo "$as_me: updating cache $cache_file" >&6;}
  8193. if test ! -f "$cache_file" || test -h "$cache_file"; then
  8194. cat confcache >"$cache_file"
  8195. else
  8196. case $cache_file in #(
  8197. */* | ?:*)
  8198. mv -f confcache "$cache_file"$$ &&
  8199. mv -f "$cache_file"$$ "$cache_file" ;; #(
  8200. *)
  8201. mv -f confcache "$cache_file" ;;
  8202. esac
  8203. fi
  8204. fi
  8205. else
  8206. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  8207. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  8208. fi
  8209. fi
  8210. rm -f confcache
  8211. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  8212. # Let make expand exec_prefix.
  8213. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  8214. DEFS=-DHAVE_CONFIG_H
  8215. ac_libobjs=
  8216. ac_ltlibobjs=
  8217. U=
  8218. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8219. # 1. Remove the extension, and $U if already installed.
  8220. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  8221. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  8222. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  8223. # will be set to the directory where LIBOBJS objects are built.
  8224. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  8225. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  8226. done
  8227. LIBOBJS=$ac_libobjs
  8228. LTLIBOBJS=$ac_ltlibobjs
  8229. : "${CONFIG_STATUS=./build/config.status}"
  8230. ac_write_fail=0
  8231. ac_clean_files_save=$ac_clean_files
  8232. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8233. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  8234. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8235. as_write_fail=0
  8236. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  8237. #! $SHELL
  8238. # Generated by $as_me.
  8239. # Run this file to recreate the current configuration.
  8240. # Compiler output produced by configure, useful for debugging
  8241. # configure, is in build/config.log if it exists.
  8242. debug=false
  8243. ac_cs_recheck=false
  8244. ac_cs_silent=false
  8245. SHELL=\${CONFIG_SHELL-$SHELL}
  8246. export SHELL
  8247. _ASEOF
  8248. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  8249. ## -------------------- ##
  8250. ## M4sh Initialization. ##
  8251. ## -------------------- ##
  8252. # Be more Bourne compatible
  8253. DUALCASE=1; export DUALCASE # for MKS sh
  8254. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  8255. emulate sh
  8256. NULLCMD=:
  8257. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  8258. # is contrary to our usage. Disable this feature.
  8259. alias -g '${1+"$@"}'='"$@"'
  8260. setopt NO_GLOB_SUBST
  8261. else
  8262. case `(set -o) 2>/dev/null` in #(
  8263. *posix*) :
  8264. set -o posix ;; #(
  8265. *) :
  8266. ;;
  8267. esac
  8268. fi
  8269. as_nl='
  8270. '
  8271. export as_nl
  8272. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  8273. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  8274. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  8275. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  8276. # Prefer a ksh shell builtin over an external printf program on Solaris,
  8277. # but without wasting forks for bash or zsh.
  8278. if test -z "$BASH_VERSION$ZSH_VERSION" \
  8279. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  8280. as_echo='print -r --'
  8281. as_echo_n='print -rn --'
  8282. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  8283. as_echo='printf %s\n'
  8284. as_echo_n='printf %s'
  8285. else
  8286. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  8287. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  8288. as_echo_n='/usr/ucb/echo -n'
  8289. else
  8290. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  8291. as_echo_n_body='eval
  8292. arg=$1;
  8293. case $arg in #(
  8294. *"$as_nl"*)
  8295. expr "X$arg" : "X\\(.*\\)$as_nl";
  8296. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  8297. esac;
  8298. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  8299. '
  8300. export as_echo_n_body
  8301. as_echo_n='sh -c $as_echo_n_body as_echo'
  8302. fi
  8303. export as_echo_body
  8304. as_echo='sh -c $as_echo_body as_echo'
  8305. fi
  8306. # The user is always right.
  8307. if test "${PATH_SEPARATOR+set}" != set; then
  8308. PATH_SEPARATOR=:
  8309. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  8310. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  8311. PATH_SEPARATOR=';'
  8312. }
  8313. fi
  8314. # IFS
  8315. # We need space, tab and new line, in precisely that order. Quoting is
  8316. # there to prevent editors from complaining about space-tab.
  8317. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  8318. # splitting by setting IFS to empty value.)
  8319. IFS=" "" $as_nl"
  8320. # Find who we are. Look in the path if we contain no directory separator.
  8321. as_myself=
  8322. case $0 in #((
  8323. *[\\/]* ) as_myself=$0 ;;
  8324. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8325. for as_dir in $PATH
  8326. do
  8327. IFS=$as_save_IFS
  8328. test -z "$as_dir" && as_dir=.
  8329. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8330. done
  8331. IFS=$as_save_IFS
  8332. ;;
  8333. esac
  8334. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8335. # in which case we are not to be found in the path.
  8336. if test "x$as_myself" = x; then
  8337. as_myself=$0
  8338. fi
  8339. if test ! -f "$as_myself"; then
  8340. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  8341. exit 1
  8342. fi
  8343. # Unset variables that we do not need and which cause bugs (e.g. in
  8344. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  8345. # suppresses any "Segmentation fault" message there. '((' could
  8346. # trigger a bug in pdksh 5.2.14.
  8347. for as_var in BASH_ENV ENV MAIL MAILPATH
  8348. do eval test x\${$as_var+set} = xset \
  8349. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  8350. done
  8351. PS1='$ '
  8352. PS2='> '
  8353. PS4='+ '
  8354. # NLS nuisances.
  8355. LC_ALL=C
  8356. export LC_ALL
  8357. LANGUAGE=C
  8358. export LANGUAGE
  8359. # CDPATH.
  8360. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  8361. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  8362. # ----------------------------------------
  8363. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  8364. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  8365. # script with STATUS, using 1 if that was 0.
  8366. as_fn_error ()
  8367. {
  8368. as_status=$1; test $as_status -eq 0 && as_status=1
  8369. if test "$4"; then
  8370. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8371. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  8372. fi
  8373. $as_echo "$as_me: error: $2" >&2
  8374. as_fn_exit $as_status
  8375. } # as_fn_error
  8376. # as_fn_set_status STATUS
  8377. # -----------------------
  8378. # Set $? to STATUS, without forking.
  8379. as_fn_set_status ()
  8380. {
  8381. return $1
  8382. } # as_fn_set_status
  8383. # as_fn_exit STATUS
  8384. # -----------------
  8385. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  8386. as_fn_exit ()
  8387. {
  8388. set +e
  8389. as_fn_set_status $1
  8390. exit $1
  8391. } # as_fn_exit
  8392. # as_fn_unset VAR
  8393. # ---------------
  8394. # Portably unset VAR.
  8395. as_fn_unset ()
  8396. {
  8397. { eval $1=; unset $1;}
  8398. }
  8399. as_unset=as_fn_unset
  8400. # as_fn_append VAR VALUE
  8401. # ----------------------
  8402. # Append the text in VALUE to the end of the definition contained in VAR. Take
  8403. # advantage of any shell optimizations that allow amortized linear growth over
  8404. # repeated appends, instead of the typical quadratic growth present in naive
  8405. # implementations.
  8406. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  8407. eval 'as_fn_append ()
  8408. {
  8409. eval $1+=\$2
  8410. }'
  8411. else
  8412. as_fn_append ()
  8413. {
  8414. eval $1=\$$1\$2
  8415. }
  8416. fi # as_fn_append
  8417. # as_fn_arith ARG...
  8418. # ------------------
  8419. # Perform arithmetic evaluation on the ARGs, and store the result in the
  8420. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  8421. # must be portable across $(()) and expr.
  8422. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  8423. eval 'as_fn_arith ()
  8424. {
  8425. as_val=$(( $* ))
  8426. }'
  8427. else
  8428. as_fn_arith ()
  8429. {
  8430. as_val=`expr "$@" || test $? -eq 1`
  8431. }
  8432. fi # as_fn_arith
  8433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  8434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  8435. as_expr=expr
  8436. else
  8437. as_expr=false
  8438. fi
  8439. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  8440. as_basename=basename
  8441. else
  8442. as_basename=false
  8443. fi
  8444. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  8445. as_dirname=dirname
  8446. else
  8447. as_dirname=false
  8448. fi
  8449. as_me=`$as_basename -- "$0" ||
  8450. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8451. X"$0" : 'X\(//\)$' \| \
  8452. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  8453. $as_echo X/"$0" |
  8454. sed '/^.*\/\([^/][^/]*\)\/*$/{
  8455. s//\1/
  8456. q
  8457. }
  8458. /^X\/\(\/\/\)$/{
  8459. s//\1/
  8460. q
  8461. }
  8462. /^X\/\(\/\).*/{
  8463. s//\1/
  8464. q
  8465. }
  8466. s/.*/./; q'`
  8467. # Avoid depending upon Character Ranges.
  8468. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8469. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8470. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8471. as_cr_digits='0123456789'
  8472. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8473. ECHO_C= ECHO_N= ECHO_T=
  8474. case `echo -n x` in #(((((
  8475. -n*)
  8476. case `echo 'xy\c'` in
  8477. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  8478. xy) ECHO_C='\c';;
  8479. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  8480. ECHO_T=' ';;
  8481. esac;;
  8482. *)
  8483. ECHO_N='-n';;
  8484. esac
  8485. rm -f conf$$ conf$$.exe conf$$.file
  8486. if test -d conf$$.dir; then
  8487. rm -f conf$$.dir/conf$$.file
  8488. else
  8489. rm -f conf$$.dir
  8490. mkdir conf$$.dir 2>/dev/null
  8491. fi
  8492. if (echo >conf$$.file) 2>/dev/null; then
  8493. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8494. as_ln_s='ln -s'
  8495. # ... but there are two gotchas:
  8496. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  8497. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  8498. # In both cases, we have to default to `cp -pR'.
  8499. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  8500. as_ln_s='cp -pR'
  8501. elif ln conf$$.file conf$$ 2>/dev/null; then
  8502. as_ln_s=ln
  8503. else
  8504. as_ln_s='cp -pR'
  8505. fi
  8506. else
  8507. as_ln_s='cp -pR'
  8508. fi
  8509. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  8510. rmdir conf$$.dir 2>/dev/null
  8511. # as_fn_mkdir_p
  8512. # -------------
  8513. # Create "$as_dir" as a directory, including parents if necessary.
  8514. as_fn_mkdir_p ()
  8515. {
  8516. case $as_dir in #(
  8517. -*) as_dir=./$as_dir;;
  8518. esac
  8519. test -d "$as_dir" || eval $as_mkdir_p || {
  8520. as_dirs=
  8521. while :; do
  8522. case $as_dir in #(
  8523. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  8524. *) as_qdir=$as_dir;;
  8525. esac
  8526. as_dirs="'$as_qdir' $as_dirs"
  8527. as_dir=`$as_dirname -- "$as_dir" ||
  8528. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8529. X"$as_dir" : 'X\(//\)[^/]' \| \
  8530. X"$as_dir" : 'X\(//\)$' \| \
  8531. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  8532. $as_echo X"$as_dir" |
  8533. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  8534. s//\1/
  8535. q
  8536. }
  8537. /^X\(\/\/\)[^/].*/{
  8538. s//\1/
  8539. q
  8540. }
  8541. /^X\(\/\/\)$/{
  8542. s//\1/
  8543. q
  8544. }
  8545. /^X\(\/\).*/{
  8546. s//\1/
  8547. q
  8548. }
  8549. s/.*/./; q'`
  8550. test -d "$as_dir" && break
  8551. done
  8552. test -z "$as_dirs" || eval "mkdir $as_dirs"
  8553. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  8554. } # as_fn_mkdir_p
  8555. if mkdir -p . 2>/dev/null; then
  8556. as_mkdir_p='mkdir -p "$as_dir"'
  8557. else
  8558. test -d ./-p && rmdir ./-p
  8559. as_mkdir_p=false
  8560. fi
  8561. # as_fn_executable_p FILE
  8562. # -----------------------
  8563. # Test if FILE is an executable regular file.
  8564. as_fn_executable_p ()
  8565. {
  8566. test -f "$1" && test -x "$1"
  8567. } # as_fn_executable_p
  8568. as_test_x='test -x'
  8569. as_executable_p=as_fn_executable_p
  8570. # Sed expression to map a string onto a valid CPP name.
  8571. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8572. # Sed expression to map a string onto a valid variable name.
  8573. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8574. exec 6>&1
  8575. ## ----------------------------------- ##
  8576. ## Main body of $CONFIG_STATUS script. ##
  8577. ## ----------------------------------- ##
  8578. _ASEOF
  8579. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  8580. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8581. # Save the log message, to keep $0 and so on meaningful, and to
  8582. # report actual input values of CONFIG_FILES etc. instead of their
  8583. # values after options handling.
  8584. ac_log="
  8585. This file was extended by $as_me, which was
  8586. generated by GNU Autoconf 2.69. Invocation command line was
  8587. CONFIG_FILES = $CONFIG_FILES
  8588. CONFIG_HEADERS = $CONFIG_HEADERS
  8589. CONFIG_LINKS = $CONFIG_LINKS
  8590. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8591. $ $0 $@
  8592. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  8593. "
  8594. _ACEOF
  8595. case $ac_config_files in *"
  8596. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  8597. esac
  8598. case $ac_config_headers in *"
  8599. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  8600. esac
  8601. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8602. # Files that build/config.status was made for.
  8603. config_files="$ac_config_files"
  8604. config_headers="$ac_config_headers"
  8605. _ACEOF
  8606. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8607. ac_cs_usage="\
  8608. \`$as_me' instantiates files and other configuration actions
  8609. from templates according to the current configuration. Unless the files
  8610. and actions are specified as TAGs, all are instantiated by default.
  8611. Usage: $0 [OPTION]... [TAG]...
  8612. -h, --help print this help, then exit
  8613. -V, --version print version number and configuration settings, then exit
  8614. --config print configuration, then exit
  8615. -q, --quiet, --silent
  8616. do not print progress messages
  8617. -d, --debug don't remove temporary files
  8618. --recheck update $as_me by reconfiguring in the same conditions
  8619. --file=FILE[:TEMPLATE]
  8620. instantiate the configuration file FILE
  8621. --header=FILE[:TEMPLATE]
  8622. instantiate the configuration header FILE
  8623. Configuration files:
  8624. $config_files
  8625. Configuration headers:
  8626. $config_headers
  8627. Report bugs to the package provider."
  8628. _ACEOF
  8629. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8630. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  8631. ac_cs_version="\\
  8632. build/config.status
  8633. configured by $0, generated by GNU Autoconf 2.69,
  8634. with options \\"\$ac_cs_config\\"
  8635. Copyright (C) 2012 Free Software Foundation, Inc.
  8636. This build/config.status script is free software; the Free Software Foundation
  8637. gives unlimited permission to copy, distribute and modify it."
  8638. ac_pwd='$ac_pwd'
  8639. srcdir='$srcdir'
  8640. AWK='$AWK'
  8641. test -n "\$AWK" || AWK=awk
  8642. _ACEOF
  8643. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8644. # The default lists apply if the user does not specify any file.
  8645. ac_need_defaults=:
  8646. while test $# != 0
  8647. do
  8648. case $1 in
  8649. --*=?*)
  8650. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8651. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  8652. ac_shift=:
  8653. ;;
  8654. --*=)
  8655. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  8656. ac_optarg=
  8657. ac_shift=:
  8658. ;;
  8659. *)
  8660. ac_option=$1
  8661. ac_optarg=$2
  8662. ac_shift=shift
  8663. ;;
  8664. esac
  8665. case $ac_option in
  8666. # Handling of the options.
  8667. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8668. ac_cs_recheck=: ;;
  8669. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  8670. $as_echo "$ac_cs_version"; exit ;;
  8671. --config | --confi | --conf | --con | --co | --c )
  8672. $as_echo "$ac_cs_config"; exit ;;
  8673. --debug | --debu | --deb | --de | --d | -d )
  8674. debug=: ;;
  8675. --file | --fil | --fi | --f )
  8676. $ac_shift
  8677. case $ac_optarg in
  8678. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8679. '') as_fn_error $? "missing file argument" ;;
  8680. esac
  8681. as_fn_append CONFIG_FILES " '$ac_optarg'"
  8682. ac_need_defaults=false;;
  8683. --header | --heade | --head | --hea )
  8684. $ac_shift
  8685. case $ac_optarg in
  8686. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  8687. esac
  8688. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  8689. ac_need_defaults=false;;
  8690. --he | --h)
  8691. # Conflict between --help and --header
  8692. as_fn_error $? "ambiguous option: \`$1'
  8693. Try \`$0 --help' for more information.";;
  8694. --help | --hel | -h )
  8695. $as_echo "$ac_cs_usage"; exit ;;
  8696. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8697. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8698. ac_cs_silent=: ;;
  8699. # This is an error.
  8700. -*) as_fn_error $? "unrecognized option: \`$1'
  8701. Try \`$0 --help' for more information." ;;
  8702. *) as_fn_append ac_config_targets " $1"
  8703. ac_need_defaults=false ;;
  8704. esac
  8705. shift
  8706. done
  8707. ac_configure_extra_args=
  8708. if $ac_cs_silent; then
  8709. exec 6>/dev/null
  8710. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8711. fi
  8712. _ACEOF
  8713. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8714. if \$ac_cs_recheck; then
  8715. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8716. shift
  8717. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  8718. CONFIG_SHELL='$SHELL'
  8719. export CONFIG_SHELL
  8720. exec "\$@"
  8721. fi
  8722. _ACEOF
  8723. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8724. exec 5>>build/config.log
  8725. {
  8726. echo
  8727. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8728. ## Running $as_me. ##
  8729. _ASBOX
  8730. $as_echo "$ac_log"
  8731. } >&5
  8732. _ACEOF
  8733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8734. _ACEOF
  8735. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8736. # Handling of arguments.
  8737. for ac_config_target in $ac_config_targets
  8738. do
  8739. case $ac_config_target in
  8740. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  8741. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8742. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  8743. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  8744. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  8745. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  8746. esac
  8747. done
  8748. # If the user did not use the arguments to specify the items to instantiate,
  8749. # then the envvar interface is used. Set only those that are not.
  8750. # We use the long form for the default assignment because of an extremely
  8751. # bizarre bug on SunOS 4.1.3.
  8752. if $ac_need_defaults; then
  8753. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8754. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8755. fi
  8756. # Have a temporary directory for convenience. Make it in the build tree
  8757. # simply because there is no reason against having it here, and in addition,
  8758. # creating and moving files from /tmp can sometimes cause problems.
  8759. # Hook for its removal unless debugging.
  8760. # Note that there is a small window in which the directory will not be cleaned:
  8761. # after its creation but before its name has been assigned to `$tmp'.
  8762. $debug ||
  8763. {
  8764. tmp= ac_tmp=
  8765. trap 'exit_status=$?
  8766. : "${ac_tmp:=$tmp}"
  8767. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  8768. ' 0
  8769. trap 'as_fn_exit 1' 1 2 13 15
  8770. }
  8771. # Create a (secure) tmp directory for tmp files.
  8772. {
  8773. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  8774. test -d "$tmp"
  8775. } ||
  8776. {
  8777. tmp=./conf$$-$RANDOM
  8778. (umask 077 && mkdir "$tmp")
  8779. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  8780. ac_tmp=$tmp
  8781. # Set up the scripts for CONFIG_FILES section.
  8782. # No need to generate them if there are no CONFIG_FILES.
  8783. # This happens for instance with `./build/config.status config.h'.
  8784. if test -n "$CONFIG_FILES"; then
  8785. ac_cr=`echo X | tr X '\015'`
  8786. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  8787. # But we know of no other shell where ac_cr would be empty at this
  8788. # point, so we can use a bashism as a fallback.
  8789. if test "x$ac_cr" = x; then
  8790. eval ac_cr=\$\'\\r\'
  8791. fi
  8792. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  8793. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  8794. ac_cs_awk_cr='\\r'
  8795. else
  8796. ac_cs_awk_cr=$ac_cr
  8797. fi
  8798. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  8799. _ACEOF
  8800. {
  8801. echo "cat >conf$$subs.awk <<_ACEOF" &&
  8802. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  8803. echo "_ACEOF"
  8804. } >conf$$subs.sh ||
  8805. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8806. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  8807. ac_delim='%!_!# '
  8808. for ac_last_try in false false false false false :; do
  8809. . ./conf$$subs.sh ||
  8810. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8811. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  8812. if test $ac_delim_n = $ac_delim_num; then
  8813. break
  8814. elif $ac_last_try; then
  8815. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  8816. else
  8817. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8818. fi
  8819. done
  8820. rm -f conf$$subs.sh
  8821. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8822. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  8823. _ACEOF
  8824. sed -n '
  8825. h
  8826. s/^/S["/; s/!.*/"]=/
  8827. p
  8828. g
  8829. s/^[^!]*!//
  8830. :repl
  8831. t repl
  8832. s/'"$ac_delim"'$//
  8833. t delim
  8834. :nl
  8835. h
  8836. s/\(.\{148\}\)..*/\1/
  8837. t more1
  8838. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  8839. p
  8840. n
  8841. b repl
  8842. :more1
  8843. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8844. p
  8845. g
  8846. s/.\{148\}//
  8847. t nl
  8848. :delim
  8849. h
  8850. s/\(.\{148\}\)..*/\1/
  8851. t more2
  8852. s/["\\]/\\&/g; s/^/"/; s/$/"/
  8853. p
  8854. b
  8855. :more2
  8856. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  8857. p
  8858. g
  8859. s/.\{148\}//
  8860. t delim
  8861. ' <conf$$subs.awk | sed '
  8862. /^[^""]/{
  8863. N
  8864. s/\n//
  8865. }
  8866. ' >>$CONFIG_STATUS || ac_write_fail=1
  8867. rm -f conf$$subs.awk
  8868. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8869. _ACAWK
  8870. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  8871. for (key in S) S_is_set[key] = 1
  8872. FS = ""
  8873. }
  8874. {
  8875. line = $ 0
  8876. nfields = split(line, field, "@")
  8877. substed = 0
  8878. len = length(field[1])
  8879. for (i = 2; i < nfields; i++) {
  8880. key = field[i]
  8881. keylen = length(key)
  8882. if (S_is_set[key]) {
  8883. value = S[key]
  8884. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  8885. len += length(value) + length(field[++i])
  8886. substed = 1
  8887. } else
  8888. len += 1 + keylen
  8889. }
  8890. print line
  8891. }
  8892. _ACAWK
  8893. _ACEOF
  8894. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8895. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  8896. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  8897. else
  8898. cat
  8899. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  8900. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  8901. _ACEOF
  8902. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  8903. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  8904. # trailing colons and then remove the whole line if VPATH becomes empty
  8905. # (actually we leave an empty line to preserve line numbers).
  8906. if test "x$srcdir" = x.; then
  8907. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  8908. h
  8909. s///
  8910. s/^/:/
  8911. s/[ ]*$/:/
  8912. s/:\$(srcdir):/:/g
  8913. s/:\${srcdir}:/:/g
  8914. s/:@srcdir@:/:/g
  8915. s/^:*//
  8916. s/:*$//
  8917. x
  8918. s/\(=[ ]*\).*/\1/
  8919. G
  8920. s/\n//
  8921. s/^[^=]*=[ ]*$//
  8922. }'
  8923. fi
  8924. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  8925. fi # test -n "$CONFIG_FILES"
  8926. # Set up the scripts for CONFIG_HEADERS section.
  8927. # No need to generate them if there are no CONFIG_HEADERS.
  8928. # This happens for instance with `./build/config.status Makefile'.
  8929. if test -n "$CONFIG_HEADERS"; then
  8930. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  8931. BEGIN {
  8932. _ACEOF
  8933. # Transform build/confdefs.h into an awk script `defines.awk', embedded as
  8934. # here-document in build/config.status, that substitutes the proper values into
  8935. # config.h.in to produce config.h.
  8936. # Create a delimiter string that does not exist in build/confdefs.h, to ease
  8937. # handling of long lines.
  8938. ac_delim='%!_!# '
  8939. for ac_last_try in false false :; do
  8940. ac_tt=`sed -n "/$ac_delim/p" build/confdefs.h`
  8941. if test -z "$ac_tt"; then
  8942. break
  8943. elif $ac_last_try; then
  8944. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  8945. else
  8946. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  8947. fi
  8948. done
  8949. # For the awk script, D is an array of macro values keyed by name,
  8950. # likewise P contains macro parameters if any. Preserve backslash
  8951. # newline sequences.
  8952. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  8953. sed -n '
  8954. s/.\{148\}/&'"$ac_delim"'/g
  8955. t rset
  8956. :rset
  8957. s/^[ ]*#[ ]*define[ ][ ]*/ /
  8958. t def
  8959. d
  8960. :def
  8961. s/\\$//
  8962. t bsnl
  8963. s/["\\]/\\&/g
  8964. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8965. D["\1"]=" \3"/p
  8966. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  8967. d
  8968. :bsnl
  8969. s/["\\]/\\&/g
  8970. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  8971. D["\1"]=" \3\\\\\\n"\\/p
  8972. t cont
  8973. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  8974. t cont
  8975. d
  8976. :cont
  8977. n
  8978. s/.\{148\}/&'"$ac_delim"'/g
  8979. t clear
  8980. :clear
  8981. s/\\$//
  8982. t bsnlc
  8983. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  8984. d
  8985. :bsnlc
  8986. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  8987. b cont
  8988. ' <build/confdefs.h | sed '
  8989. s/'"$ac_delim"'/"\\\
  8990. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  8991. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  8992. for (key in D) D_is_set[key] = 1
  8993. FS = ""
  8994. }
  8995. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  8996. line = \$ 0
  8997. split(line, arg, " ")
  8998. if (arg[1] == "#") {
  8999. defundef = arg[2]
  9000. mac1 = arg[3]
  9001. } else {
  9002. defundef = substr(arg[1], 2)
  9003. mac1 = arg[2]
  9004. }
  9005. split(mac1, mac2, "(") #)
  9006. macro = mac2[1]
  9007. prefix = substr(line, 1, index(line, defundef) - 1)
  9008. if (D_is_set[macro]) {
  9009. # Preserve the white space surrounding the "#".
  9010. print prefix "define", macro P[macro] D[macro]
  9011. next
  9012. } else {
  9013. # Replace #undef with comments. This is necessary, for example,
  9014. # in the case of _POSIX_SOURCE, which is predefined and required
  9015. # on some systems where configure will not decide to define it.
  9016. if (defundef == "undef") {
  9017. print "/*", prefix defundef, macro, "*/"
  9018. next
  9019. }
  9020. }
  9021. }
  9022. { print }
  9023. _ACAWK
  9024. _ACEOF
  9025. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9026. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  9027. fi # test -n "$CONFIG_HEADERS"
  9028. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
  9029. shift
  9030. for ac_tag
  9031. do
  9032. case $ac_tag in
  9033. :[FHLC]) ac_mode=$ac_tag; continue;;
  9034. esac
  9035. case $ac_mode$ac_tag in
  9036. :[FHL]*:*);;
  9037. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  9038. :[FH]-) ac_tag=-:-;;
  9039. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  9040. esac
  9041. ac_save_IFS=$IFS
  9042. IFS=:
  9043. set x $ac_tag
  9044. IFS=$ac_save_IFS
  9045. shift
  9046. ac_file=$1
  9047. shift
  9048. case $ac_mode in
  9049. :L) ac_source=$1;;
  9050. :[FH])
  9051. ac_file_inputs=
  9052. for ac_f
  9053. do
  9054. case $ac_f in
  9055. -) ac_f="$ac_tmp/stdin";;
  9056. *) # Look for the file first in the build tree, then in the source tree
  9057. # (if the path is not absolute). The absolute path cannot be DOS-style,
  9058. # because $ac_f cannot contain `:'.
  9059. test -f "$ac_f" ||
  9060. case $ac_f in
  9061. [\\/$]*) false;;
  9062. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  9063. esac ||
  9064. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  9065. esac
  9066. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  9067. as_fn_append ac_file_inputs " '$ac_f'"
  9068. done
  9069. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9070. # use $as_me), people would be surprised to read:
  9071. # /* config.h. Generated by build/config.status. */
  9072. configure_input='Generated from '`
  9073. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  9074. `' by configure.'
  9075. if test x"$ac_file" != x-; then
  9076. configure_input="$ac_file. $configure_input"
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  9078. $as_echo "$as_me: creating $ac_file" >&6;}
  9079. fi
  9080. # Neutralize special characters interpreted by sed in replacement strings.
  9081. case $configure_input in #(
  9082. *\&* | *\|* | *\\* )
  9083. ac_sed_conf_input=`$as_echo "$configure_input" |
  9084. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  9085. *) ac_sed_conf_input=$configure_input;;
  9086. esac
  9087. case $ac_tag in
  9088. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  9089. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  9090. esac
  9091. ;;
  9092. esac
  9093. ac_dir=`$as_dirname -- "$ac_file" ||
  9094. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9095. X"$ac_file" : 'X\(//\)[^/]' \| \
  9096. X"$ac_file" : 'X\(//\)$' \| \
  9097. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  9098. $as_echo X"$ac_file" |
  9099. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  9100. s//\1/
  9101. q
  9102. }
  9103. /^X\(\/\/\)[^/].*/{
  9104. s//\1/
  9105. q
  9106. }
  9107. /^X\(\/\/\)$/{
  9108. s//\1/
  9109. q
  9110. }
  9111. /^X\(\/\).*/{
  9112. s//\1/
  9113. q
  9114. }
  9115. s/.*/./; q'`
  9116. as_dir="$ac_dir"; as_fn_mkdir_p
  9117. ac_builddir=.
  9118. case "$ac_dir" in
  9119. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9120. *)
  9121. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9122. # A ".." for each directory in $ac_dir_suffix.
  9123. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9124. case $ac_top_builddir_sub in
  9125. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9126. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9127. esac ;;
  9128. esac
  9129. ac_abs_top_builddir=$ac_pwd
  9130. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9131. # for backward compatibility:
  9132. ac_top_builddir=$ac_top_build_prefix
  9133. case $srcdir in
  9134. .) # We are building in place.
  9135. ac_srcdir=.
  9136. ac_top_srcdir=$ac_top_builddir_sub
  9137. ac_abs_top_srcdir=$ac_pwd ;;
  9138. [\\/]* | ?:[\\/]* ) # Absolute name.
  9139. ac_srcdir=$srcdir$ac_dir_suffix;
  9140. ac_top_srcdir=$srcdir
  9141. ac_abs_top_srcdir=$srcdir ;;
  9142. *) # Relative name.
  9143. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9144. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9145. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9146. esac
  9147. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9148. case $ac_mode in
  9149. :F)
  9150. #
  9151. # CONFIG_FILE
  9152. #
  9153. _ACEOF
  9154. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9155. # If the template does not know about datarootdir, expand it.
  9156. # FIXME: This hack should be removed a few years after 2.60.
  9157. ac_datarootdir_hack=; ac_datarootdir_seen=
  9158. ac_sed_dataroot='
  9159. /datarootdir/ {
  9160. p
  9161. q
  9162. }
  9163. /@datadir@/p
  9164. /@docdir@/p
  9165. /@infodir@/p
  9166. /@localedir@/p
  9167. /@mandir@/p'
  9168. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  9169. *datarootdir*) ac_datarootdir_seen=yes;;
  9170. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  9172. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  9173. _ACEOF
  9174. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9175. ac_datarootdir_hack='
  9176. s&@datadir@&$datadir&g
  9177. s&@docdir@&$docdir&g
  9178. s&@infodir@&$infodir&g
  9179. s&@localedir@&$localedir&g
  9180. s&@mandir@&$mandir&g
  9181. s&\\\${datarootdir}&$datarootdir&g' ;;
  9182. esac
  9183. _ACEOF
  9184. # Neutralize VPATH when `$srcdir' = `.'.
  9185. # Shell code in configure.ac might set extrasub.
  9186. # FIXME: do we really want to maintain this feature?
  9187. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  9188. ac_sed_extra="$ac_vpsub
  9189. $extrasub
  9190. _ACEOF
  9191. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  9192. :t
  9193. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9194. s|@configure_input@|$ac_sed_conf_input|;t t
  9195. s&@top_builddir@&$ac_top_builddir_sub&;t t
  9196. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  9197. s&@srcdir@&$ac_srcdir&;t t
  9198. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  9199. s&@top_srcdir@&$ac_top_srcdir&;t t
  9200. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  9201. s&@builddir@&$ac_builddir&;t t
  9202. s&@abs_builddir@&$ac_abs_builddir&;t t
  9203. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  9204. $ac_datarootdir_hack
  9205. "
  9206. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  9207. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9208. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  9209. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  9210. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  9211. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9213. which seems to be undefined. Please make sure it is defined" >&5
  9214. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  9215. which seems to be undefined. Please make sure it is defined" >&2;}
  9216. rm -f "$ac_tmp/stdin"
  9217. case $ac_file in
  9218. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  9219. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  9220. esac \
  9221. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9222. ;;
  9223. :H)
  9224. #
  9225. # CONFIG_HEADER
  9226. #
  9227. if test x"$ac_file" != x-; then
  9228. {
  9229. $as_echo "/* $configure_input */" \
  9230. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  9231. } >"$ac_tmp/config.h" \
  9232. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9233. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  9235. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  9236. else
  9237. rm -f "$ac_file"
  9238. mv "$ac_tmp/config.h" "$ac_file" \
  9239. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  9240. fi
  9241. else
  9242. $as_echo "/* $configure_input */" \
  9243. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  9244. || as_fn_error $? "could not create -" "$LINENO" 5
  9245. fi
  9246. ;;
  9247. esac
  9248. done # for ac_tag
  9249. as_fn_exit 0
  9250. _ACEOF
  9251. ac_clean_files=$ac_clean_files_save
  9252. test $ac_write_fail = 0 ||
  9253. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  9254. # configure is writing to build/config.log, and then calls build/config.status.
  9255. # build/config.status does its own redirection, appending to build/config.log.
  9256. # Unfortunately, on DOS this fails, as build/config.log is still kept open
  9257. # by configure, so build/config.status won't be able to write to it; its
  9258. # output is simply discarded. So we exec the FD to /dev/null,
  9259. # effectively closing build/config.log, so it can be properly (re)opened and
  9260. # appended to by build/config.status. When coming back to configure, we
  9261. # need to make the FD available again.
  9262. if test "$no_create" != yes; then
  9263. ac_cs_success=:
  9264. ac_config_status_args=
  9265. test "$silent" = yes &&
  9266. ac_config_status_args="$ac_config_status_args --quiet"
  9267. exec 5>/dev/null
  9268. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  9269. exec 5>>build/config.log
  9270. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  9271. # would make configure fail if this is the last instruction.
  9272. $ac_cs_success || as_fn_exit 1
  9273. fi
  9274. #
  9275. # CONFIG_SUBDIRS section.
  9276. #
  9277. if test "$no_recursion" != yes; then
  9278. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  9279. # so they do not pile up.
  9280. ac_sub_configure_args=
  9281. ac_prev=
  9282. eval "set x $ac_configure_args"
  9283. shift
  9284. for ac_arg
  9285. do
  9286. if test -n "$ac_prev"; then
  9287. ac_prev=
  9288. continue
  9289. fi
  9290. case $ac_arg in
  9291. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9292. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9293. ac_prev=cache_file ;;
  9294. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9295. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  9296. | --c=*)
  9297. ;;
  9298. --config-cache | -C)
  9299. ;;
  9300. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9301. ac_prev=srcdir ;;
  9302. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9303. ;;
  9304. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9305. ac_prev=prefix ;;
  9306. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9307. ;;
  9308. --disable-option-checking)
  9309. ;;
  9310. *)
  9311. case $ac_arg in
  9312. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9313. esac
  9314. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  9315. esac
  9316. done
  9317. # Always prepend --prefix to ensure using the same prefix
  9318. # in subdir configurations.
  9319. ac_arg="--prefix=$prefix"
  9320. case $ac_arg in
  9321. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9322. esac
  9323. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  9324. # Pass --silent
  9325. if test "$silent" = yes; then
  9326. ac_sub_configure_args="--silent $ac_sub_configure_args"
  9327. fi
  9328. # Always prepend --disable-option-checking to silence warnings, since
  9329. # different subdirs can have different --enable and --with options.
  9330. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  9331. ac_popdir=`pwd`
  9332. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  9333. # Do not complain, so a configure script can configure whichever
  9334. # parts of a large source tree are present.
  9335. test -d "$srcdir/$ac_dir" || continue
  9336. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  9337. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  9338. $as_echo "$ac_msg" >&6
  9339. as_dir="$ac_dir"; as_fn_mkdir_p
  9340. ac_builddir=.
  9341. case "$ac_dir" in
  9342. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9343. *)
  9344. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  9345. # A ".." for each directory in $ac_dir_suffix.
  9346. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  9347. case $ac_top_builddir_sub in
  9348. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  9349. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  9350. esac ;;
  9351. esac
  9352. ac_abs_top_builddir=$ac_pwd
  9353. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  9354. # for backward compatibility:
  9355. ac_top_builddir=$ac_top_build_prefix
  9356. case $srcdir in
  9357. .) # We are building in place.
  9358. ac_srcdir=.
  9359. ac_top_srcdir=$ac_top_builddir_sub
  9360. ac_abs_top_srcdir=$ac_pwd ;;
  9361. [\\/]* | ?:[\\/]* ) # Absolute name.
  9362. ac_srcdir=$srcdir$ac_dir_suffix;
  9363. ac_top_srcdir=$srcdir
  9364. ac_abs_top_srcdir=$srcdir ;;
  9365. *) # Relative name.
  9366. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  9367. ac_top_srcdir=$ac_top_build_prefix$srcdir
  9368. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  9369. esac
  9370. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  9371. cd "$ac_dir"
  9372. # Check for guested configure; otherwise get Cygnus style configure.
  9373. if test -f "$ac_srcdir/configure.gnu"; then
  9374. ac_sub_configure=$ac_srcdir/configure.gnu
  9375. elif test -f "$ac_srcdir/configure"; then
  9376. ac_sub_configure=$ac_srcdir/configure
  9377. elif test -f "$ac_srcdir/configure.in"; then
  9378. # This should be Cygnus configure.
  9379. ac_sub_configure=$ac_aux_dir/configure
  9380. else
  9381. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  9382. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  9383. ac_sub_configure=
  9384. fi
  9385. # The recursion is here.
  9386. if test -n "$ac_sub_configure"; then
  9387. # Make the cache file name correct relative to the subdirectory.
  9388. case $cache_file in
  9389. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  9390. *) # Relative name.
  9391. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  9392. esac
  9393. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  9394. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  9395. # The eval makes quoting arguments work.
  9396. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  9397. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  9398. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  9399. fi
  9400. cd "$ac_popdir"
  9401. done
  9402. fi
  9403. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  9405. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  9406. fi
  9407. CXX="$CXX" CXXFLAGS="$CXXFLAGS" TCL_INCLUDES="$TCL_INCLUDES" SSL_INCLUDES="$SSL_INCLUDES" \
  9408. SED="$SED" src/generate_defs.sh || exit 1