configure 267 KB

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