configure 287 KB

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