configure 273 KB

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