configure 272 KB

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