configure 281 KB

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